X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fheader%2Fheader.component.scss;h=cea415d9b229001eaeeb91da515d2179caa21a2a;hb=b718fd22374d64534bcfe69932cf562894abed6a;hp=fba70dd2f1f70be07abe5654bd2037a8cbc894e3;hpb=fada8d75550dc7365f7e18ee1569b9406251d660;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/header/header.component.scss b/client/src/app/header/header.component.scss index fba70dd2f..cea415d9b 100644 --- a/client/src/app/header/header.component.scss +++ b/client/src/app/header/header.component.scss @@ -1,17 +1,26 @@ +@import '_variables'; +@import '_mixins'; + #search-video { @include peertube-input-text($search-input-width); + padding-left: 10px; margin-right: 15px; - padding-right: 25px; // For the search icon + padding-right: 40px; // For the search icon + font-size: 14px; &::placeholder { - color: #000; + color: var(--inputPlaceholderColor); } - @media screen and (max-width: 600px) { + &:focus::placeholder { + opacity: 0 !important; + } + + @media screen and (max-width: 800px) { width: calc(100% - 150px); } - @media screen and (max-width: 400px) { + @media screen and (max-width: 600px) { width: calc(100% - 70px); } } @@ -20,7 +29,8 @@ @include icon(25px); height: 21px; - background-image: url('../../assets/images/header/search.svg'); + background-color: var(--mainForegroundColor); + mask: url('../../assets/images/header/search.svg') no-repeat 50% 50%; // yolo position: absolute; @@ -31,19 +41,15 @@ .upload-button { @include peertube-button-link; @include orange-button; + @include button-with-icon(22px, 3px, -1px); margin-right: 25px; - .icon.icon-upload { - @include icon(22px); - - background-image: url('../../assets/images/header/upload.svg'); - height: 24px; - vertical-align: middle; - margin-right: 6px; + @media screen and (max-width: 800px) { + margin-right: 0; } - @media screen and (max-width: 400px) { + @media screen and (max-width: 600px) { margin-right: 10px; padding: 0 10px;