]>
Commit | Line | Data |
---|---|---|
2f4c784a | 1 | $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; |
2f4c784a | 2 | |
8cbc40b2 C |
3 | @use '_variables' as *; |
4 | @use '_mixins' as *; | |
5 | ||
6 | @import './_bootstrap-variables'; | |
7 | ||
8 | @import '~bootstrap/scss/functions'; | |
9 | @import '~bootstrap/scss/variables'; | |
10 | ||
11 | @import '~bootstrap/scss/mixins'; | |
12 | @import '~bootstrap/scss/root'; | |
13 | @import '~bootstrap/scss/reboot'; | |
14 | @import '~bootstrap/scss/type'; | |
15 | @import '~bootstrap/scss/grid'; | |
16 | @import '~bootstrap/scss/tables'; | |
17 | @import '~bootstrap/scss/forms'; | |
18 | @import '~bootstrap/scss/buttons'; | |
19 | @import '~bootstrap/scss/dropdown'; | |
20 | @import '~bootstrap/scss/button-group'; | |
21 | @import '~bootstrap/scss/input-group'; | |
22 | @import '~bootstrap/scss/nav'; | |
23 | @import '~bootstrap/scss/card'; | |
24 | @import '~bootstrap/scss/badge'; | |
25 | @import '~bootstrap/scss/alert'; | |
26 | @import '~bootstrap/scss/close'; | |
27 | @import '~bootstrap/scss/modal'; | |
28 | @import '~bootstrap/scss/tooltip'; | |
29 | @import '~bootstrap/scss/popover'; | |
30 | @import '~bootstrap/scss/utilities'; | |
31 | ||
32 | @import '~@neos21/bootstrap3-glyphicons/assets/stylesheets/bootstrap3-glyphicons'; | |
2f4c784a C |
33 | |
34 | // Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d | |
35 | .glyphicon-refresh-animate { | |
931d3430 | 36 | animation: spin 0.7s infinite linear; |
2f4c784a C |
37 | } |
38 | ||
6b1ef956 | 39 | .glyphicon-duplicate { |
40 | font-size: 70%; | |
41 | } | |
42 | ||
f409f0c3 RK |
43 | .flex-auto { |
44 | flex: auto; | |
45 | } | |
46 | ||
d3217560 RK |
47 | .c-hand { |
48 | cursor: pointer; | |
49 | } | |
50 | ||
2f4c784a | 51 | @keyframes spin { |
a3705089 C |
52 | from { |
53 | transform: scale(1) rotate(0deg); | |
54 | } | |
931d3430 | 55 | |
a3705089 C |
56 | to { |
57 | transform: scale(1) rotate(360deg); | |
58 | } | |
2f4c784a C |
59 | } |
60 | ||
757ffdfe | 61 | /* rules for dropdowns excepts when in button group, to avoid impacting the dropdown-toggle */ |
81d5be91 K |
62 | .dropdown, |
63 | .dropup { | |
f8cce49c | 64 | z-index: z(dropdown) !important; |
2856af48 | 65 | } |
26ede95e | 66 | |
2856af48 C |
67 | .list-overflow-menu, |
68 | .parent-entry { | |
09f7837d | 69 | z-index: z(menu) - 1 !important; |
eb7c7a51 RK |
70 | } |
71 | ||
2856af48 C |
72 | .btn-group, |
73 | .dropdown-root, | |
74 | .action-dropdown, | |
75 | .input-group-prepend, | |
76 | .column-toggle { | |
77 | z-index: inherit !important; | |
78 | } | |
79 | ||
d4132d3f RK |
80 | .btn-group > .btn:not(:first-child) { |
81 | border-top-left-radius: 0 !important; | |
82 | border-bottom-left-radius: 0 !important; | |
83 | } | |
84 | ||
2f4c784a | 85 | .dropdown-menu { |
e0433a5f C |
86 | z-index: z(dropdown) + 1 !important; |
87 | ||
2f4c784a | 88 | border-radius: 3px; |
6f6e89db | 89 | 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 |
90 | font-size: 15px; |
91 | ||
b788e691 C |
92 | color: pvar(--mainForegroundColor); |
93 | background-color: pvar(--mainBackgroundColor); | |
94 | ||
0d3a2982 | 95 | .dropdown-header { |
27bc9586 | 96 | @include padding-left(1rem); |
0d3a2982 RK |
97 | } |
98 | ||
2f4c784a C |
99 | .dropdown-item { |
100 | padding: 3px 15px; | |
101 | ||
b788e691 C |
102 | color: pvar(--mainForegroundColor); |
103 | background-color: pvar(--mainBackgroundColor); | |
104 | ||
24e7916c | 105 | &.active { |
e66883b3 RK |
106 | color: pvar(--mainBackgroundColor) !important; |
107 | background-color: pvar(--mainHoverColor); | |
931d3430 | 108 | opacity: 0.9; |
2f4c784a | 109 | } |
45c6bcf3 | 110 | |
b788e691 C |
111 | a:active, |
112 | &:hover { | |
0aa52e17 | 113 | color: pvar(--mainForegroundColor) !important; |
b788e691 | 114 | background-color: pvar(--mainBackgroundHoverColor); |
0aa52e17 C |
115 | } |
116 | ||
d3217560 RK |
117 | &::after { |
118 | display: none; | |
119 | } | |
2f4c784a C |
120 | } |
121 | ||
122 | button { | |
123 | @include disable-default-a-behaviour; | |
124 | } | |
125 | ||
126 | a { | |
127 | @include disable-default-a-behaviour; | |
2f4c784a C |
128 | } |
129 | } | |
130 | ||
26171379 C |
131 | .badge { |
132 | line-height: 1.1; | |
133 | } | |
3921166d | 134 | |
165ee292 | 135 | @media screen and (min-width: #{breakpoint(md)}) { |
931d3430 | 136 | .modal::before { |
3921166d | 137 | vertical-align: middle; |
931d3430 | 138 | content: ' '; |
3921166d RK |
139 | height: 100%; |
140 | } | |
141 | ||
142 | .modal-dialog { | |
27bc9586 | 143 | text-align: start; |
2bc9bd08 RK |
144 | |
145 | &:not(.modal-lg):not(.modal-xl) { | |
146 | min-width: 500px; | |
147 | width: 40vw; | |
148 | max-width: 900px; | |
149 | } | |
3921166d RK |
150 | } |
151 | } | |
152 | ||
2f4c784a | 153 | .modal { |
3921166d RK |
154 | text-align: center; |
155 | ||
2f4c784a | 156 | .modal-content { |
e66883b3 | 157 | background-color: pvar(--mainBackgroundColor); |
681276a6 | 158 | word-break: break-word; |
2f4c784a C |
159 | } |
160 | ||
161 | .modal-header { | |
931d3430 | 162 | border-bottom: 0; |
2f4c784a C |
163 | margin-bottom: 5px; |
164 | ||
165 | .modal-title { | |
166 | font-size: 20px; | |
167 | font-weight: $font-semibold; | |
168 | } | |
169 | ||
170 | my-global-icon { | |
54e78847 | 171 | @include icon(22px); |
2f4c784a C |
172 | |
173 | position: relative; | |
54e78847 | 174 | top: 5px; |
2f4c784a C |
175 | float: right; |
176 | ||
177 | margin: 0; | |
178 | padding: 0; | |
931d3430 | 179 | opacity: 0.5; |
8319d6ae | 180 | |
931d3430 | 181 | &[iconName=cross] { /* stylelint-disable-line selector-max-compound-selectors */ |
8319d6ae | 182 | @include icon(16px); |
931d3430 | 183 | |
8319d6ae RK |
184 | top: -3px; |
185 | } | |
2f4c784a C |
186 | } |
187 | } | |
188 | ||
189 | .inputs { | |
190 | margin-bottom: 0; | |
27bc9586 | 191 | text-align: end; |
2f4c784a | 192 | |
266947e5 | 193 | > .peertube-button:not(:first-child) { |
27bc9586 | 194 | @include margin-left(10px); |
2f4c784a C |
195 | } |
196 | } | |
197 | } | |
198 | ||
8110705d | 199 | |
200 | // On desktop browsers, make the content and header horizontally sticked to right not move when modal open and close | |
201 | .modal-open { | |
202 | overflow-y: scroll !important; // Make sure vertical scroll bar is always visible on desktop browsers to get disabled scrollbar effect | |
17384fd8 | 203 | width: 100vw; // Make sure the content fits all the available width |
8110705d | 204 | } |
205 | ||
245b9d27 K |
206 | // On touchscreen devices, simply overflow: hidden to avoid detached overlay on scroll |
207 | @media (hover: none) and (pointer: coarse) { | |
931d3430 C |
208 | .modal-open, |
209 | .menu-open { | |
245b9d27 K |
210 | overflow: hidden !important; |
211 | } | |
212 | ||
213 | // On touchscreen devices display content overlay when opened menu | |
214 | .menu-open { | |
215 | .main-col { | |
216 | &::before { | |
931d3430 | 217 | background-color: #000; |
245b9d27 K |
218 | width: 100vw; |
219 | height: 100vh; | |
220 | opacity: 0.75; | |
221 | content: ''; | |
222 | display: block; | |
223 | position: fixed; | |
43599029 | 224 | z-index: z(overlay); |
245b9d27 K |
225 | } |
226 | } | |
227 | } | |
228 | } | |
229 | ||
2f4c784a C |
230 | // Nav customizations |
231 | .nav .nav-link { | |
232 | display: flex !important; | |
233 | align-items: center; | |
234 | height: 30px !important; | |
235 | padding: 10px 15px !important; | |
236 | } | |
237 | ||
238 | .nav.nav-pills { | |
239 | font-size: 16px !important; | |
ed5bb517 | 240 | font-weight: $font-semibold !important; |
2f4c784a | 241 | |
ed5bb517 K |
242 | .nav-link { |
243 | opacity: 0.6 !important; | |
244 | ||
931d3430 C |
245 | &.active, |
246 | &:hover, | |
247 | &:active, | |
248 | &:focus { | |
ed5bb517 K |
249 | opacity: 1 !important; |
250 | } | |
2f4c784a C |
251 | } |
252 | ||
253 | a { | |
254 | @include disable-default-a-behaviour; | |
255 | ||
e66883b3 | 256 | color: pvar(--mainForegroundColor); |
2f4c784a C |
257 | } |
258 | } | |
259 | ||
ed5bb517 K |
260 | .nav-tabs .nav-link { |
261 | @include disable-default-a-behaviour; | |
2f4c784a | 262 | |
ed5bb517 K |
263 | color: pvar(--mainForegroundColor); |
264 | font-weight: $font-semibold; | |
931d3430 | 265 | border: 0; |
ed5bb517 K |
266 | border-bottom: 2px solid transparent; |
267 | opacity: 0.6; | |
2f4c784a | 268 | |
758f0d19 | 269 | &.active { |
ed5bb517 | 270 | color: pvar(--mainForegroundColor); |
e66883b3 | 271 | background-color: pvar(--mainBackgroundColor) !important; |
ed5bb517 | 272 | border-bottom-color: pvar(--mainColor); |
758f0d19 | 273 | } |
ed5bb517 | 274 | |
931d3430 C |
275 | &.active, |
276 | &:hover, | |
277 | &:active, | |
278 | &:focus { | |
ed5bb517 | 279 | opacity: 1; |
758f0d19 | 280 | } |
2f4c784a C |
281 | } |
282 | ||
a4610bc6 | 283 | .card { |
e66883b3 | 284 | background-color: pvar(--mainBackgroundColor); |
a4610bc6 JM |
285 | border-color: #dee2e6; |
286 | } | |
287 | ||
2f4c784a C |
288 | .collapse-transition { |
289 | // Animation when we show/hide the filters | |
290 | transition: max-height 0.3s; | |
291 | display: block !important; | |
292 | overflow: hidden !important; | |
293 | max-height: 0; | |
294 | ||
295 | &.show { | |
296 | max-height: 1500px; | |
dd24f1bb | 297 | overflow: inherit !important; |
2f4c784a C |
298 | } |
299 | } | |
bc584963 RK |
300 | |
301 | .dropdown-divider { | |
302 | margin: 0.3rem 0; | |
000eb0e4 RK |
303 | } |
304 | ||
305 | ngb-modal-backdrop { | |
36f2981f RK |
306 | z-index: z(modal) - 1 !important; |
307 | } | |
308 | ||
309 | ngb-modal-window { | |
310 | z-index: z(modal) !important; | |
000eb0e4 | 311 | } |
aa0f1963 | 312 | |
757ffdfe RK |
313 | ngb-popover-window { |
314 | z-index: z(popover) !important; | |
315 | } | |
316 | ||
317 | ngb-tooltip-window { | |
318 | z-index: z(tooltip) !important; | |
319 | } | |
320 | ||
947d0102 RK |
321 | .btn-outline-secondary { |
322 | border-color: $input-border-color; | |
323 | ||
324 | &:focus-within, | |
325 | &:focus, | |
326 | &:hover { | |
327 | color: #fff; | |
328 | background-color: #6c757d; | |
329 | } | |
330 | } | |
331 | ||
aa0f1963 | 332 | .btn-outline-tertiary { |
e66883b3 RK |
333 | color: pvar(--secondaryColor); |
334 | border-color: pvar(--secondaryColor); | |
a3705089 | 335 | |
947d0102 RK |
336 | &:focus-within, |
337 | &:focus, | |
aa0f1963 | 338 | &:hover { |
e66883b3 RK |
339 | color: pvar(--mainBackgroundColor); |
340 | background-color: pvar(--secondaryColor); | |
aa0f1963 RK |
341 | } |
342 | } | |
a6d5ff76 | 343 | |
a8454bb2 | 344 | .btn-group.select-button { |
2accfdd8 C |
345 | font-weight: $font-semibold; |
346 | ||
347 | .active { | |
348 | @include orange-button; | |
349 | } | |
350 | ||
351 | :not(.active) { | |
352 | @include grey-button; | |
353 | } | |
354 | ||
355 | > * { | |
356 | @include peertube-button-link; | |
357 | ||
358 | box-shadow: none !important; | |
359 | ||
360 | &:not(:first-child) { | |
361 | border-top-left-radius: 0 !important; | |
362 | border-bottom-left-radius: 0 !important; | |
363 | } | |
364 | ||
365 | &:not(:last-child) { | |
366 | border-top-right-radius: 0 !important; | |
367 | border-bottom-right-radius: 0 !important; | |
368 | } | |
369 | } | |
370 | } | |
371 | ||
a6d5ff76 RK |
372 | // input box-shadow on focus |
373 | .form-control { | |
374 | font-size: 15px; | |
e66883b3 RK |
375 | color: pvar(--mainForegroundColor); |
376 | background-color: pvar(--inputBackgroundColor); | |
a6d5ff76 RK |
377 | outline: none; |
378 | ||
379 | &:focus-within, | |
380 | &:focus { | |
e66883b3 | 381 | box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest); |
a6d5ff76 RK |
382 | |
383 | &.input-error { | |
6a4c30de | 384 | box-shadow: #{$focus-box-shadow-form} #{scale-color($red, $alpha: -75%)}; |
a6d5ff76 RK |
385 | } |
386 | } | |
387 | } | |
947d0102 | 388 | |
0d3a2982 | 389 | .input-group { |
931d3430 | 390 | > .form-control { |
0d3a2982 RK |
391 | flex: initial; |
392 | } | |
931d3430 | 393 | |
25a42e29 RK |
394 | input.form-control { |
395 | width: unset !important; | |
396 | flex-grow: 1; | |
0d3a2982 RK |
397 | } |
398 | ||
399 | .input-group-prepend + input { | |
400 | border-top-left-radius: 0 !important; | |
401 | border-bottom-left-radius: 0 !important; | |
402 | } | |
947d0102 | 403 | } |
25a42e29 RK |
404 | |
405 | .has-feedback.has-clear { | |
406 | position: relative; | |
407 | ||
408 | input { | |
27bc9586 | 409 | @include padding-right(1.5rem !important); |
25a42e29 RK |
410 | } |
411 | ||
412 | .form-control-clear { | |
413 | color: rgba(0, 0, 0, 0.4); | |
414 | /* | |
415 | * Enable pointer events as they have been disabled since Bootstrap 3.3 | |
416 | * See https://github.com/twbs/bootstrap/pull/14104 | |
417 | */ | |
418 | pointer-events: all; | |
419 | display: flex; | |
420 | justify-content: center; | |
421 | align-items: center; | |
422 | position: absolute; | |
423 | right: .5rem; | |
424 | height: 95%; | |
4f5d0459 | 425 | font-size: 14px; |
25a42e29 RK |
426 | |
427 | &:hover { | |
428 | color: rgba(0, 0, 0, 0.7); | |
429 | cursor: pointer; | |
430 | } | |
431 | } | |
432 | ||
433 | input:placeholder-shown + .form-control-clear { | |
434 | display: none; | |
435 | } | |
436 | } | |
ea5cdc11 RK |
437 | |
438 | .callout { | |
728a1236 RK |
439 | padding: 1.25rem; |
440 | border: 1px solid #eee; | |
ea5cdc11 RK |
441 | border-radius: .25rem; |
442 | ||
931d3430 | 443 | > label { |
ea5cdc11 RK |
444 | position: relative; |
445 | top: -5px; | |
446 | left: -10px; | |
447 | color: #6c757d !important; | |
448 | } | |
449 | ||
450 | &:not(.callout-light) { | |
451 | border-left-width: .25rem; | |
452 | } | |
26171379 | 453 | |
ea5cdc11 RK |
454 | &.callout-info { |
455 | border-color: pvar(--mainColorLightest); | |
456 | border-left-color: pvar(--mainColor); | |
457 | } | |
458 | } | |
27bc9586 C |
459 | |
460 | // Override these properties for Bidi support | |
461 | @each $size, $length in $spacers { | |
462 | .ml-#{$size} { | |
463 | @include margin-left($length); | |
464 | } | |
465 | ||
466 | .mr-#{$size} { | |
467 | @include margin-right($length); | |
468 | } | |
469 | ||
470 | .pl-#{$size} { | |
471 | @include padding-left($length); | |
472 | } | |
473 | ||
474 | .pr-#{$size} { | |
475 | @include padding-right($length); | |
476 | } | |
477 | } |