Skip to content

Commit

Permalink
Trying a different combination of css grid options and crossing fingers
Browse files Browse the repository at this point in the history
  • Loading branch information
Glen Davies committed Dec 9, 2021
1 parent 791bad9 commit 834996c
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions packages/block-library/src/image/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,26 +73,19 @@ figure.wp-block-image:not(.wp-block) {
*:not([data-align]) {
> .wp-block-image {
display: grid;
grid-template-rows: auto auto;
grid-template-columns: [resized] min-content [no-resize] minmax(0, max-content);
grid-template-columns: [image] minmax(0, max-content) [placeholder] auto;
.components-placeholder {
grid-column: no-resize;
grid-column: placeholder;
}
> div:not(.components-placeholder) {
grid-column: resized;
grid-column: image;
}
> figcaption {
grid-column: resized;
grid-column: image;
display: table-caption;
caption-side: bottom;
}
}
> .wp-block-image:not(.is-resized) {
> div:not(.components-placeholder),
> figcaption {
grid-column: no-resize;
}
}
}

.wp-block[data-align="left"] > .wp-block-image {
Expand Down

0 comments on commit 834996c

Please sign in to comment.