Skip to content

Instantly share code, notes, and snippets.

View luisfelipe-dev's full-sized avatar
:octocat:
👨🏻‍💻

Luís Felipe de Olivera luisfelipe-dev

:octocat:
👨🏻‍💻
View GitHub Profile
* {
box-sizing: border-box;
font-family: "Source Sans Pro", sans-serif;
}
header {
width: 100%;
background: #7159c1;
text-align: center;
padding-top: 0.4rem;
.container {
width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
/* BREAKPOINT 576px */
@media (min-width: 36em) {
<!-- INICIO MAIN -->
<main>
<!-- INICIO ULTIMOS POSTS -->
<section>
<div class='ultimos-posts'>
<div class='container'>
<div class='d-flex'>
<h2>Últimos Posts</h2>
/* MAIN */
main {
width: 100%;
margin-top: 2rem;
}
.d-flex {
display: flex;
/* BREAKPOINT 576px */
@media (min-width: 36em) {
.container {
max-width: 540px;
}
.destaque li figcaption h3 {
color: #fff;
font-size: 2em;
}
<!-- INICIO POST CATEGORIA -->
<section>
<div class='post-categoria'>
<div class='container'>
<h2>React Native</h2>
<div class="d-flex">
<div class="item-post">
<a href="javascript:void(0)">
.post-categoria {
width: 100%;
margin-top: 2rem;
margin-bottom: 2rem;
}
.post-categoria .item-post {
width: 100%;
margin-bottom: 1rem;
}
/* BREAKPOINT 576px */
@media (min-width: 36em) {
.container {
max-width: 540px;
}
.destaque li figcaption h3 {
color: #fff;
font-size: 2em;
}
<!-- INICIO NEWSLETTER -->
<section>
<div class='newsletter'>
<div class='container'>
<div class="d-flex">
<div class="newsletter_yoda">
<img src="img/yoda.png" alt="Yoda">
</div><!-- /newsletter_yoda -->
.newsletter {
background: #7159c1;
color: #fff;
padding-top: 1rem;
margin-left: 15px;
margin-right: 15px;
border-radius: 5px;
margin-bottom: 1rem;
overflow: hidden;