Last active
June 26, 2021 14:46
-
-
Save auniverseaway/7ff61851f99e28c7e83ce3dd959679ea to your computer and use it in GitHub Desktop.
This file contains 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
* { | |
box-sizing: border-box; | |
} | |
body { | |
background: #EFEFEF; | |
font-family: 'adobe clean'; | |
margin: 0; | |
} | |
.hero { | |
position: relative; | |
} | |
.hero > div > div { | |
display: flex; | |
justify-content: center; | |
flex-wrap: wrap; | |
align-items: center; | |
align-content: flex-end; | |
height: 100vh; | |
max-width: 600px; | |
padding: 0 0 48px 0; | |
} | |
.hero h1, h2 { | |
z-index: 2; | |
position: relative; | |
background: #FFF; | |
padding: 6px 24px; | |
margin: 0; | |
flex: 1 1 auto; | |
} | |
.hero picture { | |
display: block; | |
position: absolute; | |
left: 0; | |
right: 0; | |
top: 0; | |
bottom: 0; | |
} | |
.hero img { | |
object-fit: cover; | |
width: 100%; | |
height: 100%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment