}
menu {
- background-color: $menu-background;
+ background-color: var(--menuBackgroundColor);
margin: 0;
padding: 0;
height: 100%;
white-space: nowrap;
text-overflow: ellipsis;
- overflow: hidden;
- color: $menu-color;
+ overflow: auto;
+ color: var(--menuForegroundColor);
display: flex;
flex-direction: column;
width: 100%;
overflow-y: auto;
}
+ .top-menu {
+ flex-grow: 1;
+ width: $menu-width;
+ }
+
.logged-in-block {
height: 100px;
background-color: rgba(255, 255, 255, 0.15);
justify-content: center;
margin-bottom: 35px;
- img {
- @include avatar(34px);
-
- margin-left: 20px;
- margin-right: 10px;
- }
-
.logged-in-info {
flex-grow: 1;
.logged-in-username {
font-size: 16px;
font-weight: $font-semibold;
- color: $menu-color;
+ color: var(--menuForegroundColor);
cursor: pointer;
@include disable-default-a-behaviour;
a {
display: flex;
align-items: center;
- padding-left: $menu-left-padding;
- color: $menu-color;
+ padding-left: $menu-lateral-padding;
+ color: var(--menuForegroundColor);
cursor: pointer;
height: 40px;
font-size: 16px;
transition: background-color .1s ease-in-out;
@include disable-default-a-behaviour;
- &:hover {
+ &.active {
background-color: rgba(255, 255, 255, 0.15);
}
+ &:hover, &.focus-visible {
+ background-color: rgba(255, 255, 255, 0.10);
+ }
+
.icon {
@include icon(22px);
.footer {
padding-bottom: 15px;
- padding-left: $menu-left-padding;
+ padding-left: $menu-lateral-padding;
+ padding-right: $menu-lateral-padding;
+ width: $menu-width;
- .language, .color-palette {
+ .language, .shortcuts, .color-palette {
display: inline-block;
color: $menu-bottom-color;
cursor: pointer;
font-weight: $font-semibold;
.icon {
+ @include disable-outline;
@include icon(28px);
opacity: 0.9;
background-image: url('../../assets/images/menu/language.png');
}
+ &.icon-shortcuts {
+ position: relative;
+ top: -1px;
+ width: 24px;
+ height: 24px;
+
+ background-image: url('../../assets/images/menu/keyboard.png');
+ background-color: #fff;
+ filter: invert(100%);
+ }
+
&.icon-moonsun {
margin-left: 10px;
position: relative;
}
}
-@media screen and (max-width: 400px) {
+@media screen and (max-width: $mobile-view) {
.menu-wrapper {
width: 100% !important;
}
- .top-menu {
- width: 100%;
+ .top-menu, .footer {
+ width: 100% !important;
}
}