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 MW |
182 | .box { |
183 | background-color: $wcfSidebarBackground; | |
184 | padding: 20px; | |
185 | ||
186 | &:not(:first-child) { | |
95961bdf | 187 | margin-top: 30px; |
bb6ef47e | 188 | } |
487db634 MW |
189 | |
190 | &.boxAlternative { | |
191 | background-color: transparent; | |
192 | border: 1px solid $wcfContentBorderInner; | |
193 | } | |
194 | ||
195 | &.boxError { | |
196 | background-color: $wcfStatusErrorBackground; | |
197 | color: $wcfStatusErrorText; | |
198 | } | |
199 | ||
200 | &.boxInfo { | |
201 | background-color: $wcfStatusInfoBackground; | |
202 | color: $wcfStatusInfoText; | |
203 | } | |
204 | ||
205 | &.boxSuccess { | |
206 | background-color: $wcfStatusSuccessBackground; | |
207 | color: $wcfStatusSuccessText; | |
208 | } | |
209 | ||
210 | &.boxWarning { | |
211 | background-color: $wcfStatusWarningBackground; | |
212 | color: $wcfStatusWarningText; | |
213 | } | |
bb6ef47e MW |
214 | } |
215 | ||
216 | .boxWithImage { | |
217 | @extend .clearfix; | |
218 | ||
219 | .boxTitle, | |
220 | .boxContent { | |
221 | margin-left: calc(20% + 10px); | |
222 | } | |
223 | } | |
224 | ||
225 | .boxImage { | |
226 | float: left; | |
227 | width: 20%; | |
228 | } | |
229 | } | |
230 | ||
231 | /* styling for boxes in <contentTop>/<contentBottom> position */ | |
232 | .boxesContentTop, | |
233 | .boxesContentBottom { | |
bb6ef47e MW |
234 | .box { |
235 | &:not(:first-child) { | |
236 | margin-top: 30px; | |
237 | } | |
238 | } | |
239 | ||
240 | .boxWithImage { | |
241 | @extend .clearfix; | |
242 | ||
243 | .boxTitle, | |
244 | .boxContent { | |
245 | margin-left: calc(20% + 20px); | |
246 | } | |
247 | } | |
248 | ||
72a7f9cd MW |
249 | .boxTitle { |
250 | color: $wcfContentHeadlineText; | |
251 | ||
252 | a { | |
253 | color: $wcfContentHeadlineLink; | |
254 | ||
255 | &:hover { | |
256 | color: $wcfContentHeadlineLinkActive; | |
257 | } | |
258 | } | |
259 | } | |
260 | ||
bb6ef47e MW |
261 | .boxImage { |
262 | float: left; | |
263 | width: 20%; | |
264 | } | |
265 | } | |
266 | ||
267 | .boxesContentTop { | |
95961bdf | 268 | margin-bottom: 30px; |
bb6ef47e MW |
269 | } |
270 | ||
271 | .boxesContentBottom { | |
95961bdf | 272 | margin-top: 30px; |
bb6ef47e MW |
273 | } |
274 | ||
275 | /* styling for boxes in <footerBoxes> position */ | |
276 | .boxesFooterBoxes { | |
277 | background-color: $wcfFooterBoxBackground; | |
278 | color: $wcfFooterBoxText; | |
279 | flex: 0 0 auto; | |
280 | z-index: 40; | |
281 | ||
282 | a { | |
283 | color: $wcfFooterBoxLink; | |
284 | ||
285 | .icon { | |
286 | color: $wcfFooterBoxLink; | |
287 | } | |
288 | ||
289 | &:hover { | |
290 | color: $wcfFooterBoxLinkActive; | |
b4f2a6be | 291 | text-decoration: underline; |
bb6ef47e MW |
292 | |
293 | .icon { | |
294 | color: $wcfFooterBoxLinkActive; | |
295 | } | |
296 | } | |
297 | } | |
298 | ||
299 | .icon { | |
300 | color: $wcfFooterBoxText; | |
301 | } | |
302 | ||
c734a302 | 303 | .boxContainer { |
bb6ef47e MW |
304 | display: flex; |
305 | flex-wrap: wrap; | |
95961bdf | 306 | margin-bottom: -40px; |
c734a302 MW |
307 | margin-left: -10px; |
308 | margin-right: -10px; | |
bb6ef47e MW |
309 | padding: 40px 0; |
310 | } | |
311 | ||
312 | .box { | |
313 | flex: 0 0 50%; | |
95961bdf | 314 | overflow: hidden; |
c734a302 MW |
315 | padding-left: 10px; |
316 | padding-right: 10px; | |
95961bdf | 317 | margin-bottom: 40px; |
bb6ef47e | 318 | |
51ed9738 | 319 | &.boxFullWidth { |
95961bdf | 320 | flex-basis: 100%; |
bb6ef47e | 321 | } |
bb6ef47e MW |
322 | } |
323 | ||
72a7f9cd MW |
324 | .boxTitle { |
325 | color: $wcfFooterBoxHeadlineText; | |
326 | ||
327 | a { | |
328 | color: $wcfFooterBoxHeadlineLink; | |
329 | ||
330 | &:hover { | |
331 | color: $wcfFooterBoxHeadlineLinkActive; | |
332 | } | |
333 | } | |
334 | } | |
335 | ||
bb6ef47e MW |
336 | .boxImage { |
337 | margin-bottom: 10px; | |
338 | text-align: center; | |
339 | } | |
340 | } | |
341 | ||
342 | /* styling for boxes in <footer> position */ | |
343 | .boxesFooter { | |
bb6ef47e MW |
344 | .box { |
345 | &:not(:first-child) { | |
95961bdf | 346 | margin-top: 20px; |
bb6ef47e MW |
347 | } |
348 | } | |
349 | ||
350 | .boxWithImage { | |
351 | @extend .clearfix; | |
352 | ||
353 | .boxTitle, | |
354 | .boxContent { | |
355 | margin-left: calc(20% + 30px); | |
356 | } | |
357 | } | |
358 | ||
359 | .boxImage { | |
360 | float: left; | |
361 | width: 20%; | |
362 | } | |
363 | } |