diff options
author | Don Denton <don@happycollision.com> | 2015-12-26 08:43:30 +0300 |
---|---|---|
committer | Don Denton <don@happycollision.com> | 2015-12-26 08:43:30 +0300 |
commit | cf286167b78154649daa74c4f07cc19989f693f7 (patch) | |
tree | 1c40fab035737a3b495f957bc91936b7d88c3136 | |
parent | 1f23134b261336a9d5900e471f82bc5e7e775ec7 (diff) |
Adds second variable for featured image (front only)
This way, the featured image on the front page of the site can be
controlled differently than the featured image in posts/pages.
-rw-r--r-- | _sass/_page.scss | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/_sass/_page.scss b/_sass/_page.scss index 45b2f2f..78670f7 100644 --- a/_sass/_page.scss +++ b/_sass/_page.scss @@ -1,4 +1,5 @@ $feature-image-height: 400px; // min 150px recommended +$front-page-feature-image-height: 400px; // min 150px recommended body { margin: 0; @@ -131,6 +132,18 @@ body { min-height: $feature-image-height; // match .entry-image min-height } } +// Feature Image height on Front Page +#post-index { + &.feature .header-title { + height: $front-page-feature-image-height; + } + .entry-image { + min-height: $front-page-feature-image-height; + img { + min-height: $front-page-feature-image-height; + } + } +} // Feature Image Caption .image-credit { position: absolute; |