Instantly share code, notes, and snippets.

Embed
What would you like to do?
Content Grid Custom Layout CSS
.pp-content-grid-post {
font-size: 14px;
}
.pp-content-grid-post-image {
padding: 0;
position: relative;
}
.pp-content-grid-post-image a img {
filter: saturate(1.6) contrast(1.1);
opacity: 1;
transition: opacity 0.4s ease-in-out 0s;
}
.pp-content-grid-post-text {
padding: 0 20px;
width: 100%;
position: absolute;
top: 50%;
transform: translateY(-50%);
z-index: 1;
opacity: 0;
transition: opacity 0.4s ease-in-out 0s;
}
.pp-content-grid-post-text * {
color: #fff !important;
}
.pp-content-grid-post-image:hover .pp-content-grid-post-text {
opacity: 1;
}
.pp-content-grid-post-image:hover a img {
opacity: 0.5;
}
.pp-content-grid-post-title {
font-size: 20px;
line-height: 26px;
margin: 0;
padding: 0;
color: #fff;
}
.pp-content-grid-post-meta {
margin-top: 10px;
padding: 0;
color: #fff;
}
.pp-content-grid-post-meta a {
text-decoration: none;
}
.pp-content-grid-post-meta,
.pp-content-grid-post-meta a {
color: #888;
font-size: 12px;
}
.pp-content-grid-post-meta a:hover {
color: #000;
}
.pp-content-grid-separator {
height: 2px;
width: 60px;
background: #000;
margin-top: 10px;
margin-bottom: 20px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment