Use new style highlight for selected tags

This commit is contained in:
Henrik Giesel 2021-09-08 01:18:34 +02:00
parent 9d73e928a6
commit b628e9df75
3 changed files with 8 additions and 4 deletions

View file

@ -46,7 +46,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
} }
:global(svg) { :global(svg) {
padding: 1px; padding: 0px 1px 2px;
cursor: pointer; cursor: pointer;
fill: currentColor; fill: currentColor;
opacity: 0.6; opacity: 0.6;

View file

@ -108,6 +108,9 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
} }
&.tag { &.tag {
--border-color: var(--medium-border);
border: 1px solid var(--border-color) !important;
border-radius: 5px; border-radius: 5px;
} }
@ -124,7 +127,8 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
} }
&.selected { &.selected {
box-shadow: 0 0 0 0.25rem transparentize(button.$focus-color, 0.5) !important; box-shadow: 0 0 0 2px var(--focus-shadow);
--border-color: var(--focus-border);
} }
} }

View file

@ -374,12 +374,12 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
$: shortenTags = shortenTags || assumedRows > 2; $: shortenTags = shortenTags || assumedRows > 2;
</script> </script>
<Spacer --height={`${height}px`} /> <Spacer --height="{height}px" />
<StickyBottom class="d-flex" bind:height> <StickyBottom class="d-flex" bind:height>
{#if !wrap} {#if !wrap}
<TagOptionsBadge <TagOptionsBadge
--buttons-size={`${size}rem`} --buttons-size="{size}rem"
showSelectionsOptions={tags.some((tag) => tag.selected)} showSelectionsOptions={tags.some((tag) => tag.selected)}
bind:badgeHeight bind:badgeHeight
on:tagselectall={selectAllTags} on:tagselectall={selectAllTags}