X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fheader%2Fsearch-typeahead.component.scss;h=0a30ebd552311561d18f38901615e46ba733e625;hb=e66883b37ae0796256b3aba550670a2d76cfc98a;hp=c2f5a1828c87a423ff33027637091ec8330bd9c9;hpb=52cc0d54850e0acf069d2f95d063826f16ff5238;p=oweals%2Fpeertube.git diff --git a/client/src/app/header/search-typeahead.component.scss b/client/src/app/header/search-typeahead.component.scss index c2f5a1828..0a30ebd55 100644 --- a/client/src/app/header/search-typeahead.component.scss +++ b/client/src/app/header/search-typeahead.component.scss @@ -1,19 +1,46 @@ @import '_mixins'; +@import '_variables'; +@import '_bootstrap-variables'; +@import '~bootstrap/scss/mixins/_breakpoints'; + +#search-video { + @include peertube-input-text($search-input-width); + padding-left: 10px; + padding-right: 40px; // For the search icon + font-size: 14px; + + &::placeholder { + color: pvar(--inputPlaceholderColor); + } +} + +.icon.icon-search { + @include icon(25px); + height: 21px; + + background-color: pvar(--mainForegroundColor); + mask: url('../../assets/images/header/search.svg') no-repeat 50% 50%; + + // yolo + position: absolute; + margin-left: -35px; + margin-top: 5px; +} .jump-to-suggestions { top: 100%; left: 0; - z-index: 35; + z-index: z(typeahead); width: 100%; } #typeahead-help, #typeahead-instructions, my-suggestions ::ng-deep ul { - border: 1px solid var(--mainBackgroundColor); + border: 1px solid pvar(--mainBackgroundColor); border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; - background: var(--mainBackgroundColor); + background: pvar(--mainBackgroundColor); transition: .3s ease; transition-property: box-shadow; } @@ -39,26 +66,26 @@ my-suggestions ::ng-deep ul { } #typeahead-container { - ::ng-deep input { - border: 1px solid var(--mainBackgroundColor) !important; + input { + border: 1px solid pvar(--mainBackgroundColor) !important; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 20px 0px; flex-grow: 1; transition: box-shadow .3s ease, width .2s ease; } - @media screen and (min-width: 500px) { + @media screen and (min-width: $mobile-view) { margin-left: 10px; } - @media screen and (max-width: 800px) { + @media screen and (max-width: $small-view) { flex: 1; - ::ng-deep input { + input { width: unset; } } - ::ng-deep span { + span { right: 10px; } @@ -71,7 +98,7 @@ my-suggestions ::ng-deep ul { &:focus, ::ng-deep &:focus-within { & > div:last-child { - @media screen and (min-width: 500px) { + @media screen and (min-width: $mobile-view) { display: initial !important; } @@ -87,7 +114,7 @@ my-suggestions ::ng-deep ul { border-end-start-radius: 0; border-end-end-radius: 0; - @media screen and (min-width: 900px) { + @include media-breakpoint-up(lg) { width: 500px; } }