diff options
| author | Joe Carstairs <me@joeac.net> | 2026-09-23 19:49:16 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-09-23 19:49:16 +0100 |
| commit | 5b00e83dd7d51d13277858a2731d4f5b35888c0f (patch) | |
| tree | 4d856f438e862e42f8aeae0f978e0e81d374a3db | |
| parent | 01ec1b5a2aca1db9c7275f93974720fc898e33a4 (diff) | |
only apply card styling to h-entries with details inside
| -rw-r--r-- | http/src/css/feed.uppcss | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/http/src/css/feed.uppcss b/http/src/css/feed.uppcss index 18c429a..c2574a0 100644 --- a/http/src/css/feed.uppcss +++ b/http/src/css/feed.uppcss @@ -15,11 +15,14 @@ ul:has(> .h-entry) { .h-feed .h-entry { display: flex; flex-direction: column; - margin-inline: calc(-1 * var(--spacing-inline-md)); - border: 2px solid; - padding: var(--spacing-inline-md); - background: var(--colour-primary-bg-accent); - cursor: pointer; + + &:has(details) { + margin-inline: calc(-1 * var(--spacing-inline-md)); + border: 2px solid; + padding: var(--spacing-inline-md); + background: var(--colour-primary-bg-accent); + cursor: pointer; + } > details > summary::marker { list-style-type: none; |
