]>
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; | |
27bc9586 C |
68 | |
69 | // Fix "reboot" style that set text-align: left | |
70 | text-align: start; | |
b33f657c C |
71 | } |
72 | ||
52cc0d54 | 73 | ::selection { |
e66883b3 RK |
74 | color: pvar(--mainBackgroundColor); |
75 | background-color: pvar(--mainHoverColor); | |
52cc0d54 RK |
76 | } |
77 | ||
2ca72354 | 78 | noscript, |
73e09f27 | 79 | #incompatible-browser { |
2ca72354 CE |
80 | display: block; |
81 | font-size: 1.2rem; | |
82 | max-width: 600px; | |
83 | margin: 1rem auto; | |
73e09f27 C |
84 | } |
85 | ||
07fa4c97 C |
86 | strong { |
87 | font-weight: $font-semibold; | |
88 | } | |
89 | ||
383bfc83 C |
90 | input.readonly { |
91 | /* Force blank on readonly inputs */ | |
e66883b3 | 92 | background-color: pvar(--inputBackgroundColor) !important; |
0ac5edd9 | 93 | } |
94 | ||
931d3430 C |
95 | input, |
96 | textarea { | |
63347a0f | 97 | outline: none; |
84065945 | 98 | color: pvar(--inputForegroundColor); |
63347a0f C |
99 | } |
100 | ||
adcf9212 | 101 | button { |
adcf9212 | 102 | @include disable-outline; |
931d3430 C |
103 | |
104 | background: unset; | |
adcf9212 CC |
105 | } |
106 | ||
d235f6b0 C |
107 | label { |
108 | font-weight: $font-bold; | |
109 | font-size: 15px; | |
09223546 C |
110 | } |
111 | ||
fd9c3c8d | 112 | code { |
113 | background-color: pvar(--greyBackgroundColor); | |
a742b4b0 | 114 | color: pvar(--greyForegroundColor); |
fd9c3c8d | 115 | border-radius: 3px; |
116 | padding: .2em .4em; | |
117 | margin: auto .4em; | |
118 | font-size: 75%; | |
119 | display: inline-block; | |
120 | vertical-align: middle; | |
121 | } | |
122 | ||
a2b817d3 C |
123 | .form-error { |
124 | display: block; | |
41a676db | 125 | color: $red; |
a2b817d3 C |
126 | margin-top: 5px; |
127 | } | |
128 | ||
931d3430 | 129 | .input-error, |
f8b530e0 | 130 | my-input-toggle-hidden ::ng-deep input { |
41a676db | 131 | border-color: $red !important; |
a2b817d3 C |
132 | } |
133 | ||
931d3430 | 134 | .full-width { |
2d9fea16 | 135 | width: 100%; |
27bc9586 | 136 | margin: 0 auto; |
2d9fea16 RK |
137 | max-width: initial; |
138 | } | |
139 | ||
383bfc83 | 140 | .glyphicon-black { |
931d3430 | 141 | color: #000; |
383bfc83 C |
142 | } |
143 | ||
c4741804 | 144 | .row { |
947d0102 | 145 | margin: 0 !important; |
c4741804 RK |
146 | } |
147 | ||
383bfc83 | 148 | .main-col { |
27bc9586 C |
149 | @include margin-left($menu-width); |
150 | ||
c4741804 | 151 | width: calc(100% - #{$menu-width}); |
a6d5ff76 | 152 | outline: none; |
9bf9d2a5 | 153 | |
c30745f3 | 154 | .margin-content { |
27bc9586 | 155 | margin: 0 pvar(--horizontalMarginContent); |
b34a444e | 156 | flex-grow: 1; |
c30745f3 C |
157 | } |
158 | ||
159 | .sub-menu { | |
218f730c | 160 | background-color: pvar(--submenuBackgroundColor); |
c30745f3 | 161 | width: 100%; |
c30745f3 C |
162 | display: flex; |
163 | align-items: center; | |
27bc9586 | 164 | padding: 0 pvar(--horizontalMarginContent); |
7034b3c9 | 165 | height: $sub-menu-height; |
166 | margin-bottom: $sub-menu-margin-bottom; | |
d7941370 | 167 | overflow-x: auto; |
ae2dd046 C |
168 | |
169 | &.sub-menu-fixed { | |
ae2dd046 | 170 | position: fixed; |
d6eace77 | 171 | z-index: #{z('sub-menu') - 1}; |
d7941370 | 172 | max-width: pvar(--mainColWidth); |
a949f676 | 173 | } |
c30745f3 C |
174 | } |
175 | ||
7034b3c9 | 176 | // Use an appropriate offset top when sub-menu fixed |
177 | .margin-content.offset-content { | |
178 | padding-top: $sub-menu-height + $sub-menu-margin-bottom; | |
179 | } | |
180 | ||
c30745f3 C |
181 | // Override some properties if the main content is expanded (no menu on the left) |
182 | &.expanded { | |
d7941370 C |
183 | --horizontalMarginContent: #{$expanded-horizontal-margins}; |
184 | --mainColWidth: 100vw; | |
185 | ||
27bc9586 | 186 | @include margin-left(0); |
c4741804 | 187 | width: 100%; |
602eb142 | 188 | } |
b15fe00f | 189 | |
931d3430 | 190 | &.lock-scroll .main-row > router-outlet + * { /* stylelint-disable-line selector-max-compound-selectors */ |
b15fe00f K |
191 | // Lock and hide body scrollbars |
192 | position: fixed; | |
193 | ||
194 | // Lock and hide sub-menu scrollbars | |
931d3430 | 195 | .sub-menu { /* stylelint-disable-line */ |
b15fe00f K |
196 | overflow-x: hidden; |
197 | } | |
198 | } | |
383bfc83 | 199 | } |
602eb142 | 200 | |
59aa1e5e | 201 | .title-page { |
931d3430 | 202 | @include disable-default-a-behaviour; |
27bc9586 | 203 | @include margin-right(55px); |
931d3430 | 204 | |
ed5bb517 | 205 | opacity: 0.6; |
e66883b3 | 206 | color: pvar(--mainForegroundColor); |
59aa1e5e C |
207 | font-size: 16px; |
208 | display: inline-block; | |
59aa1e5e | 209 | font-weight: $font-semibold; |
ed5bb517 K |
210 | border-bottom: 2px solid transparent; |
211 | ||
212 | &.title-page-single { | |
59aa1e5e C |
213 | margin-top: 30px; |
214 | margin-bottom: 25px; | |
215 | } | |
cadb46d8 | 216 | |
d6ed9ccc | 217 | &.active { |
ed5bb517 | 218 | border-bottom-color: pvar(--mainColor); |
d6ed9ccc RK |
219 | } |
220 | ||
221 | &.title-page-single { | |
222 | font-size: 125%; | |
223 | } | |
224 | ||
931d3430 C |
225 | &:hover, |
226 | &:active, | |
227 | &:focus { | |
e66883b3 | 228 | color: pvar(--mainForegroundColor); |
04e0fc48 | 229 | } |
1952a538 | 230 | |
931d3430 C |
231 | &.active, |
232 | &:hover, | |
233 | &:active, | |
234 | &:focus, | |
235 | &.title-page-single { | |
ed5bb517 | 236 | opacity: 1; |
931d3430 | 237 | outline: 0 hidden !important; |
ed5bb517 K |
238 | } |
239 | ||
ece3029b | 240 | @media screen and (max-width: $mobile-view) { |
27bc9586 | 241 | @include margin-left(15px); |
1952a538 | 242 | } |
cadb46d8 | 243 | } |
04e0fc48 | 244 | |
482fa503 RK |
245 | .title-page-about, |
246 | .title-page-settings { | |
e61151b0 | 247 | white-space: nowrap; |
482fa503 | 248 | font-size: 115%; |
482fa503 RK |
249 | } |
250 | ||
cd83ea1b C |
251 | .admin-sub-header { |
252 | display: flex; | |
253 | align-items: center; | |
254 | margin-bottom: 30px; | |
255 | ||
08c1efbe | 256 | .form-sub-title { |
cd83ea1b C |
257 | flex-grow: 1; |
258 | } | |
65b247dd C |
259 | |
260 | .admin-sub-nav a { | |
261 | @include disable-default-a-behaviour; | |
262 | ||
263 | font-size: 16px; | |
e66883b3 | 264 | color: pvar(--mainForegroundColor); |
65b247dd C |
265 | padding: 5px 15px; |
266 | border-radius: 0.25rem; | |
ed5bb517 K |
267 | font-weight: $font-semibold; |
268 | opacity: 0.6; | |
65b247dd C |
269 | |
270 | &.active { | |
218f730c | 271 | background-color: pvar(--submenuBackgroundColor); |
ed5bb517 K |
272 | } |
273 | ||
931d3430 C |
274 | &.active, |
275 | &:hover, | |
276 | &:active, | |
277 | &:focus { | |
ed5bb517 | 278 | opacity: 1; |
65b247dd C |
279 | } |
280 | } | |
cd83ea1b C |
281 | } |
282 | ||
08c1efbe | 283 | .form-sub-title { |
04e0fc48 C |
284 | font-size: 20px; |
285 | font-weight: bold; | |
59aa1e5e C |
286 | } |
287 | ||
fb4fd623 C |
288 | // In tables, don't have a hover different background |
289 | table { | |
931d3430 C |
290 | .action-button-edit, |
291 | .action-button-delete { | |
292 | &:hover, | |
293 | &:active, | |
294 | &:focus, | |
295 | &[disabled], | |
296 | &.disabled { | |
457bb213 | 297 | background-color: $grey-background-color !important; |
fb4fd623 C |
298 | } |
299 | } | |
300 | } | |
301 | ||
2d3741d6 C |
302 | .no-results { |
303 | height: 40vh; | |
22839330 RK |
304 | max-height: 500px; |
305 | ||
2d3741d6 | 306 | display: flex; |
82f443de | 307 | flex-direction: column; |
2d3741d6 C |
308 | align-items: center; |
309 | justify-content: center; | |
310 | font-size: 16px; | |
311 | font-weight: $font-semibold; | |
312 | } | |
313 | ||
eb7c7a51 RK |
314 | .dropdown-item { |
315 | @include dropdown-with-icon-item; | |
316 | ||
317 | my-global-icon { | |
318 | width: 22px; | |
319 | height: 22px; | |
320 | } | |
321 | } | |
322 | ||
7034b3c9 | 323 | /* offsetTop for scrollToAnchor */ |
324 | ||
45e0d669 RK |
325 | .anchor { |
326 | position: relative; | |
7034b3c9 | 327 | top: #{-($header-height + 20px)}; |
328 | } | |
329 | ||
330 | .offset-content { // if sub-menu fixed | |
331 | .anchor { | |
332 | top: #{-($header-height + $sub-menu-height + 20px)}; | |
333 | } | |
45e0d669 RK |
334 | } |
335 | ||
c29039e7 C |
336 | .form-group-description { |
337 | @extend .text-muted; | |
338 | ||
339 | font-size: 90%; | |
340 | margin-top: 10px; | |
341 | } | |
342 | ||
4872e946 C |
343 | ngx-loading-bar { |
344 | z-index: z(header) + 1 !important; | |
345 | } | |
346 | ||
165ee292 | 347 | @media screen and (max-width: #{breakpoint(xxl)}) { |
0f7407d9 | 348 | .main-col { |
931d3430 C |
349 | --horizontalMarginContent: #{$not-expanded-horizontal-margins / 2}; |
350 | --videosHorizontalMarginContent: 30px; | |
0f7407d9 C |
351 | |
352 | &.expanded { | |
353 | --horizontalMarginContent: #{$expanded-horizontal-margins / 2}; | |
354 | } | |
2303a803 RK |
355 | } |
356 | } | |
357 | ||
165ee292 | 358 | @media screen and (max-width: #{breakpoint(lg)}) { |
0a6785d1 C |
359 | .main-col { |
360 | --videosHorizontalMarginContent: #{pvar(--horizontalMarginContent)}; | |
361 | } | |
362 | ||
1def3c52 | 363 | /* the following applies from 500px to 900px and is partially overriden from 500px to 800px by changes below to $small-view */ |
d7941370 C |
364 | .main-col, |
365 | .main-col.expanded { | |
0f7407d9 | 366 | --horizontalMarginContent: #{$expanded-horizontal-margins / 3}; |
dd778941 | 367 | |
d7941370 | 368 | .sub-menu { |
27bc9586 | 369 | padding: 0 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 | |
27bc9586 | 389 | @include margin-left(0); |
7a03209d | 390 | |
d7941370 C |
391 | .sub-menu { |
392 | width: 100vw; | |
27bc9586 | 393 | padding: 0 15px; |
d7941370 C |
394 | margin-bottom: $sub-menu-margin-bottom-small-view; |
395 | overflow-x: auto; | |
165ee292 K |
396 | } |
397 | ||
d7941370 C |
398 | // Use an appropriate offset top when sub-menu fixed |
399 | .margin-content.offset-content { | |
400 | padding-top: $sub-menu-height + $sub-menu-margin-bottom-small-view; | |
165ee292 | 401 | } |
165ee292 | 402 | |
d7941370 | 403 | .admin-sub-header { |
bc4c9cc1 C |
404 | flex-direction: column; |
405 | ||
406 | .form-sub-title { | |
27bc9586 C |
407 | @include margin-right(0 !important); |
408 | ||
bc4c9cc1 C |
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 { | |
27bc9586 | 422 | @include margin-left(5px); |
bc4c9cc1 C |
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 | } |