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