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