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