Skip to content

Commit 0cff49e

Browse files
Use built-in grid mixin on galleries
1 parent ef2d2fc commit 0cff49e

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,67 @@
11
/* ## Gallery
22
----------------------------------------------------------------------------- */
3+
.gallery {
4+
@include make-row;
5+
}
6+
37
.gallery-item {
8+
@include make-col-ready;
9+
text-align: center;
410
.gallery-columns-2 & {
511
@include media-breakpoint-up(sm) {
12+
@include make-col(6,12);
613
}
714
}
815
.gallery-columns-3 & {
916
@include media-breakpoint-up(sm) {
17+
@include make-col(4);
1018
}
1119
}
20+
.gallery-columns-4 & {
21+
@include media-breakpoint-up(sm) {
22+
@include make-col(3);
23+
}
24+
}
25+
.gallery-columns-5 & {
26+
@include media-breakpoint-up(sm) {
27+
@include make-col(1,5);
28+
}
29+
}
30+
.gallery-columns-6 & {
31+
@include media-breakpoint-up(sm) {
32+
@include make-col(1,6);
33+
}
34+
}
35+
36+
.gallery-columns-7 & {
37+
@include media-breakpoint-up(sm) {
38+
@include make-col(1,7);
39+
}
40+
}
41+
42+
.gallery-columns-8 & {
43+
@include media-breakpoint-up(sm) {
44+
@include make-col(1,8);
45+
}
46+
}
47+
48+
.gallery-columns-9 & {
49+
@include media-breakpoint-up(sm) {
50+
@include make-col(1,9);
51+
}
52+
}
53+
54+
.gallery-icon {
55+
margin-bottom: $spacer;
56+
}
57+
58+
img {
59+
@include img-fluid;
60+
padding: $thumbnail-padding;
61+
background-color: $thumbnail-bg;
62+
border: $thumbnail-border-width solid $thumbnail-border-color;
63+
@include border-radius($thumbnail-border-radius);
64+
@include transition($thumbnail-transition);
65+
@include box-shadow($thumbnail-box-shadow);
66+
}
1267
}

0 commit comments

Comments
 (0)