X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fheader%2Fsearch-typeahead.component.scss;h=c2f5a1828c87a423ff33027637091ec8330bd9c9;hb=52cc0d54850e0acf069d2f95d063826f16ff5238;hp=93f021e332dd09c1184e0c02f2c745d868230d8b;hpb=f409f0c3b91d85c66b4841d72ea65b5fbe1483d8;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 93f021e33..c2f5a1828 100644 --- a/client/src/app/header/search-typeahead.component.scss +++ b/client/src/app/header/search-typeahead.component.scss @@ -7,8 +7,9 @@ width: 100%; } +#typeahead-help, #typeahead-instructions, -#jump-to-results { +my-suggestions ::ng-deep ul { border: 1px solid var(--mainBackgroundColor); border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; @@ -17,10 +18,12 @@ transition-property: box-shadow; } +#typeahead-help, #typeahead-instructions { margin-top: 10px; width: 100%; padding: .5rem 1rem; + white-space: normal; ul { list-style: none; @@ -43,6 +46,18 @@ transition: box-shadow .3s ease, width .2s ease; } + @media screen and (min-width: 500px) { + margin-left: 10px; + } + + @media screen and (max-width: 800px) { + flex: 1; + + ::ng-deep input { + width: unset; + } + } + ::ng-deep span { right: 10px; } @@ -56,10 +71,13 @@ &:focus, ::ng-deep &:focus-within { & > div:last-child { - display: initial !important; + @media screen and (min-width: 500px) { + display: initial !important; + } + #typeahead-help, #typeahead-instructions, - #jump-to-results { + my-suggestions ::ng-deep ul { box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 20px -5px; } } @@ -76,33 +94,17 @@ } } -a.focus-visible { - background-color: var(--mainHoverColor); -} - -a { - @include disable-default-a-behaviour; - width: 100%; - - &, &:hover { - color: var(--mainForegroundColor); - } -} - -.bg-gray { - background-color: var(--mainBackgroundColor); -} - -.text-gray-light { - color: var(--mainForegroundColor); -} - .glyphicon { top: 3px; } .advanced-search-status { - cursor: help; + height: max-content; + cursor: default; + + &.c-help { + cursor: help; + } } .small-title { @@ -111,11 +113,6 @@ a { margin-bottom: .5rem; } -my-global-icon { - width: 17px; - position: relative; - top: -2px; - margin: 5px; - - @include apply-svg-color(var(--mainForegroundColor)) +::ng-deep my-suggestion { + width: 100%; }