Skip to content

Commit

Permalink
Site Grid: Only show first 2 or 3 tags depending on screen size
Browse files Browse the repository at this point in the history
Fixes #158
  • Loading branch information
ryelle committed Sep 19, 2023
1 parent abf3414 commit f0e0fc0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions source/wp-content/themes/wporg-showcase-2022/src/style/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,24 @@ a:where(:not(.wp-element-button)):focus-visible {
.wp-block-post-terms__separator {
white-space: inherit;
}

a,
.wp-block-post-terms__separator {
display: none;
}

a:nth-of-type(1),
.wp-block-post-terms__separator:nth-of-type(1),
a:nth-of-type(2) {
display: revert;
}

@media (min-width: 480px) {
.wp-block-post-terms__separator:nth-of-type(2),
a:nth-of-type(3) {
display: revert;
}
}
}
}

Expand Down

0 comments on commit f0e0fc0

Please sign in to comment.