]>
Commit | Line | Data |
---|---|---|
8cbc40b2 C |
1 | @use '_variables' as *; |
2 | @use '_mixins' as *; | |
93c728a2 | 3 | @use '_icons' as *; |
bbe0f064 | 4 | |
931d3430 | 5 | /* stylelint-disable */ |
cd2fad00 | 6 | @import '~primeng/resources/primeng.css'; |
4f926722 | 7 | |
266947e5 | 8 | // Override primeng style we don't want |
931d3430 | 9 | input[type=button] { |
266947e5 C |
10 | border-radius: inherit; |
11 | } | |
12 | ||
1fd61899 C |
13 | p-table .p-datatable-header .caption { |
14 | margin-bottom: 15px; | |
15 | } | |
16 | ||
4f926722 C |
17 | // Taken from old nova light theme |
18 | ||
19 | body .p-disabled { | |
20 | opacity: 0.5; | |
21 | } | |
22 | ||
23 | // Checkbox | |
24 | body .p-checkbox { | |
25 | display: inline-block; | |
26 | vertical-align: middle; | |
27 | margin: 0; | |
28 | width: 20px; | |
29 | height: 20px; | |
30 | } | |
31 | body .p-checkbox .p-checkbox-box { | |
32 | border: 1px solid #a6a6a6; | |
33 | background-color: #ffffff; | |
34 | width: 20px; | |
35 | height: 20px; | |
36 | text-align: center; | |
37 | border-radius: 3px; | |
38 | transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s; | |
39 | } | |
40 | body .p-checkbox .p-checkbox-box:not(.p-disabled):hover { | |
41 | border-color: #212121; | |
42 | } | |
43 | body .p-checkbox .p-checkbox-box .p-checkbox-icon { | |
44 | overflow: hidden; | |
45 | position: relative; | |
46 | font-size: 18px; | |
47 | } | |
48 | ||
49 | // Paginator | |
50 | body .p-paginator { | |
51 | background-color: #f4f4f4; | |
52 | border: 1px solid #c8c8c8; | |
53 | padding: 0; | |
54 | } | |
55 | body .p-paginator .p-paginator-first, | |
56 | body .p-paginator .p-paginator-prev, | |
57 | body .p-paginator .p-paginator-next, | |
58 | body .p-paginator .p-paginator-last { | |
59 | color: #848484; | |
60 | height: 2.286em; | |
61 | min-width: 2.286em; | |
62 | border: 0 none; | |
63 | line-height: 2.286em; | |
64 | padding: 0; | |
65 | margin: 0; | |
66 | vertical-align: top; | |
67 | transition: box-shadow 0.2s; | |
68 | border-radius: 0; | |
69 | } | |
70 | body .p-paginator .p-paginator-first:not(.p-disabled):not(.p-highlight):hover, | |
71 | body .p-paginator .p-paginator-prev:not(.p-disabled):not(.p-highlight):hover, | |
72 | body .p-paginator .p-paginator-next:not(.p-disabled):not(.p-highlight):hover, | |
73 | body .p-paginator .p-paginator-last:not(.p-disabled):not(.p-highlight):hover { | |
74 | background-color: #e0e0e0; | |
75 | color: #333333; | |
76 | } | |
77 | body .p-paginator .p-paginator-first:focus, | |
78 | body .p-paginator .p-paginator-prev:focus, | |
79 | body .p-paginator .p-paginator-next:focus, | |
80 | body .p-paginator .p-paginator-last:focus { | |
81 | outline: 0 none; | |
82 | outline-offset: 0; | |
83 | box-shadow: 0 0 0 0.2em pvar(--mainColorLightest); | |
84 | } | |
85 | body .p-paginator .p-paginator-current { | |
86 | color: #333333; | |
87 | height: 2.286em; | |
88 | min-width: 2.286em; | |
89 | line-height: 2.286em; | |
90 | } | |
4f926722 C |
91 | body .p-paginator .p-dropdown .p-dropdown-trigger, body .p-paginator .p-dropdown .p-dropdown-label { |
92 | color: #848484; | |
93 | } | |
94 | body .p-paginator .p-dropdown:hover .p-dropdown-trigger, body .p-paginator .p-dropdown:hover .p-dropdown-label { | |
95 | color: #333333; | |
96 | } | |
97 | body .p-paginator .p-paginator-first:before { | |
98 | position: relative; | |
99 | top: 1px; | |
100 | } | |
101 | body .p-paginator .p-paginator-prev:before { | |
102 | position: relative; | |
103 | top: 1px; | |
104 | } | |
105 | body .p-paginator .p-paginator-next:before { | |
106 | position: relative; | |
107 | top: 1px; | |
108 | } | |
109 | body .p-paginator .p-paginator-last:before { | |
110 | position: relative; | |
111 | top: 1px; | |
112 | } | |
113 | body .p-paginator .p-paginator-pages { | |
114 | vertical-align: top; | |
115 | display: inline-block; | |
116 | padding: 0; | |
117 | } | |
118 | body .p-paginator .p-paginator-pages .p-paginator-page { | |
119 | color: #848484; | |
120 | height: 2.286em; | |
121 | min-width: 2.286em; | |
122 | border: 0 none; | |
123 | line-height: 2.286em; | |
124 | padding: 0; | |
125 | margin: 0; | |
126 | vertical-align: top; | |
127 | transition: box-shadow 0.2s; | |
128 | border-radius: 0; | |
129 | } | |
130 | body .p-paginator .p-paginator-pages .p-paginator-page:not(.p-highlight):hover { | |
131 | background-color: #e0e0e0; | |
132 | color: #333333; | |
133 | } | |
134 | body .p-paginator .p-paginator-pages .p-paginator-page:focus { | |
135 | outline: 0 none; | |
136 | outline-offset: 0; | |
137 | box-shadow: 0 0 0 0.2em pvar(--mainColorLightest); | |
138 | } | |
139 | body .p-paginator .p-dropdown { | |
27bc9586 C |
140 | @include margin-left(0.5em); |
141 | ||
4f926722 C |
142 | height: 2.286em; |
143 | min-width: auto; | |
144 | } | |
145 | ||
146 | // Dropdown | |
147 | ||
148 | body .p-dropdown { | |
149 | background: #ffffff; | |
150 | border: 1px solid #a6a6a6; | |
151 | transition: border-color 0.2s, box-shadow 0.2s; | |
0a1aaf2d | 152 | border-radius: 6px; |
4f926722 C |
153 | } |
154 | body .p-dropdown:not(.p-disabled):hover { | |
155 | border-color: #212121; | |
156 | } | |
157 | body .p-dropdown:not(.p-disabled).p-focus { | |
158 | outline: 0 none; | |
159 | outline-offset: 0; | |
160 | box-shadow: 0 0 0 0.2em pvar(--mainColorLightest); | |
161 | border-color: pvar(--mainColor); | |
162 | } | |
0a1aaf2d C |
163 | body .p-dropdown.p-dropdown-clearable .p-dropdown-label { |
164 | @include padding-right(0); | |
165 | } | |
4f926722 | 166 | body .p-dropdown .p-dropdown-label { |
0a1aaf2d C |
167 | background: transparent; |
168 | border: 0 none; | |
169 | } | |
170 | body .p-dropdown .p-dropdown-label.p-placeholder { | |
171 | color: #6c757d; | |
4f926722 | 172 | } |
0a1aaf2d C |
173 | body .p-dropdown .p-dropdown-label:enabled:focus { |
174 | outline: 0 none; | |
175 | box-shadow: none; | |
176 | } | |
177 | ||
4f926722 | 178 | body .p-dropdown .p-dropdown-trigger { |
0a1aaf2d C |
179 | background-color: transparent; |
180 | width: 2rem; | |
181 | border-top-right-radius: 6px; | |
182 | border-bottom-right-radius: 6px; | |
4f926722 C |
183 | color: #848484; |
184 | } | |
185 | body .p-dropdown .p-dropdown-clear-icon { | |
186 | color: #848484; | |
0a1aaf2d | 187 | right: 2rem; |
4f926722 C |
188 | } |
189 | body .p-dropdown.p-dropdown-clearable .p-dropdown-label { | |
27bc9586 | 190 | @include padding-right(4em); |
4f926722 C |
191 | } |
192 | body .p-dropdown-panel { | |
4f926722 C |
193 | background-color: #ffffff; |
194 | box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); | |
0a1aaf2d C |
195 | border: 0 none; |
196 | border-radius: 6px; | |
197 | box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); | |
4f926722 C |
198 | } |
199 | body .p-dropdown-panel .p-dropdown-filter-container { | |
200 | padding: 0.429em 0.857em 0.429em 0.857em; | |
201 | border-bottom: 1px solid #eaeaea; | |
202 | color: #333333; | |
203 | background-color: #ffffff; | |
204 | margin: 0; | |
205 | } | |
206 | body .p-dropdown-panel .p-dropdown-filter-container .p-dropdown-filter { | |
27bc9586 C |
207 | @include padding-right(2em); |
208 | ||
4f926722 | 209 | width: 100%; |
4f926722 C |
210 | } |
211 | body .p-dropdown-panel .p-dropdown-filter-container .p-dropdown-filter-icon { | |
212 | top: 50%; | |
213 | margin-top: -0.5em; | |
214 | right: 1.357em; | |
215 | color: pvar(--mainColor); | |
216 | } | |
217 | body .p-dropdown-panel .p-dropdown-items { | |
218 | padding: 0; | |
219 | } | |
220 | body .p-dropdown-panel .p-dropdown-items .p-dropdown-item, body .p-dropdown-panel .p-dropdown-items .p-dropdown-item-group { | |
221 | margin: 0; | |
222 | padding: 0.429em 0.857em; | |
223 | border: 0 none; | |
224 | color: #333333; | |
225 | background-color: transparent; | |
226 | -moz-border-radius: 0; | |
227 | -webkit-border-radius: 0; | |
228 | border-radius: 0; | |
229 | } | |
230 | body .p-dropdown-panel .p-dropdown-items .p-dropdown-item.p-highlight, | |
231 | body .p-dropdown-panel .p-dropdown-items .p-dropdown-item-group.p-highlight { | |
232 | color: #ffffff; | |
233 | background-color: pvar(--mainColor); | |
234 | } | |
235 | body .p-dropdown-panel .p-dropdown-items .p-dropdown-item:not(.p-highlight):not(.p-disabled):hover, | |
236 | body .p-dropdown-panel .p-dropdown-items .p-dropdown-item-group:not(.p-highlight):not(.p-disabled):hover { | |
237 | color: #333333; | |
238 | background-color: #eaeaea; | |
239 | } | |
240 | body p-dropdown.ng-dirty.ng-invalid > .p-dropdown { | |
241 | border: 1px solid #a80000; | |
242 | } | |
243 | ||
244 | // p-toast | |
245 | body .p-toast .p-toast-message { | |
246 | box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); | |
247 | margin: 0 0 1em 0; | |
248 | } | |
249 | ||
250 | // p-calendar | |
251 | body .p-datepicker { | |
252 | padding: 0.857em; | |
253 | min-width: 20em; | |
254 | background-color: #ffffff; | |
255 | color: #333333; | |
256 | border: 1px solid #a6a6a6; | |
257 | } | |
258 | ||
259 | body .p-datepicker:not(.p-datepicker-inline) { | |
260 | border: 1px solid #c8c8c8; | |
261 | box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); | |
262 | } | |
263 | body .p-datepicker:not(.p-disabled) .p-datepicker-header .p-datepicker-prev:focus, | |
264 | body .p-datepicker:not(.p-disabled) .p-datepicker-header .p-datepicker-next:focus { | |
265 | outline: 0 none; | |
266 | outline-offset: 0; | |
267 | box-shadow: 0 0 0 0.2em pvar(--mainColorLightest); | |
268 | } | |
269 | body .p-datepicker:not(.p-disabled) table td a:not(.p-highlight):not(.p-highlight):hover { | |
270 | background-color: #eaeaea; | |
271 | } | |
272 | body .p-datepicker:not(.p-disabled) .p-monthpicker a.p-monthpicker-month:not(.p-highlight):hover { | |
273 | background-color: #eaeaea; | |
274 | } | |
275 | body .p-datepicker .p-datepicker-header { | |
276 | padding: 0.429em 0.857em 0.429em 0.857em; | |
277 | background-color: #ffffff; | |
278 | color: #333333; | |
279 | -moz-border-radius: 0; | |
280 | -webkit-border-radius: 0; | |
281 | border-radius: 0; | |
282 | } | |
283 | body .p-datepicker .p-datepicker-header .p-datepicker-prev, | |
284 | body .p-datepicker .p-datepicker-header .p-datepicker-next { | |
285 | cursor: pointer; | |
286 | top: 0; | |
287 | color: #a6a6a6; | |
288 | transition: color 0.2s, box-shadow 0.2s; | |
289 | } | |
290 | body .p-datepicker .p-datepicker-header .p-datepicker-title { | |
291 | margin: 0; | |
292 | padding: 0; | |
293 | line-height: 1; | |
294 | } | |
295 | body .p-datepicker .p-datepicker-header .p-datepicker-title select { | |
296 | margin-top: -0.35em; | |
297 | margin-bottom: 0; | |
298 | transition: color 0.2s, box-shadow 0.2s; | |
299 | } | |
300 | body .p-datepicker .p-datepicker-header .p-datepicker-title select:focus { | |
301 | outline: 0 none; | |
302 | outline-offset: 0; | |
303 | box-shadow: 0 0 0 0.2em pvar(--mainColorLightest); | |
304 | } | |
e35967ee C |
305 | body .p-datepicker .p-datepicker-header .p-datepicker-title .p-datepicker-month { |
306 | @include margin-right(0.5rem); | |
307 | } | |
4f926722 C |
308 | body .p-datepicker table { |
309 | font-size: 14px; | |
310 | margin: 0.857em 0 0 0; | |
311 | } | |
312 | body .p-datepicker table th { | |
313 | padding: 0.5em; | |
314 | } | |
315 | body .p-datepicker table th.p-datepicker-weekheader { | |
316 | border-right: 1px solid #a6a6a6; | |
317 | } | |
318 | body .p-datepicker table td { | |
319 | padding: 0.5em; | |
320 | } | |
321 | body .p-datepicker table td > a, | |
322 | body .p-datepicker table td > span { | |
323 | display: block; | |
324 | text-align: center; | |
325 | color: #333333; | |
326 | padding: 0.5em; | |
327 | transition: box-shadow 0.2s; | |
328 | border-radius: 3px; | |
329 | } | |
330 | body .p-datepicker table td > a.p-highlight, | |
331 | body .p-datepicker table td > span.p-highlight { | |
332 | color: #ffffff; | |
333 | background-color: pvar(--mainColor); | |
334 | } | |
335 | body .p-datepicker table td > a { | |
336 | cursor: pointer; | |
337 | } | |
338 | body .p-datepicker table td > a:focus { | |
339 | outline: 0 none; | |
340 | outline-offset: 0; | |
341 | box-shadow: 0 0 0 0.2em pvar(--mainColorLightest); | |
342 | } | |
343 | body .p-datepicker table td.p-datepicker-today > a, | |
344 | body .p-datepicker table td.p-datepicker-today > span { | |
345 | background-color: #d0d0d0; | |
346 | color: #333333; | |
347 | } | |
348 | body .p-datepicker table td.p-datepicker-today > a.p-highlight, | |
349 | body .p-datepicker table td.p-datepicker-today > span.p-highlight { | |
350 | color: #ffffff; | |
351 | background-color: pvar(--mainColor); | |
352 | } | |
353 | body .p-datepicker table td.p-datepicker-weeknumber { | |
354 | border-right: 1px solid #a6a6a6; | |
355 | } | |
356 | body .p-datepicker .p-datepicker-buttonbar { | |
357 | border-top: 1px solid #d8dae2; | |
358 | } | |
359 | body .p-datepicker .p-timepicker { | |
360 | border: 0 none; | |
361 | border-top: 1px solid #d8dae2; | |
362 | padding: 0.857em; | |
363 | } | |
364 | body .p-datepicker .p-timepicker a { | |
365 | color: #333333; | |
366 | font-size: 1.286em; | |
367 | } | |
368 | body .p-datepicker .p-timepicker a:hover { | |
369 | color: pvar(--mainColor); | |
370 | } | |
371 | body .p-datepicker .p-timepicker span { | |
372 | font-size: 1.286em; | |
373 | } | |
374 | body .p-datepicker .p-monthpicker .p-monthpicker-month { | |
375 | color: #333333; | |
376 | } | |
377 | body .p-datepicker .p-monthpicker .p-monthpicker-month.p-highlight { | |
378 | color: #ffffff; | |
379 | background-color: pvar(--mainColor); | |
380 | } | |
381 | body .p-datepicker.p-datepicker-timeonly { | |
382 | padding: 0; | |
383 | } | |
384 | body .p-datepicker.p-datepicker-timeonly .p-timepicker { | |
385 | border-top: 0 none; | |
386 | } | |
387 | body .p-datepicker.p-datepicker-multiple-month .p-datepicker-group { | |
27bc9586 C |
388 | @include padding-right(0.857em); |
389 | @include padding-left(0.857em); | |
390 | ||
4f926722 | 391 | border-right: 1px solid #d8dae2; |
4f926722 C |
392 | padding-top: 0; |
393 | padding-bottom: 0; | |
394 | } | |
395 | body .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:first-child { | |
27bc9586 | 396 | @include padding-left(0); |
4f926722 C |
397 | } |
398 | body .p-datepicker.p-datepicker-multiple-month .p-datepicker-group:last-child { | |
27bc9586 | 399 | @include padding-right(0); |
4f926722 C |
400 | border-right: 0 none; |
401 | } | |
402 | body .p-calendar.p-calendar-w-btn .p-inputtext { | |
403 | border-top-right-radius: 0; | |
404 | border-bottom-right-radius: 0; | |
405 | border-right: 0 none; | |
406 | } | |
407 | body .p-calendar.p-calendar-w-btn .p-inputtext:enabled:hover:not(.p-error), | |
408 | body .p-calendar.p-calendar-w-btn .p-inputtext:enabled:focus:not(.p-error) { | |
409 | border-right: 0 none; | |
410 | } | |
411 | body .p-calendar.p-calendar-w-btn .p-datepicker-trigger.p-button { | |
412 | width: 2.357em; | |
413 | border-top-left-radius: 0; | |
414 | border-bottom-left-radius: 0; | |
415 | } | |
416 | body .ui-fluid .p-calendar.p-calendar-w-btn input.p-inputtext { | |
417 | width: calc(100% - 2.357em); | |
418 | } | |
419 | body p-calendar.ng-dirty.ng-invalid > .p-calendar > .p-inputtext { | |
420 | border: 1px solid #a80000; | |
421 | } | |
422 | body .p-timepicker .p-separator { | |
27bc9586 | 423 | @include margin-left(0); |
4f926722 C |
424 | min-width: 0.75rem; |
425 | } | |
426 | ||
427 | // auto complete | |
428 | body .p-autocomplete .p-autocomplete-input { | |
429 | padding: 0.429em; | |
430 | } | |
431 | body .p-autocomplete-panel { | |
432 | padding: 0; | |
433 | border: 1px solid #c8c8c8; | |
434 | background-color: #ffffff; | |
435 | box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.16); | |
436 | } | |
437 | body .p-autocomplete-panel .p-autocomplete-items { | |
438 | padding: 0; | |
439 | } | |
440 | body .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item { | |
441 | margin: 0; | |
442 | padding: 0.429em 0.857em; | |
443 | border: 0 none; | |
444 | color: #333333; | |
445 | background-color: transparent; | |
446 | border-radius: 0; | |
447 | } | |
448 | body .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item.p-highlight, | |
449 | body .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-item:hover { | |
450 | color: #ffffff; | |
451 | background-color: pvar(--mainColor); | |
452 | } | |
453 | body .p-autocomplete-panel .p-autocomplete-items .p-autocomplete-group { | |
454 | padding: 0.429em 0.857em; | |
455 | background-color: #d8dae2; | |
456 | color: #333333; | |
457 | } | |
458 | body p-autocomplete.ng-dirty.ng-invalid > .p-autocomplete > .p-inputtext { | |
459 | border: 1px solid #a80000; | |
460 | } | |
461 | ||
93c728a2 C |
462 | // --------------------------------------------------------------------------- |
463 | // PeerTube customizations | |
464 | // --------------------------------------------------------------------------- | |
bbe0f064 | 465 | |
bbe0f064 | 466 | p-table { |
72c98d18 C |
467 | table { |
468 | table-layout: fixed; | |
469 | } | |
470 | ||
4f926722 | 471 | .p-datatable-header { |
276d9652 | 472 | border: none !important; |
e66883b3 | 473 | background-color: pvar(--mainBackgroundColor) !important; |
b014b6b9 C |
474 | |
475 | .caption { | |
fbe088b8 | 476 | min-height: 40px; |
25a42e29 RK |
477 | width: 100%; |
478 | display: inline-flex; | |
b014b6b9 | 479 | align-items: center; |
0d3a2982 | 480 | |
9c1a88e3 | 481 | .left-buttons { |
27bc9586 | 482 | @include padding-left(15px); |
9c1a88e3 | 483 | } |
b014b6b9 | 484 | } |
791645e6 C |
485 | } |
486 | ||
276d9652 | 487 | th { |
e66883b3 | 488 | background-color: pvar(--mainBackgroundColor) !important; |
276d9652 | 489 | outline: 0; |
b0a9743a C |
490 | overflow: hidden; |
491 | text-overflow: ellipsis; | |
492 | white-space: nowrap; | |
276d9652 C |
493 | } |
494 | ||
495 | td, th { | |
496 | font-family: $main-fonts; | |
5b0ec7cd | 497 | font-size: 15px; |
e66883b3 | 498 | color: pvar(--mainForegroundColor) !important; |
276d9652 C |
499 | } |
500 | ||
bbe0f064 | 501 | td { |
27bc9586 | 502 | @include padding-left(15px !important); |
141b177d | 503 | |
4f926722 C |
504 | &.expand-cell { |
505 | padding: 10px 15px; | |
506 | } | |
507 | ||
7706b370 | 508 | &:not(.action-cell):not(.expand-cell):not(.checkbox-cell) { |
141b177d C |
509 | overflow: hidden !important; |
510 | text-overflow: ellipsis !important; | |
511 | white-space: nowrap !important; | |
512 | } | |
bbe0f064 C |
513 | } |
514 | ||
515 | tr { | |
276d9652 | 516 | outline: 0; |
e66883b3 | 517 | background-color: pvar(--mainBackgroundColor) !important; |
bbe0f064 | 518 | height: 46px; |
791645e6 | 519 | |
4f926722 | 520 | &.p-highlight { |
218f730c | 521 | background-color: pvar(--submenuBackgroundColor) !important; |
276d9652 C |
522 | |
523 | td, td > a { | |
e66883b3 | 524 | color: pvar(--mainForegroundColor) !important; |
276d9652 | 525 | } |
791645e6 | 526 | } |
bbe0f064 C |
527 | } |
528 | ||
4f926722 | 529 | .p-datatable-tbody { |
bbe0f064 C |
530 | tr { |
531 | &:hover { | |
218f730c | 532 | background-color: pvar(--submenuBackgroundColor) !important; |
bbe0f064 C |
533 | } |
534 | ||
276d9652 C |
535 | td { |
536 | border: none !important; | |
7aebd32f | 537 | white-space: normal !important; |
276d9652 C |
538 | } |
539 | ||
bbe0f064 C |
540 | &:first-child td { |
541 | border-top: none !important; | |
542 | } | |
543 | ||
544 | &:last-child td { | |
545 | border-bottom: none !important; | |
546 | } | |
654a188f RK |
547 | |
548 | &:focus + tr > td, | |
549 | &:focus > td { | |
550 | box-shadow: none !important; | |
551 | } | |
bbe0f064 C |
552 | } |
553 | ||
554 | .expander { | |
555 | cursor: pointer; | |
556 | position: relative; | |
557 | top: 1px; | |
558 | } | |
559 | } | |
560 | ||
561 | th { | |
42379e4e C |
562 | @include padding-left(15px); |
563 | @include padding-right(0px); | |
564 | ||
565 | padding-top: 5px !important; | |
566 | padding-bottom: 5px !important; | |
567 | ||
bbe0f064 | 568 | border: none !important; |
b9fcfb1d | 569 | border-bottom: 1px solid !important; |
218f730c | 570 | border-color: pvar(--submenuBackgroundColor) !important; |
42379e4e | 571 | text-align: start !important; |
bbe0f064 | 572 | font-weight: $font-semibold !important; |
e66883b3 | 573 | color: pvar(--mainForegroundColor) !important; |
bbe0f064 | 574 | |
4f926722 | 575 | &.p-sortable-column:hover { |
218f730c | 576 | background-color: pvar(--submenuBackgroundColor) !important; |
bbe0f064 C |
577 | } |
578 | ||
4f926722 | 579 | &.p-highlight { |
218f730c | 580 | background-color: pvar(--submenuBackgroundColor) !important; |
bbe0f064 | 581 | |
93c728a2 C |
582 | .pi-sort-amount-up-alt, |
583 | .pi-sort-amount-down { | |
584 | display: inline-block; | |
585 | position: relative; | |
586 | top: -1px; | |
587 | color: pvar(--mainForegroundColor) !important; | |
588 | } | |
bbe0f064 | 589 | |
93c728a2 C |
590 | .pi-sort-amount-up-alt { |
591 | @include arrow-up(5px); | |
592 | } | |
f2fab901 | 593 | |
93c728a2 C |
594 | .pi-sort-amount-down { |
595 | @include arrow-down(5px); | |
bbe0f064 C |
596 | } |
597 | } | |
598 | } | |
599 | ||
600 | .action-cell { | |
601 | width: 250px !important; | |
bbe0f064 | 602 | |
28e0e40d C |
603 | .dropdown-root, |
604 | my-edit-button, | |
605 | my-delete-button, | |
606 | my-button { | |
2170f1db | 607 | display: inline-block !important; |
27bc9586 | 608 | @include margin-left(5px); |
c5a1ae50 | 609 | |
9c1a88e3 | 610 | &:first-child { |
27bc9586 | 611 | @include margin-left(0) |
165ee292 | 612 | } |
bbe0f064 C |
613 | } |
614 | } | |
615 | ||
616 | p-paginator { | |
4f926722 | 617 | .p-paginator-bottom { |
e66883b3 | 618 | background-color: pvar(--mainBackgroundColor) !important; |
bbe0f064 | 619 | position: relative; |
8b183196 RK |
620 | border: none; |
621 | border-top: 1px solid !important; | |
218f730c | 622 | border-color: pvar(--submenuBackgroundColor) !important; |
bbe0f064 C |
623 | height: 40px; |
624 | display: flex; | |
625 | justify-content: center; | |
626 | align-items: center; | |
627 | ||
0a1aaf2d C |
628 | p-dropdown { |
629 | .p-dropdown { | |
630 | @include padding-left(0.5rem); | |
631 | ||
632 | align-items: center; | |
633 | } | |
9b4241e3 | 634 | |
4f926722 | 635 | &.p-focus { |
e66883b3 | 636 | box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest); |
9b4241e3 RK |
637 | } |
638 | ||
4f926722 | 639 | .p-label { |
e66883b3 | 640 | color: pvar(--inputPlaceholderColor); |
9b4241e3 | 641 | } |
2bc9bd08 RK |
642 | } |
643 | ||
a3345972 C |
644 | .p-dropdown, |
645 | .p-dropdown-trigger { | |
646 | color: pvar(--mainForegroundColor); | |
647 | background-color: pvar(--mainBackgroundColor); | |
648 | } | |
649 | ||
4f926722 | 650 | .p-paginator-current { |
e66883b3 | 651 | color: pvar(--inputPlaceholderColor); |
4f926722 | 652 | overflow: visible; |
0a1aaf2d | 653 | } |
fbe088b8 | 654 | |
0a1aaf2d C |
655 | .p-paginator-first { |
656 | margin-left: auto; | |
657 | } | |
658 | ||
659 | .p-paginator-last { | |
660 | margin-right: auto; | |
2bc9bd08 RK |
661 | } |
662 | ||
4f926722 C |
663 | .p-paginator-first, |
664 | .p-paginator-prev, | |
665 | .p-paginator-next, | |
666 | .p-paginator-last { | |
30eac84e | 667 | padding: 5px 2px; |
93c728a2 | 668 | height: 100%; |
30eac84e | 669 | outline: none; |
93c728a2 | 670 | color: pvar(--mainForegroundColor); |
30eac84e | 671 | |
2bc9bd08 RK |
672 | &.focus-within, |
673 | &:focus { | |
e66883b3 | 674 | box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest); |
2bc9bd08 RK |
675 | } |
676 | ||
4f926722 | 677 | &.p-disabled:hover { |
30eac84e C |
678 | background-color: #fff !important; |
679 | } | |
680 | ||
0a1aaf2d C |
681 | .p-paginator-icon { |
682 | width: 18px; | |
683 | height: 18px; | |
30eac84e C |
684 | } |
685 | ||
4f926722 | 686 | &.p-paginator-prev { |
3bf57a01 | 687 | @include margin-right(10px); |
30eac84e C |
688 | } |
689 | ||
4f926722 | 690 | &.p-paginator-next { |
3bf57a01 | 691 | @include margin-left(10px); |
30eac84e C |
692 | } |
693 | } | |
694 | ||
4f926722 | 695 | .p-paginator-pages { |
bbe0f064 C |
696 | height: auto !important; |
697 | ||
4f926722 | 698 | .p-paginator-page { |
2bc9bd08 RK |
699 | &.focus-within, |
700 | &:focus { | |
e66883b3 | 701 | box-shadow: #{$focus-box-shadow-form} pvar(--mainColorLightest) !important; |
165ee292 | 702 | } |
2bc9bd08 | 703 | |
e66883b3 | 704 | color: pvar(--mainForegroundColor) !important; |
bbe0f064 | 705 | font-weight: $font-semibold !important; |
276d9652 | 706 | margin: 0 5px !important; |
bbe0f064 C |
707 | outline: 0 !important; |
708 | border-radius: 3px !important; | |
709 | padding: 5px 2px !important; | |
710 | height: auto !important; | |
276d9652 | 711 | line-height: initial !important; |
bbe0f064 | 712 | |
4f926722 | 713 | &.p-highlight { |
bbe0f064 C |
714 | &, &:hover, &:active, &:focus { |
715 | color: #fff !important; | |
e66883b3 | 716 | background-color: pvar(--mainColor) !important; |
bbe0f064 C |
717 | } |
718 | } | |
719 | } | |
720 | } | |
721 | } | |
722 | } | |
eeae8142 | 723 | |
4c8749cb C |
724 | .pt-badge { |
725 | font-size: 12px; | |
726 | text-transform: uppercase; | |
eeae8142 | 727 | } |
bbe0f064 C |
728 | } |
729 | ||
165ee292 | 730 | // overflow data table |
d7941370 C |
731 | p-table { |
732 | .p-datatable-wrapper { | |
733 | overflow-x: auto; | |
734 | max-width: 100%; | |
165ee292 | 735 | |
d7941370 | 736 | table { |
d94b8ecf | 737 | width: 100%; |
d7941370 C |
738 | } |
739 | } | |
619443a3 | 740 | |
0a1aaf2d | 741 | @media screen and (max-width: $small-view) { |
d7941370 | 742 | p-paginator { |
0a1aaf2d C |
743 | .p-paginator-current { |
744 | display: none !important; | |
d7941370 C |
745 | } |
746 | } | |
747 | } | |
619443a3 | 748 | |
d7941370 | 749 | @media screen and (max-width: $mobile-view) { |
d7941370 C |
750 | p-paginator { |
751 | .p-paginator-pages > .p-paginator-page:not(.p-highlight) { | |
752 | display: none; | |
165ee292 K |
753 | } |
754 | } | |
755 | } | |
756 | } | |
757 | ||
4f926722 | 758 | p-tablecheckbox:hover div .p-checkbox-box { |
46db9430 RK |
759 | box-shadow: 0 0 0 .1rem rgba(87, 85, 217, .2); |
760 | } | |
761 | ||
4f926722 | 762 | .p-checkbox { |
276d9652 | 763 | |
4f926722 | 764 | &, .p-checkbox-box { |
17bb716b C |
765 | width: 18px !important; |
766 | height: 18px !important; | |
791645e6 C |
767 | } |
768 | ||
4f926722 C |
769 | .p-checkbox-box { |
770 | &.p-highlight { | |
4958e9e5 | 771 | color: pvar(--mainBackgroundColor) !important; |
e66883b3 | 772 | background-color: pvar(--mainColor) !important; |
4958e9e5 | 773 | border-color: pvar(--mainColor) !important; |
791645e6 C |
774 | } |
775 | } | |
276d9652 C |
776 | } |
777 | ||
f8b2c1b4 | 778 | p-toast { |
4f926722 C |
779 | .p-toast { |
780 | width: auto; | |
781 | max-width: 300px; | |
e6ad4316 | 782 | min-width: 200px; |
3195cd1c | 783 | |
4f926722 | 784 | .p-toast-icon-close { |
21973012 | 785 | opacity: 0; |
4f926722 C |
786 | position: absolute; |
787 | right: 5px; | |
788 | top: 5px; | |
93c728a2 C |
789 | width: 18px; |
790 | height: 18px; | |
791 | background: url('../assets/images/feather/x.svg') no-repeat; | |
792 | background-size: contain; | |
75264e37 RK |
793 | } |
794 | ||
4f926722 | 795 | &:hover .p-toast-icon-close { |
21973012 | 796 | opacity: .3; |
75264e37 RK |
797 | } |
798 | } | |
799 | ||
4f926722 | 800 | .p-toast-message { |
f8b2c1b4 | 801 | font-family: $main-fonts; |
e66883b3 RK |
802 | background-color: pvar(--mainBackgroundColor) !important; |
803 | color: pvar(--mainForegroundColor) !important; | |
28c801b6 RK |
804 | border-radius: 5px; |
805 | box-sizing: border-box; | |
806 | border: 1px solid #EBEEF5 !important; | |
807 | box-shadow: 0 2px 12px 0 rgba(0, 0 , 0, .1); | |
808 | overflow: hidden; | |
809 | ||
4707f410 C |
810 | .notification-block { |
811 | display: flex; | |
2f1548fd | 812 | align-items: center; |
e6ad4316 | 813 | width: 100%; |
93991770 | 814 | padding: 10px 20px; |
f8b2c1b4 | 815 | |
4707f410 | 816 | .message { |
27bc9586 | 817 | @include margin-right(20px); |
6e7e63b8 | 818 | |
c4a05171 C |
819 | flex-grow: 1; |
820 | ||
4707f410 C |
821 | h3 { |
822 | font-size: 21px; | |
823 | } | |
f8b2c1b4 | 824 | |
4707f410 | 825 | p { |
c4a05171 C |
826 | @include peertube-word-wrap; |
827 | ||
2f1548fd | 828 | margin-bottom: 0; |
4707f410 | 829 | } |
f8b2c1b4 | 830 | } |
f8b2c1b4 C |
831 | } |
832 | } | |
93c728a2 C |
833 | |
834 | .p-toast-message-success my-global-icon { | |
835 | color: #8BC34A !important; | |
836 | } | |
837 | ||
838 | .p-toast-message-error my-global-icon { | |
839 | color: #F44336 !important; | |
840 | } | |
841 | ||
842 | .p-toast-message-warn my-global-icon { | |
843 | color: #F1680D !important; | |
844 | } | |
845 | ||
846 | .p-toast-message-info my-global-icon { | |
847 | color: #03A9F4 !important; | |
848 | } | |
f8b2c1b4 | 849 | } |
17bb716b | 850 | |
d94b8ecf C |
851 | @media screen and (max-width: $primeng-breakpoint) { |
852 | p-table { | |
853 | td { | |
854 | padding: 3px 0; | |
855 | ||
856 | &.expand-cell { | |
857 | padding: 5px; | |
858 | } | |
859 | } | |
860 | ||
861 | .p-datatable-tbody { | |
862 | ||
863 | td:last-child { | |
864 | padding-bottom: 15px; | |
865 | margin-bottom: 15px; | |
866 | border-bottom: 1px solid $separator-border-color !important; | |
867 | } | |
868 | } | |
869 | } | |
870 | } | |
871 | ||
872 | @media screen and (max-width: $mobile-view) { | |
873 | p-table { | |
874 | .p-datatable-header { | |
875 | .caption { | |
876 | flex-wrap: wrap; | |
877 | ||
878 | > div { | |
879 | width: 100%; | |
880 | padding: 0 !important; | |
881 | margin-bottom: 5px; | |
882 | } | |
883 | } | |
884 | } | |
885 | } | |
886 | } |