18
|
1 |
/** |
|
2 |
* Colors |
|
3 |
*/ |
|
4 |
/** |
|
5 |
* Breakpoints & Media Queries |
|
6 |
*/ |
|
7 |
/** |
|
8 |
* SCSS Variables. |
|
9 |
* |
|
10 |
* Please use variables from this sheet to ensure consistency across the UI. |
|
11 |
* Don't add to this sheet unless you're pretty sure the value will be reused in many places. |
|
12 |
* For example, don't add rules to this sheet that affect block visuals. It's purely for UI. |
|
13 |
*/ |
|
14 |
/** |
|
15 |
* Colors |
|
16 |
*/ |
|
17 |
/** |
|
18 |
* Fonts & basic variables. |
|
19 |
*/ |
|
20 |
/** |
|
21 |
* Grid System. |
|
22 |
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ |
|
23 |
*/ |
|
24 |
/** |
|
25 |
* Dimensions. |
|
26 |
*/ |
|
27 |
/** |
|
28 |
* Shadows. |
|
29 |
*/ |
|
30 |
/** |
|
31 |
* Editor widths. |
|
32 |
*/ |
|
33 |
/** |
|
34 |
* Block & Editor UI. |
|
35 |
*/ |
|
36 |
/** |
|
37 |
* Block paddings. |
|
38 |
*/ |
|
39 |
/** |
|
40 |
* React Native specific. |
|
41 |
* These variables do not appear to be used anywhere else. |
|
42 |
*/ |
|
43 |
/** |
19
|
44 |
* Converts a hex value into the rgb equivalent. |
|
45 |
* |
|
46 |
* @param {string} hex - the hexadecimal value to convert |
|
47 |
* @return {string} comma separated rgb values |
|
48 |
*/ |
|
49 |
/** |
18
|
50 |
* Breakpoint mixins |
|
51 |
*/ |
|
52 |
/** |
|
53 |
* Long content fade mixin |
|
54 |
* |
|
55 |
* Creates a fading overlay to signify that the content is longer |
|
56 |
* than the space allows. |
|
57 |
*/ |
|
58 |
/** |
|
59 |
* Focus styles. |
|
60 |
*/ |
|
61 |
/** |
|
62 |
* Applies editor left position to the selector passed as argument |
|
63 |
*/ |
|
64 |
/** |
|
65 |
* Styles that are reused verbatim in a few places |
|
66 |
*/ |
|
67 |
/** |
|
68 |
* Allows users to opt-out of animations via OS-level preferences. |
|
69 |
*/ |
|
70 |
/** |
|
71 |
* Reset default styles for JavaScript UI based pages. |
|
72 |
* This is a WP-admin agnostic reset |
|
73 |
*/ |
|
74 |
/** |
|
75 |
* Reset the WP Admin page styles for Gutenberg-like pages. |
|
76 |
*/ |
19
|
77 |
.wp-block-gallery:not(.has-nested-images), |
|
78 |
.blocks-gallery-grid:not(.has-nested-images) { |
18
|
79 |
display: flex; |
|
80 |
flex-wrap: wrap; |
|
81 |
list-style-type: none; |
|
82 |
padding: 0; |
|
83 |
margin: 0; |
|
84 |
} |
19
|
85 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image, |
|
86 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item, |
|
87 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image, |
|
88 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item { |
18
|
89 |
margin: 0 0 1em 1em; |
|
90 |
display: flex; |
|
91 |
flex-grow: 1; |
|
92 |
flex-direction: column; |
|
93 |
justify-content: center; |
|
94 |
position: relative; |
|
95 |
width: calc(50% - 1em); |
|
96 |
} |
19
|
97 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:nth-of-type(even), |
|
98 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:nth-of-type(even), |
|
99 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:nth-of-type(even), |
|
100 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:nth-of-type(even) { |
18
|
101 |
margin-left: 0; |
|
102 |
} |
19
|
103 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figure, |
|
104 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figure, |
|
105 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figure, |
|
106 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figure { |
18
|
107 |
margin: 0; |
|
108 |
height: 100%; |
19
|
109 |
display: flex; |
|
110 |
align-items: flex-end; |
|
111 |
justify-content: flex-start; |
18
|
112 |
} |
19
|
113 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image img, |
|
114 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item img, |
|
115 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image img, |
|
116 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item img { |
18
|
117 |
display: block; |
|
118 |
max-width: 100%; |
|
119 |
height: auto; |
19
|
120 |
width: auto; |
18
|
121 |
} |
19
|
122 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption, |
|
123 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption, |
|
124 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption, |
|
125 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption { |
18
|
126 |
position: absolute; |
|
127 |
bottom: 0; |
|
128 |
width: 100%; |
|
129 |
max-height: 100%; |
|
130 |
overflow: auto; |
|
131 |
padding: 3em 0.77em 0.7em; |
|
132 |
color: #fff; |
|
133 |
text-align: center; |
|
134 |
font-size: 0.8em; |
|
135 |
background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent); |
|
136 |
box-sizing: border-box; |
|
137 |
margin: 0; |
19
|
138 |
z-index: 2; |
18
|
139 |
} |
19
|
140 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption img, |
|
141 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption img, |
|
142 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption img, |
|
143 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption img { |
18
|
144 |
display: inline; |
|
145 |
} |
19
|
146 |
.wp-block-gallery:not(.has-nested-images) figcaption, |
|
147 |
.blocks-gallery-grid:not(.has-nested-images) figcaption { |
18
|
148 |
flex-grow: 1; |
|
149 |
} |
19
|
150 |
.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image a, |
|
151 |
.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image img, .wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item a, |
|
152 |
.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item img, |
|
153 |
.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image a, |
|
154 |
.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image img, |
|
155 |
.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item a, |
|
156 |
.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item img { |
18
|
157 |
width: 100%; |
19
|
158 |
height: 100%; |
|
159 |
flex: 1; |
|
160 |
-o-object-fit: cover; |
|
161 |
object-fit: cover; |
18
|
162 |
} |
19
|
163 |
.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item, |
|
164 |
.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image, |
|
165 |
.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item { |
18
|
166 |
width: 100%; |
|
167 |
margin-left: 0; |
|
168 |
} |
|
169 |
@media (min-width: 600px) { |
19
|
170 |
.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item, |
|
171 |
.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image, |
|
172 |
.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item { |
18
|
173 |
width: calc(33.3333333333% - 0.6666666667em); |
|
174 |
margin-left: 1em; |
|
175 |
} |
19
|
176 |
.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item, |
|
177 |
.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image, |
|
178 |
.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item { |
18
|
179 |
width: calc(25% - 0.75em); |
|
180 |
margin-left: 1em; |
|
181 |
} |
19
|
182 |
.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item, |
|
183 |
.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image, |
|
184 |
.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item { |
18
|
185 |
width: calc(20% - 0.8em); |
|
186 |
margin-left: 1em; |
|
187 |
} |
19
|
188 |
.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item, |
|
189 |
.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image, |
|
190 |
.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item { |
18
|
191 |
width: calc(16.6666666667% - 0.8333333333em); |
|
192 |
margin-left: 1em; |
|
193 |
} |
19
|
194 |
.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item, |
|
195 |
.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image, |
|
196 |
.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item { |
18
|
197 |
width: calc(14.2857142857% - 0.8571428571em); |
|
198 |
margin-left: 1em; |
|
199 |
} |
19
|
200 |
.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item, |
|
201 |
.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image, |
|
202 |
.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item { |
18
|
203 |
width: calc(12.5% - 0.875em); |
|
204 |
margin-left: 1em; |
|
205 |
} |
19
|
206 |
.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n), .wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n), |
|
207 |
.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n), |
|
208 |
.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n) { |
18
|
209 |
margin-left: 0; |
|
210 |
} |
19
|
211 |
.wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n), .wp-block-gallery:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n), |
|
212 |
.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n), |
|
213 |
.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n) { |
18
|
214 |
margin-left: 0; |
|
215 |
} |
19
|
216 |
.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n), .wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n), |
|
217 |
.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n), |
|
218 |
.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n) { |
18
|
219 |
margin-left: 0; |
|
220 |
} |
19
|
221 |
.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n), .wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n), |
|
222 |
.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n), |
|
223 |
.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n) { |
18
|
224 |
margin-left: 0; |
|
225 |
} |
19
|
226 |
.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n), .wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n), |
|
227 |
.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n), |
|
228 |
.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n) { |
18
|
229 |
margin-left: 0; |
|
230 |
} |
19
|
231 |
.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n), .wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n), |
|
232 |
.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n), |
|
233 |
.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n) { |
18
|
234 |
margin-left: 0; |
|
235 |
} |
19
|
236 |
.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n), .wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n), |
|
237 |
.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n), |
|
238 |
.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n) { |
18
|
239 |
margin-left: 0; |
|
240 |
} |
19
|
241 |
.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n), .wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n), |
|
242 |
.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n), |
|
243 |
.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n) { |
18
|
244 |
margin-left: 0; |
|
245 |
} |
|
246 |
} |
19
|
247 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:last-child, |
|
248 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:last-child, |
|
249 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:last-child, |
|
250 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:last-child { |
18
|
251 |
margin-left: 0; |
|
252 |
} |
19
|
253 |
.wp-block-gallery:not(.has-nested-images).alignleft, .wp-block-gallery:not(.has-nested-images).alignright, |
|
254 |
.blocks-gallery-grid:not(.has-nested-images).alignleft, |
|
255 |
.blocks-gallery-grid:not(.has-nested-images).alignright { |
18
|
256 |
max-width: 420px; |
|
257 |
width: 100%; |
|
258 |
} |
19
|
259 |
.wp-block-gallery:not(.has-nested-images).aligncenter .blocks-gallery-item figure, |
|
260 |
.blocks-gallery-grid:not(.has-nested-images).aligncenter .blocks-gallery-item figure { |
|
261 |
justify-content: center; |
|
262 |
} |
|
263 |
|
|
264 |
.wp-block-gallery:not(.is-cropped) .blocks-gallery-item { |
|
265 |
align-self: flex-start; |
|
266 |
} |
|
267 |
|
|
268 |
figure.wp-block-gallery.has-nested-images { |
|
269 |
align-items: normal; |
|
270 |
} |
|
271 |
|
|
272 |
.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) { |
|
273 |
width: calc(50% - (var(--wp--style--unstable-gallery-gap, 16px) / 2)); |
|
274 |
margin: 0; |
|
275 |
} |
|
276 |
.wp-block-gallery.has-nested-images figure.wp-block-image { |
|
277 |
display: flex; |
|
278 |
flex-grow: 1; |
|
279 |
justify-content: center; |
|
280 |
position: relative; |
|
281 |
flex-direction: column; |
|
282 |
max-width: 100%; |
|
283 |
} |
|
284 |
.wp-block-gallery.has-nested-images figure.wp-block-image > div, |
|
285 |
.wp-block-gallery.has-nested-images figure.wp-block-image > a { |
|
286 |
margin: 0; |
|
287 |
flex-direction: column; |
|
288 |
flex-grow: 1; |
|
289 |
} |
|
290 |
.wp-block-gallery.has-nested-images figure.wp-block-image img { |
|
291 |
display: block; |
|
292 |
height: auto; |
|
293 |
max-width: 100% !important; |
|
294 |
width: auto; |
|
295 |
} |
|
296 |
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { |
|
297 |
background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent); |
|
298 |
bottom: 0; |
|
299 |
color: #fff; |
|
300 |
font-size: 13px; |
|
301 |
right: 0; |
|
302 |
margin-bottom: 0; |
|
303 |
max-height: 60%; |
|
304 |
overflow: auto; |
|
305 |
padding: 0 8px 8px; |
|
306 |
position: absolute; |
|
307 |
text-align: center; |
|
308 |
width: 100%; |
|
309 |
box-sizing: border-box; |
|
310 |
} |
|
311 |
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption img { |
|
312 |
display: inline; |
|
313 |
} |
|
314 |
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption a { |
|
315 |
color: inherit; |
|
316 |
} |
|
317 |
.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded > div, |
|
318 |
.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded > a { |
|
319 |
flex: 1 1 auto; |
|
320 |
} |
|
321 |
.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption { |
|
322 |
flex: initial; |
|
323 |
background: none; |
|
324 |
color: inherit; |
|
325 |
margin: 0; |
|
326 |
padding: 10px 10px 9px; |
|
327 |
position: relative; |
|
328 |
} |
|
329 |
.wp-block-gallery.has-nested-images figcaption { |
|
330 |
flex-grow: 1; |
|
331 |
flex-basis: 100%; |
|
332 |
text-align: center; |
|
333 |
} |
|
334 |
.wp-block-gallery.has-nested-images:not(.is-cropped) figure.wp-block-image:not(#individual-image) { |
|
335 |
margin-top: 0; |
|
336 |
margin-bottom: auto; |
|
337 |
} |
|
338 |
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) { |
|
339 |
align-self: inherit; |
|
340 |
} |
|
341 |
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) > div:not(.components-drop-zone), |
|
342 |
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) > a { |
|
343 |
display: flex; |
|
344 |
} |
|
345 |
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) a, |
|
346 |
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img { |
|
347 |
width: 100%; |
|
348 |
flex: 1 0 0%; |
|
349 |
height: 100%; |
|
350 |
-o-object-fit: cover; |
|
351 |
object-fit: cover; |
|
352 |
} |
|
353 |
.wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image) { |
|
354 |
width: 100%; |
|
355 |
} |
|
356 |
@media (min-width: 600px) { |
|
357 |
.wp-block-gallery.has-nested-images.columns-3 figure.wp-block-image:not(#individual-image) { |
|
358 |
width: calc(33.3333333333% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.6666666667)); |
|
359 |
} |
|
360 |
.wp-block-gallery.has-nested-images.columns-4 figure.wp-block-image:not(#individual-image) { |
|
361 |
width: calc(25% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.75)); |
|
362 |
} |
|
363 |
.wp-block-gallery.has-nested-images.columns-5 figure.wp-block-image:not(#individual-image) { |
|
364 |
width: calc(20% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.8)); |
|
365 |
} |
|
366 |
.wp-block-gallery.has-nested-images.columns-6 figure.wp-block-image:not(#individual-image) { |
|
367 |
width: calc(16.6666666667% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.8333333333)); |
|
368 |
} |
|
369 |
.wp-block-gallery.has-nested-images.columns-7 figure.wp-block-image:not(#individual-image) { |
|
370 |
width: calc(14.2857142857% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.8571428571)); |
|
371 |
} |
|
372 |
.wp-block-gallery.has-nested-images.columns-8 figure.wp-block-image:not(#individual-image) { |
|
373 |
width: calc(12.5% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.875)); |
|
374 |
} |
|
375 |
.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image) { |
|
376 |
width: calc(33.33% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.6666666667)); |
|
377 |
} |
|
378 |
.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2), |
|
379 |
.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2) ~ figure.wp-block-image:not(#individual-image) { |
|
380 |
width: calc(50% - (var(--wp--style--unstable-gallery-gap, 16px) * 0.5)); |
|
381 |
} |
|
382 |
.wp-block-gallery.has-nested-images.columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(1) { |
|
383 |
width: 100%; |
|
384 |
} |
|
385 |
} |
|
386 |
.wp-block-gallery.has-nested-images.alignleft, .wp-block-gallery.has-nested-images.alignright { |
|
387 |
max-width: 420px; |
|
388 |
width: 100%; |
|
389 |
} |
|
390 |
.wp-block-gallery.has-nested-images.aligncenter { |
18
|
391 |
justify-content: center; |
|
392 |
} |