-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
89 lines (72 loc) · 3.3 KB
/
styles.css
File metadata and controls
89 lines (72 loc) · 3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/* ── Base badge ──────────────────────────────────────────────────── */
.timer-badge {
font-family: var(--font-monospace);
font-weight: 700;
font-size: 0.85em;
padding: 2px 6px;
border-radius: 4px;
display: inline-block;
user-select: none;
cursor: pointer;
transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
line-height: 1.3;
vertical-align: baseline;
white-space: nowrap;
}
/* ── Running ─────────────────────────────────────────────────────── */
.timer-badge.timer-running {
color: var(--text-success);
background: rgba(var(--color-green-rgb), 0.15);
border: 1px solid rgba(var(--color-green-rgb), 0.4);
--glow-rgb: var(--color-green-rgb);
animation: timer-breathe 3s ease-in-out infinite;
}
/* Countdown overrides colour while keeping the same animation */
.timer-badge.timer-countdown.timer-running {
color: var(--text-accent);
background: rgba(var(--color-blue-rgb), 0.15);
border: 1px solid rgba(var(--color-blue-rgb), 0.4);
--glow-rgb: var(--color-blue-rgb);
}
/* ── Paused ──────────────────────────────────────────────────────── */
.timer-badge.timer-paused {
color: var(--text-warning);
background: rgba(var(--color-orange-rgb), 0.15);
border: 1px solid rgba(var(--color-orange-rgb), 0.4);
}
/* ── Stopped ─────────────────────────────────────────────────────── */
.timer-badge.timer-stopped {
color: var(--text-muted);
background: var(--background-modifier-active-hover);
border: 1px solid var(--background-modifier-border);
}
/* ── Countdown spacing ───────────────────────────────────────────── */
.timer-badge.timer-countdown {
letter-spacing: 0.02em;
}
/* ── Hover ────────────────────────────────────────────────────────── */
.timer-badge:hover {
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
filter: brightness(1.08);
}
/* Pause glow animation while hovering so the hover shadow wins */
.timer-badge.timer-running:hover {
animation: none;
}
/* ── Smooth breathing glow ───────────────────────────────────────── */
@keyframes timer-breathe {
0%, 100% {
box-shadow: 0 0 4px 0 rgba(var(--glow-rgb), 0.1);
}
50% {
box-shadow: 0 0 14px 3px rgba(var(--glow-rgb), 0.25);
}
}
/* ── Accessibility ───────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
.timer-badge {
animation: none !important;
transition: none !important;
}
}