Skip to content

Instantly share code, notes, and snippets.

@ian-pvd
Created February 7, 2019 00:07
Show Gist options
  • Save ian-pvd/f620156fcb384836dbe0a91c87e13244 to your computer and use it in GitHub Desktop.
Save ian-pvd/f620156fcb384836dbe0a91c87e13244 to your computer and use it in GitHub Desktop.
rollblogs home page css
.elegantwp-fp16-posts {
display: flex;
flex-wrap: wrap;
}
.elegantwp-fp16-post,
.elegantwp-fp16-post-thumbnail {
height: 100%;
}
.elegantwp-fp16-post-thumbnail > a {
height: 0;
padding-top: calc(100% * (9/16));
display: block;
position: relative;
background: #000;
}
.elegantwp-fp16-post-thumbnail .elegantwp-fp16-post-thumbnail-img {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
display: block;
object-fit: contain;
object-position: center;
height: 100%;
width: 100%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment