1
- .umb-block-grid__layout-container {
1
+ .umb-block-grid__layout-container ,
2
+ : scope .umb-block-grid__layout-container {
2
3
position : relative;
3
4
display : grid;
4
5
grid-template-columns : repeat (var (--umb-block-grid--grid-columns , 1 ), minmax (0 , 1fr ));
8
9
row-gap : var (--umb-block-grid--row-gap , 0 );
9
10
}
10
11
11
- .umb-block-grid__layout-item {
12
+ .umb-block-grid__layout-item ,
13
+ : scope .umb-block-grid__layout-item {
12
14
position : relative;
13
15
/* For small devices we scale columnSpan by three, to make everything bigger than 1/3 take full width: */
14
16
grid-column-end : span min (calc (var (--umb-block-grid--item-column-span , 1 ) * 3 ), var (--umb-block-grid--grid-columns ));
15
17
grid-row : span var (--umb-block-grid--item-row-span , 1 );
16
18
}
17
19
18
20
19
- .umb-block-grid__area-container , .umb-block-grid__block--view ::part (area-container ) {
21
+ .umb-block-grid__area-container ,
22
+ : scope .umb-block-grid__area-container ,
23
+ .umb-block-grid__block--view ::part (area-container ) {
20
24
position : relative;
21
25
display : grid;
22
26
grid-template-columns : repeat (var (--umb-block-grid--area-grid-columns , var (--umb-block-grid--grid-columns , 1 )), minmax (0 , 1fr ));
26
30
row-gap : var (--umb-block-grid--areas-row-gap , 0 );
27
31
}
28
32
29
- .umb-block-grid__area {
33
+ .umb-block-grid__area ,
34
+ : scope .umb-block-grid__area {
30
35
position : relative;
31
36
height : 100% ;
32
37
display : flex;
48
53
49
54
50
55
/**** Custom additions to the default Grid Layout Stylehseet: ****/
51
- : root , : host {
56
+ : root , : host , : scope {
52
57
--umb-block-grid--areas-column-gap : 60px ;
53
58
--umb-block-grid--areas-row-gap : 60px ;
54
59
--umb-block-grid--column-gap : 60px ;
57
62
--my-container-padding : 0 20px ;
58
63
}
59
64
60
- /* additional CSS options for area-container and areas: */
61
- .umb-block-grid__area-container , .umb-block-grid__block--view ::part (area-container ) {
62
- max-width : var (--my-container-max-width );
63
- padding : var (--my-container-padding );
64
- margin-left : auto;
65
- margin-right : auto;
66
- }
65
+ /* additional CSS options for area-container and areas: */
66
+ : scope .umb-block-grid__area-container ,
67
+ .umb-block-grid__area-container ,
68
+ .umb-block-grid__block--view ::part (area-container ) {
69
+ max-width : var (--my-container-max-width );
70
+ padding : var (--my-container-padding );
71
+ margin-left : auto;
72
+ margin-right : auto;
73
+ }
67
74
68
- .umb-block-grid__area {
69
- justify-content : center;
70
- }
75
+ .umb-block-grid__area ,
76
+ : scope .umb-block-grid__area {
77
+ justify-content : center;
78
+ }
71
79
72
80
.umb-block-grid__layout-item [data-content-element-type-alias = "oneColumnSectionBlock" ] .umb-block-grid__layout-container {
73
81
}
89
97
.umb-block-grid {
90
98
container-type : inline-size;
91
99
}
100
+
92
101
@container (min-width : 720px ) {
93
102
.umb-block-grid__layout-container {
94
103
--my-container-padding : 0 60px ;
98
107
section {
99
108
padding : var (--section-padding , 60px 0 );
100
109
}
101
- section [bright-contrast ] {
102
- color : white;
103
- --my-bright-contrast : ;
104
- }
110
+
111
+ section [bright-contrast ] {
112
+ color : white;
113
+ --my-bright-contrast : ;
114
+ }
105
115
106
116
107
117
/** only works on website. */
@@ -129,20 +139,20 @@ h2 {
129
139
130
140
/**umb_name:H3*/
131
141
h3 {
132
- font-size : 30px ;
133
- font-weight : 300 ;
134
- line-height : 1.2 ;
135
- margin : 0 ;
136
- color : inherit;
142
+ font-size : 30px ;
143
+ font-weight : 300 ;
144
+ line-height : 1.2 ;
145
+ margin : 0 ;
146
+ color : inherit;
137
147
}
138
148
139
149
/**umb_name:H4*/
140
150
h4 {
141
- font-size : 21px ;
142
- font-weight : 300 ;
143
- line-height : 1.2 ;
144
- margin : 0 ;
145
- color : inherit;
151
+ font-size : 21px ;
152
+ font-weight : 300 ;
153
+ line-height : 1.2 ;
154
+ margin : 0 ;
155
+ color : inherit;
146
156
}
147
157
148
158
@@ -171,9 +181,9 @@ img.image {
171
181
column-gap : 60px ;
172
182
}
173
183
174
- .rich-text > p : first-child {
175
- margin-top : 0 ;
176
- }
184
+ .rich-text > p : first-child {
185
+ margin-top : 0 ;
186
+ }
177
187
178
188
/**umb_name:Lead Paragraph*/
179
189
p .lead-paragraph {
@@ -185,7 +195,7 @@ p.lead-paragraph {
185
195
186
196
/** Hero */
187
197
188
- .umb-block-grid__layout-item [data-content-element-type-alias = "heroBlock" ] .umb-block-grid__area-container ,
198
+ .umb-block-grid__layout-item [data-content-element-type-alias = "heroBlock" ] .umb-block-grid__area-container ,
189
199
.umb-block-grid__layout-item [data-content-element-type-alias = "heroBlock" ] .umb-block-grid__block--view ::part (area-container ) {
190
200
padding : 0 ;
191
201
}
@@ -199,38 +209,39 @@ p.lead-paragraph {
199
209
padding : 60px 0 ;
200
210
box-sizing : border-box;
201
211
}
202
- .hero [bright-contrast ] {
203
- color : white;
204
- --my-bright-contrast : ;
205
- }
206
212
207
- .hero .hero-background {
208
- position : absolute;
209
- inset : 0 ;
210
- background-position : 50% 50% ;
211
- background-size : cover;
212
- }
213
+ .hero [bright-contrast ] {
214
+ color : white;
215
+ --my-bright-contrast : ;
216
+ }
213
217
214
- .hero .hero-background : after {
215
- content : '' ;
216
- position : absolute;
217
- inset : 0 ;
218
- background-color : rgba (0 , 0 , 0 , .22 );
219
- pointer-events : none;
220
- }
218
+ .hero .hero-background {
219
+ position : absolute;
220
+ inset : 0 ;
221
+ background-position : 50% 50% ;
222
+ background-size : cover;
223
+ }
221
224
222
- .hero .hero-content {
223
- position : relative;
224
- width : 100% ;
225
- max-width : var (--my-container-max-width );
226
- padding : var (--my-container-padding );
227
- margin-left : auto;
228
- margin-right : auto;
229
- }
225
+ .hero .hero-background : after {
226
+ content : '' ;
227
+ position : absolute;
228
+ inset : 0 ;
229
+ background-color : rgba (0 , 0 , 0 , .22 );
230
+ pointer-events : none;
231
+ }
232
+
233
+ .hero .hero-content {
234
+ position : relative;
235
+ width : 100% ;
236
+ max-width : var (--my-container-max-width );
237
+ padding : var (--my-container-padding );
238
+ margin-left : auto;
239
+ margin-right : auto;
240
+ }
230
241
231
- .hero .hero-content > h1 {
232
- max-width : 14em ;
233
- }
242
+ .hero .hero-content > h1 {
243
+ max-width : 14em ;
244
+ }
234
245
235
246
236
247
@@ -257,15 +268,14 @@ p.lead-paragraph {
257
268
/** Inspiration */
258
269
259
270
.inspiration [bright-contrast ] {
260
- --my-bright-contrast : ;
271
+ --my-bright-contrast : ;
261
272
}
262
273
263
274
.inspiration .area-container {
264
275
max-width : var (--my-container-max-width );
265
276
padding : var (--my-container-padding );
266
277
margin-left : auto;
267
278
margin-right : auto;
268
-
269
279
display : grid;
270
280
grid-template-columns : 1fr 1fr 1fr 1fr ;
271
281
grid-auto-flow : row;
@@ -315,51 +325,51 @@ p.lead-paragraph {
315
325
background-color : white;
316
326
}
317
327
318
- .card .card-media {
319
- position : relative;
320
- width : 100% ;
321
- aspect-ratio : 16 / 9 ;
322
- overflow : hidden;
323
- }
324
-
325
- .card .card-media img {
326
- object-fit : cover;
327
- height : 100% ;
328
- width : 100% ;
329
- }
330
-
331
- .card .card-content {
332
- display : flex;
333
- flex-direction : column;
334
- gap : 10px ;
335
- padding : 20px ;
336
- font-weight : 300 ;
337
- }
338
-
339
- .card .card-content p {
340
- margin : 0 ;
341
- }
328
+ .card .card-media {
329
+ position : relative;
330
+ width : 100% ;
331
+ aspect-ratio : 16 / 9 ;
332
+ overflow : hidden;
333
+ }
342
334
335
+ .card .card-media img {
336
+ object-fit : cover;
337
+ height : 100% ;
338
+ width : 100% ;
339
+ }
340
+
341
+ .card .card-content {
342
+ display : flex;
343
+ flex-direction : column;
344
+ gap : 10px ;
345
+ padding : 20px ;
346
+ font-weight : 300 ;
347
+ }
343
348
344
- .card . --medium {
345
- height : auto ;
346
- }
349
+ .card . card-content p {
350
+ margin : 0 ;
351
+ }
347
352
348
- .card .--medium .card-media ::after {
349
- content : '' ;
350
- position : absolute;
351
- inset : 0 ;
352
- background-color : rgba (0 , 0 , 0 , .22 );
353
- pointer-events : none;
354
- }
355
353
356
- .card .--medium .card-content {
357
- position : absolute;
358
- z-index : 1 ;
359
- bottom : 0 ;
360
- color : white;
361
- }
354
+ .card .--medium {
355
+ height : auto;
356
+ }
362
357
363
- .card .--medium .card-content h4 {
364
- font-size : 30px ;
365
- }
358
+ .card .--medium .card-media ::after {
359
+ content : '' ;
360
+ position : absolute;
361
+ inset : 0 ;
362
+ background-color : rgba (0 , 0 , 0 , .22 );
363
+ pointer-events : none;
364
+ }
365
+
366
+ .card .--medium .card-content {
367
+ position : absolute;
368
+ z-index : 1 ;
369
+ bottom : 0 ;
370
+ color : white;
371
+ }
372
+
373
+ .card .--medium .card-content h4 {
374
+ font-size : 30px ;
375
+ }
0 commit comments