mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
Use new style highlight for selected tags
This commit is contained in:
parent
9d73e928a6
commit
b628e9df75
3 changed files with 8 additions and 4 deletions
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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}
|
||||||
|
|
Loading…
Reference in a new issue