X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fmenu%2Fmenu.component.scss;h=137df6fc1a92d45aaf9b3bc5530f7aa2d9e9ae07;hb=ef80c66cea945d315336251dbb5efcb06c64189d;hp=0f98da0e29e450dd89c98554a3d6fa3f369e76c3;hpb=c13e2bf340644a28012ac7ee3cf1d57763342baa;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/menu/menu.component.scss b/client/src/app/menu/menu.component.scss index 0f98da0e2..137df6fc1 100644 --- a/client/src/app/menu/menu.component.scss +++ b/client/src/app/menu/menu.component.scss @@ -10,14 +10,14 @@ } menu { - background-color: $menu-background; + @include ellipsis; + + 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%; @@ -39,31 +39,25 @@ menu { justify-content: center; margin-bottom: 35px; - img { - @include avatar(34px); - - margin-left: 20px; - margin-right: 10px; - } - .logged-in-info { + @include ellipsis; + flex-grow: 1; - .logged-in-username { + .logged-in-display-name { font-size: 16px; font-weight: $font-semibold; - color: $menu-color; + color: var(--menuForegroundColor); cursor: pointer; @include disable-default-a-behaviour; } - .logged-in-email { + .logged-in-username { + @include ellipsis; + font-size: 13px; color: #C6C6C6; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; max-width: 140px; } } @@ -124,17 +118,21 @@ menu { display: flex; align-items: center; padding-left: $menu-lateral-padding; - color: $menu-color; + color: var(--menuForegroundColor); cursor: pointer; height: 40px; font-size: 16px; transition: background-color .1s ease-in-out; @include disable-default-a-behaviour; - &:hover, &.focus-visible { + &.active { background-color: rgba(255, 255, 255, 0.15); } + &:hover, &.focus-visible { + background-color: rgba(255, 255, 255, 0.10); + } + .icon { @include icon(22px); @@ -196,7 +194,7 @@ menu { padding-right: $menu-lateral-padding; width: $menu-width; - .language, .color-palette { + .language, .shortcuts, .color-palette { display: inline-block; color: $menu-bottom-color; cursor: pointer; @@ -217,6 +215,17 @@ menu { 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; @@ -235,7 +244,7 @@ menu { } } -@media screen and (max-width: 400px) { +@media screen and (max-width: $mobile-view) { .menu-wrapper { width: 100% !important; }