Skip to content

Instantly share code, notes, and snippets.

@AshConnolly
Last active August 4, 2019 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AshConnolly/46e4a07bd37dd39d7e7d0fad59f38cc0 to your computer and use it in GitHub Desktop.
Save AshConnolly/46e4a07bd37dd39d7e7d0fad59f38cc0 to your computer and use it in GitHub Desktop.
.hero {
width: 100%;
height: 400px;
position: relative;
.callout {
padding: 2rem;
.title { font-size: 3rem; }
}
/*modifiers*/
&.hero--highlight {
height: 500px;
.callout { background: papayawhip; }
}
/*responsive*/
@media (min-width:500px) {
.callout {
padding: 3rem;
.title { font-size: 4rem; }
}
}
@media (min-width:830px) {
.callout {
padding: 4rem;
.title { font-size: 5rem;}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment