diff options
| author | Joe Carstairs <118172583+jcarstairs-scottlogic@users.noreply.github.com> | 2024-07-01 14:19:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-01 14:19:47 +0100 |
| commit | af9bc77dcf93675250515941be3c33a31a219bcf (patch) | |
| tree | 619e11abcdd2866f8cd61fe429a37a86f4611026 /website/public/css/feed.css | |
| parent | 682378938ddcbb80bf2dfc28cb4dfc647a32908a (diff) | |
| parent | bd898d6ca6a18d3a57d38ca6b94015e3972e34e2 (diff) | |
Merge pull request #5 from joeacarstairs/no-css-nesting
No CSS nesting
Diffstat (limited to 'website/public/css/feed.css')
| -rw-r--r-- | website/public/css/feed.css | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/website/public/css/feed.css b/website/public/css/feed.css index 699a571..f47e609 100644 --- a/website/public/css/feed.css +++ b/website/public/css/feed.css @@ -1,10 +1,8 @@ -.h-feed { - /* Assumes there is at most one level of subheading for sub-dividing entries */ - :is(h2, h3, h4, h5, h6) { - margin-block-start: var(--spacing-block-md); - } - - .h-entry { - margin-block-start: var(--spacing-block-sm); - } +/* Assumes there is at most one level of subheading for sub-dividing entries */ +.h-feed :is(h2, h3, h4, h5, h6) { + margin-block-start: var(--spacing-block-md); +} + +.h-feed .h-entry { + margin-block-start: var(--spacing-block-sm); } |
