Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 41 additions & 1 deletion packages/block-library/src/gallery/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
flex-grow: 1;
justify-content: center;
position: relative;

margin-top: auto;
margin-bottom: auto;
// IE11 doesn't like the "flex-direction: column;" here.
@supports ( position: sticky ) {
flex-direction: column;
Expand Down Expand Up @@ -72,13 +73,52 @@
display: inline;
}
}

&.is-style-rounded {
> div,
> a {
// Not supported in IE11.
@supports ( position: sticky ) {
flex: 1 1 auto;
}
}
figcaption {
background: none;
// Not supported in IE11.
@supports ( position: sticky ) {
flex: initial;
background: none;
color: inherit;
margin: 0;
padding: 10px 10px 9px;
position: relative;
}
}
}
}
}

figcaption {
flex-grow: 1;
}

// Non cropped images.
&:not(.is-cropped) {
figure.blocks-gallery-grid {
figure.wp-block-image:not(#individual-image) {
margin-top: auto;
margin-bottom: auto;
img {
margin-bottom: $grid-unit-20;
}

figcaption {
bottom: $grid-unit-20;
}
}
}
}

// Cropped Images.
&.is-cropped figure.blocks-gallery-grid figure.wp-block-image:not(#individual-image) {
> div:not(.components-drop-zone),
Expand Down