diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-02-03 15:19:43 +0100 |
---|---|---|
committer | Rigel Kent <sendmemail@rigelk.eu> | 2020-02-13 16:32:58 +0100 |
commit | 9677fca772349248925da6c5f34f600e9a2abbe6 (patch) | |
tree | 635c9aba8c4966eb9fd77355a47bcb83dff9df71 /client/src/app/header/search-typeahead.component.scss | |
parent | 52cc0d54850e0acf069d2f95d063826f16ff5238 (diff) | |
download | PeerTube-9677fca772349248925da6c5f34f600e9a2abbe6.tar.gz PeerTube-9677fca772349248925da6c5f34f600e9a2abbe6.tar.zst PeerTube-9677fca772349248925da6c5f34f600e9a2abbe6.zip |
Make the search helper change based on the server config
Diffstat (limited to 'client/src/app/header/search-typeahead.component.scss')
-rw-r--r-- | client/src/app/header/search-typeahead.component.scss | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/client/src/app/header/search-typeahead.component.scss b/client/src/app/header/search-typeahead.component.scss index c2f5a1828..6d7511c70 100644 --- a/client/src/app/header/search-typeahead.component.scss +++ b/client/src/app/header/search-typeahead.component.scss | |||
@@ -1,4 +1,7 @@ | |||
1 | @import '_mixins'; | 1 | @import '_mixins'; |
2 | @import '_variables'; | ||
3 | @import '_bootstrap-variables'; | ||
4 | @import '~bootstrap/scss/mixins/_breakpoints'; | ||
2 | 5 | ||
3 | .jump-to-suggestions { | 6 | .jump-to-suggestions { |
4 | top: 100%; | 7 | top: 100%; |
@@ -46,11 +49,11 @@ my-suggestions ::ng-deep ul { | |||
46 | transition: box-shadow .3s ease, width .2s ease; | 49 | transition: box-shadow .3s ease, width .2s ease; |
47 | } | 50 | } |
48 | 51 | ||
49 | @media screen and (min-width: 500px) { | 52 | @media screen and (min-width: $mobile-view) { |
50 | margin-left: 10px; | 53 | margin-left: 10px; |
51 | } | 54 | } |
52 | 55 | ||
53 | @media screen and (max-width: 800px) { | 56 | @media screen and (max-width: $small-view) { |
54 | flex: 1; | 57 | flex: 1; |
55 | 58 | ||
56 | ::ng-deep input { | 59 | ::ng-deep input { |
@@ -71,7 +74,7 @@ my-suggestions ::ng-deep ul { | |||
71 | &:focus, | 74 | &:focus, |
72 | ::ng-deep &:focus-within { | 75 | ::ng-deep &:focus-within { |
73 | & > div:last-child { | 76 | & > div:last-child { |
74 | @media screen and (min-width: 500px) { | 77 | @media screen and (min-width: $mobile-view) { |
75 | display: initial !important; | 78 | display: initial !important; |
76 | } | 79 | } |
77 | 80 | ||
@@ -87,7 +90,7 @@ my-suggestions ::ng-deep ul { | |||
87 | border-end-start-radius: 0; | 90 | border-end-start-radius: 0; |
88 | border-end-end-radius: 0; | 91 | border-end-end-radius: 0; |
89 | 92 | ||
90 | @media screen and (min-width: 900px) { | 93 | @include media-breakpoint-up(lg) { |
91 | width: 500px; | 94 | width: 500px; |
92 | } | 95 | } |
93 | } | 96 | } |