Skip to content

Commit

Permalink
Add custom style for gallery overlap
Browse files Browse the repository at this point in the history
  • Loading branch information
erikjoling committed Mar 23, 2024
1 parent 72c5536 commit e6f0baa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ footer > .wp-block-group.has-primary-background-color > * {

/* -------------------------------- CUSTOM ---------------------------------- */

/* Image-button */
.image-button-2 { position: relative; }
.image-button-2 > .wp-block-image img {
aspect-ratio: 21/9 !important;
Expand All @@ -256,4 +257,14 @@ footer > .wp-block-group.has-primary-background-color > * {
position: absolute;
right: 0;
bottom: 0;
}

/* Gallery overlap */
.wp-block-gallery--overlap {

}

.wp-block-gallery--overlap > figure + figure {
margin-left: calc( var(--wp--style--block-gap) * -4 ) !important;
opacity: 0.8;
}

0 comments on commit e6f0baa

Please sign in to comment.