X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fheader%2Fsearch-typeahead.component.scss;h=f8d68e9867565b74699bee768588df6d46de5641;hb=e62f03ae0412f4efa62917d8741bc1a39e8ed7fc;hp=33b88825f3b72359276886a199cbc9f2946301c7;hpb=610d0be13b3d01f653ef269271dd667a57c85ef2;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 33b88825f..f8d68e986 100644 --- a/client/src/app/header/search-typeahead.component.scss +++ b/client/src/app/header/search-typeahead.component.scss @@ -10,39 +10,44 @@ font-size: 14px; &::placeholder { - color: var(--inputPlaceholderColor); + color: pvar(--inputPlaceholderColor); } } .icon.icon-search { @include icon(25px); - height: 21px; - - background-color: var(--mainForegroundColor); - mask: url('../../assets/images/header/search.svg') no-repeat 50% 50%; + height: 18px; // yolo position: absolute; margin-left: -35px; - margin-top: 5px; + margin-top: 3.5px; + right: 10px; } .jump-to-suggestions { top: 100%; left: 0; - z-index: z(typeahead); + z-index: z('search-typeahead'); width: 100%; } #typeahead-help, #typeahead-instructions, -my-suggestions ::ng-deep ul { - border: 1px solid var(--mainBackgroundColor); - border-bottom-right-radius: 3px; - border-bottom-left-radius: 3px; - background: var(--mainBackgroundColor); +li.suggestion { + border: 1px solid pvar(--mainBackgroundColor); + background: pvar(--mainBackgroundColor); transition: .3s ease; transition-property: box-shadow; + cursor: pointer; + + // soft border-radius for the last suggestion and the link inside + &:last-of-type { + &, & ::ng-deep a { + border-bottom-right-radius: 3px; + border-bottom-left-radius: 3px; + } + } } #typeahead-help, @@ -67,7 +72,7 @@ my-suggestions ::ng-deep ul { #typeahead-container { input { - border: 1px solid var(--mainBackgroundColor) !important; + 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; @@ -90,7 +95,7 @@ my-suggestions ::ng-deep ul { } & > div:last-child { - // we have to switch the display and not the opacity, + // we have to switch the display and not the opacity, // to avoid clashing with the rest of the interface. display: none; } @@ -101,10 +106,10 @@ my-suggestions ::ng-deep ul { @media screen and (min-width: $mobile-view) { display: initial !important; } - + #typeahead-help, #typeahead-instructions, - my-suggestions ::ng-deep ul { + li.suggestion { box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 20px -5px; } }