| 1 |
/** |
| 2 |
* Colors |
| 3 |
*/ |
| 4 |
/** |
| 5 |
* Typography |
| 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 |
* Fonts & basic variables. |
| 16 |
*/ |
| 17 |
/** |
| 18 |
* Typography |
| 19 |
*/ |
| 20 |
/** |
| 21 |
* Grid System. |
| 22 |
* https://make.wordpress.org/design/2019/10/31/proposal-a-consistent-spacing-system-for-wordpress/ |
| 23 |
*/ |
| 24 |
/** |
| 25 |
* Radius scale. |
| 26 |
*/ |
| 27 |
/** |
| 28 |
* Elevation scale. |
| 29 |
*/ |
| 30 |
/** |
| 31 |
* Dimensions. |
| 32 |
*/ |
| 33 |
/** |
| 34 |
* Mobile specific styles |
| 35 |
*/ |
| 36 |
/** |
| 37 |
* Editor styles. |
| 38 |
*/ |
| 39 |
/** |
| 40 |
* Block & Editor UI. |
| 41 |
*/ |
| 42 |
/** |
| 43 |
* Block paddings. |
| 44 |
*/ |
| 45 |
/** |
| 46 |
* React Native specific. |
| 47 |
* These variables do not appear to be used anywhere else. |
| 48 |
*/ |
| 49 |
/** |
| 50 |
* Breakpoints & Media Queries |
| 51 |
*/ |
| 52 |
/** |
| 53 |
* Converts a hex value into the rgb equivalent. |
| 54 |
* |
| 55 |
* @param {string} hex - the hexadecimal value to convert |
| 56 |
* @return {string} comma separated rgb values |
| 57 |
*/ |
| 58 |
/** |
| 59 |
* Long content fade mixin |
| 60 |
* |
| 61 |
* Creates a fading overlay to signify that the content is longer |
| 62 |
* than the space allows. |
| 63 |
*/ |
| 64 |
/** |
| 65 |
* Breakpoint mixins |
| 66 |
*/ |
| 67 |
/** |
| 68 |
* Focus styles. |
| 69 |
*/ |
| 70 |
/** |
| 71 |
* Standard focus rings for the WordPress Design System. |
| 72 |
* |
| 73 |
* Apply `outset-ring__focus` inside the relevant pseudo-class at the call site, |
| 74 |
* e.g. `&:focus { @include outset-ring__focus(); }`. |
| 75 |
*/ |
| 76 |
/** |
| 77 |
* Applies editor left position to the selector passed as argument |
| 78 |
*/ |
| 79 |
/** |
| 80 |
* Styles that are reused verbatim in a few places |
| 81 |
*/ |
| 82 |
/** |
| 83 |
* Allows users to opt-out of animations via OS-level preferences. |
| 84 |
*/ |
| 85 |
/** |
| 86 |
* Reset default styles for JavaScript UI based pages. |
| 87 |
* This is a WP-admin agnostic reset |
| 88 |
*/ |
| 89 |
/** |
| 90 |
* Reset the WP Admin page styles for Gutenberg-like pages. |
| 91 |
*/ |
| 92 |
/** |
| 93 |
* Creates a checkerboard pattern background to indicate transparency. |
| 94 |
* @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px. |
| 95 |
*/ |
| 96 |
.wp-block-gallery:not(.has-nested-images), |
| 97 |
.blocks-gallery-grid:not(.has-nested-images) { |
| 98 |
display: flex; |
| 99 |
flex-wrap: wrap; |
| 100 |
list-style-type: none; |
| 101 |
padding: 0; |
| 102 |
margin: 0; |
| 103 |
} |
| 104 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image, |
| 105 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item, |
| 106 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image, |
| 107 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item { |
| 108 |
margin: 0 1em 1em 0; |
| 109 |
display: flex; |
| 110 |
flex-grow: 1; |
| 111 |
flex-direction: column; |
| 112 |
justify-content: center; |
| 113 |
position: relative; |
| 114 |
width: calc(50% - 1em); |
| 115 |
} |
| 116 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:nth-of-type(even), |
| 117 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:nth-of-type(even), |
| 118 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:nth-of-type(even), |
| 119 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:nth-of-type(even) { |
| 120 |
margin-right: 0; |
| 121 |
} |
| 122 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figure, |
| 123 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figure, |
| 124 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figure, |
| 125 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figure { |
| 126 |
margin: 0; |
| 127 |
height: 100%; |
| 128 |
display: flex; |
| 129 |
align-items: flex-end; |
| 130 |
justify-content: flex-start; |
| 131 |
} |
| 132 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image img, |
| 133 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item img, |
| 134 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image img, |
| 135 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item img { |
| 136 |
display: block; |
| 137 |
max-width: 100%; |
| 138 |
height: auto; |
| 139 |
width: auto; |
| 140 |
} |
| 141 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption, |
| 142 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption, |
| 143 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption, |
| 144 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption { |
| 145 |
position: absolute; |
| 146 |
bottom: 0; |
| 147 |
width: 100%; |
| 148 |
max-height: 100%; |
| 149 |
overflow: auto; |
| 150 |
padding: 3em 0.77em 0.7em; |
| 151 |
color: #fff; |
| 152 |
text-align: center; |
| 153 |
font-size: 0.8em; |
| 154 |
background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0, rgba(0, 0, 0, 0.3) 70%, transparent); |
| 155 |
box-sizing: border-box; |
| 156 |
margin: 0; |
| 157 |
z-index: 2; |
| 158 |
} |
| 159 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image figcaption img, |
| 160 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item figcaption img, |
| 161 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image figcaption img, |
| 162 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item figcaption img { |
| 163 |
display: inline; |
| 164 |
} |
| 165 |
.wp-block-gallery:not(.has-nested-images) figcaption, |
| 166 |
.blocks-gallery-grid:not(.has-nested-images) figcaption { |
| 167 |
flex-grow: 1; |
| 168 |
} |
| 169 |
.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-image a, |
| 170 |
.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, |
| 171 |
.wp-block-gallery:not(.has-nested-images).is-cropped .blocks-gallery-item img, |
| 172 |
.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image a, |
| 173 |
.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-image img, |
| 174 |
.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item a, |
| 175 |
.blocks-gallery-grid:not(.has-nested-images).is-cropped .blocks-gallery-item img { |
| 176 |
width: 100%; |
| 177 |
height: 100%; |
| 178 |
flex: 1; |
| 179 |
object-fit: cover; |
| 180 |
} |
| 181 |
.wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-1 .blocks-gallery-item, |
| 182 |
.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image, |
| 183 |
.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item { |
| 184 |
width: 100%; |
| 185 |
margin-right: 0; |
| 186 |
} |
| 187 |
@media (min-width: 600px) { |
| 188 |
.wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-3 .blocks-gallery-item, |
| 189 |
.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image, |
| 190 |
.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item { |
| 191 |
width: calc(33.3333333333% - 0.6666666667em); |
| 192 |
margin-right: 1em; |
| 193 |
} |
| 194 |
.wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-4 .blocks-gallery-item, |
| 195 |
.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image, |
| 196 |
.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item { |
| 197 |
width: calc(25% - 0.75em); |
| 198 |
margin-right: 1em; |
| 199 |
} |
| 200 |
.wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-5 .blocks-gallery-item, |
| 201 |
.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image, |
| 202 |
.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item { |
| 203 |
width: calc(20% - 0.8em); |
| 204 |
margin-right: 1em; |
| 205 |
} |
| 206 |
.wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-6 .blocks-gallery-item, |
| 207 |
.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image, |
| 208 |
.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item { |
| 209 |
width: calc(16.6666666667% - 0.8333333333em); |
| 210 |
margin-right: 1em; |
| 211 |
} |
| 212 |
.wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-7 .blocks-gallery-item, |
| 213 |
.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image, |
| 214 |
.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item { |
| 215 |
width: calc(14.2857142857% - 0.8571428571em); |
| 216 |
margin-right: 1em; |
| 217 |
} |
| 218 |
.wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-image, .wp-block-gallery:not(.has-nested-images).columns-8 .blocks-gallery-item, |
| 219 |
.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image, |
| 220 |
.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item { |
| 221 |
width: calc(12.5% - 0.875em); |
| 222 |
margin-right: 1em; |
| 223 |
} |
| 224 |
.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), |
| 225 |
.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-image:nth-of-type(1n), |
| 226 |
.blocks-gallery-grid:not(.has-nested-images).columns-1 .blocks-gallery-item:nth-of-type(1n) { |
| 227 |
margin-right: 0; |
| 228 |
} |
| 229 |
.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), |
| 230 |
.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-image:nth-of-type(2n), |
| 231 |
.blocks-gallery-grid:not(.has-nested-images).columns-2 .blocks-gallery-item:nth-of-type(2n) { |
| 232 |
margin-right: 0; |
| 233 |
} |
| 234 |
.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), |
| 235 |
.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-image:nth-of-type(3n), |
| 236 |
.blocks-gallery-grid:not(.has-nested-images).columns-3 .blocks-gallery-item:nth-of-type(3n) { |
| 237 |
margin-right: 0; |
| 238 |
} |
| 239 |
.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), |
| 240 |
.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-image:nth-of-type(4n), |
| 241 |
.blocks-gallery-grid:not(.has-nested-images).columns-4 .blocks-gallery-item:nth-of-type(4n) { |
| 242 |
margin-right: 0; |
| 243 |
} |
| 244 |
.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), |
| 245 |
.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-image:nth-of-type(5n), |
| 246 |
.blocks-gallery-grid:not(.has-nested-images).columns-5 .blocks-gallery-item:nth-of-type(5n) { |
| 247 |
margin-right: 0; |
| 248 |
} |
| 249 |
.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), |
| 250 |
.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-image:nth-of-type(6n), |
| 251 |
.blocks-gallery-grid:not(.has-nested-images).columns-6 .blocks-gallery-item:nth-of-type(6n) { |
| 252 |
margin-right: 0; |
| 253 |
} |
| 254 |
.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), |
| 255 |
.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-image:nth-of-type(7n), |
| 256 |
.blocks-gallery-grid:not(.has-nested-images).columns-7 .blocks-gallery-item:nth-of-type(7n) { |
| 257 |
margin-right: 0; |
| 258 |
} |
| 259 |
.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), |
| 260 |
.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-image:nth-of-type(8n), |
| 261 |
.blocks-gallery-grid:not(.has-nested-images).columns-8 .blocks-gallery-item:nth-of-type(8n) { |
| 262 |
margin-right: 0; |
| 263 |
} |
| 264 |
} |
| 265 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-image:last-child, |
| 266 |
.wp-block-gallery:not(.has-nested-images) .blocks-gallery-item:last-child, |
| 267 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-image:last-child, |
| 268 |
.blocks-gallery-grid:not(.has-nested-images) .blocks-gallery-item:last-child { |
| 269 |
margin-right: 0; |
| 270 |
} |
| 271 |
.wp-block-gallery:not(.has-nested-images).alignleft, .wp-block-gallery:not(.has-nested-images).alignright, |
| 272 |
.blocks-gallery-grid:not(.has-nested-images).alignleft, |
| 273 |
.blocks-gallery-grid:not(.has-nested-images).alignright { |
| 274 |
max-width: 420px; |
| 275 |
width: 100%; |
| 276 |
} |
| 277 |
.wp-block-gallery:not(.has-nested-images).aligncenter .blocks-gallery-item figure, |
| 278 |
.blocks-gallery-grid:not(.has-nested-images).aligncenter .blocks-gallery-item figure { |
| 279 |
justify-content: center; |
| 280 |
} |
| 281 |
|
| 282 |
.wp-block-gallery:not(.is-cropped) .blocks-gallery-item { |
| 283 |
align-self: flex-start; |
| 284 |
} |
| 285 |
|
| 286 |
figure.wp-block-gallery.has-nested-images:where(.is-layout-flex) { |
| 287 |
align-items: normal; |
| 288 |
} |
| 289 |
|
| 290 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex) figure.wp-block-image:not(#individual-image) { |
| 291 |
width: calc(50% - var(--wp--style--unstable-gallery-gap, 16px) / 2); |
| 292 |
margin: 0; |
| 293 |
} |
| 294 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex) figure.wp-block-image { |
| 295 |
display: flex; |
| 296 |
flex-grow: 1; |
| 297 |
justify-content: center; |
| 298 |
flex-direction: column; |
| 299 |
max-width: 100%; |
| 300 |
box-sizing: border-box; |
| 301 |
} |
| 302 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex) figure.wp-block-image > div, |
| 303 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex) figure.wp-block-image > a { |
| 304 |
margin: 0; |
| 305 |
flex-direction: column; |
| 306 |
flex-grow: 1; |
| 307 |
} |
| 308 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex) figure.wp-block-image img { |
| 309 |
display: block; |
| 310 |
height: auto; |
| 311 |
max-width: 100% !important; |
| 312 |
width: auto; |
| 313 |
} |
| 314 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex) figcaption { |
| 315 |
flex-grow: 1; |
| 316 |
flex-basis: 100%; |
| 317 |
text-align: center; |
| 318 |
} |
| 319 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex):not(.is-cropped) figure.wp-block-image:not(#individual-image) { |
| 320 |
margin-top: 0; |
| 321 |
margin-bottom: auto; |
| 322 |
} |
| 323 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex).is-cropped figure.wp-block-image:not(#individual-image) { |
| 324 |
align-self: inherit; |
| 325 |
} |
| 326 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex).is-cropped figure.wp-block-image:not(#individual-image) > div:not(.components-drop-zone), |
| 327 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex).is-cropped figure.wp-block-image:not(#individual-image) > a { |
| 328 |
display: flex; |
| 329 |
} |
| 330 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex).is-cropped figure.wp-block-image:not(#individual-image) a, |
| 331 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex).is-cropped figure.wp-block-image:not(#individual-image) img { |
| 332 |
width: 100%; |
| 333 |
flex: 1 0 0%; |
| 334 |
height: 100%; |
| 335 |
object-fit: cover; |
| 336 |
} |
| 337 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex).columns-1 figure.wp-block-image:not(#individual-image) { |
| 338 |
width: 100%; |
| 339 |
} |
| 340 |
@media (min-width: 600px) { |
| 341 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex).columns-3 figure.wp-block-image:not(#individual-image) { |
| 342 |
width: calc(33.3333333333% - var(--wp--style--unstable-gallery-gap, 16px) * 0.6666666667); |
| 343 |
} |
| 344 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex).columns-4 figure.wp-block-image:not(#individual-image) { |
| 345 |
width: calc(25% - var(--wp--style--unstable-gallery-gap, 16px) * 0.75); |
| 346 |
} |
| 347 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex).columns-5 figure.wp-block-image:not(#individual-image) { |
| 348 |
width: calc(20% - var(--wp--style--unstable-gallery-gap, 16px) * 0.8); |
| 349 |
} |
| 350 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex).columns-6 figure.wp-block-image:not(#individual-image) { |
| 351 |
width: calc(16.6666666667% - var(--wp--style--unstable-gallery-gap, 16px) * 0.8333333333); |
| 352 |
} |
| 353 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex).columns-7 figure.wp-block-image:not(#individual-image) { |
| 354 |
width: calc(14.2857142857% - var(--wp--style--unstable-gallery-gap, 16px) * 0.8571428571); |
| 355 |
} |
| 356 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex).columns-8 figure.wp-block-image:not(#individual-image) { |
| 357 |
width: calc(12.5% - var(--wp--style--unstable-gallery-gap, 16px) * 0.875); |
| 358 |
} |
| 359 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex).columns-default figure.wp-block-image:not(#individual-image) { |
| 360 |
width: calc(33.33% - var(--wp--style--unstable-gallery-gap, 16px) * 0.6666666667); |
| 361 |
} |
| 362 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex).columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2), |
| 363 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex).columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(2) ~ figure.wp-block-image:not(#individual-image) { |
| 364 |
width: calc(50% - var(--wp--style--unstable-gallery-gap, 16px) * 0.5); |
| 365 |
} |
| 366 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex).columns-default figure.wp-block-image:not(#individual-image):first-child:nth-last-child(1) { |
| 367 |
width: 100%; |
| 368 |
} |
| 369 |
} |
| 370 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex).alignleft, .wp-block-gallery.has-nested-images:where(.is-layout-flex).alignright { |
| 371 |
max-width: 420px; |
| 372 |
width: 100%; |
| 373 |
} |
| 374 |
.wp-block-gallery.has-nested-images:where(.is-layout-flex).aligncenter { |
| 375 |
justify-content: center; |
| 376 |
} |
| 377 |
|
| 378 |
.wp-block-gallery.has-nested-images figure.wp-block-image { |
| 379 |
position: relative; |
| 380 |
margin: 0; |
| 381 |
} |
| 382 |
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before, |
| 383 |
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { |
| 384 |
position: absolute; |
| 385 |
bottom: 0; |
| 386 |
right: 0; |
| 387 |
left: 0; |
| 388 |
max-height: 100%; |
| 389 |
} |
| 390 |
.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before { |
| 391 |
content: ""; |
| 392 |
height: 100%; |
| 393 |
max-height: 3em; |
| 394 |
pointer-events: none; |
| 395 |
backdrop-filter: blur(3px); |
| 396 |
mask-image: linear-gradient(0deg, #000 20%, transparent 100%); |
| 397 |
} |
| 398 |
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { |
| 399 |
color: #fff; |
| 400 |
text-shadow: 0 0 1.5px #000; |
| 401 |
font-size: 13px; |
| 402 |
margin: 0; |
| 403 |
overflow: auto; |
| 404 |
padding: 1em; |
| 405 |
text-align: center; |
| 406 |
box-sizing: border-box; |
| 407 |
} |
| 408 |
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar { |
| 409 |
width: 12px; |
| 410 |
height: 12px; |
| 411 |
} |
| 412 |
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-track { |
| 413 |
background-color: transparent; |
| 414 |
} |
| 415 |
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption::-webkit-scrollbar-thumb { |
| 416 |
background-color: transparent; |
| 417 |
border-radius: 8px; |
| 418 |
border: 3px solid transparent; |
| 419 |
background-clip: padding-box; |
| 420 |
} |
| 421 |
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover::-webkit-scrollbar-thumb, .wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus::-webkit-scrollbar-thumb, .wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within::-webkit-scrollbar-thumb { |
| 422 |
background-color: rgba(255, 255, 255, 0.8); |
| 423 |
} |
| 424 |
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { |
| 425 |
scrollbar-width: thin; |
| 426 |
scrollbar-gutter: stable both-edges; |
| 427 |
scrollbar-color: transparent transparent; |
| 428 |
} |
| 429 |
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption:hover, .wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus, .wp-block-gallery.has-nested-images figure.wp-block-image figcaption:focus-within { |
| 430 |
scrollbar-color: rgba(255, 255, 255, 0.8) transparent; |
| 431 |
} |
| 432 |
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { |
| 433 |
will-change: transform; |
| 434 |
} |
| 435 |
@media (hover: none) { |
| 436 |
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { |
| 437 |
scrollbar-color: rgba(255, 255, 255, 0.8) transparent; |
| 438 |
} |
| 439 |
} |
| 440 |
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption { |
| 441 |
background: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, transparent 100%); |
| 442 |
} |
| 443 |
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption img { |
| 444 |
display: inline; |
| 445 |
} |
| 446 |
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption a { |
| 447 |
color: inherit; |
| 448 |
} |
| 449 |
.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border img { |
| 450 |
box-sizing: border-box; |
| 451 |
} |
| 452 |
.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded > div, |
| 453 |
.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded > a, .wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border > div, |
| 454 |
.wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border > a { |
| 455 |
flex: 1 1 auto; |
| 456 |
} |
| 457 |
.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded figcaption, .wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border figcaption { |
| 458 |
flex: initial; |
| 459 |
background: none; |
| 460 |
color: inherit; |
| 461 |
margin: 0; |
| 462 |
padding: 10px 10px 9px; |
| 463 |
position: relative; |
| 464 |
text-shadow: none; |
| 465 |
} |
| 466 |
.wp-block-gallery.has-nested-images figure.wp-block-image.is-style-rounded::before, .wp-block-gallery.has-nested-images figure.wp-block-image.has-custom-border::before { |
| 467 |
content: none; |
| 468 |
} |
| 469 |
|
| 470 |
:where(.wp-block-gallery.has-nested-images.is-layout-grid) > .blocks-gallery-caption { |
| 471 |
grid-column: 1/-1; |
| 472 |
text-align: center; |
| 473 |
} |