]>
Commit | Line | Data |
---|---|---|
161b061d | 1 | $icon-font-path: '~@neos21/bootstrap3-glyphicons/assets/fonts/'; |
63c4db6d | 2 | |
9b8a7aa8 | 3 | @import '_bootstrap-variables'; |
dcbc29d5 C |
4 | @import '_variables'; |
5 | @import '_mixins'; | |
6 | ||
fa40cbc3 | 7 | @import '_fonts'; |
63c4db6d | 8 | |
d592e0a9 | 9 | @import '~video.js/dist/video-js.css'; |
c893d451 | 10 | |
583eb04b | 11 | $assets-path: '../../assets/'; |
b335ccec | 12 | @import './player/index'; |
e31f6ad6 | 13 | |
2f4c784a | 14 | @import './bootstrap'; |
bbe0f064 C |
15 | @import './primeng-custom'; |
16 | ||
383bfc83 C |
17 | [hidden] { |
18 | display: none !important; | |
19 | } | |
a64668c0 | 20 | |
b33f657c | 21 | body { |
dcbc29d5 C |
22 | /*** theme ***/ |
23 | // now beware node-sass requires interpolation | |
24 | // for css custom properties #{$var} | |
680b5496 RK |
25 | --mainColor: #{$main-color}; |
26 | --mainColorLighter: #{$main-color-lighter}; | |
a6d5ff76 | 27 | --mainColorLightest: #{$main-color-lightest}; |
680b5496 | 28 | --mainHoverColor: #{$main-hover-color}; |
dcbc29d5 C |
29 | --mainBackgroundColor: #{$bg-color}; |
30 | --mainForegroundColor: #{$fg-color}; | |
680b5496 | 31 | --secondaryColor: #{$secondary-color}; |
2fcc2294 | 32 | |
c123027f | 33 | --greyForegroundColor: #{$grey-foreground-color}; |
441e453a | 34 | --greyBackgroundColor: #{$grey-background-color}; |
c123027f | 35 | |
1d9d9cfd RK |
36 | --menuBackgroundColor: #{$menu-background}; |
37 | --menuForegroundColor: #{$menu-color}; | |
dcbc29d5 | 38 | --submenuColor: #{$sub-menu-color}; |
2fcc2294 | 39 | |
3bf07dd8 | 40 | --inputForegroundColor: #{$input-foreground-color}; |
14aa8556 | 41 | --inputBackgroundColor: #{$input-background-color}; |
dcbc29d5 C |
42 | --inputPlaceholderColor: #{$input-placeholder-color}; |
43 | ||
3bf07dd8 | 44 | --textareaForegroundColor: #{$textarea-foreground-color}; |
b15fe00f | 45 | --textareaBackgroundColor: #{$textarea-background-color}; |
f33dc6ab | 46 | --markdownTextareaBackgroundColor: #{$markdown-textarea-background-color}; |
b15fe00f | 47 | |
0240da5c RK |
48 | --actionButtonColor: #{$grey-foreground-color}; |
49 | --supportButtonBackgroundColor: #{transparent}; | |
e66883b3 | 50 | --supportButtonColor: #{pvar(--actionButtonColor)}; |
0240da5c | 51 | --supportButtonHeartColor: #{$support-button-heart}; |
2fcc2294 | 52 | |
5f57df54 C |
53 | --activatedActionButtonColor: #{$activated-action-button-color}; |
54 | ||
8a8e02a4 | 55 | font-family: $main-fonts; |
b33f657c | 56 | font-weight: $font-regular; |
e66883b3 RK |
57 | color: pvar(--mainForegroundColor); |
58 | background-color: pvar(--mainBackgroundColor); | |
b34a444e | 59 | font-size: 14px; |
8110705d | 60 | // On desktop browsers, make sure vertical scroll bar is always visible |
61 | // Allow to disable the scrollbar instead of hide it when the content fit the body | |
62 | // And not move the content and header horizontally sticked to right when the content is updating | |
63 | overflow-y: scroll; | |
b33f657c C |
64 | } |
65 | ||
52cc0d54 | 66 | ::selection { |
e66883b3 RK |
67 | color: pvar(--mainBackgroundColor); |
68 | background-color: pvar(--mainHoverColor); | |
52cc0d54 RK |
69 | } |
70 | ||
73e09f27 C |
71 | #incompatible-browser { |
72 | display: none; | |
73 | text-align: center; | |
74 | position: absolute; | |
75 | width: 100%; | |
76 | top: 45%; | |
77 | } | |
78 | ||
07fa4c97 C |
79 | strong { |
80 | font-weight: $font-semibold; | |
81 | } | |
82 | ||
383bfc83 C |
83 | input.readonly { |
84 | /* Force blank on readonly inputs */ | |
e66883b3 | 85 | background-color: pvar(--inputBackgroundColor) !important; |
0ac5edd9 | 86 | } |
87 | ||
63347a0f C |
88 | input, textarea { |
89 | outline: none; | |
e66883b3 | 90 | color: pvar(--mainForegroundColor); |
63347a0f C |
91 | } |
92 | ||
adcf9212 CC |
93 | button { |
94 | background: unset; | |
95 | @include disable-outline; | |
96 | } | |
97 | ||
d235f6b0 C |
98 | label { |
99 | font-weight: $font-bold; | |
100 | font-size: 15px; | |
09223546 C |
101 | } |
102 | ||
a2b817d3 C |
103 | .form-error { |
104 | display: block; | |
41a676db | 105 | color: $red; |
a2b817d3 C |
106 | margin-top: 5px; |
107 | } | |
108 | ||
109 | .input-error { | |
41a676db | 110 | border-color: $red !important; |
a2b817d3 C |
111 | } |
112 | ||
2d9fea16 RK |
113 | .fullWidth { |
114 | width: 100%; | |
115 | margin-left: auto; | |
116 | margin-right: auto; | |
117 | max-width: initial; | |
118 | } | |
119 | ||
383bfc83 C |
120 | .glyphicon-black { |
121 | color: black; | |
122 | } | |
123 | ||
c4741804 | 124 | .row { |
947d0102 | 125 | margin: 0 !important; |
c4741804 RK |
126 | } |
127 | ||
383bfc83 | 128 | .main-col { |
c30745f3 | 129 | margin-left: $menu-width; |
c4741804 | 130 | width: calc(100% - #{$menu-width}); |
a6d5ff76 | 131 | outline: none; |
9bf9d2a5 | 132 | |
c30745f3 | 133 | .margin-content { |
d178b5c1 C |
134 | margin-left: $not-expanded-horizontal-margins; |
135 | margin-right: $not-expanded-horizontal-margins; | |
b34a444e | 136 | flex-grow: 1; |
c30745f3 C |
137 | } |
138 | ||
a949f676 K |
139 | my-top-menu-dropdown + .margin-content { |
140 | padding-top: $sub-menu-height + $sub-menu-margin-bottom; | |
141 | } | |
142 | ||
c30745f3 | 143 | .sub-menu { |
e66883b3 | 144 | background-color: pvar(--submenuColor); |
c30745f3 | 145 | width: 100%; |
ed5bb517 | 146 | height: $sub-menu-height; |
c30745f3 C |
147 | display: flex; |
148 | align-items: center; | |
d178b5c1 | 149 | padding-left: $not-expanded-horizontal-margins; |
22a16e36 | 150 | padding-right: $not-expanded-horizontal-margins; |
ed5bb517 | 151 | position: fixed; |
a949f676 K |
152 | z-index: #{z('header') - 1}; |
153 | ||
154 | & + .margin-content { | |
2045b572 | 155 | padding-top: $sub-menu-height + $sub-menu-margin-bottom; |
a949f676 | 156 | } |
c30745f3 C |
157 | } |
158 | ||
159 | // Override some properties if the main content is expanded (no menu on the left) | |
160 | &.expanded { | |
161 | margin-left: 0; | |
c4741804 | 162 | width: 100%; |
c30745f3 C |
163 | |
164 | .margin-content { | |
165 | margin-left: $expanded-horizontal-margins; | |
166 | margin-right: $expanded-horizontal-margins; | |
167 | } | |
168 | ||
169 | .sub-menu { | |
170 | padding-left: $expanded-horizontal-margins; | |
22a16e36 | 171 | padding-right: $expanded-horizontal-margins; |
c30745f3 | 172 | } |
602eb142 | 173 | } |
b15fe00f K |
174 | |
175 | &.lock-scroll .main-row > router-outlet + * { | |
176 | // Lock and hide body scrollbars | |
177 | position: fixed; | |
178 | ||
179 | // Lock and hide sub-menu scrollbars | |
180 | .sub-menu { | |
181 | overflow-x: hidden; | |
182 | } | |
183 | } | |
383bfc83 | 184 | } |
602eb142 | 185 | |
59aa1e5e | 186 | .title-page { |
ed5bb517 | 187 | opacity: 0.6; |
e66883b3 | 188 | color: pvar(--mainForegroundColor); |
59aa1e5e C |
189 | font-size: 16px; |
190 | display: inline-block; | |
191 | margin-right: 55px; | |
192 | font-weight: $font-semibold; | |
193 | @include disable-default-a-behaviour; | |
194 | ||
ed5bb517 K |
195 | border-bottom: 2px solid transparent; |
196 | ||
197 | &.title-page-single { | |
59aa1e5e C |
198 | margin-top: 30px; |
199 | margin-bottom: 25px; | |
200 | } | |
cadb46d8 | 201 | |
d6ed9ccc | 202 | &.active { |
ed5bb517 | 203 | border-bottom-color: pvar(--mainColor); |
d6ed9ccc RK |
204 | } |
205 | ||
206 | &.title-page-single { | |
207 | font-size: 125%; | |
208 | } | |
209 | ||
cadb46d8 | 210 | &:hover, &:active, &:focus { |
e66883b3 | 211 | color: pvar(--mainForegroundColor); |
04e0fc48 | 212 | } |
1952a538 | 213 | |
ed5bb517 K |
214 | &.active, &:hover, &:active, &:focus, &.title-page-single { |
215 | opacity: 1; | |
216 | outline: 0px hidden !important; | |
217 | } | |
218 | ||
ece3029b | 219 | @media screen and (max-width: $mobile-view) { |
2c3abc4f | 220 | margin-right: 15px; |
1952a538 | 221 | } |
cadb46d8 | 222 | } |
04e0fc48 | 223 | |
482fa503 RK |
224 | .title-page-about, |
225 | .title-page-settings { | |
e61151b0 | 226 | white-space: nowrap; |
482fa503 | 227 | font-size: 115%; |
482fa503 RK |
228 | } |
229 | ||
cd83ea1b C |
230 | .admin-sub-header { |
231 | display: flex; | |
232 | align-items: center; | |
233 | margin-bottom: 30px; | |
234 | ||
08c1efbe | 235 | .form-sub-title { |
cd83ea1b C |
236 | flex-grow: 1; |
237 | } | |
65b247dd C |
238 | |
239 | .admin-sub-nav a { | |
240 | @include disable-default-a-behaviour; | |
241 | ||
242 | font-size: 16px; | |
e66883b3 | 243 | color: pvar(--mainForegroundColor); |
65b247dd C |
244 | padding: 5px 15px; |
245 | border-radius: 0.25rem; | |
ed5bb517 K |
246 | font-weight: $font-semibold; |
247 | opacity: 0.6; | |
65b247dd C |
248 | |
249 | &.active { | |
65b247dd | 250 | background-color: #f0f0f0; |
ed5bb517 K |
251 | } |
252 | ||
253 | &.active, &:hover, &:active, &:focus { | |
254 | opacity: 1; | |
65b247dd C |
255 | } |
256 | } | |
cd83ea1b C |
257 | } |
258 | ||
08c1efbe | 259 | .form-sub-title { |
04e0fc48 C |
260 | font-size: 20px; |
261 | font-weight: bold; | |
59aa1e5e C |
262 | } |
263 | ||
315cc0cc C |
264 | @keyframes spin { |
265 | from { transform: scale(1) rotate(0deg);} | |
266 | to { transform: scale(1) rotate(360deg);} | |
267 | } | |
268 | ||
fb4fd623 C |
269 | // In tables, don't have a hover different background |
270 | table { | |
271 | .action-button-edit, .action-button-delete { | |
272 | &:hover, &:active, &:focus, &[disabled], &.disabled { | |
457bb213 | 273 | background-color: $grey-background-color !important; |
fb4fd623 C |
274 | } |
275 | } | |
276 | } | |
277 | ||
2d3741d6 C |
278 | .no-results { |
279 | height: 40vh; | |
22839330 RK |
280 | max-height: 500px; |
281 | ||
2d3741d6 C |
282 | display: flex; |
283 | align-items: center; | |
284 | justify-content: center; | |
285 | font-size: 16px; | |
286 | font-weight: $font-semibold; | |
287 | } | |
288 | ||
eb7c7a51 RK |
289 | .dropdown-item { |
290 | @include dropdown-with-icon-item; | |
291 | ||
292 | my-global-icon { | |
293 | width: 22px; | |
294 | height: 22px; | |
295 | } | |
296 | } | |
297 | ||
45e0d669 RK |
298 | .anchor { |
299 | position: relative; | |
300 | top: #{-($header-height + 20px)}; | |
301 | } | |
302 | ||
165ee292 | 303 | @media screen and (max-width: #{breakpoint(xxl)}) { |
2303a803 RK |
304 | .main-col { |
305 | &.expanded { | |
306 | .margin-content { | |
307 | margin-left: $expanded-horizontal-margins/2; | |
308 | margin-right: $expanded-horizontal-margins/2; | |
309 | } | |
310 | } | |
311 | } | |
312 | } | |
313 | ||
165ee292 | 314 | @media screen and (max-width: #{breakpoint(lg)}) { |
1def3c52 | 315 | /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */ |
1f788f20 | 316 | .main-col { |
1def3c52 RK |
317 | &, &.expanded { |
318 | .margin-content { | |
319 | margin-left: $expanded-horizontal-margins/3; | |
320 | margin-right: $expanded-horizontal-margins/3; | |
321 | } | |
dd778941 | 322 | |
1def3c52 RK |
323 | .sub-menu { |
324 | padding-left: 50px; | |
325 | padding-right: 50px; | |
22a16e36 | 326 | |
1def3c52 RK |
327 | .title-page { |
328 | font-size: 17px; | |
329 | } | |
dd778941 | 330 | } |
1f788f20 C |
331 | } |
332 | } | |
333 | } | |
334 | ||
1f6d2449 | 335 | @media screen and (min-width: $mobile-view) and (max-width: $small-view) { |
ac6ac4e2 | 336 | .main-col { |
337 | width: 100%; | |
338 | } | |
339 | } | |
340 | ||
8ff3f883 | 341 | @media screen and (max-width: $small-view) { |
20206dfb C |
342 | .main-col { |
343 | margin-left: 0; | |
344 | ||
345 | &, &.expanded { | |
346 | .margin-content { | |
6693df9d C |
347 | margin-left: 15px; |
348 | margin-right: 15px; | |
20206dfb C |
349 | } |
350 | ||
351 | .sub-menu { | |
2c3abc4f | 352 | width: 100vw; |
dd778941 | 353 | padding-left: 15px; |
22a16e36 | 354 | padding-right: 15px; |
4682468d | 355 | margin-bottom: $sub-menu-margin-bottom-small-view; |
8544d8f5 | 356 | overflow-x: auto; |
20206dfb C |
357 | } |
358 | ||
7a03209d K |
359 | .admin-sub-header { |
360 | @include admin-sub-header-responsive(15px*2); | |
361 | } | |
362 | ||
b15fe00f K |
363 | my-markdown-textarea { |
364 | .root { | |
365 | max-width: 100% !important; | |
366 | } | |
367 | } | |
368 | ||
4682468d K |
369 | input[type=text], |
370 | input[type=password], | |
371 | input[type=email], | |
c285180a | 372 | textarea, |
373 | .peertube-select-container { | |
225a7682 | 374 | flex-grow: 1; |
20206dfb | 375 | } |
25a42e29 RK |
376 | |
377 | .caption input[type=text] { | |
378 | width: unset !important; | |
379 | flex-grow: 1; | |
380 | } | |
20206dfb C |
381 | } |
382 | } | |
457bb213 | 383 | } |
7a03209d | 384 | |
165ee292 | 385 | // overflow-databale responsive rules |
c2a89b70 | 386 | @media screen and (min-width: #{breakpoint(lg)}) { |
165ee292 K |
387 | .main-col { |
388 | &.expanded { | |
c2a89b70 | 389 | @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/2, $mobile-paginator: false); |
165ee292 K |
390 | } |
391 | ||
392 | &:not(.expanded) { | |
c2a89b70 | 393 | @include overflow-datatable(breakpoint(lg), $not-expanded-horizontal-margins + $menu-width/2, $mobile-paginator: false); |
165ee292 K |
394 | } |
395 | } | |
396 | } | |
397 | ||
398 | @media screen and (max-width: #{breakpoint(lg)}) { | |
399 | .main-col { | |
400 | &.expanded { | |
401 | @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/3); | |
402 | } | |
403 | ||
404 | &:not(.expanded) { | |
c2a89b70 | 405 | @include overflow-datatable(breakpoint(lg), $expanded-horizontal-margins/3 + $menu-width/2); |
165ee292 K |
406 | } |
407 | } | |
408 | } | |
409 | ||
410 | @media screen and (max-width: $small-view) { | |
411 | .main-col { | |
412 | &:not(.expanded), | |
413 | &.expanded { | |
414 | @include overflow-datatable(breakpoint(lg), 15px); | |
415 | } | |
416 | } | |
417 | } | |
418 | ||
7a03209d K |
419 | @media screen and (min-width: $small-view) and (max-width: #{$small-view + $menu-width}) { |
420 | .main-col { | |
421 | &:not(.expanded) { | |
422 | .admin-sub-header { | |
c2a89b70 | 423 | @include admin-sub-header-responsive($expanded-horizontal-margins/3 + $menu-width/2); |
7a03209d | 424 | } |
8544d8f5 K |
425 | |
426 | .sub-menu { | |
427 | overflow-x: auto; | |
428 | width: calc(100vw - #{$menu-width}); | |
429 | } | |
7a03209d K |
430 | } |
431 | } | |
432 | } |