Add subtle animated gradient background to running target cards
Uses the existing --border-angle animation to sweep a faint accent gradient across the card background in sync with the rotating border. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -107,6 +107,14 @@ section {
|
||||
|
||||
.card-running {
|
||||
border-color: transparent;
|
||||
background: linear-gradient(
|
||||
calc(var(--border-angle) + 45deg),
|
||||
var(--card-bg) 0%,
|
||||
color-mix(in srgb, var(--primary-color) 12%, var(--card-bg)) 40%,
|
||||
var(--card-bg) 60%,
|
||||
color-mix(in srgb, var(--primary-color) 8%, var(--card-bg)) 85%,
|
||||
var(--card-bg) 100%
|
||||
);
|
||||
}
|
||||
|
||||
/* When card has a custom color stripe, keep it and shift the animated border away from the left edge */
|
||||
|
||||
Reference in New Issue
Block a user