diff options
| author | Fuwn <[email protected]> | 2026-05-19 02:06:08 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-05-19 02:06:08 +0000 |
| commit | 37999a241f92ad2ca7d187d4a6a7fb9184009485 (patch) | |
| tree | 97490e6ef5b8a28d4cbc7861409441af7e9f365b /src/routes/+layout.svelte | |
| parent | style(transitions): add .button-badge / .badge-info to :where() (diff) | |
| download | due.moe-37999a241f92ad2ca7d187d4a6a7fb9184009485.tar.xz due.moe-37999a241f92ad2ca7d187d4a6a7fb9184009485.zip | |
fix(transitions): restore background-color on global anchor transition
Commit 485f1b11 narrowed :global(a) transition to color/opacity/
text-decoration-color, intentionally excluding background. That
swallowed background-color animation across every anchor, including
the dropdown items (Schedule, Profile) whose :hover toggles
background-color from base01.
Adds background-color to the narrowed list. The original intent of
excluding background-image / shorthand background transitions still
holds; only background-color was a real loss.
Diffstat (limited to 'src/routes/+layout.svelte')
| -rw-r--r-- | src/routes/+layout.svelte | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index c0bf86e9..af8a0e3c 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -409,6 +409,7 @@ $: { text-decoration: none; transition: color var(--duration-fast) var(--ease-in-out-quart), + background-color var(--duration-fast) var(--ease-in-out-quart), opacity var(--duration-fast) var(--ease-in-out-quart), text-decoration-color var(--duration-fast) var(--ease-in-out-quart); } |