Created
November 3, 2022 17:20
-
-
Save AchalJ/0bf614ac476e13ef699e4813136fdb62 to your computer and use it in GitHub Desktop.
Content Grid - CSS Grid to override isotope props
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
@media only screen and (min-width: 768px) { | |
.team-members-grid .pp-content-post-grid.pp-equal-height { | |
display: grid; | |
grid-template-columns: repeat(5, 1fr); | |
grid-auto-rows: min-content; | |
grid-column-gap: 3%; | |
grid-row-gap: 3ch; | |
height: auto !important; | |
} | |
.team-members-grid .pp-content-post-grid.pp-equal-height:before, | |
.team-members-grid .pp-content-post-grid.pp-equal-height:after { | |
content: none; | |
display: none; | |
} | |
.team-members-grid .pp-content-post-grid.pp-equal-height .pp-content-post { | |
display: flex; | |
flex-direction: column; | |
flex-grow: 1; | |
position: static !important; | |
overflow: visible; | |
width: auto; | |
height: auto !important; | |
margin-bottom: 0 !important; | |
transform: none !important; | |
} | |
.team-members-grid .pp-content-post-grid.pp-equal-height .pp-grid-space { | |
display: none; | |
} | |
} | |
@media only screen and (max-width: 992px) { | |
.team-members-grid .pp-content-post-grid.pp-equal-height { | |
grid-template-columns: repeat(2, 1fr); | |
} | |
.team-members-grid .pp-content-post-grid.pp-equal-height .pp-content-post { | |
margin-bottom: 3% !important; | |
} | |
} | |
@media only screen and (max-width: 768px) { | |
.team-members-grid .pp-content-post-grid.pp-equal-height { | |
grid-template-columns: repeat(1, 1fr); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment