]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/sass/primeng-custom.scss
Relax activity validation
[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
235// PrimeNG calendar tweaks
236p-calendar .ui-datepicker {
237 a {
238 @include disable-default-a-behaviour;
239 }
240
241 .ui-datepicker-header {
242
243 .ui-datepicker-year {
244 margin-left: 5px;
245 }
246
247 .ui-datepicker-next {
248 @extend .glyphicon-chevron-right;
249 @include glyphicon-light;
276d9652 250
aa879092 251 color: #000 !important;
276d9652
C
252 text-align: right;
253
254 .pi.pi-chevron-right {
255 display: none !important;
256 }
bbe0f064
C
257 }
258
259 .ui-datepicker-prev {
260 @extend .glyphicon-chevron-left;
261 @include glyphicon-light;
276d9652 262
aa879092 263 color: #000 !important;
276d9652
C
264 text-align: left;
265
266 .pi.pi-chevron-left {
267 display: none !important;
268 }
bbe0f064
C
269 }
270 }
271
272 .ui-timepicker {
273
274 .pi.pi-chevron-up {
275 @extend .glyphicon-chevron-up;
276 @include glyphicon-light;
aa879092
C
277
278 color: #000 !important;
bbe0f064
C
279 }
280
281 .pi.pi-chevron-down {
282 @extend .glyphicon-chevron-down;
283 @include glyphicon-light;
aa879092
C
284
285 color: #000 !important;
bbe0f064
C
286 }
287 }
791645e6
C
288}
289
17bb716b 290.ui-chkbox {
276d9652 291
17bb716b
C
292 &, .ui-chkbox-box {
293 width: 18px !important;
294 height: 18px !important;
791645e6
C
295 }
296
17bb716b
C
297 .ui-chkbox-box {
298 &.ui-state-active {
299 border-color: var(--mainColor) !important;
300 background-color: var(--mainColor) !important;
791645e6
C
301 }
302
17bb716b
C
303 .ui-chkbox-icon {
304 position: relative;
305 overflow: visible !important;
306
307 &:after {
308 content: '';
309 position: absolute;
310 top: 1px;
311 left: 6px;
312 width: 5px;
313 height: 12px;
314 opacity: 0;
315 transform: rotate(45deg) scale(0);
316 border-right: 2px solid var(--mainBackgroundColor);
317 border-bottom: 2px solid var(--mainBackgroundColor);
318 }
319
320 &.pi-check:after {
321 opacity: 1;
322 transform: rotate(45deg) scale(1);
323 }
791645e6
C
324 }
325 }
276d9652
C
326}
327
328p-inputswitch {
329 .ui-inputswitch-checked .ui-inputswitch-slider {
330 background-color: var(--mainColor) !important;
331 }
332}
f8b2c1b4
C
333
334p-toast {
3195cd1c
C
335 .ui-toast {
336 // Modal is 10005
337 z-index: 10010 !important;
338 }
339
f8b2c1b4
C
340 .ui-toast-message {
341 font-family: $main-fonts;
342
343 &.ui-toast-message-success {
344 color: #fff !important;
345 background-color: #8BC34A !important;
346 }
347
348 &.ui-toast-message-error {
349 color: #fff !important;
350 background-color: #F44336 !important;
351 }
352
353 &.ui-toast-message-info {
354 color: #fff !important;
355 background-color: #03A9F4 !important;
356 }
357
358 &.ui-toast-message-info {
359 color: #fff !important;
360 background-color: #03A9F4 !important;
361 }
362
4707f410
C
363 .notification-block {
364 display: flex;
2f1548fd
C
365 align-items: center;
366 padding: 5px;
f8b2c1b4 367
4707f410 368 .message {
6e7e63b8
C
369 flex-grow: 1;
370
4707f410
C
371 h3 {
372 font-size: 21px;
373 }
f8b2c1b4 374
4707f410
C
375 p {
376 font-size: 15px;
2f1548fd 377 margin-bottom: 0;
4707f410 378 }
f8b2c1b4 379 }
f8b2c1b4 380
4707f410
C
381 .glyphicon {
382 font-size: 32px;
4707f410
C
383 margin-right: 5px;
384 }
f8b2c1b4
C
385 }
386 }
387}
17bb716b
C
388
389.ui-widget {
390 font-family: $main-fonts !important;
391}