Skip to content

Instantly share code, notes, and snippets.

@luisfelipe-dev
Created August 28, 2018 22:52
Show Gist options
  • Select an option

  • Save luisfelipe-dev/5f72da2438ee258518b9eeca493082d5 to your computer and use it in GitHub Desktop.

Select an option

Save luisfelipe-dev/5f72da2438ee258518b9eeca493082d5 to your computer and use it in GitHub Desktop.
/* BREAKPOINT 576px */
@media (min-width: 36em) {
.container {
max-width: 540px;
}
.destaque li figcaption h3 {
color: #fff;
font-size: 2em;
}
}
/* BREAKPOINT 768px */
@media (min-width: 48em) {
.container {
max-width: 720px;
}
.destaque {
width: calc(60% - 5px);
margin-right: 5px;
}
.sub-itens {
width: calc(40% - 5px);
margin-left: 5px;
}
.post-categoria .item-post {
width: calc(50% - 10px);
margin: 5px 5px 1rem 5px;
}
}
/* BREAKPOINT 992px */
@media (min-width: 62em) {
.container {
max-width: 960px;
}
.destaque {
width: calc(60% - 10px);
margin-right: 10px;
}
.sub-itens {
width: calc(40% - 10px);
margin-left: 10px;
}
.ultimos-posts li p {
font-size: 1.3em;
}
.post-categoria .item-post {
width: calc(33.33% - 10px);
margin: 5px 5px 1rem 5px;
}
}
/* BREAKPOINT 1200px */
@media (min-width: 75em) {
.container {
max-width: 1140px;
}
.destaque {
width: calc(50% - 20px);
margin-right: 20px;
}
.sub-itens {
width: calc(50% - 20px);
margin-left: 20px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment