X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fapp.component.scss;h=d502d63b5c385ddd11020fddc3abc8fe1bb31071;hb=f6dc2fff48cbc3b95eb71d3af5eb60d3b689c2ad;hp=627187bd05e2d3802ecc8aae35c6a289793e1362;hpb=efbf0ed7f2a5d01fbcacc26dae1ff254c46b0ce5;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/app.component.scss b/client/src/app/app.component.scss index 627187bd0..d502d63b5 100644 --- a/client/src/app/app.component.scss +++ b/client/src/app/app.component.scss @@ -1,49 +1,84 @@ +@import '_variables'; +@import '_mixins'; + +.main-row { + min-height: calc(100vh - #{$header-height} - #{$footer-height} - #{$footer-margin}); +} + +.sub-header-container { + margin-top: $header-height; +} + .title-menu-left { + position: fixed; height: calc(100vh - #{$header-height}); - padding-right: 0; - - .title-menu-left-block { - margin-left: -15px; + padding: 0; + width: $menu-width; - &.menu { - height: 100%; - } + .title-menu-left-block.menu { + height: 100%; } +} - #peertube-title { - background-color: #fff; - border-right: 1px solid $header-border-color; - font-size: 25px; - line-height: $header-height; - text-align: center; - margin-top: 0; - margin-bottom: 0; +.header { + height: $header-height; + position: fixed; + top: 0; + width: 100%; + background-color: #fff; + z-index: 1000; + 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; - flex-direction: column; - justify-content: center; - text-align: center; + align-items: center; + + .icon { + @include icon(22px); + + &.icon-menu { + background-image: url('../assets/images/header/menu.svg'); + margin: 0 18px 0 20px; + } + } - a { + #peertube-title { + font-size: 20px; + font-weight: $font-bold; color: inherit !important; - display: block; - background: url(/client/assets/logo.png) no-repeat; - background-size: contain; - width: 180px; - height: 22px; - margin: auto; - - &:hover { - color: inherit !important; - text-decoration: none !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: 500px) { + width: 70px; + + #peertube-title { + display: none; } } } -} -my-search { - // Fix col-md-* padding - padding: 0; + .header-right { + height: $header-height; + display: flex; + align-items: center; + flex-grow: 1; + justify-content: flex-end; + } } footer { @@ -54,3 +89,8 @@ footer { margin-top: $footer-margin; height: $footer-height; } + +simple-notifications { + position: relative; + z-index: 1500; +}