Skip to content

Commit a78fdd1

Browse files
authored
Merge pull request #364 from jwcooper/tablet-overlay
Add overlay on headline image on tablet sizes
2 parents d9c48fe + 3b69d69 commit a78fdd1

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

assets/sass/base/_mixins.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,14 @@
2424
background-color: #fff;
2525
}
2626
}
27+
28+
@mixin img-overlay {
29+
.img-overlay {
30+
position: absolute;
31+
top: 0;
32+
left: 0;
33+
width: 100%;
34+
height: 100%;
35+
background: rgba(0, 0, 0, 0.6);
36+
}
37+
}

assets/sass/pages/_home.scss

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,14 @@
152152
}
153153
}
154154

155+
@media only screen and (max-width: $screen-md-max) {
156+
#home-page {
157+
.headline-banner {
158+
@include img-overlay;
159+
}
160+
}
161+
}
162+
155163
@media only screen and (max-width: $screen-xs-max) {
156164
#home-page {
157165
padding: 0;
@@ -186,14 +194,7 @@
186194

187195
}
188196

189-
.img-overlay {
190-
position: absolute;
191-
top: 0;
192-
left: 0;
193-
width: 100%;
194-
height: 100%;
195-
background: rgba(0, 0, 0, 0.6);
196-
}
197+
@include img-overlay;
197198

198199
img.pinball {
199200
object-fit: fill;

0 commit comments

Comments
 (0)