Created
June 7, 2018 06:42
-
-
Save psahalot/93ebd9cde2b9b5fb51f2dc7a5c9c812b to your computer and use it in GitHub Desktop.
Content Grid Custom Layout CSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.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