Skip to content

Commit 65b661c

Browse files
monkeywithacupcakealshedivat
authored andcommitted
move image-row height and col to media queries to adjust with viewport
1 parent 488cb39 commit 65b661c

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

_sass/_gallery.scss

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ figcaption {
1111
background: $theme-color;
1212
}
1313
.img_row {
14-
height: $img-height;
14+
/*height: $img-height;*/
1515
width: 100%;
1616
overflow: hidden;
1717
box-sizing:border-box;
@@ -21,7 +21,7 @@ figcaption {
2121
height: 100%;
2222
object-fit: cover;
2323
box-sizing:border-box;
24-
padding: $img-spacing;
24+
/*padding: $img-spacing;*/
2525
}
2626
.one {
2727
width:33.33%;

_sass/_media-queries.scss

+18
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,36 @@
4747
.social-icons-right {
4848
text-align: right;
4949
}
50+
.img_row {
51+
height: $img-height/3;
52+
}
53+
.col {
54+
padding: $img-spacing/3;
55+
}
5056
}
5157

5258
@media screen and (min-width: $viewport-medium) {
5359
html {
5460
font-size: 18px;
5561
}
62+
.img_row {
63+
height: $img-height/1.5;
64+
}
65+
.col {
66+
padding: $img-spacing/1.5;
67+
}
5668
}
5769

5870
@media screen and (min-width: $viewport-large) {
5971
html {
6072
font-size: 20px;
6173
}
74+
.img_row {
75+
height: $img-height;
76+
}
77+
.col {
78+
padding: $img-spacing;
79+
}
6280
}
6381

6482
@media screen and (min-width: $viewport-large + 14) {

0 commit comments

Comments
 (0)