From 650951cf3bbedc0a8776d3b7d7e6856bcb0f7229 Mon Sep 17 00:00:00 2001 From: Allan Lasser Date: Thu, 5 Dec 2024 12:09:44 -0500 Subject: [PATCH] Update design of collapse/expand all buttons --- .../components/common/HighlightGroup.svelte | 55 +++++++++++-------- 1 file changed, 33 insertions(+), 22 deletions(-) diff --git a/src/lib/components/common/HighlightGroup.svelte b/src/lib/components/common/HighlightGroup.svelte index 0ccfc59f7..d36db09e2 100644 --- a/src/lib/components/common/HighlightGroup.svelte +++ b/src/lib/components/common/HighlightGroup.svelte @@ -49,26 +49,29 @@ {#if showAll}
- - + {#if open} + + {:else} + + {/if}
{/if} @@ -92,8 +95,8 @@ .highlights summary { display: flex; flex-flow: row wrap; - justify-content: space-between; - gap: 0.25rem; + justify-content: flex-start; + gap: 1rem; color: var(--gray-4); fill: var(--gray-4); padding: 0.5rem 0.75rem; @@ -106,6 +109,14 @@ align-items: center; gap: 0.5rem; white-space: no-wrap; + padding: 0 0.5rem 0 0.25rem; + border-radius: 0.5rem; + } + summary .left:hover, + summary .left:focus, + summary:hover .left, + summary:focus .left { + background-color: var(--blue-1); } .highlights ul { list-style-type: none;