Skip to content

Instantly share code, notes, and snippets.

@AchalJ
Created November 3, 2022 17:20
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 AchalJ/0bf614ac476e13ef699e4813136fdb62 to your computer and use it in GitHub Desktop.
Save AchalJ/0bf614ac476e13ef699e4813136fdb62 to your computer and use it in GitHub Desktop.
Content Grid - CSS Grid to override isotope props
@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