| @@ -92,14 +92,21 @@ | ||
| 92 | 92 | /** |
| 93 | 93 | * Creates a checkerboard pattern background to indicate transparency. |
| 94 | 94 | * @param {String} $size - The size of the squares in the checkerboard pattern. Default is 12px. |
| 95 | 95 | */ |
| 96 | -:root :where(figure.wp-block-gallery) { | |
| 96 | +:root :where(figure.wp-block-gallery.is-layout-flex) { | |
| 97 | 97 | display: block; |
| 98 | 98 | } |
| 99 | -:root :where(figure.wp-block-gallery) > .blocks-gallery-caption { | |
| 99 | +:root :where(figure.wp-block-gallery.is-layout-flex) > .blocks-gallery-caption { | |
| 100 | 100 | flex: 0 0 100%; |
| 101 | 101 | } |
| 102 | + | |
| 103 | +:root :where(.wp-block-gallery.is-layout-grid) > .blocks-gallery-caption, | |
| 104 | +:root :where(.wp-block-gallery.is-layout-grid) > .components-placeholder, | |
| 105 | +:root :where(.wp-block-gallery.is-layout-grid) > .block-editor-media-placeholder { | |
| 106 | + grid-column: 1/-1; | |
| 107 | +} | |
| 108 | + | |
| 102 | 109 | :root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .components-placeholder__label { |
| 103 | 110 | display: none; |
| 104 | 111 | } |
| 105 | 112 | :root :where(figure.wp-block-gallery) .block-editor-media-placeholder.is-appender .block-editor-media-placeholder__button { |