X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fheader%2Fheader.component.scss;h=8a4111c5a30048ae3adee1552bbbbb0f4bc0c039;hb=997a30150241b90dd833433dbc1e49b988c2b575;hp=736035b72ba776b6a60bef4b6c31aa0f7cec6c54;hpb=1ae3f52a1601c6e54bd5d8239e9f32dac4063fe3;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/header/header.component.scss b/client/src/app/header/header.component.scss index 736035b72..8a4111c5a 100644 --- a/client/src/app/header/header.component.scss +++ b/client/src/app/header/header.component.scss @@ -1,73 +1,30 @@ -@import '_variables'; -@import '_mixins'; +@use '_variables' as *; +@use '_mixins' as *; -#search-video { - @include peertube-input-text($search-input-width); - padding-left: 10px; - margin-right: 15px; - padding-right: 40px; // For the search icon - font-size: 14px; +my-search-typeahead { + @include margin-right(80px); - transition: box-shadow .3s ease; - - /* light border style */ - border: 1px solid var(--mainBackgroundColor); - box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 20px 0px; - - &:focus { - box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 20px 0px; - } - - &::placeholder { - color: var(--inputPlaceholderColor); - } - - &:focus::placeholder { - opacity: 0 !important; - } - - @media screen and (max-width: 800px) { - width: calc(100% - 150px); + @media screen and (max-width: $small-view) { + @include margin-right(15px); } - - @media screen and (max-width: 600px) { - width: calc(100% - 70px); - } -} - -.icon.icon-search { - @include icon(25px); - height: 21px; - - background-color: var(--mainForegroundColor); - mask: url('../../assets/images/header/search.svg') no-repeat 50% 50%; - - // yolo - position: absolute; - margin-left: -50px; - margin-top: 5px; } -.upload-button { +.publish-button { @include peertube-button-link; @include orange-button; @include button-with-icon(22px, 3px, -1px); + @include margin-right(25px); - margin-right: 25px; - - @media screen and (max-width: 800px) { - margin-right: 0; - } + @media screen and (max-width: $mobile-view) { + @include margin-right(10px); - @media screen and (max-width: 600px) { - margin-right: 10px; padding: 0 10px; .icon.icon-upload { - margin-right: 0; + @include margin-right(0); } - .upload-button-label { + .publish-button-label { display: none; } }