Skip to content

Instantly share code, notes, and snippets.

@psahalot
Created October 16, 2018 18:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psahalot/78270295d218f87e6eb07bb27a268c98 to your computer and use it in GitHub Desktop.
Save psahalot/78270295d218f87e6eb07bb27a268c98 to your computer and use it in GitHub Desktop.
Custom Layout 3 Demo CSS
.pp-content-grid-post {
font-size: 14px;
background: #3F51B5 !important;
height: 500px !important;
}
.pp-content-grid-post-image {
padding: 0;
position: relative;
}
.pp-content-grid-post-image a img {
height: 600px !important;
max-width: none;
opacity: 0;
transition: opacity 0.2s ease-in-out 0s;
}
.pp-content-grid-post-text {
padding: 0 50px;
width: 100%;
position: absolute;
top: 8%;
z-index: 1;
opacity: 1;
text-align: left;
transition: opacity 0.2s 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: 22px;
font-weight: 400;
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