Merge pull request #364 from jwcooper/tablet-overlay
Add overlay on headline image on tablet sizes
This commit is contained in:
commit
a78fdd1ef0
2 changed files with 20 additions and 8 deletions
|
|
@ -24,3 +24,14 @@
|
|||
background-color: #fff;
|
||||
}
|
||||
}
|
||||
|
||||
@mixin img-overlay {
|
||||
.img-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -152,6 +152,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: $screen-md-max) {
|
||||
#home-page {
|
||||
.headline-banner {
|
||||
@include img-overlay;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: $screen-xs-max) {
|
||||
#home-page {
|
||||
padding: 0;
|
||||
|
|
@ -186,14 +194,7 @@
|
|||
|
||||
}
|
||||
|
||||
.img-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
}
|
||||
@include img-overlay;
|
||||
|
||||
img.pinball {
|
||||
object-fit: fill;
|
||||
|
|
|
|||
Loading…
Reference in a new issue