Last active
May 23, 2023 10:59
-
-
Save AchalJ/7094a309a6a6aa3aa3a7d61830459dfd to your computer and use it in GitHub Desktop.
Content Grid - Custom Layout - 1 (Beaver Themer)
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; | |
background-color: #fff !important; | |
} | |
.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: #000 !important; | |
} | |
.pp-content-grid-post-image:hover .pp-content-grid-post-text { | |
opacity: 1; | |
} | |
.pp-content-grid-post-image:hover a img { | |
opacity: 0; | |
} | |
.pp-content-grid-post-title { | |
font-size: 20px; | |
line-height: 26px; | |
margin: 0; | |
padding: 0; | |
color: #000; | |
} | |
.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: #000; | |
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; | |
} |
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
[wpbb-if post:featured_image] | |
<div class="pp-content-grid-post-image"> | |
[wpbb post:featured_image size="large" display="tag" linked="yes"] | |
<div class="pp-content-grid-post-text"> | |
<h3 class="pp-content-grid-post-title">[wpbb post:link text="title"]</h3> | |
<div class="pp-content-grid-post-meta"> | |
[wpbb post:date format="F j, Y"] | |
</div> | |
</div> | |
</div> | |
[/wpbb-if] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment