Last active
October 16, 2018 18:21
-
-
Save psahalot/823ae0e74f9e2998f0f4acb4be6033d4 to your computer and use it in GitHub Desktop.
Custom Grid Demo 2 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; | |
border: 1px solid #fff !important; | |
background: #F44336 !important; | |
} | |
.pp-content-grid-post-image { | |
padding: 0; | |
position: relative; | |
} | |
.pp-content-grid-post-image a img { | |
opacity: 0; | |
transition: opacity 0.2s ease-in-out 0s; | |
} | |
.pp-content-grid-post-text { | |
padding: 0 20px; | |
width: 100%; | |
position: absolute; | |
top: 10%; | |
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: 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