X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fapp.component.scss;h=229a99a2df729cfc7d596f1a969fa4a504e15d44;hb=2c8380a46f34631e705b1564938343cacfa4b0bc;hp=38ec11b5bd980fc0f03758be1f456318c667b7ca;hpb=caf2aaf4f9d38ad441a5562c3b8720f8779d6f78;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/app.component.scss b/client/src/app/app.component.scss index 38ec11b5b..229a99a2d 100644 --- a/client/src/app/app.component.scss +++ b/client/src/app/app.component.scss @@ -1,7 +1,5 @@ -@import '_variables'; -@import '_mixins'; -@import '~bootstrap/scss/functions'; -@import '~bootstrap/scss/variables'; +@use '_variables' as *; +@use '_mixins' as *; .peertube-container { padding-bottom: 20px; @@ -17,78 +15,76 @@ width: 100%; } -.header { +.root-header { height: $header-height; position: fixed; top: 0; width: 100%; background-color: pvar(--mainBackgroundColor); - z-index: z(header); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16); display: flex; +} - .top-left-block { - z-index: 1; - height: $header-height; - display: flex; - align-items: center; - min-width: 0; - - .icon { - @include icon(24px); - - &.icon-menu { - background-color: pvar(--mainForegroundColor); - mask-image: url('../assets/images/misc/menu.svg'); - margin: 0 18px 0 20px; - } - } +.top-left-block { + z-index: 1; + height: $header-height; + display: flex; + align-items: center; + min-width: 0; - .peertube-title { - @include disable-default-a-behaviour; - - font-size: 20px; - font-weight: $font-bold; - color: inherit !important; - display: flex; - align-items: center; - overflow: hidden; - - .instance-name { - @include ellipsis; - - width: 100%; - } - - .icon.icon-logo { - display: inline-block; - background-repeat: no-repeat; - width: 23px; - height: 24px; - margin-right: .5rem; - } - } + .icon { + @include icon(24px); + } - @media screen and (max-width: $mobile-view) { - width: 70px; + .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 { - display: none; - } + @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: 350px) { - flex: auto; + 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; + + width: 100%; + + @media screen and (max-width: $mobile-view) { + display: none; } } - .header-right { - height: $header-height; - display: flex; - align-items: center; - justify-content: flex-end; - white-space: nowrap; - flex: 1; + .icon.icon-logo { + @include margin-right(0.5rem); + + display: inline-block; + width: 23px; + height: 24px; } } @@ -105,25 +101,6 @@ justify-self: center; align-self: center; cursor: pointer; - width: 20px; } - - @each $color, $value in $theme-colors { - &.alert-#{$color} { - my-global-icon { - @include apply-svg-color(theme-color-level($color, $alert-color-level)); - } - } - } - - ::ng-deep { - p { - font-size: 16px; - } - - p:last-child { - margin-bottom: 0; - } - } }