X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fapp.component.scss;h=229a99a2df729cfc7d596f1a969fa4a504e15d44;hb=997a30150241b90dd833433dbc1e49b988c2b575;hp=2aadb1c97466aad003ceaebbc0f44084458d2766;hpb=63c4db6d71b98523753c51747e308682d9a2e8a0;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/app.component.scss b/client/src/app/app.component.scss index 2aadb1c97..229a99a2d 100644 --- a/client/src/app/app.component.scss +++ b/client/src/app/app.component.scss @@ -1,5 +1,9 @@ -@import '_variables'; -@import '_mixins'; +@use '_variables' as *; +@use '_mixins' as *; + +.peertube-container { + padding-bottom: 20px; +} .main-row { min-height: calc(100vh - #{$header-height} - #{$footer-height} - #{$footer-margin}); @@ -7,90 +11,96 @@ .sub-header-container { margin-top: $header-height; + background-color: pvar(--mainBackgroundColor); + width: 100%; } -.title-menu-left { - position: fixed; - height: calc(100vh - #{$header-height}); - padding: 0; - width: $menu-width; - - .title-menu-left-block.menu { - height: 100%; - } -} - -.header { +.root-header { height: $header-height; position: fixed; top: 0; width: 100%; - background-color: #fff; - z-index: 1000; + background-color: pvar(--mainBackgroundColor); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16); display: flex; +} - .top-left-block { - width: $menu-width; - z-index: 1001; - height: $header-height; - display: flex; - align-items: center; +.top-left-block { + z-index: 1; + height: $header-height; + display: flex; + align-items: center; + min-width: 0; - .icon { - @include icon(22px); + .icon { + @include icon(24px); + } - &.icon-menu { - background-image: url('../assets/images/header/menu.svg'); - margin: 0 18px 0 24px; - } - } + .icon-menu { + mask-image: url('../assets/images/misc/menu.svg'); + -webkit-mask-image: url('../assets/images/misc/menu.svg'); + + background-color: pvar(--mainForegroundColor); + margin: 0 18px 0 20px; - #peertube-title { - font-size: 20px; - font-weight: $font-bold; - color: inherit !important; - display: flex; - align-items: center; - - @include disable-default-a-behaviour; - - .icon.icon-logo { - display: inline-block; - background: url('../assets/images/logo.svg') no-repeat; - width: 23px; - height: 24px; - } + @media screen and (max-width: $mobile-view) { + margin: 0 10px; } + } +} + +.root-header-right { + height: $header-height; + display: flex; + align-items: center; + justify-content: flex-end; + white-space: nowrap; + flex: 1; +} + +.peertube-title { + @include disable-default-a-behaviour; - @media screen and (max-width: 500px) { - width: 70px; + font-size: 20px; + font-weight: $font-bold; + color: inherit !important; + display: flex; + align-items: center; + overflow: hidden; + padding: 0 0 0 10px; + + .instance-name { + @include ellipsis; - #peertube-title { - display: none; - } + width: 100%; + + @media screen and (max-width: $mobile-view) { + display: none; } } - .header-right { - height: $header-height; - display: flex; - align-items: center; - flex-grow: 1; - justify-content: flex-end; + .icon.icon-logo { + @include margin-right(0.5rem); + + display: inline-block; + width: 23px; + height: 24px; } } -footer { - border-top: 1px solid $footer-border-color; - padding: 10px 0; +.broadcast-message { + min-height: 50px; text-align: center; - font-size: 11px; - margin-top: $footer-margin; - height: $footer-height; -} - -simple-notifications { - position: relative; - z-index: 1500; + margin-bottom: 0; + border-radius: 0; + display: grid; + grid-template-columns: 1fr 30px; + column-gap: 10px; + + my-global-icon { + justify-self: center; + align-self: center; + cursor: pointer; + width: 20px; + } }