Skip to content

Commit

Permalink
Merge pull request #177 from BeAPI/fix/gallery-styles
Browse files Browse the repository at this point in the history
fix : gallery block styles
  • Loading branch information
francoistibo authored Sep 1, 2021
2 parents 06c0bdc + 0e9c955 commit 3ee7dfc
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions src/scss/wp/_gallery.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.gallery {
$el: &;

@include flex-grid-container();

Expand All @@ -8,32 +9,32 @@
display: none;
}

.gallery-caption {
&-caption {
margin: $half-base-spacing 0 0;
font-size: 11px;
text-align: left;
}
}

.gallery-item {
position: relative;
width: column(6);
margin-bottom: $base-spacing;
text-align: center;

a {
display: block;
&-item {
position: relative;
width: column(6);
margin-bottom: $base-spacing;
text-align: center;

img {
a {
display: block;

img {
display: block;
}
}
}

.gallery-columns-3 & {
width: column(4);
}
#{$el}-columns-3 & {
width: column(4);
}

.gallery-columns-4 & {
width: column(3);
#{$el}-columns-4 & {
width: column(3);
}
}
}

0 comments on commit 3ee7dfc

Please sign in to comment.