Commit | Line | Data |
---|---|---|
8a52619a | 1 | /* default styling for all boxes */ |
bb6ef47e MW |
2 | .box { |
3 | box-sizing: border-box; | |
4 | } | |
5 | ||
6 | .boxImage { | |
7 | img { | |
8 | max-width: 100%; | |
9 | } | |
10 | } | |
11 | ||
12 | .boxTitle { | |
5908f54f | 13 | @include wcfFontHeadline; |
8a52619a | 14 | |
bb6ef47e | 15 | & + .boxContent { |
95961bdf MW |
16 | margin-top: 20px; |
17 | } | |
8a52619a | 18 | |
95961bdf MW |
19 | .badge { |
20 | top: -2px; | |
bb6ef47e MW |
21 | } |
22 | } | |
23 | ||
24 | .boxContent { | |
0b6161c6 MW |
25 | & + .boxContent { |
26 | margin-top: 20px; | |
27 | } | |
28 | } | |
29 | ||
30 | .boxContent { | |
bb6ef47e | 31 | & + .boxTitle { |
b4e94f83 | 32 | margin-top: 30px; |
bb6ef47e MW |
33 | } |
34 | } | |
35 | ||
0b6161c6 MW |
36 | .boxContentSeparator { |
37 | background: $wcfContentBorderInner; | |
38 | border: 0; | |
39 | height: 1px; | |
40 | margin: 30px auto; | |
41 | width: 60%; | |
42 | } | |
43 | ||
bb6ef47e MW |
44 | /* styling for boxes in <hero> position */ |
45 | .boxesHero { | |
fd94097c MW |
46 | .boxContainer { |
47 | @include screen-md-down { | |
48 | padding: 40px 0; | |
49 | } | |
8a52619a | 50 | |
fd94097c MW |
51 | @include screen-lg { |
52 | padding: 60px 0; | |
53 | } | |
54 | } | |
8a52619a | 55 | |
bb6ef47e | 56 | .box { |
bb6ef47e | 57 | text-align: center; |
8a52619a | 58 | |
fd94097c MW |
59 | &:not(:last-child) { |
60 | @include screen-md-down { | |
61 | margin-bottom: 40px; | |
62 | } | |
8a52619a | 63 | |
fd94097c MW |
64 | @include screen-lg { |
65 | margin-bottom: 60px; | |
66 | } | |
c5dd767e | 67 | } |
bb6ef47e | 68 | } |
8a52619a | 69 | |
bb6ef47e | 70 | .boxTitle { |
5908f54f | 71 | @include wcfFontTitle; |
bb6ef47e | 72 | } |
8a52619a | 73 | |
bb6ef47e MW |
74 | .boxWithImage { |
75 | display: flex; | |
76 | flex-wrap: wrap; | |
8a52619a | 77 | |
bb6ef47e MW |
78 | .boxImage, |
79 | .boxTitle, | |
80 | .boxContent { | |
81 | flex: 0 0 100%; | |
82 | } | |
8a52619a | 83 | |
bb6ef47e | 84 | .boxImage { |
fd94097c MW |
85 | align-items: center; |
86 | display: flex; | |
87 | justify-content: center; | |
88 | max-height: 750px; | |
bb6ef47e | 89 | order: 3; |
fd94097c | 90 | overflow: hidden; |
8a52619a | 91 | |
fd94097c MW |
92 | @include screen-md-down { |
93 | margin-top: 20px; | |
94 | } | |
8a52619a | 95 | |
fd94097c MW |
96 | @include screen-lg { |
97 | margin-top: 30px; | |
98 | } | |
bb6ef47e MW |
99 | } |
100 | } | |
101 | } | |
102 | ||
103 | /* styling for boxes in <headerBoxes> position */ | |
104 | .boxesHeaderBoxes { | |
0b6161c6 MW |
105 | background-color: $wcfFooterBoxBackground; |
106 | color: $wcfFooterBoxText; | |
8a52619a | 107 | |
0b6161c6 MW |
108 | a { |
109 | color: $wcfFooterBoxLink; | |
8a52619a | 110 | |
0b6161c6 MW |
111 | &:hover { |
112 | color: $wcfFooterBoxLinkActive; | |
0b6161c6 MW |
113 | } |
114 | } | |
8a52619a | 115 | |
0b6161c6 | 116 | .icon { |
8b59f5ea | 117 | color: $wcfFooterBoxText; |
0b6161c6 | 118 | } |
8a52619a | 119 | |
c734a302 | 120 | .boxContainer { |
fd94097c | 121 | @include screen-sm-up { |
0b6161c6 MW |
122 | display: flex; |
123 | flex-wrap: wrap; | |
fd94097c | 124 | } |
8a52619a | 125 | |
fd94097c | 126 | @include screen-md-down { |
0b6161c6 | 127 | padding: 40px 0; |
fd94097c | 128 | margin-bottom: -40px; |
7102d090 AE |
129 | margin-left: -10px; |
130 | margin-right: -10px; | |
fd94097c | 131 | } |
8a52619a | 132 | |
fd94097c MW |
133 | @include screen-lg { |
134 | padding: 60px 0; | |
135 | margin-bottom: -60px; | |
7102d090 AE |
136 | margin-left: -15px; |
137 | margin-right: -15px; | |
0b6161c6 | 138 | } |
bb6ef47e | 139 | } |
8a52619a | 140 | |
bb6ef47e | 141 | .box { |
95961bdf | 142 | overflow: hidden; |
fd94097c MW |
143 | padding-left: 15px; |
144 | padding-right: 15px; | |
8a52619a | 145 | |
fd94097c MW |
146 | @include screen-md-down { |
147 | margin-bottom: 40px; | |
148 | } | |
8a52619a | 149 | |
fd94097c MW |
150 | @include screen-sm-md { |
151 | flex: 0 0 50%; | |
ce280017 | 152 | max-width: 50%; |
8a52619a | 153 | |
fd94097c MW |
154 | &.boxFullWidth { |
155 | flex-basis: 100%; | |
2003a082 | 156 | max-width: 100%; |
fd94097c | 157 | } |
8a52619a | 158 | |
fd94097c MW |
159 | /* one item */ |
160 | &:first-child:nth-last-child(1) { | |
161 | flex-basis: 100%; | |
2003a082 | 162 | max-width: 100%; |
0b6161c6 | 163 | } |
bb6ef47e | 164 | } |
8a52619a | 165 | |
fd94097c | 166 | @include screen-lg { |
0b6161c6 | 167 | flex: 0 0 25%; |
fd94097c | 168 | margin-bottom: 60px; |
ce280017 | 169 | max-width: 25%; |
8a52619a | 170 | |
0b6161c6 MW |
171 | &.boxFullWidth { |
172 | flex-basis: 100%; | |
2003a082 | 173 | max-width: 100%; |
0b6161c6 | 174 | } |
8a52619a | 175 | |
0b6161c6 MW |
176 | /* one item */ |
177 | &:first-child:nth-last-child(1) { | |
178 | flex-basis: 100%; | |
2003a082 | 179 | max-width: 100%; |
0b6161c6 | 180 | } |
8a52619a | 181 | |
0b6161c6 MW |
182 | /* two items */ |
183 | &:first-child:nth-last-child(2), | |
184 | &:first-child:nth-last-child(2) ~ .box { | |
185 | flex-basis: 50%; | |
ce280017 | 186 | max-width: 50%; |
0b6161c6 | 187 | } |
8a52619a | 188 | |
0b6161c6 MW |
189 | /* three items */ |
190 | &:first-child:nth-last-child(3), | |
191 | &:first-child:nth-last-child(3) ~ .box { | |
192 | flex-basis: 33.3333%; | |
ce280017 | 193 | max-width: 33.3333%; |
0b6161c6 | 194 | } |
937f57cf | 195 | } |
bb6ef47e | 196 | } |
8a52619a | 197 | |
bb6ef47e | 198 | .boxImage { |
fd94097c MW |
199 | align-items: center; |
200 | display: flex; | |
201 | justify-content: center; | |
202 | margin-bottom: 20px; | |
203 | max-height: 100px; | |
204 | overflow: hidden; | |
bb6ef47e MW |
205 | } |
206 | } | |
207 | ||
208 | /* styling for boxes in <top>/<bottom> position */ | |
209 | .boxesTop, | |
210 | .boxesBottom { | |
bb6ef47e | 211 | .box { |
fd94097c MW |
212 | @include screen-md-down { |
213 | margin-bottom: 40px; | |
214 | margin-top: 40px; | |
215 | } | |
8a52619a | 216 | |
fd94097c MW |
217 | @include screen-lg { |
218 | margin-bottom: 60px; | |
219 | margin-top: 60px; | |
220 | } | |
bb6ef47e | 221 | } |
8a52619a | 222 | |
10ff3d63 MW |
223 | .boxTitle { |
224 | color: $wcfContentHeadlineText; | |
8a52619a | 225 | |
5908f54f | 226 | @include wcfFontSection; |
8a52619a | 227 | |
10ff3d63 MW |
228 | a { |
229 | color: $wcfContentHeadlineLink; | |
8a52619a | 230 | |
10ff3d63 MW |
231 | &:hover { |
232 | color: $wcfContentHeadlineLinkActive; | |
233 | } | |
234 | } | |
235 | } | |
8a52619a | 236 | |
fd94097c MW |
237 | @include screen-xs { |
238 | .boxImage { | |
239 | align-items: center; | |
240 | display: flex; | |
241 | justify-content: center; | |
242 | margin-bottom: 20px; | |
243 | max-height: 100px; | |
244 | overflow: hidden; | |
bb6ef47e MW |
245 | } |
246 | } | |
8a52619a | 247 | |
fd94097c MW |
248 | @include screen-sm-up { |
249 | .boxImage { | |
250 | width: 30%; | |
251 | } | |
8a52619a | 252 | |
fd94097c MW |
253 | .boxWithImage { |
254 | @include clearfix; | |
8a52619a | 255 | |
fd94097c MW |
256 | &:nth-child(odd) { |
257 | .boxImage { | |
258 | float: left; | |
259 | } | |
fd94097c | 260 | } |
8a52619a | 261 | |
fd94097c MW |
262 | &:nth-child(even) { |
263 | .boxImage { | |
264 | float: right; | |
265 | } | |
6eadc178 MW |
266 | } |
267 | } | |
268 | } | |
8a52619a | 269 | |
6eadc178 MW |
270 | @include screen-sm-md { |
271 | .boxWithImage { | |
272 | &:nth-child(odd) { | |
273 | .boxImage { | |
274 | margin: 0 10px 10px 0; | |
275 | } | |
276 | } | |
8a52619a | 277 | |
6eadc178 MW |
278 | &:nth-child(even) { |
279 | .boxImage { | |
280 | margin: 0 0 10px 10px; | |
281 | } | |
282 | } | |
283 | } | |
284 | } | |
8a52619a | 285 | |
6eadc178 MW |
286 | @include screen-lg { |
287 | .boxWithImage { | |
288 | &:nth-child(odd) { | |
289 | .boxImage { | |
290 | margin: 0 20px 20px 0; | |
291 | } | |
292 | } | |
8a52619a | 293 | |
6eadc178 MW |
294 | &:nth-child(even) { |
295 | .boxImage { | |
296 | margin: 0 0 20px 20px; | |
fd94097c MW |
297 | } |
298 | } | |
299 | } | |
c5dd767e | 300 | } |
bb6ef47e MW |
301 | } |
302 | ||
303 | .boxesTop { | |
304 | border-bottom: 1px solid $wcfContentBorderInner; | |
c5dd767e MS |
305 | } |
306 | ||
bb6ef47e MW |
307 | .boxesBottom { |
308 | border-top: 1px solid $wcfContentBorderInner; | |
309 | } | |
310 | ||
311 | /* styling for boxes in <sidebarLeft>/<sidebarRight> position */ | |
312 | .boxesSidebarLeft, | |
313 | .boxesSidebarRight { | |
314 | color: $wcfSidebarText; | |
8a52619a | 315 | |
bb6ef47e MW |
316 | a { |
317 | color: $wcfSidebarLink; | |
8a52619a | 318 | |
bb6ef47e MW |
319 | &:hover { |
320 | color: $wcfSidebarLinkActive; | |
bb6ef47e MW |
321 | } |
322 | } | |
8a52619a | 323 | |
e4c07d67 AE |
324 | > .boxContainer { |
325 | @include screen-sm { | |
326 | -webkit-columns: 2; | |
327 | -moz-columns: 2; | |
328 | columns: 2; | |
329 | } | |
8a52619a | 330 | |
e4c07d67 AE |
331 | @include screen-md { |
332 | -webkit-columns: 3; | |
333 | -moz-columns: 3; | |
334 | columns: 3; | |
335 | } | |
8a52619a | 336 | |
e4c07d67 | 337 | @include screen-sm-md { |
fdf34eae | 338 | margin-bottom: -30px; |
8a52619a | 339 | |
e4c07d67 AE |
340 | -webkit-column-gap: 30px; |
341 | -moz-column-gap: 30px; | |
342 | column-gap: 30px; | |
8a52619a | 343 | |
e4c07d67 AE |
344 | > .box { |
345 | /* Sections should never be split, but Firefox, IE and Edge don't seem | |
346 | to care about this despite advertising the support for it. We can work | |
347 | around this by using `overflow: hidden` which magically does the job, | |
348 | but doesn't affect Chrome which properly breaks anyway. */ | |
349 | overflow: hidden; /* Fix for Firefox, IE and Edge */ | |
8a52619a | 350 | |
e4c07d67 | 351 | // WebKit fix |
fdf34eae AE |
352 | background-clip: padding-box; |
353 | border-bottom: 30px solid transparent; | |
354 | display: block; | |
355 | margin: 0 !important; | |
e4c07d67 | 356 | width: 100%; |
8a52619a | 357 | |
e4c07d67 AE |
358 | -webkit-column-break-inside: avoid; /* Chrome, Safari, Opera */ |
359 | page-break-inside: avoid; /* Firefox */ | |
360 | break-inside: avoid; /* IE 10+ */ | |
361 | } | |
362 | } | |
363 | } | |
8a52619a | 364 | |
8b59f5ea MW |
365 | .icon { |
366 | color: $wcfSidebarText; | |
367 | } | |
8a52619a | 368 | |
bb6ef47e MW |
369 | small, |
370 | .dimmed { | |
371 | color: $wcfSidebarDimmedText; | |
8a52619a | 372 | |
bb6ef47e MW |
373 | a { |
374 | color: $wcfSidebarDimmedLink; | |
8a52619a | 375 | |
bb6ef47e MW |
376 | &:hover { |
377 | color: $wcfSidebarDimmedLinkActive; | |
378 | } | |
379 | } | |
380 | } | |
8a52619a | 381 | |
e9f3957f | 382 | .boxTitle { |
d3925b67 | 383 | color: $wcfSidebarHeadlineText; |
8a52619a | 384 | |
d3925b67 MW |
385 | a { |
386 | color: $wcfSidebarHeadlineLink; | |
8a52619a | 387 | |
d3925b67 MW |
388 | &:hover { |
389 | color: $wcfSidebarHeadlineLinkActive; | |
d3925b67 | 390 | } |
e9f3957f MW |
391 | } |
392 | } | |
8a52619a | 393 | |
bb6ef47e | 394 | .box { |
0e8421c9 MW |
395 | &:not(.boxBorderless) { |
396 | background-color: $wcfSidebarBackground; | |
8a52619a | 397 | |
f216765b AE |
398 | @include screen-md-down { |
399 | padding: 20px 10px; | |
8a52619a | 400 | |
63e2f52f | 401 | .boxMenu { |
f216765b AE |
402 | margin-left: -10px; |
403 | margin-right: -10px; | |
63e2f52f AE |
404 | } |
405 | } | |
8a52619a | 406 | |
f216765b AE |
407 | @include screen-lg { |
408 | padding: 20px; | |
8a52619a | 409 | |
63e2f52f | 410 | .boxMenu { |
f216765b AE |
411 | margin-left: -20px; |
412 | margin-right: -20px; | |
63e2f52f | 413 | } |
0e8421c9 MW |
414 | } |
415 | } | |
8a52619a | 416 | |
bb6ef47e | 417 | &:not(:first-child) { |
95961bdf | 418 | margin-top: 30px; |
bb6ef47e | 419 | } |
8a52619a | 420 | |
77fc8c83 MW |
421 | &.boxError, |
422 | &.boxInfo, | |
423 | &.boxSuccess, | |
424 | &.boxWarning { | |
425 | a:not(.button) { | |
426 | @include wcfFontBold; | |
8a52619a | 427 | |
77fc8c83 MW |
428 | &:hover { |
429 | text-decoration: underline; | |
430 | } | |
431 | } | |
432 | } | |
8a52619a | 433 | |
487db634 MW |
434 | &.boxError { |
435 | background-color: $wcfStatusErrorBackground; | |
436 | color: $wcfStatusErrorText; | |
8a52619a | 437 | |
77fc8c83 MW |
438 | a:not(.button) { |
439 | color: $wcfStatusErrorLink; | |
8a52619a | 440 | |
77fc8c83 MW |
441 | &:hover { |
442 | color: $wcfStatusErrorLinkActive; | |
443 | } | |
444 | } | |
487db634 | 445 | } |
8a52619a | 446 | |
487db634 MW |
447 | &.boxInfo { |
448 | background-color: $wcfStatusInfoBackground; | |
449 | color: $wcfStatusInfoText; | |
8a52619a | 450 | |
77fc8c83 MW |
451 | a:not(.button) { |
452 | color: $wcfStatusInfoLink; | |
8a52619a | 453 | |
77fc8c83 MW |
454 | &:hover { |
455 | color: $wcfStatusInfoLinkActive; | |
456 | } | |
457 | } | |
487db634 | 458 | } |
8a52619a | 459 | |
487db634 MW |
460 | &.boxSuccess { |
461 | background-color: $wcfStatusSuccessBackground; | |
462 | color: $wcfStatusSuccessText; | |
8a52619a | 463 | |
77fc8c83 MW |
464 | a:not(.button) { |
465 | color: $wcfStatusSuccessLink; | |
8a52619a | 466 | |
77fc8c83 MW |
467 | &:hover { |
468 | color: $wcfStatusSuccessLinkActive; | |
469 | } | |
470 | } | |
487db634 | 471 | } |
8a52619a | 472 | |
487db634 MW |
473 | &.boxWarning { |
474 | background-color: $wcfStatusWarningBackground; | |
475 | color: $wcfStatusWarningText; | |
8a52619a | 476 | |
77fc8c83 MW |
477 | a:not(.button) { |
478 | color: $wcfStatusWarningLink; | |
8a52619a | 479 | |
77fc8c83 MW |
480 | &:hover { |
481 | color: $wcfStatusWarningLinkActive; | |
482 | } | |
483 | } | |
487db634 | 484 | } |
8a52619a | 485 | |
0e8421c9 MW |
486 | .boxMenu { |
487 | .boxMenuLink { | |
47115034 MW |
488 | align-items: flex-start; |
489 | display: flex; | |
0e8421c9 | 490 | padding: 5px 20px; |
8a52619a | 491 | |
47115034 MW |
492 | .boxMenuLinkTitle { |
493 | flex: 1 1 auto; | |
494 | } | |
8a52619a | 495 | |
0e8421c9 | 496 | .badge { |
47115034 | 497 | flex: 0 0 auto; |
0e8421c9 MW |
498 | } |
499 | } | |
8a52619a | 500 | |
0e8421c9 MW |
501 | li.active > .boxMenuLink { |
502 | background-color: $wcfContentBackground; | |
4bfb0428 | 503 | color: $wcfContentLink; |
8a52619a | 504 | |
4bfb0428 AE |
505 | &:hover { |
506 | color: $wcfContentLinkActive; | |
507 | } | |
0e8421c9 | 508 | } |
8a52619a | 509 | |
0e8421c9 MW |
510 | .boxMenuDepth1 .boxMenuLink { |
511 | padding-left: 40px; | |
512 | } | |
8a52619a | 513 | |
0e8421c9 MW |
514 | .boxMenuDepth2 .boxMenuLink { |
515 | padding-left: 60px; | |
516 | } | |
8a52619a | 517 | |
fcc81f3e MW |
518 | .boxMenuItem .boxMenuLink { |
519 | padding-left: 100px; | |
520 | } | |
8a52619a | 521 | |
fcc81f3e MW |
522 | .boxMenuItemDepth1 .boxMenuLink { |
523 | padding-left: 20px; | |
524 | } | |
8a52619a | 525 | |
fcc81f3e MW |
526 | .boxMenuItemDepth2 .boxMenuLink { |
527 | padding-left: 40px; | |
528 | } | |
8a52619a | 529 | |
fcc81f3e MW |
530 | .boxMenuItemDepth3 .boxMenuLink { |
531 | padding-left: 60px; | |
532 | } | |
8a52619a | 533 | |
fcc81f3e MW |
534 | .boxMenuItemDepth4 .boxMenuLink { |
535 | padding-left: 80px; | |
536 | } | |
0e8421c9 | 537 | } |
bb6ef47e | 538 | } |
8a52619a | 539 | |
fd94097c MW |
540 | @include screen-xs { |
541 | .boxImage { | |
542 | align-items: center; | |
543 | display: flex; | |
544 | justify-content: center; | |
545 | margin-bottom: 20px; | |
546 | max-height: 100px; | |
547 | overflow: hidden; | |
bb6ef47e MW |
548 | } |
549 | } | |
8a52619a | 550 | |
fd94097c MW |
551 | @include screen-sm-md { |
552 | .boxWithImage { | |
553 | @include clearfix; | |
8a52619a | 554 | |
fd94097c MW |
555 | .boxTitle, |
556 | .boxContent { | |
557 | margin-left: calc(30% + 15px); | |
558 | } | |
559 | } | |
8a52619a | 560 | |
fd94097c MW |
561 | .boxImage { |
562 | float: left; | |
563 | width: 30%; | |
564 | } | |
bb6ef47e | 565 | } |
8a52619a | 566 | |
fd94097c MW |
567 | @include screen-lg { |
568 | .boxImage { | |
569 | align-items: center; | |
570 | display: flex; | |
571 | justify-content: center; | |
572 | margin-bottom: 20px; | |
573 | max-height: 100px; | |
574 | overflow: hidden; | |
575 | } | |
c5dd767e | 576 | } |
bb6ef47e MW |
577 | } |
578 | ||
ebfd2847 MW |
579 | .boxesSidebarLeft .box .boxMenu { |
580 | li.active > .boxMenuLink { | |
581 | margin-left: 10px; | |
582 | padding-left: 10px; | |
583 | } | |
8a52619a | 584 | |
ebfd2847 MW |
585 | .boxMenuDepth1 li.active > .boxMenuLink { |
586 | padding-left: 30px; | |
587 | } | |
8a52619a | 588 | |
ebfd2847 MW |
589 | .boxMenuDepth2 li.active > .boxMenuLink { |
590 | padding-left: 50px; | |
591 | } | |
cb49ffdb AE |
592 | } |
593 | ||
594 | .boxesSidebarRight .box .boxMenu li.active > .boxMenuLink { | |
595 | margin-right: 10px; | |
596 | padding-right: 10px; | |
597 | } | |
598 | ||
78ea816c MW |
599 | /* collapsible sidebar for mobile devices */ |
600 | @include screen-md-down { | |
66bc953d AE |
601 | .main > .layoutBoundary { |
602 | display: flex; | |
603 | flex-wrap: wrap; | |
8a52619a | 604 | |
66bc953d AE |
605 | > .content { |
606 | flex: 0 0 100%; | |
607 | order: 3; | |
608 | } | |
8a52619a | 609 | |
66bc953d AE |
610 | > .boxesSidebarLeft { |
611 | order: 1; | |
612 | } | |
8a52619a | 613 | |
66bc953d AE |
614 | > .boxesSidebarRight { |
615 | order: 2; | |
616 | } | |
617 | } | |
8a52619a | 618 | |
c5ea84f0 AE |
619 | .boxesSidebarLeft, |
620 | .boxesSidebarRight { | |
66bc953d | 621 | flex: 1 0 100%; |
c5ea84f0 | 622 | pointer-events: none; |
8a52619a | 623 | |
c5ea84f0 AE |
624 | > .boxContainer { |
625 | pointer-events: all; | |
626 | } | |
8a52619a | 627 | |
66bc953d AE |
628 | &:not(.open) { |
629 | flex: 1 50%; | |
8a52619a | 630 | |
66bc953d AE |
631 | > .boxContainer { |
632 | display: none; | |
633 | } | |
c5ea84f0 | 634 | } |
8a52619a | 635 | |
c5ea84f0 AE |
636 | &::before { |
637 | background-color: $wcfSidebarBackground; | |
638 | color: $wcfSidebarLink; | |
c5ea84f0 AE |
639 | content: attr(data-show-sidebar); |
640 | display: block; | |
641 | padding: 10px 0; | |
642 | pointer-events: all; | |
643 | text-align: center; | |
644 | } | |
8a52619a | 645 | |
c5ea84f0 AE |
646 | &.open::before { |
647 | content: attr(data-hide-sidebar); | |
648 | margin-bottom: 20px; | |
649 | } | |
650 | } | |
8a52619a | 651 | |
c5ea84f0 AE |
652 | .boxesSidebarLeft.boxesSidebarLeftHasMenu { |
653 | &::before { | |
654 | content: attr(data-show-navigation); | |
655 | } | |
8a52619a | 656 | |
c5ea84f0 AE |
657 | &.open::before { |
658 | content: attr(data-hide-navigation); | |
659 | } | |
660 | } | |
8a52619a | 661 | |
66bc953d AE |
662 | .boxesSidebarLeft:not(.open) + .content + .boxesSidebarRight:not(.open) { |
663 | border-left: 1px solid $wcfContentBackground; | |
664 | margin-left: 10px; | |
665 | margin-top: 0; | |
666 | } | |
8a52619a | 667 | |
66bc953d AE |
668 | .content:first-child + .boxesSidebarRight { |
669 | margin-bottom: 20px; | |
670 | margin-top: 0; | |
671 | } | |
c5ea84f0 AE |
672 | } |
673 | ||
bb6ef47e MW |
674 | /* styling for boxes in <contentTop>/<contentBottom> position */ |
675 | .boxesContentTop, | |
676 | .boxesContentBottom { | |
bb6ef47e MW |
677 | .box { |
678 | &:not(:first-child) { | |
10ff3d63 | 679 | margin-top: 40px; |
bb6ef47e MW |
680 | } |
681 | } | |
8a52619a | 682 | |
72a7f9cd MW |
683 | .boxTitle { |
684 | color: $wcfContentHeadlineText; | |
8a52619a | 685 | |
5908f54f | 686 | @include wcfFontSection; |
8a52619a | 687 | |
72a7f9cd MW |
688 | a { |
689 | color: $wcfContentHeadlineLink; | |
8a52619a | 690 | |
72a7f9cd MW |
691 | &:hover { |
692 | color: $wcfContentHeadlineLinkActive; | |
693 | } | |
694 | } | |
695 | } | |
8a52619a | 696 | |
bc29a383 MW |
697 | .boxInfo { |
698 | background-color: $wcfStatusInfoBackground; | |
699 | color: $wcfStatusInfoText; | |
700 | padding: 20px; | |
701 | text-align: center; | |
8a52619a | 702 | |
bc29a383 MW |
703 | a:not(.button) { |
704 | color: $wcfStatusInfoLink; | |
8a52619a | 705 | |
bc29a383 | 706 | @include wcfFontBold; |
8a52619a | 707 | |
bc29a383 MW |
708 | &:hover { |
709 | color: $wcfStatusInfoLinkActive; | |
710 | text-decoration: underline; | |
711 | } | |
712 | } | |
8a52619a | 713 | |
bc29a383 MW |
714 | .formSubmit { |
715 | margin-top: 20px; | |
716 | } | |
717 | } | |
8a52619a | 718 | |
fd94097c MW |
719 | @include screen-xs { |
720 | .boxImage { | |
721 | align-items: center; | |
722 | display: flex; | |
723 | justify-content: center; | |
724 | margin-bottom: 20px; | |
725 | max-height: 100px; | |
726 | overflow: hidden; | |
727 | } | |
bb6ef47e | 728 | } |
8a52619a | 729 | |
fd94097c MW |
730 | @include screen-sm-up { |
731 | .boxWithImage { | |
732 | @include clearfix; | |
fd94097c | 733 | } |
8a52619a | 734 | |
fd94097c MW |
735 | .boxImage { |
736 | float: left; | |
737 | width: 30%; | |
738 | } | |
c5dd767e | 739 | } |
8a52619a | 740 | |
6eadc178 MW |
741 | @include screen-sm-md { |
742 | .boxImage { | |
743 | margin: 0 10px 10px 0; | |
744 | } | |
745 | } | |
8a52619a | 746 | |
6eadc178 MW |
747 | @include screen-lg { |
748 | .boxImage { | |
749 | margin: 0 20px 20px 0; | |
750 | } | |
751 | } | |
bb6ef47e MW |
752 | } |
753 | ||
0b6161c6 MW |
754 | .boxesContentTop:not(:first-child) { |
755 | margin-top: 40px; | |
bb6ef47e MW |
756 | } |
757 | ||
758 | .boxesContentBottom { | |
10ff3d63 | 759 | margin-top: 40px; |
bb6ef47e MW |
760 | } |
761 | ||
762 | /* styling for boxes in <footerBoxes> position */ | |
763 | .boxesFooterBoxes { | |
764 | background-color: $wcfFooterBoxBackground; | |
765 | color: $wcfFooterBoxText; | |
8a52619a | 766 | |
bb6ef47e MW |
767 | a { |
768 | color: $wcfFooterBoxLink; | |
8a52619a | 769 | |
bb6ef47e MW |
770 | &:hover { |
771 | color: $wcfFooterBoxLinkActive; | |
bb6ef47e MW |
772 | } |
773 | } | |
8a52619a | 774 | |
bb6ef47e MW |
775 | .icon { |
776 | color: $wcfFooterBoxText; | |
777 | } | |
8a52619a | 778 | |
c734a302 | 779 | .boxContainer { |
f216765b | 780 | @include screen-sm-down { |
fd94097c | 781 | padding: 40px 0; |
f216765b | 782 | } |
8a52619a | 783 | |
7102d090 AE |
784 | @include screen-md-down { |
785 | margin-left: -10px; | |
786 | margin-right: -10px; | |
787 | } | |
8a52619a | 788 | |
f216765b | 789 | @include screen-md-up { |
63e2f52f AE |
790 | display: flex; |
791 | flex-wrap: wrap; | |
fd94097c MW |
792 | margin-bottom: -60px; |
793 | padding: 60px 0; | |
c3d0938e | 794 | } |
8a52619a | 795 | |
7102d090 AE |
796 | @include screen-lg { |
797 | margin-left: -15px; | |
798 | margin-right: -15px; | |
799 | } | |
bb6ef47e | 800 | } |
8a52619a | 801 | |
bb6ef47e | 802 | .box { |
95961bdf | 803 | overflow: hidden; |
fd94097c MW |
804 | padding-left: 15px; |
805 | padding-right: 15px; | |
8a52619a | 806 | |
f216765b | 807 | @include screen-sm-down { |
fd94097c MW |
808 | &:not(:last-child) { |
809 | margin-bottom: 40px; | |
c5dd767e | 810 | } |
f216765b | 811 | } |
8a52619a | 812 | |
f216765b | 813 | @include screen-md-up { |
63e2f52f | 814 | flex: 0 0 50%; |
fd94097c | 815 | margin-bottom: 60px; |
ce280017 | 816 | max-width: 50%; |
8a52619a | 817 | |
63e2f52f AE |
818 | &.boxFullWidth { |
819 | flex-basis: 100%; | |
2003a082 | 820 | max-width: 100%; |
63e2f52f AE |
821 | } |
822 | } | |
bb6ef47e | 823 | } |
8a52619a | 824 | |
72a7f9cd MW |
825 | .boxTitle { |
826 | color: $wcfFooterBoxHeadlineText; | |
8a52619a | 827 | |
72a7f9cd MW |
828 | a { |
829 | color: $wcfFooterBoxHeadlineLink; | |
8a52619a | 830 | |
72a7f9cd MW |
831 | &:hover { |
832 | color: $wcfFooterBoxHeadlineLinkActive; | |
833 | } | |
834 | } | |
835 | } | |
8a52619a | 836 | |
bb6ef47e | 837 | .boxImage { |
fd94097c MW |
838 | align-items: center; |
839 | display: flex; | |
840 | justify-content: center; | |
841 | margin-bottom: 20px; | |
842 | max-height: 100px; | |
843 | overflow: hidden; | |
bb6ef47e MW |
844 | } |
845 | } | |
846 | ||
847 | /* styling for boxes in <footer> position */ | |
848 | .boxesFooter { | |
0b6161c6 MW |
849 | background-color: $wcfFooterBackground; |
850 | color: $wcfFooterText; | |
11f96819 | 851 | padding: 20px 0; |
8a52619a | 852 | |
0b6161c6 MW |
853 | .icon { |
854 | color: $wcfFooterText; | |
855 | } | |
8a52619a | 856 | |
0b6161c6 MW |
857 | a { |
858 | color: $wcfFooterLink; | |
8a52619a | 859 | |
0b6161c6 MW |
860 | &:hover { |
861 | color: $wcfFooterLinkActive; | |
2a5ae89f | 862 | text-decoration: underline; |
0b6161c6 MW |
863 | } |
864 | } | |
8a52619a | 865 | |
bb6ef47e MW |
866 | .box { |
867 | &:not(:first-child) { | |
95961bdf | 868 | margin-top: 20px; |
bb6ef47e MW |
869 | } |
870 | } | |
8a52619a | 871 | |
25896feb MW |
872 | .boxTitle { |
873 | color: $wcfFooterHeadlineText; | |
8a52619a | 874 | |
25896feb MW |
875 | a { |
876 | color: $wcfFooterHeadlineLink; | |
8a52619a | 877 | |
25896feb MW |
878 | &:hover { |
879 | color: $wcfFooterHeadlineLinkActive; | |
880 | } | |
881 | } | |
882 | } | |
8a52619a | 883 | |
fd94097c MW |
884 | @include screen-xs { |
885 | .boxImage { | |
886 | align-items: center; | |
887 | display: flex; | |
888 | justify-content: center; | |
889 | margin-bottom: 20px; | |
890 | max-height: 100px; | |
891 | overflow: hidden; | |
bb6ef47e MW |
892 | } |
893 | } | |
8a52619a | 894 | |
fd94097c MW |
895 | @include screen-sm-up { |
896 | .boxWithImage { | |
897 | @include clearfix; | |
fd94097c | 898 | } |
8a52619a | 899 | |
fd94097c MW |
900 | .boxImage { |
901 | float: left; | |
902 | width: 30%; | |
903 | } | |
6eadc178 | 904 | } |
8a52619a | 905 | |
6eadc178 MW |
906 | @include screen-sm-md { |
907 | .boxImage { | |
908 | margin: 0 10px 10px 0; | |
909 | } | |
910 | } | |
8a52619a | 911 | |
6eadc178 MW |
912 | @include screen-lg { |
913 | .boxImage { | |
914 | margin: 0 20px 20px 0; | |
915 | } | |
bb6ef47e | 916 | } |
8a52619a | 917 | |
10159160 MW |
918 | .boxMenuLinkGroup { |
919 | .boxMenu { | |
920 | > li { | |
921 | > ol { | |
922 | a { | |
923 | // use text color instead | |
924 | color: $wcfFooterText; | |
925 | } | |
926 | } | |
927 | } | |
928 | } | |
929 | } | |
8a52619a | 930 | |
10159160 MW |
931 | .styleChanger { |
932 | @include screen-sm-down { | |
933 | display: none; | |
934 | } | |
8a52619a | 935 | |
10159160 MW |
936 | @include screen-md-up { |
937 | float: right; | |
938 | padding-left: 20px; | |
939 | } | |
940 | } | |
941 | } | |
942 | ||
943 | .boxesTop, | |
944 | .boxesBottom, | |
945 | .boxesFooter { | |
948d7051 | 946 | .boxMenu { |
f2e6770c | 947 | display: inline-flex; |
1ec71078 | 948 | flex-wrap: wrap; |
948d7051 MW |
949 | margin-left: -10px; |
950 | margin-right: -10px; | |
8a52619a | 951 | |
948d7051 | 952 | > li { |
f2e6770c | 953 | flex: 0 0 auto; |
948d7051 MW |
954 | padding-left: 10px; |
955 | padding-right: 10px; | |
f2e6770c MW |
956 | } |
957 | } | |
8a52619a | 958 | |
10159160 | 959 | .boxMenuLinkGroup { |
6063a7ec AE |
960 | &:not(:first-child) { |
961 | margin-top: 40px; | |
962 | } | |
8a52619a | 963 | |
f2e6770c MW |
964 | .boxMenu { |
965 | display: flex; | |
966 | flex-wrap: wrap; | |
967 | margin-bottom: -20px; | |
8a52619a | 968 | |
f2e6770c MW |
969 | .boxMenuLink { |
970 | display: inline-block; | |
971 | } | |
8a52619a | 972 | |
f2e6770c | 973 | > li { |
19275bb6 MW |
974 | @include screen-md-up { |
975 | flex: 0 0 25%; | |
976 | max-width: 25%; | |
977 | } | |
8a52619a | 978 | |
19275bb6 MW |
979 | @include screen-sm-down { |
980 | flex: 1 1 100%; | |
981 | } | |
8a52619a | 982 | |
f2e6770c | 983 | margin-bottom: 20px; |
8a52619a | 984 | |
948d7051 | 985 | > .boxMenuLink { |
5908f54f | 986 | @include wcfFontHeadline; |
8a52619a | 987 | |
948d7051 MW |
988 | margin-bottom: 10px; |
989 | } | |
948d7051 MW |
990 | } |
991 | } | |
992 | } | |
bb6ef47e | 993 | } |
5d7bde5d AE |
994 | |
995 | .boxWithEditButton { | |
996 | position: relative; | |
8a52619a | 997 | |
5d7bde5d AE |
998 | .boxEditButton { |
999 | color: inherit; | |
1000 | opacity: 0; | |
1001 | position: absolute; | |
1002 | top: 4px; | |
8a52619a | 1003 | transition: opacity 0.12s ease-in-out; |
5d7bde5d | 1004 | right: 4px; |
8a52619a | 1005 | |
5d7bde5d AE |
1006 | &:hover { |
1007 | color: inherit; | |
1008 | } | |
8a52619a | 1009 | |
5d7bde5d AE |
1010 | > .icon { |
1011 | color: inherit; | |
1012 | } | |
1013 | } | |
1014 | } | |
58e6f520 | 1015 | |
07454aeb AE |
1016 | html:not(.touch) .boxWithEditButton:hover .boxEditButton { |
1017 | opacity: 1; | |
1018 | } | |
1019 | ||
58e6f520 AE |
1020 | .boxMenuResetFilter { |
1021 | margin-top: 10px; | |
1022 | } |