Update banner image class

This commit is contained in:
Robin Cornett
2019-05-14 14:29:06 -04:00
parent 67ee568db2
commit 7fb40b18a4
4 changed files with 10 additions and 10 deletions
@@ -1 +1 @@
.has-leader .site-inner{margin-top:0}.big-leader{overflow:hidden;max-height:100vh;position:relative}.big-leader .wrap{position:absolute;right:0;bottom:0;left:0;width:100%;z-index:1}.big-leader--scriptless{height:auto}.big-leader--scriptless img{display:block;height:100vh;max-width:none;-o-object-fit:cover;object-fit:cover;width:100vw}.big-leader .entry-title.featured-image-overlay,.big-leader .archive-title.featured-image-overlay{color:#fff;text-align:center}.big-leader .excerpt,.big-leader .archive-description{margin-bottom:24px;padding:24px;background:rgba(255,255,255,.85)}.big-leader p{margin-top:18px;margin-bottom:0}.home .big-leader p{margin-top:0}.home .big-leader p:last-child{margin-bottom:0}.big-leader .excerpt .entry-title,.big-leader .archive-description .archive-title{margin-bottom:0}@keyframes fadein{from{opacity:0}to{opacity:1}}.backstretch.no-js{max-height:600px}img.featured{max-width:100%}
.has-leader .site-inner{margin-top:0}.big-leader{overflow:hidden;max-height:100vh;position:relative}.big-leader .wrap{position:absolute;right:0;bottom:0;left:0;width:100%;z-index:1}.big-leader--scriptless{height:auto}.big-leader__image{display:block;height:100vh;max-width:none;-o-object-fit:cover;object-fit:cover;width:100vw}.big-leader .entry-title.featured-image-overlay,.big-leader .archive-title.featured-image-overlay{color:#fff;text-align:center}.big-leader .excerpt,.big-leader .archive-description{margin-bottom:24px;padding:24px;background:rgba(255,255,255,.85)}.big-leader p{margin-top:18px;margin-bottom:0}.home .big-leader p{margin-top:0}.home .big-leader p:last-child{margin-bottom:0}.big-leader .excerpt .entry-title,.big-leader .archive-description .archive-title{margin-bottom:0}@keyframes fadein{from{opacity:0}to{opacity:1}}.backstretch.no-js{max-height:600px}img.featured{max-width:100%}
@@ -181,7 +181,7 @@ class DisplayFeaturedImageGenesisEnqueue {
$css .= "animation: fadein {$this->setting['fade']}ms;";
}
if ( $css ) {
$css = ".big-leader--scriptless img { {$css} }";
$css = ".big-leader__image { {$css} }";
}
return $css;
@@ -175,7 +175,7 @@ class Display_Featured_Image_Genesis_Output {
false,
array(
'alt' => $this->get_image_alt_text( $image_id ),
'class' => 'post-image',
'class' => 'big-leader__image post-image',
'aria-hidden' => 'true',
)
);
+7 -7
View File
@@ -18,14 +18,14 @@
&--scriptless {
height: auto;
}
img {
display: block;
height: 100vh;
max-width: none;
object-fit: cover;
width: 100vw;
}
&__image {
display: block;
height: 100vh;
max-width: none;
object-fit: cover;
width: 100vw;
}
.entry-title,