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