Skip to content

Instantly share code, notes, and snippets.

@educartoons
Created July 5, 2017 20:31
Show Gist options
  • Save educartoons/e0d410f0547d7bd74dd89673bc108a0a to your computer and use it in GitHub Desktop.
Save educartoons/e0d410f0547d7bd74dd89673bc108a0a to your computer and use it in GitHub Desktop.
.blog-ul-list {
margin: 0;
padding: 0;
}
.blog-entry {
background-color: #13161a;
list-style: none;
width: 49.15254%;
float: left;
margin-right: 1.69492%;
margin: 0 0 1.38em 0;
}
.blog-entry:nth-child(even) {
width: 49.15254%;
float: right;
margin-right: 0;
}
@media (max-width: 425px) {
.blog-entry:nth-child(even) {
width: 100%;
float: left;
margin-left: 0;
margin-right: 0;
}
}
@media (max-width: 425px) {
.blog-entry {
width: 100%;
float: left;
margin-left: 0;
margin-right: 0;
}
}
.blog-entry .image {
margin: 0;
padding: 0;
}
.blog-entry .image img {
width: 100%;
}
.blog-entry .content {
box-sizing: border-box;
padding: 1em 1em 3em 1em;
position: relative;
height: 328px;
}
.blog-entry .content-wrapper {
height: 100%;
overflow: hidden;
position: relative;
}
.blog-entry .content-link {
position: absolute;
left: 1em;
bottom: 1em;
}
.blog-entry .content-link a {
color: #64b9a9;
font-family: 'Roboto', sans-serif;
font-style: normal;
font-weight: 400;
text-decoration: none;
}
.blog-entry .content .overlay {
background: linear-gradient(to top, #13161a 0%, rgba(19, 22, 26, 0.4) 20%, rgba(19, 22, 26, 0) 100%);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.blog-entry .content .title {
display: block;
color: #3db7a6;
font-size: 2.25em;
font-style: normal;
font-weight: 300;
margin: 0 0 5px 0;
}
@media (max-width: 768px) {
.blog-entry .content .title {
font-size: 1.65em;
}
}
.blog-entry .content .date {
color: #D8D8D8;
display: block;
font-size: 0.9em;
font-style: normal;
font-weight: 500;
margin: 0;
}
@media (max-width: 768px) {
.blog-entry .content .date {
font-size: 0.75em;
}
}
.blog-entry .content .blurb p {
color: #fff;
font-family: 'Roboto', sans-serif;
line-height: 1.5;
font-style: normal;
font-weight: 400;
text-align: inherit;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment