X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fheader%2Fsearch-typeahead.component.scss;h=5114ec3a745090ef92bae722b5c0c4e70da5082d;hb=527a52ac4295a072927ff46761766a8b181a7603;hp=a60aa38d6924edcb4fab5fbfc3b4e6c93c3d5296;hpb=dc48fdbe68e9dd3a3a6028181e61d8595d98e654;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/header/search-typeahead.component.scss b/client/src/app/header/search-typeahead.component.scss index a60aa38d6..5114ec3a7 100644 --- a/client/src/app/header/search-typeahead.component.scss +++ b/client/src/app/header/search-typeahead.component.scss @@ -1,12 +1,12 @@ -@import '_mixins'; -@import '_variables'; -@import '_bootstrap-variables'; -@import '~bootstrap/scss/mixins/_breakpoints'; +@use '_mixins' as *; +@use '_variables' as *; #search-video { @include peertube-input-text($search-input-width); - padding-left: 10px; - padding-right: 40px; // For the search icon + + @include padding-left(10px); + @include padding-right(40px); // For the search icon + font-size: 14px; &::placeholder { @@ -14,13 +14,14 @@ } } -.icon.icon-search { +.icon-search { @include icon(25px); + @include margin-left(-35px); + height: 18px; // yolo position: absolute; - margin-left: -35px; margin-top: 3.5px; right: 10px; } @@ -43,7 +44,8 @@ li.suggestion { // soft border-radius for the last suggestion and the link inside &:last-of-type { - &, & ::ng-deep a { + &, + ::ng-deep a { border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; } @@ -63,8 +65,9 @@ li.suggestion { margin-bottom: .5rem; em { + @include margin-right(0.2rem); + font-weight: 600; - margin-right: 0.2rem; font-style: normal; } } @@ -73,13 +76,13 @@ li.suggestion { #typeahead-container { input { border: 1px solid pvar(--mainBackgroundColor) !important; - box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 20px 0px; + box-shadow: rgba(0, 0, 0, 0.1) 0 1px 20px 0; flex-grow: 1; transition: box-shadow .3s ease, width .2s ease; } @media screen and (min-width: $mobile-view) { - margin-left: 10px; + @include margin-left(10px); } @media screen and (max-width: $small-view) { @@ -94,7 +97,7 @@ li.suggestion { right: 10px; } - & > div:last-child { + > div:last-child { // we have to switch the display and not the opacity, // to avoid clashing with the rest of the interface. display: none; @@ -102,7 +105,7 @@ li.suggestion { &:focus, ::ng-deep &:focus-within { - & > div:last-child { + > div:last-child { @media screen and (min-width: $mobile-view) { display: initial !important; } @@ -110,16 +113,16 @@ li.suggestion { #typeahead-help, #typeahead-instructions, li.suggestion { - box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 20px -5px; + box-shadow: rgba(0, 0, 0, 0.2) 0 10px 20px -5px; } } ::ng-deep input { - box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 20px 0px; + box-shadow: rgba(0, 0, 0, 0.2) 0 1px 20px 0; border-end-start-radius: 0; border-end-end-radius: 0; - @include media-breakpoint-up(lg) { + @media screen and (min-width: 1000px) { width: 500px; } }