X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fmenu%2Fmenu.component.scss;h=24b1a4db3a78f2829d1f1907b2b3ffb2d6236576;hb=fdebd9a3bdcc3ea3881f2234a0f214c2588de3e4;hp=941c208e20f2e31fabb0f1f6156e2a14a4695974;hpb=a54991da4224534bf4beaf994d99e4ce5a0a54f7;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/menu/menu.component.scss b/client/src/app/menu/menu.component.scss index 941c208e2..24b1a4db3 100644 --- a/client/src/app/menu/menu.component.scss +++ b/client/src/app/menu/menu.component.scss @@ -6,20 +6,21 @@ height: calc(100vh - #{$header-height}); padding: 0; width: $menu-width; + z-index: 10000; } menu { - background-color: $black-background; + background-color: var(--menuBackgroundColor); margin: 0; padding: 0; height: 100%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; - z-index: 1000; - color: $menu-color; + color: var(--menuForegroundColor); display: flex; flex-direction: column; + width: 100%; &:focus, &:hover { overflow-y: auto; @@ -38,20 +39,13 @@ menu { 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; @@ -122,18 +116,22 @@ menu { 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); @@ -190,10 +188,12 @@ menu { } .footer { - margin-bottom: 15px; - padding-left: $menu-left-padding; + padding-bottom: 15px; + padding-left: $menu-lateral-padding; + padding-right: $menu-lateral-padding; + width: $menu-width; - .language { + .language, .shortcuts, .color-palette { display: inline-block; color: $menu-bottom-color; cursor: pointer; @@ -201,6 +201,7 @@ menu { font-weight: $font-semibold; .icon { + @include disable-outline; @include icon(28px); opacity: 0.9; @@ -213,6 +214,27 @@ 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; + top: -1px; + width: 24px; + height: 24px; + + background-image: url('../../assets/images/menu/moonsun.svg'); + } + &:hover { opacity: 1; } @@ -220,3 +242,13 @@ menu { } } } + +@media screen and (max-width: $mobile-view) { + .menu-wrapper { + width: 100% !important; + } + + .top-menu, .footer { + width: 100% !important; + } +}