Commit | Line | Data |
---|---|---|
bb6ef47e MW |
1 | /* default styling for all boxes */ |
2 | .box { | |
3 | box-sizing: border-box; | |
4 | } | |
5 | ||
6 | .boxImage { | |
7 | img { | |
8 | max-width: 100%; | |
9 | } | |
10 | } | |
11 | ||
12 | .boxTitle { | |
13 | @extend .wcfFontHeadline; | |
14 | ||
15 | & + .boxContent { | |
95961bdf MW |
16 | margin-top: 20px; |
17 | } | |
18 | ||
19 | .badge { | |
20 | top: -2px; | |
bb6ef47e MW |
21 | } |
22 | } | |
23 | ||
24 | .boxContent { | |
25 | & + .boxContent, | |
26 | & + .boxTitle { | |
27 | margin-top: 20px; | |
28 | } | |
29 | } | |
30 | ||
31 | /* styling for boxes in <hero> position */ | |
32 | .boxesHero { | |
33 | .box { | |
34 | padding: 40px; | |
35 | text-align: center; | |
36 | } | |
37 | ||
38 | .boxTitle { | |
39 | @extend .wcfFontTitle; | |
bb6ef47e MW |
40 | } |
41 | ||
42 | .boxWithImage { | |
43 | display: flex; | |
44 | flex-wrap: wrap; | |
45 | ||
46 | .boxImage, | |
47 | .boxTitle, | |
48 | .boxContent { | |
49 | flex: 0 0 100%; | |
50 | } | |
51 | ||
52 | .boxImage { | |
53 | order: 3; | |
54 | margin-top: 40px; | |
55 | } | |
56 | } | |
57 | } | |
58 | ||
59 | /* styling for boxes in <headerBoxes> position */ | |
60 | .boxesHeaderBoxes { | |
61 | background-color: rgb(247, 248, 250); // @todo | |
62 | ||
c734a302 | 63 | .boxContainer { |
bb6ef47e MW |
64 | display: flex; |
65 | flex-wrap: wrap; | |
c734a302 MW |
66 | margin-left: -10px; |
67 | margin-right: -10px; | |
bb6ef47e MW |
68 | padding: 40px 0; |
69 | } | |
70 | ||
71 | .box { | |
72 | flex: 0 0 25%; | |
95961bdf | 73 | overflow: hidden; |
bb6ef47e | 74 | padding-left: 10px; |
c734a302 | 75 | padding-right: 10px; |
95961bdf | 76 | |
bb6ef47e MW |
77 | &:nth-child(4n+1):not(:first-child) { |
78 | margin-top: 20px; | |
79 | } | |
80 | ||
81 | /* one item */ | |
82 | &:first-child:nth-last-child(1) { | |
83 | flex-basis: 100%; | |
84 | } | |
85 | ||
86 | /* two items */ | |
87 | &:first-child:nth-last-child(2), | |
88 | &:first-child:nth-last-child(2) ~ .box { | |
89 | flex-basis: 50%; | |
90 | } | |
91 | ||
92 | /* three items */ | |
93 | &:first-child:nth-last-child(3), | |
94 | &:first-child:nth-last-child(3) ~ .box { | |
95 | flex-basis: 33.3333%; | |
96 | } | |
937f57cf AE |
97 | |
98 | a:hover { | |
99 | text-decoration: underline; | |
100 | } | |
bb6ef47e MW |
101 | } |
102 | ||
103 | .boxImage { | |
104 | margin-bottom: 10px; | |
105 | text-align: center; | |
106 | } | |
107 | } | |
108 | ||
109 | /* styling for boxes in <top>/<bottom> position */ | |
110 | .boxesTop, | |
111 | .boxesBottom { | |
bb6ef47e | 112 | .box { |
41ec911a MW |
113 | margin-bottom: 40px; |
114 | margin-top: 40px; | |
bb6ef47e MW |
115 | } |
116 | ||
117 | .boxWithImage { | |
118 | @extend .clearfix; | |
119 | ||
120 | .boxTitle, | |
121 | .boxContent { | |
122 | margin-left: calc(20% + 30px); | |
123 | } | |
124 | } | |
125 | ||
126 | .boxImage { | |
127 | float: left; | |
128 | width: 20%; | |
129 | } | |
130 | } | |
131 | ||
132 | .boxesTop { | |
133 | border-bottom: 1px solid $wcfContentBorderInner; | |
134 | } | |
135 | ||
136 | .boxesBottom { | |
137 | border-top: 1px solid $wcfContentBorderInner; | |
138 | } | |
139 | ||
140 | /* styling for boxes in <sidebarLeft>/<sidebarRight> position */ | |
141 | .boxesSidebarLeft, | |
142 | .boxesSidebarRight { | |
143 | color: $wcfSidebarText; | |
144 | ||
145 | a { | |
146 | color: $wcfSidebarLink; | |
147 | ||
148 | > .icon { | |
149 | color: $wcfSidebarLink; | |
150 | } | |
151 | ||
152 | &:hover { | |
153 | color: $wcfSidebarLinkActive; | |
154 | ||
155 | > .icon { | |
156 | color: $wcfSidebarLinkActive; | |
157 | } | |
158 | } | |
159 | } | |
160 | ||
161 | small, | |
162 | .dimmed { | |
163 | color: $wcfSidebarDimmedText; | |
164 | ||
165 | a { | |
166 | color: $wcfSidebarDimmedLink; | |
167 | ||
168 | &:hover { | |
169 | color: $wcfSidebarDimmedLinkActive; | |
170 | } | |
171 | } | |
172 | } | |
173 | ||
e9f3957f MW |
174 | .boxTitle { |
175 | color: $wcfSidebarHeadlineLink; | |
176 | ||
177 | &:hover { | |
178 | color: $wcfSidebarHeadlineLinkActive; | |
179 | } | |
180 | } | |
181 | ||
bb6ef47e | 182 | .box { |
0e8421c9 MW |
183 | &:not(.boxBorderless) { |
184 | background-color: $wcfSidebarBackground; | |
185 | padding: 20px; | |
186 | ||
187 | .boxMenu { | |
188 | margin-left: -20px; | |
189 | margin-right: -20px; | |
190 | } | |
191 | } | |
bb6ef47e MW |
192 | |
193 | &:not(:first-child) { | |
95961bdf | 194 | margin-top: 30px; |
bb6ef47e | 195 | } |
487db634 MW |
196 | |
197 | &.boxAlternative { | |
198 | background-color: transparent; | |
199 | border: 1px solid $wcfContentBorderInner; | |
200 | } | |
201 | ||
202 | &.boxError { | |
203 | background-color: $wcfStatusErrorBackground; | |
204 | color: $wcfStatusErrorText; | |
205 | } | |
206 | ||
207 | &.boxInfo { | |
208 | background-color: $wcfStatusInfoBackground; | |
209 | color: $wcfStatusInfoText; | |
210 | } | |
211 | ||
212 | &.boxSuccess { | |
213 | background-color: $wcfStatusSuccessBackground; | |
214 | color: $wcfStatusSuccessText; | |
215 | } | |
216 | ||
217 | &.boxWarning { | |
218 | background-color: $wcfStatusWarningBackground; | |
219 | color: $wcfStatusWarningText; | |
220 | } | |
0e8421c9 MW |
221 | |
222 | .boxMenu { | |
223 | .boxMenuLink { | |
224 | display: block; | |
225 | padding: 5px 20px; | |
226 | ||
227 | .badge { | |
228 | float: right; | |
229 | } | |
230 | } | |
231 | ||
232 | li.active > .boxMenuLink { | |
233 | background-color: $wcfContentBackground; | |
234 | } | |
235 | ||
236 | .boxMenuDepth1 .boxMenuLink { | |
237 | padding-left: 40px; | |
238 | } | |
239 | ||
240 | .boxMenuDepth2 .boxMenuLink { | |
241 | padding-left: 60px; | |
242 | } | |
243 | } | |
bb6ef47e MW |
244 | } |
245 | ||
246 | .boxWithImage { | |
247 | @extend .clearfix; | |
248 | ||
249 | .boxTitle, | |
250 | .boxContent { | |
251 | margin-left: calc(20% + 10px); | |
252 | } | |
253 | } | |
254 | ||
255 | .boxImage { | |
256 | float: left; | |
257 | width: 20%; | |
258 | } | |
259 | } | |
260 | ||
261 | /* styling for boxes in <contentTop>/<contentBottom> position */ | |
262 | .boxesContentTop, | |
263 | .boxesContentBottom { | |
bb6ef47e MW |
264 | .box { |
265 | &:not(:first-child) { | |
266 | margin-top: 30px; | |
267 | } | |
268 | } | |
269 | ||
270 | .boxWithImage { | |
271 | @extend .clearfix; | |
272 | ||
273 | .boxTitle, | |
274 | .boxContent { | |
275 | margin-left: calc(20% + 20px); | |
276 | } | |
277 | } | |
278 | ||
72a7f9cd MW |
279 | .boxTitle { |
280 | color: $wcfContentHeadlineText; | |
281 | ||
282 | a { | |
283 | color: $wcfContentHeadlineLink; | |
284 | ||
285 | &:hover { | |
286 | color: $wcfContentHeadlineLinkActive; | |
287 | } | |
288 | } | |
289 | } | |
290 | ||
bb6ef47e MW |
291 | .boxImage { |
292 | float: left; | |
293 | width: 20%; | |
294 | } | |
295 | } | |
296 | ||
297 | .boxesContentTop { | |
95961bdf | 298 | margin-bottom: 30px; |
bb6ef47e MW |
299 | } |
300 | ||
301 | .boxesContentBottom { | |
95961bdf | 302 | margin-top: 30px; |
bb6ef47e MW |
303 | } |
304 | ||
305 | /* styling for boxes in <footerBoxes> position */ | |
306 | .boxesFooterBoxes { | |
307 | background-color: $wcfFooterBoxBackground; | |
308 | color: $wcfFooterBoxText; | |
309 | flex: 0 0 auto; | |
310 | z-index: 40; | |
311 | ||
312 | a { | |
313 | color: $wcfFooterBoxLink; | |
314 | ||
315 | .icon { | |
316 | color: $wcfFooterBoxLink; | |
317 | } | |
318 | ||
319 | &:hover { | |
320 | color: $wcfFooterBoxLinkActive; | |
b4f2a6be | 321 | text-decoration: underline; |
bb6ef47e MW |
322 | |
323 | .icon { | |
324 | color: $wcfFooterBoxLinkActive; | |
325 | } | |
326 | } | |
327 | } | |
328 | ||
329 | .icon { | |
330 | color: $wcfFooterBoxText; | |
331 | } | |
332 | ||
c734a302 | 333 | .boxContainer { |
bb6ef47e MW |
334 | display: flex; |
335 | flex-wrap: wrap; | |
95961bdf | 336 | margin-bottom: -40px; |
c734a302 MW |
337 | margin-left: -10px; |
338 | margin-right: -10px; | |
bb6ef47e MW |
339 | padding: 40px 0; |
340 | } | |
341 | ||
342 | .box { | |
343 | flex: 0 0 50%; | |
95961bdf | 344 | overflow: hidden; |
c734a302 MW |
345 | padding-left: 10px; |
346 | padding-right: 10px; | |
95961bdf | 347 | margin-bottom: 40px; |
bb6ef47e | 348 | |
51ed9738 | 349 | &.boxFullWidth { |
95961bdf | 350 | flex-basis: 100%; |
bb6ef47e | 351 | } |
bb6ef47e MW |
352 | } |
353 | ||
72a7f9cd MW |
354 | .boxTitle { |
355 | color: $wcfFooterBoxHeadlineText; | |
356 | ||
357 | a { | |
358 | color: $wcfFooterBoxHeadlineLink; | |
359 | ||
360 | &:hover { | |
361 | color: $wcfFooterBoxHeadlineLinkActive; | |
362 | } | |
363 | } | |
364 | } | |
365 | ||
bb6ef47e MW |
366 | .boxImage { |
367 | margin-bottom: 10px; | |
368 | text-align: center; | |
369 | } | |
370 | } | |
371 | ||
372 | /* styling for boxes in <footer> position */ | |
373 | .boxesFooter { | |
bb6ef47e MW |
374 | .box { |
375 | &:not(:first-child) { | |
95961bdf | 376 | margin-top: 20px; |
bb6ef47e MW |
377 | } |
378 | } | |
379 | ||
380 | .boxWithImage { | |
381 | @extend .clearfix; | |
382 | ||
383 | .boxTitle, | |
384 | .boxContent { | |
385 | margin-left: calc(20% + 30px); | |
386 | } | |
387 | } | |
388 | ||
389 | .boxImage { | |
390 | float: left; | |
391 | width: 20%; | |
392 | } | |
393 | } |