]>
Commit | Line | Data |
---|---|---|
f409f0c3 | 1 | @import '_mixins'; |
9677fca7 RK |
2 | @import '_variables'; |
3 | @import '_bootstrap-variables'; | |
4 | @import '~bootstrap/scss/mixins/_breakpoints'; | |
f409f0c3 | 5 | |
9b8a7aa8 RK |
6 | #search-video { |
7 | @include peertube-input-text($search-input-width); | |
f1ac6348 | 8 | |
9b8a7aa8 RK |
9 | padding-left: 10px; |
10 | padding-right: 40px; // For the search icon | |
11 | font-size: 14px; | |
12 | ||
13 | &::placeholder { | |
e66883b3 | 14 | color: pvar(--inputPlaceholderColor); |
9b8a7aa8 RK |
15 | } |
16 | } | |
17 | ||
f1ac6348 | 18 | .icon-search { |
9b8a7aa8 | 19 | @include icon(25px); |
c41c0e28 | 20 | height: 18px; |
9b8a7aa8 RK |
21 | |
22 | // yolo | |
23 | position: absolute; | |
24 | margin-left: -35px; | |
c41c0e28 RK |
25 | margin-top: 3.5px; |
26 | right: 10px; | |
9b8a7aa8 RK |
27 | } |
28 | ||
f409f0c3 RK |
29 | .jump-to-suggestions { |
30 | top: 100%; | |
31 | left: 0; | |
d6eace77 | 32 | z-index: z('search-typeahead'); |
f409f0c3 RK |
33 | width: 100%; |
34 | } | |
35 | ||
6af662a5 | 36 | #typeahead-help, |
f409f0c3 | 37 | #typeahead-instructions, |
5fb2e288 | 38 | li.suggestion { |
e66883b3 | 39 | border: 1px solid pvar(--mainBackgroundColor); |
e66883b3 | 40 | background: pvar(--mainBackgroundColor); |
f409f0c3 RK |
41 | transition: .3s ease; |
42 | transition-property: box-shadow; | |
71489890 | 43 | cursor: pointer; |
6567e5a7 RK |
44 | |
45 | // soft border-radius for the last suggestion and the link inside | |
46 | &:last-of-type { | |
47 | &, & ::ng-deep a { | |
48 | border-bottom-right-radius: 3px; | |
49 | border-bottom-left-radius: 3px; | |
50 | } | |
51 | } | |
f409f0c3 RK |
52 | } |
53 | ||
6af662a5 | 54 | #typeahead-help, |
f409f0c3 RK |
55 | #typeahead-instructions { |
56 | margin-top: 10px; | |
57 | width: 100%; | |
58 | padding: .5rem 1rem; | |
6af662a5 | 59 | white-space: normal; |
f409f0c3 RK |
60 | |
61 | ul { | |
62 | list-style: none; | |
63 | padding: 0; | |
64 | margin-bottom: .5rem; | |
65 | ||
66 | em { | |
67 | font-weight: 600; | |
68 | margin-right: 0.2rem; | |
69 | font-style: normal; | |
70 | } | |
71 | } | |
72 | } | |
73 | ||
74 | #typeahead-container { | |
9b8a7aa8 | 75 | input { |
e66883b3 | 76 | border: 1px solid pvar(--mainBackgroundColor) !important; |
f409f0c3 RK |
77 | box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 20px 0px; |
78 | flex-grow: 1; | |
79 | transition: box-shadow .3s ease, width .2s ease; | |
80 | } | |
81 | ||
9677fca7 | 82 | @media screen and (min-width: $mobile-view) { |
52cc0d54 RK |
83 | margin-left: 10px; |
84 | } | |
85 | ||
9677fca7 | 86 | @media screen and (max-width: $small-view) { |
52cc0d54 RK |
87 | flex: 1; |
88 | ||
9b8a7aa8 | 89 | input { |
97c116ed | 90 | width: 70px; |
52cc0d54 RK |
91 | } |
92 | } | |
93 | ||
9b8a7aa8 | 94 | span { |
f409f0c3 RK |
95 | right: 10px; |
96 | } | |
97 | ||
98 | & > div:last-child { | |
5fb2e288 | 99 | // we have to switch the display and not the opacity, |
f409f0c3 RK |
100 | // to avoid clashing with the rest of the interface. |
101 | display: none; | |
102 | } | |
103 | ||
104 | &:focus, | |
105 | ::ng-deep &:focus-within { | |
106 | & > div:last-child { | |
9677fca7 | 107 | @media screen and (min-width: $mobile-view) { |
52cc0d54 RK |
108 | display: initial !important; |
109 | } | |
5fb2e288 | 110 | |
6af662a5 | 111 | #typeahead-help, |
f409f0c3 | 112 | #typeahead-instructions, |
5fb2e288 | 113 | li.suggestion { |
f409f0c3 RK |
114 | box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 20px -5px; |
115 | } | |
116 | } | |
117 | ||
118 | ::ng-deep input { | |
119 | box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 20px 0px; | |
120 | border-end-start-radius: 0; | |
121 | border-end-end-radius: 0; | |
122 | ||
9677fca7 | 123 | @include media-breakpoint-up(lg) { |
f409f0c3 RK |
124 | width: 500px; |
125 | } | |
126 | } | |
127 | } | |
128 | } | |
129 | ||
f409f0c3 RK |
130 | .glyphicon { |
131 | top: 3px; | |
132 | } | |
133 | ||
134 | .advanced-search-status { | |
6af662a5 RK |
135 | height: max-content; |
136 | cursor: default; | |
137 | ||
138 | &.c-help { | |
139 | cursor: help; | |
140 | } | |
f409f0c3 RK |
141 | } |
142 | ||
143 | .small-title { | |
144 | @include in-content-small-title; | |
145 | ||
146 | margin-bottom: .5rem; | |
147 | } | |
148 | ||
6af662a5 RK |
149 | ::ng-deep my-suggestion { |
150 | width: 100%; | |
f409f0c3 | 151 | } |