Created
July 6, 2017 14:20
-
-
Save topleague/3ebfa3b16e54c345e5910585760d36a9 to your computer and use it in GitHub Desktop.
Design Hero Image on Single Posts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.site-inner { | |
clear: both; | |
padding-top: 0; | |
word-wrap: break-word; | |
background-color: #fff; | |
clear: both; | |
margin-bottom: 100px; | |
margin-top: 100px; | |
max-width: 1200px; | |
position: relative; | |
z-index: 999; | |
} | |
.full-width-content .content { | |
float: none; | |
margin-left: auto; | |
margin-right: auto; | |
width: 680px; | |
} | |
.entry-title { | |
letter-spacing: -0.5px; | |
} | |
.single.full-width-content .entry-header { | |
text-align: center; | |
} | |
.single.full-width-content .site-inner { | |
margin-top: -180px; | |
} | |
.entry, .single.full-width-content .entry { | |
padding: 0; | |
margin-top: 40px; | |
} | |
.entry-avatar .avatar { | |
background-color: #fff; | |
float: none; | |
margin-bottom: 40px; | |
margin-top: -60px; | |
padding: 5px; | |
} | |
.entry-avatar { | |
float: none; | |
margin-left: 40%; | |
} | |
.post-hero { | |
padding: 200px 0; | |
background-size: cover; | |
background-repeat: no-repeat; | |
background-position: center; | |
} | |
@media only screen and (max-width: 1023px) { | |
.full-width-content .content { | |
width: 100%; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment