]>
Commit | Line | Data |
---|---|---|
2f4c784a C |
1 | $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; |
2 | @import '_bootstrap'; | |
3 | ||
4 | @import '_variables'; | |
5 | @import '_mixins'; | |
6 | ||
7 | // Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d | |
8 | .glyphicon-refresh-animate { | |
9 | animation: spin .7s infinite linear; | |
10 | } | |
11 | ||
f409f0c3 RK |
12 | .flex-auto { |
13 | flex: auto; | |
14 | } | |
15 | ||
d3217560 RK |
16 | .c-hand { |
17 | cursor: pointer; | |
18 | } | |
19 | ||
2f4c784a | 20 | @keyframes spin { |
a3705089 C |
21 | from { |
22 | transform: scale(1) rotate(0deg); | |
23 | } | |
24 | to { | |
25 | transform: scale(1) rotate(360deg); | |
26 | } | |
2f4c784a C |
27 | } |
28 | ||
757ffdfe | 29 | /* rules for dropdowns excepts when in button group, to avoid impacting the dropdown-toggle */ |
2856af48 | 30 | .dropdown { |
f8cce49c | 31 | z-index: z(dropdown) !important; |
2856af48 | 32 | } |
26ede95e | 33 | |
2856af48 C |
34 | .list-overflow-menu, |
35 | .parent-entry { | |
36 | z-index: z(header) - 1 !important; | |
eb7c7a51 RK |
37 | } |
38 | ||
2856af48 C |
39 | .btn-group, |
40 | .dropdown-root, | |
41 | .action-dropdown, | |
42 | .input-group-prepend, | |
43 | .column-toggle { | |
44 | z-index: inherit !important; | |
45 | } | |
46 | ||
2f4c784a | 47 | .dropdown-menu { |
e0433a5f C |
48 | z-index: z(dropdown) + 1 !important; |
49 | ||
2f4c784a | 50 | border-radius: 3px; |
6f6e89db | 51 | box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2); |
2f4c784a C |
52 | font-size: 15px; |
53 | ||
0d3a2982 RK |
54 | .dropdown-header { |
55 | padding-left: 1rem; | |
56 | } | |
57 | ||
2f4c784a C |
58 | .dropdown-item { |
59 | padding: 3px 15px; | |
60 | ||
24e7916c | 61 | &.active { |
e66883b3 RK |
62 | color: pvar(--mainBackgroundColor) !important; |
63 | background-color: pvar(--mainHoverColor); | |
24e7916c | 64 | opacity: .9; |
2f4c784a | 65 | } |
45c6bcf3 | 66 | |
0aa52e17 C |
67 | &:active { |
68 | color: pvar(--mainForegroundColor) !important; | |
69 | } | |
70 | ||
d3217560 RK |
71 | &::after { |
72 | display: none; | |
73 | } | |
2f4c784a C |
74 | } |
75 | ||
76 | button { | |
77 | @include disable-default-a-behaviour; | |
78 | } | |
79 | ||
80 | a { | |
81 | @include disable-default-a-behaviour; | |
82 | color: #000 !important; | |
83 | } | |
84 | } | |
85 | ||
3921166d | 86 | |
165ee292 | 87 | @media screen and (min-width: #{breakpoint(md)}) { |
3921166d | 88 | .modal:before { |
3921166d RK |
89 | vertical-align: middle; |
90 | content: " "; | |
91 | height: 100%; | |
92 | } | |
93 | ||
94 | .modal-dialog { | |
3921166d | 95 | text-align: left; |
2bc9bd08 RK |
96 | |
97 | &:not(.modal-lg):not(.modal-xl) { | |
98 | min-width: 500px; | |
99 | width: 40vw; | |
100 | max-width: 900px; | |
101 | } | |
3921166d RK |
102 | } |
103 | } | |
104 | ||
2f4c784a | 105 | .modal { |
3921166d RK |
106 | text-align: center; |
107 | ||
2f4c784a | 108 | .modal-content { |
e66883b3 | 109 | background-color: pvar(--mainBackgroundColor); |
2f4c784a C |
110 | } |
111 | ||
112 | .modal-header { | |
113 | border-bottom: none; | |
114 | margin-bottom: 5px; | |
115 | ||
116 | .modal-title { | |
117 | font-size: 20px; | |
118 | font-weight: $font-semibold; | |
119 | } | |
120 | ||
121 | my-global-icon { | |
54e78847 | 122 | @include icon(22px); |
2f4c784a C |
123 | |
124 | position: relative; | |
54e78847 | 125 | top: 5px; |
2f4c784a C |
126 | float: right; |
127 | ||
128 | margin: 0; | |
129 | padding: 0; | |
54e78847 | 130 | opacity: .5; |
8319d6ae RK |
131 | |
132 | &[iconName="cross"] { | |
133 | @include icon(16px); | |
134 | top: -3px; | |
135 | } | |
2f4c784a C |
136 | } |
137 | } | |
138 | ||
139 | .inputs { | |
140 | margin-bottom: 0; | |
141 | text-align: right; | |
142 | ||
143 | .action-button-cancel { | |
144 | @include peertube-button; | |
54e78847 | 145 | @include tertiary-button; |
2f4c784a C |
146 | |
147 | display: inline-block; | |
148 | margin-right: 10px; | |
149 | } | |
150 | ||
151 | .action-button-submit { | |
152 | @include peertube-button; | |
153 | @include orange-button; | |
154 | } | |
155 | } | |
156 | } | |
157 | ||
8110705d | 158 | |
159 | // On desktop browsers, make the content and header horizontally sticked to right not move when modal open and close | |
160 | .modal-open { | |
161 | overflow-y: scroll !important; // Make sure vertical scroll bar is always visible on desktop browsers to get disabled scrollbar effect | |
17384fd8 | 162 | width: 100vw; // Make sure the content fits all the available width |
8110705d | 163 | } |
164 | ||
245b9d27 K |
165 | // On touchscreen devices, simply overflow: hidden to avoid detached overlay on scroll |
166 | @media (hover: none) and (pointer: coarse) { | |
167 | .modal-open, .menu-open { | |
168 | overflow: hidden !important; | |
169 | } | |
170 | ||
171 | // On touchscreen devices display content overlay when opened menu | |
172 | .menu-open { | |
173 | .main-col { | |
174 | &::before { | |
175 | background-color: black; | |
176 | width: 100vw; | |
177 | height: 100vh; | |
178 | opacity: 0.75; | |
179 | content: ''; | |
180 | display: block; | |
181 | position: fixed; | |
d6eace77 | 182 | z-index: z('menu') - 1; |
245b9d27 K |
183 | } |
184 | } | |
185 | } | |
186 | } | |
187 | ||
2f4c784a C |
188 | // Nav customizations |
189 | .nav .nav-link { | |
190 | display: flex !important; | |
191 | align-items: center; | |
192 | height: 30px !important; | |
193 | padding: 10px 15px !important; | |
194 | } | |
195 | ||
196 | .nav.nav-pills { | |
197 | font-size: 16px !important; | |
ed5bb517 | 198 | font-weight: $font-semibold !important; |
2f4c784a | 199 | |
ed5bb517 K |
200 | .nav-link { |
201 | opacity: 0.6 !important; | |
202 | ||
203 | &.active, &:hover, &:active, &:focus { | |
204 | opacity: 1 !important; | |
205 | } | |
2f4c784a C |
206 | } |
207 | ||
208 | a { | |
209 | @include disable-default-a-behaviour; | |
210 | ||
e66883b3 | 211 | color: pvar(--mainForegroundColor); |
2f4c784a C |
212 | } |
213 | } | |
214 | ||
ed5bb517 K |
215 | .nav-tabs .nav-link { |
216 | @include disable-default-a-behaviour; | |
2f4c784a | 217 | |
ed5bb517 K |
218 | color: pvar(--mainForegroundColor); |
219 | font-weight: $font-semibold; | |
220 | border: none; | |
221 | border-bottom: 2px solid transparent; | |
222 | opacity: 0.6; | |
2f4c784a | 223 | |
758f0d19 | 224 | &.active { |
ed5bb517 | 225 | color: pvar(--mainForegroundColor); |
e66883b3 | 226 | background-color: pvar(--mainBackgroundColor) !important; |
ed5bb517 | 227 | border-bottom-color: pvar(--mainColor); |
758f0d19 | 228 | } |
ed5bb517 K |
229 | |
230 | &.active, &:hover, &:active, &:focus { | |
231 | opacity: 1; | |
758f0d19 | 232 | } |
2f4c784a C |
233 | } |
234 | ||
a4610bc6 | 235 | .card { |
e66883b3 | 236 | background-color: pvar(--mainBackgroundColor); |
a4610bc6 JM |
237 | border-color: #dee2e6; |
238 | } | |
239 | ||
2f4c784a C |
240 | .collapse-transition { |
241 | // Animation when we show/hide the filters | |
242 | transition: max-height 0.3s; | |
243 | display: block !important; | |
244 | overflow: hidden !important; | |
245 | max-height: 0; | |
246 | ||
247 | &.show { | |
248 | max-height: 1500px; | |
249 | } | |
250 | } | |
bc584963 RK |
251 | |
252 | .dropdown-divider { | |
253 | margin: 0.3rem 0; | |
000eb0e4 RK |
254 | } |
255 | ||
256 | ngb-modal-backdrop { | |
36f2981f RK |
257 | z-index: z(modal) - 1 !important; |
258 | } | |
259 | ||
260 | ngb-modal-window { | |
261 | z-index: z(modal) !important; | |
000eb0e4 | 262 | } |
aa0f1963 | 263 | |
757ffdfe RK |
264 | ngb-popover-window { |
265 | z-index: z(popover) !important; | |
266 | } | |
267 | ||
268 | ngb-tooltip-window { | |
269 | z-index: z(tooltip) !important; | |
270 | } | |
271 | ||
947d0102 RK |
272 | .btn-outline-secondary { |
273 | border-color: $input-border-color; | |
274 | ||
275 | &:focus-within, | |
276 | &:focus, | |
277 | &:hover { | |
278 | color: #fff; | |
279 | background-color: #6c757d; | |
280 | } | |
281 | } | |
282 | ||
aa0f1963 | 283 | .btn-outline-tertiary { |
e66883b3 RK |
284 | color: pvar(--secondaryColor); |
285 | border-color: pvar(--secondaryColor); | |
a3705089 | 286 | |
947d0102 RK |
287 | &:focus-within, |
288 | &:focus, | |
aa0f1963 | 289 | &:hover { |
e66883b3 RK |
290 | color: pvar(--mainBackgroundColor); |
291 | background-color: pvar(--secondaryColor); | |
aa0f1963 RK |
292 | } |
293 | } | |
a6d5ff76 RK |
294 | |
295 | // input box-shadow on focus | |
296 | .form-control { | |
297 | font-size: 15px; | |
e66883b3 RK |
298 | color: pvar(--mainForegroundColor); |
299 | background-color: pvar(--inputBackgroundColor); | |
a6d5ff76 RK |
300 | outline: none; |
301 | ||
302 | &:focus-within, | |
303 | &:focus { | |
e66883b3 | 304 | box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest); |
a6d5ff76 RK |
305 | |
306 | &.input-error { | |
6a4c30de | 307 | box-shadow: #{$focus-box-shadow-form} #{scale-color($red, $alpha: -75%)}; |
a6d5ff76 RK |
308 | } |
309 | } | |
310 | } | |
947d0102 | 311 | |
0d3a2982 RK |
312 | .input-group { |
313 | & > .form-control { | |
314 | flex: initial; | |
315 | } | |
25a42e29 RK |
316 | input.form-control { |
317 | width: unset !important; | |
318 | flex-grow: 1; | |
0d3a2982 RK |
319 | } |
320 | ||
321 | .input-group-prepend + input { | |
322 | border-top-left-radius: 0 !important; | |
323 | border-bottom-left-radius: 0 !important; | |
324 | } | |
947d0102 | 325 | } |
25a42e29 RK |
326 | |
327 | .has-feedback.has-clear { | |
328 | position: relative; | |
329 | ||
330 | input { | |
331 | padding-right: 1.5rem !important; | |
332 | } | |
333 | ||
334 | .form-control-clear { | |
335 | color: rgba(0, 0, 0, 0.4); | |
336 | /* | |
337 | * Enable pointer events as they have been disabled since Bootstrap 3.3 | |
338 | * See https://github.com/twbs/bootstrap/pull/14104 | |
339 | */ | |
340 | pointer-events: all; | |
341 | display: flex; | |
342 | justify-content: center; | |
343 | align-items: center; | |
344 | position: absolute; | |
345 | right: .5rem; | |
346 | height: 95%; | |
4f5d0459 | 347 | font-size: 14px; |
25a42e29 RK |
348 | |
349 | &:hover { | |
350 | color: rgba(0, 0, 0, 0.7); | |
351 | cursor: pointer; | |
352 | } | |
353 | } | |
354 | ||
355 | input:placeholder-shown + .form-control-clear { | |
356 | display: none; | |
357 | } | |
358 | } |