Skip to content

Commit

Permalink
Fix regressions on default latest news style
Browse files Browse the repository at this point in the history
See #448
  • Loading branch information
adamwoodnz committed Oct 26, 2023
1 parent 6f083d4 commit 7048e1b
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions mu-plugins/blocks/latest-news/postcss/style.pcss
Expand Up @@ -16,13 +16,15 @@
text-decoration: underline;
}

.wp-block-wporg-latest-news:not(.is-style-cards) li > a {
display: block;
margin-bottom: var(--wp--custom--latest-news--link--spacing, 4px);
color: var(--wp--custom--latest-news--link--color);
font-family: var(--wp--custom--latest-news--title--font-family);
font-size: var(--wp--custom--latest-news--title--font-size, 24px);
line-height: var(--wp--custom--latest-news--title--line-height);
.wp-block-wporg-latest-news:not(.is-style-cards) li {
& > a {
display: block;
margin-bottom: var(--wp--custom--latest-news--link--spacing, 4px);
color: var(--wp--custom--latest-news--link--color);
font-family: var(--wp--custom--latest-news--title--font-family);
font-size: var(--wp--custom--latest-news--title--font-size, 24px);
line-height: var(--wp--custom--latest-news--title--line-height);
}

.wp-block-wporg-latest-news__details {
font-size: var(--wp--custom--latest-news--link--details-font-size, 14px);
Expand All @@ -31,6 +33,10 @@
margin-right: 4px;
}
}

.wp-block-wporg-latest-news__category {
text-transform: uppercase;
}
}

.wp-block-wporg-latest-news.is-style-cards {
Expand Down

0 comments on commit 7048e1b

Please sign in to comment.