Skip to content

Instantly share code, notes, and snippets.

@cezarignat
Created May 18, 2021 10:59
Show Gist options
  • Save cezarignat/5abaf100fe887ccdb451c8c37e981eb0 to your computer and use it in GitHub Desktop.
Save cezarignat/5abaf100fe887ccdb451c8c37e981eb0 to your computer and use it in GitHub Desktop.
.container {
max-width: 1200px;
margin: auto;
}
.czr {
display: flex;
flex-wrap: wrap;
align-items: center;
width: 100%;
}
.czr+.czr.reverse {
flex-direction: row-reverse;
}
.czr>div {
position: relative;
display: flex;
width: 50%;
padding: 5vw;
background-position: center center;
background-size: contain;
background-repeat: no-repeat;
box-sizing: border-box;
}
.czr>div img {
max-width: 100%;
}
.czr>div.primary {
background-color: #ebb091;
}
a, a:visited {
color: #ebb091;
font-weight: bold;
}
.czr.nopadding>div {
padding: 0;
}
.lead {
font-family: 'Playfair Display', serif;
font-size: 6em;
font-weight: bold;
}
#contact {
font-size: 20px;
margin-bottom: 10vh;
}
.text-center {
text-align: center;
}
@media screen and (max-width: 992px) {
.czr {
display: block;
}
.czr>div {
width: 100%;
display: block;
padding: 3rem 5rem;
padding: 5vh 10vw;
}
.czr>.extrapadding {
padding: 2rem 7rem;
padding: 5vh 15vw;
}
.lead {
font-size: 2em;
margin-bottom: -1em;
}
#contact .lead {
margin-bottom: 0;
}
h1 {
font-size: 1.2em;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment