Skip to content

Commit 3ee7dfc

Browse files
authored
Merge pull request #177 from BeAPI/fix/gallery-styles
fix : gallery block styles
2 parents 06c0bdc + 0e9c955 commit 3ee7dfc

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

src/scss/wp/_gallery.scss

+18-17
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.gallery {
2+
$el: &;
23

34
@include flex-grid-container();
45

@@ -8,32 +9,32 @@
89
display: none;
910
}
1011

11-
.gallery-caption {
12+
&-caption {
1213
margin: $half-base-spacing 0 0;
1314
font-size: 11px;
1415
text-align: left;
1516
}
16-
}
17-
18-
.gallery-item {
19-
position: relative;
20-
width: column(6);
21-
margin-bottom: $base-spacing;
22-
text-align: center;
2317

24-
a {
25-
display: block;
18+
&-item {
19+
position: relative;
20+
width: column(6);
21+
margin-bottom: $base-spacing;
22+
text-align: center;
2623

27-
img {
24+
a {
2825
display: block;
26+
27+
img {
28+
display: block;
29+
}
2930
}
30-
}
3131

32-
.gallery-columns-3 & {
33-
width: column(4);
34-
}
32+
#{$el}-columns-3 & {
33+
width: column(4);
34+
}
3535

36-
.gallery-columns-4 & {
37-
width: column(3);
36+
#{$el}-columns-4 & {
37+
width: column(3);
38+
}
3839
}
3940
}

0 commit comments

Comments
 (0)