]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/primeng-custom.scss
Don't use the max quality file when transcoding to a new resolution
[github/Chocobozzz/PeerTube.git] / client / src / sass / primeng-custom.scss
CommitLineData
bbe0f064
C
1@import '_variables';
2@import '_mixins';
3
4@import '~primeng/resources/primeng.css';
276d9652 5@import '~primeng/resources/themes/nova-light/theme.css';
bbe0f064
C
6
7@mixin glyphicon-light {
8 font-family: 'Glyphicons Halflings';
9 text-decoration: none !important;
1fd3ef3f 10 color: var(--mainForegroundColor) !important;
bbe0f064
C
11}
12
13// data table customizations
14p-table {
791645e6 15 .ui-table-caption {
276d9652 16 border: none !important;
f2fab901 17 background-color: var(--mainBackgroundColor) !important;
b014b6b9
C
18
19 .caption {
20 height: 40px;
21 display: flex;
22 align-items: center;
23 }
791645e6
C
24 }
25
276d9652 26 th {
f2fab901 27 background-color: var(--mainBackgroundColor) !important;
276d9652
C
28 outline: 0;
29 }
30
31 td, th {
32 font-family: $main-fonts;
33 font-size: 15px !important;
34 color: var(--mainForegroundColor) !important;
35 }
36
bbe0f064 37 td {
bbe0f064 38 padding-left: 15px !important;
141b177d
C
39
40 &:not(.action-cell) {
41 overflow: hidden !important;
42 text-overflow: ellipsis !important;
43 white-space: nowrap !important;
44 }
bbe0f064
C
45 }
46
47 tr {
276d9652 48 outline: 0;
c13e2bf3 49 background-color: var(--mainBackgroundColor) !important;
bbe0f064 50 height: 46px;
791645e6
C
51
52 &.ui-state-highlight {
276d9652
C
53 background-color: var(--submenuColor) !important;
54
55 td, td > a {
56 color: var(--mainForegroundColor) !important;
57 }
791645e6 58 }
bbe0f064
C
59 }
60
61 .ui-table-tbody {
62 tr {
63 &:hover {
1fd3ef3f 64 background-color: var(--submenuColor) !important;
bbe0f064 65
28e0e40d
C
66 .action-cell {
67 .dropdown-root,
68 my-edit-button,
69 my-delete-button,
70 my-button {
71 display: block !important;
72 }
bbe0f064
C
73 }
74 }
75
276d9652
C
76 td {
77 border: none !important;
78 }
79
bbe0f064
C
80 &:first-child td {
81 border-top: none !important;
82 }
83
84 &:last-child td {
85 border-bottom: none !important;
86 }
87 }
88
89 .expander {
90 cursor: pointer;
91 position: relative;
92 top: 1px;
93 }
94 }
95
96 th {
97 border: none !important;
b9fcfb1d
C
98 border-bottom: 1px solid !important;
99 border-color: var(--submenuColor) !important;
bbe0f064
C
100 text-align: left !important;
101 padding: 5px 0 5px 15px !important;
102 font-weight: $font-semibold !important;
1fd3ef3f 103 color: var(--mainForegroundColor) !important;
bbe0f064
C
104
105 &.ui-sortable-column:hover {
1fd3ef3f 106 background-color: var(--submenuColor) !important;
b9fcfb1d
C
107 border: 1px solid !important;
108 border-color: var(--submenuColor) !important;
bbe0f064
C
109 border-width: 0 1px !important;
110
111 &:first-child {
112 border-width: 0 1px 0 0 !important;
113 }
114 }
115
116 &.ui-state-highlight {
276d9652 117 background-color: var(--submenuColor) !important;
bbe0f064
C
118
119 .pi {
120 @extend .glyphicon;
121
276d9652
C
122 color: #000 !important;
123 font-size: 11px !important;
124 top: 0 !important;
bbe0f064
C
125
126 &.pi-sort-up {
127 @extend .glyphicon-triangle-top;
f2fab901
C
128
129 color: var(--mainForegroundColor) !important;
bbe0f064
C
130 }
131
132 &.pi-sort-down {
133 @extend .glyphicon-triangle-bottom;
f2fab901
C
134
135 color: var(--mainForegroundColor) !important;
bbe0f064
C
136 }
137 }
138 }
139 }
140
141 .action-cell {
142 width: 250px !important;
143 padding: 0 !important;
144 text-align: center;
145
28e0e40d
C
146 .dropdown-root,
147 my-edit-button,
148 my-delete-button,
149 my-button {
c5a1ae50
C
150 display: none !important;
151
152 &.show {
153 display: block !important;
154 }
155 }
156
bbe0f064
C
157 my-edit-button + my-delete-button {
158 margin-left: 5px;
159 }
160 }
161
162 p-paginator {
163 .ui-paginator-bottom {
1fd3ef3f 164 background-color: var(--mainBackgroundColor) !important;
bbe0f064 165 position: relative;
8b183196
RK
166 border: none;
167 border-top: 1px solid !important;
b9fcfb1d 168 border-color: var(--submenuColor) !important;
bbe0f064
C
169 height: 40px;
170 display: flex;
171 justify-content: center;
172 align-items: center;
173
30eac84e
C
174 .ui-paginator-first,
175 .ui-paginator-prev,
176 .ui-paginator-next,
177 .ui-paginator-last {
178 @include glyphicon-light;
179 padding: 5px 2px;
180 height: auto;
181 outline: none;
182 font-size: 13px;
183 top: -1px;
184
185 &.ui-state-disabled:hover {
186 background-color: #fff !important;
187 }
188
189 &.ui-paginator-first {
190 @extend .glyphicon-step-backward;
191 }
192
193 &.ui-paginator-prev {
194 @extend .glyphicon-chevron-left;
195
196 margin-right: 10px;
197 }
198
199 &.ui-paginator-next {
200 @extend .glyphicon-chevron-right;
201
202 margin-left: 10px;
203 }
204
205 &.ui-paginator-last {
206 @extend .glyphicon-step-forward;
207 }
208 }
209
bbe0f064
C
210 .ui-paginator-pages {
211 height: auto !important;
212
213 a {
aa879092 214 color: var(--mainForegroundColor) !important;
bbe0f064 215 font-weight: $font-semibold !important;
276d9652 216 margin: 0 5px !important;
bbe0f064
C
217 outline: 0 !important;
218 border-radius: 3px !important;
219 padding: 5px 2px !important;
220 height: auto !important;
276d9652 221 line-height: initial !important;
bbe0f064
C
222
223 &.ui-state-active {
224 &, &:hover, &:active, &:focus {
225 color: #fff !important;
9a0fc840 226 background-color: var(--mainColor) !important;
bbe0f064
C
227 }
228 }
229 }
230 }
231 }
232 }
233}
234
3caf77d3
C
235// multiselect customizations
236p-multiselect {
237 .ui-multiselect-label {
238 font-size: 15px !important;
239 padding: 4px 30px 4px 12px !important;
240
241 $width: 338px;
242 width: $width !important;
243
244 @media screen and (max-width: $width) {
245 width: 100% !important;
246 }
247 }
248
249 .pi.pi-chevron-down{
250 margin-left: 0 !important;
251
252 &::after {
253 @include select-arrow-down;
254
255 right: 0;
256 margin-top: 6px;
257 }
258 }
259
260 .ui-chkbox-icon {
261 //position: absolute !important;
262 width: 18px;
263 height: 18px;
264 //left: 0;
265
266 //&::after {
267 // left: -2px !important;
268 //}
269 }
270}
271
bbe0f064
C
272// PrimeNG calendar tweaks
273p-calendar .ui-datepicker {
274 a {
275 @include disable-default-a-behaviour;
276 }
277
278 .ui-datepicker-header {
279
280 .ui-datepicker-year {
281 margin-left: 5px;
282 }
283
284 .ui-datepicker-next {
285 @extend .glyphicon-chevron-right;
286 @include glyphicon-light;
276d9652 287
aa879092 288 color: #000 !important;
276d9652
C
289 text-align: right;
290
291 .pi.pi-chevron-right {
292 display: none !important;
293 }
bbe0f064
C
294 }
295
296 .ui-datepicker-prev {
297 @extend .glyphicon-chevron-left;
298 @include glyphicon-light;
276d9652 299
aa879092 300 color: #000 !important;
276d9652
C
301 text-align: left;
302
303 .pi.pi-chevron-left {
304 display: none !important;
305 }
bbe0f064
C
306 }
307 }
308
309 .ui-timepicker {
310
311 .pi.pi-chevron-up {
312 @extend .glyphicon-chevron-up;
313 @include glyphicon-light;
aa879092
C
314
315 color: #000 !important;
bbe0f064
C
316 }
317
318 .pi.pi-chevron-down {
319 @extend .glyphicon-chevron-down;
320 @include glyphicon-light;
aa879092
C
321
322 color: #000 !important;
bbe0f064
C
323 }
324 }
791645e6
C
325}
326
17bb716b 327.ui-chkbox {
276d9652 328
17bb716b
C
329 &, .ui-chkbox-box {
330 width: 18px !important;
331 height: 18px !important;
791645e6
C
332 }
333
17bb716b
C
334 .ui-chkbox-box {
335 &.ui-state-active {
336 border-color: var(--mainColor) !important;
337 background-color: var(--mainColor) !important;
791645e6
C
338 }
339
17bb716b
C
340 .ui-chkbox-icon {
341 position: relative;
342 overflow: visible !important;
343
344 &:after {
345 content: '';
346 position: absolute;
347 top: 1px;
348 left: 6px;
349 width: 5px;
350 height: 12px;
351 opacity: 0;
352 transform: rotate(45deg) scale(0);
353 border-right: 2px solid var(--mainBackgroundColor);
354 border-bottom: 2px solid var(--mainBackgroundColor);
355 }
356
357 &.pi-check:after {
358 opacity: 1;
359 transform: rotate(45deg) scale(1);
360 }
791645e6
C
361 }
362 }
276d9652
C
363}
364
365p-inputswitch {
366 .ui-inputswitch-checked .ui-inputswitch-slider {
367 background-color: var(--mainColor) !important;
368 }
369}
f8b2c1b4
C
370
371p-toast {
3195cd1c
C
372 .ui-toast {
373 // Modal is 10005
374 z-index: 10010 !important;
375 }
376
f8b2c1b4
C
377 .ui-toast-message {
378 font-family: $main-fonts;
379
380 &.ui-toast-message-success {
381 color: #fff !important;
382 background-color: #8BC34A !important;
383 }
384
385 &.ui-toast-message-error {
386 color: #fff !important;
387 background-color: #F44336 !important;
388 }
389
390 &.ui-toast-message-info {
391 color: #fff !important;
392 background-color: #03A9F4 !important;
393 }
394
395 &.ui-toast-message-info {
396 color: #fff !important;
397 background-color: #03A9F4 !important;
398 }
399
4707f410
C
400 .notification-block {
401 display: flex;
2f1548fd
C
402 align-items: center;
403 padding: 5px;
f8b2c1b4 404
4707f410 405 .message {
6e7e63b8
C
406 flex-grow: 1;
407
4707f410
C
408 h3 {
409 font-size: 21px;
410 }
f8b2c1b4 411
4707f410
C
412 p {
413 font-size: 15px;
2f1548fd 414 margin-bottom: 0;
4707f410 415 }
f8b2c1b4 416 }
f8b2c1b4 417
4707f410
C
418 .glyphicon {
419 font-size: 32px;
4707f410
C
420 margin-right: 5px;
421 }
f8b2c1b4
C
422 }
423 }
424}
17bb716b
C
425
426.ui-widget {
427 font-family: $main-fonts !important;
428}