Skip to content

Instantly share code, notes, and snippets.

@luisfelipe-dev
Last active August 28, 2018 22:08
Show Gist options
  • Select an option

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

Select an option

Save luisfelipe-dev/bf115de9c2f893a21b3375b77524ea66 to your computer and use it in GitHub Desktop.
/* MAIN */
main {
width: 100%;
margin-top: 2rem;
}
.d-flex {
display: flex;
flex-wrap: wrap;
}
h2 {
color: #666666;
text-transform: uppercase;
font-size: 1em;
font-weight: 600;
}
.ultimos-posts {
width: 100%;
}
.ultimos-posts ul {
width: 100%;
list-style-type: none;
margin: 0;
padding: 0;
}
.ultimos-posts li {
width: 100%;
display: block;
margin-bottom: 1rem;
}
.ultimos-posts li a {
text-decoration: none;
}
.ultimos-posts li p {
color: #333333;
font-weight: bold;
margin: 0;
padding: 0;
}
.ultimos-posts li p:hover {
color: #7159c1;
}
.ultimos-posts li span {
color: #7159c1;
font-size: 0.875em;
margin: 0;
padding: 0;
}
.destaque {
width: 100%;
}
.destaque li {
width: 100%;
position: relative;
display: inline-block;
overflow: hidden;
min-width: 250px;
width: 100%;
background-color: #000000;
color: #ffffff;
text-align: left;
font-size: 16px;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}
.destaque li * {
-webkit-transition: all 0.35s;
transition: all 0.35s;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.destaque li img.bg {
max-width: 100%;
vertical-align: top;
}
.destaque li:hover img.bg {
-webkit-transform: scale(1.3) rotate(5deg);
transform: scale(1.3) rotate(5deg);
}
.destaque li:hover figcaption h3 {
opacity: 0.9;
text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.4);
}
.destaque li a {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
.destaque li figcaption {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
padding: 0px 15px 10px 15px;
background-image: -webkit-linear-gradient(
bottom,
rgba(0, 0, 0, 0.8) 0%,
transparent 100%
);
background-image: linear-gradient(
to top,
rgba(0, 0, 0, 0.8) 0%,
transparent 100%
);
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.destaque li figcaption h3 {
color: #fff;
font-size: 1.3em;
}
.autor-destaque {
width: 100%;
}
.autor-destaque .foto-autor {
width: 48px;
display: flex;
align-items: center;
}
.autor-destaque .foto-autor img {
max-width: 100%;
}
.autor-destaque .sobre-autor {
width: 60%;
display: flex;
justify-content: center;
flex-direction: column;
}
.autor-destaque .sobre-autor p {
color: #fff;
font-size: 0.875em;
font-weight: 500;
padding: 0;
display: block;
margin-left: 8px;
margin-bottom: 0 !important;
}
.autor-destaque .sobre-autor p:hover {
color: #fff;
}
.autor-destaque .sobre-autor span {
font-size: 0.875em;
display: block;
font-weight: 500;
color: #fff;
opacity: 0.5;
margin-left: 8px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment