-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
181 lines (169 loc) · 6.77 KB
/
style.css
File metadata and controls
181 lines (169 loc) · 6.77 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
body {
font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
margin: 0;
padding: 0;
background: #121212;
color: #f5f7fa;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
header {
background: #222;
color: #f4f4f4;
padding: 2em 1em 1em 1em;
text-align: center;
border-bottom: 1px solid #333;
}
main {
padding: 1em;
max-width: 500px;
margin: auto;
}
button, .navBtn, .dayBtn {
background: linear-gradient(145deg,#2563eb,#1d4ed8);
color: #f5f7fa;
border: none;
padding: 0.9em 1.4em;
font-size: 1rem;
font-weight: 600;
letter-spacing: .5px;
border-radius: 14px;
cursor: pointer;
margin: 0.85em 0;
box-shadow: 0 4px 16px -4px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
transition: background .25s, transform .15s, box-shadow .25s;
position: relative;
}
button:hover, .dayBtn:hover {
background: linear-gradient(145deg,#1d4ed8,#1e40af);
}
button:active, .dayBtn:active { transform: translateY(2px); box-shadow: 0 2px 10px -2px rgba(0,0,0,0.6); }
button:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; }
/* Secondary (quiet) buttons */
.secondaryBtn {
background: #1e1e1e;
color: #d1d5db;
font-weight: 500;
box-shadow: 0 2px 10px -2px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.secondaryBtn:hover { background:#272727; color:#fff; }
.secondaryBtn:active { background:#1d1d1d; }
.weeks {
display: flex;
flex-direction: column;
gap: 1em;
}
.week {
background: #222;
border-radius: 16px;
box-shadow: 0 2px 8px rgba(0,0,0,0.12);
padding: 1em;
margin-bottom: 0.5em;
}
.days {
display: flex;
gap: 0.5em;
margin-top: 0.5em;
}
.dayBtn {
background: #1f2937;
font-size: 0.95rem;
padding: 0.7em 1em;
border-radius: 12px;
box-shadow: 0 2px 10px -3px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05) inset;
}
.dayBtn[disabled] { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
section {
margin-bottom: 2em;
}
#intervalCue {
font-size: 1.3em;
margin: 1em 0 0.5em 0;
color: #f4f4f4;
font-weight: bold;
}
#timerDisplay {
font-size: 2em;
font-weight: bold;
color: #f4f4f4;
margin-bottom: 1em;
}
footer {
text-align: center;
padding: 1em;
background: #0d0d0d;
color: #6b7280;
position: fixed;
width: 100%;
bottom: 0;
border-top: 1px solid #1f1f1f;
}
ul {
background: #222;
border-radius: 12px;
padding: 1em;
margin: 1em 0;
box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
li {
margin-bottom: 0.5em;
font-size: 1.1em;
}
@media (max-width: 600px) {
main {
padding: 0.5em;
}
button, .navBtn, .dayBtn { width: 100%; font-size: 1rem; padding: 1.05em 0.75em; }
.days {
flex-direction: column;
gap: 0.5em;
}
.week {
padding: 0.5em;
}
}
/* Music launcher */
.musicLauncher { margin-top:1.5em; background:#1a1a1a; padding:1em 1.1em 1.3em; border-radius:16px; box-shadow:0 4px 18px -6px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset; }
.musicHint { margin:0 0 .75em 0; font-size:.85rem; color:#9ca3af; letter-spacing:.3px; }
.musicOptions { display:flex; gap:.6em; }
.musicServiceBtn { flex:1; background:#1f2937; font-size:.85rem; padding:.9em .6em; border-radius:10px; font-weight:600; letter-spacing:.5px; }
.musicServiceBtn:hover { background:#273549; }
.musicServiceBtn:focus-visible { outline:2px solid #3b82f6; outline-offset:2px; }
.launchMusicRow { display:flex; flex-direction:column; gap:.85em; }
.chosenMusicService { font-size:.9rem; font-weight:600; color:#93c5fd; }
.launchButtons { display:flex; gap:.5em; }
/* Interval cue emphasis */
#intervalCue { font-weight:600; letter-spacing:.5px; }
/* Timer display modernization */
#timerDisplay { font-feature-settings:"tnum" 1; font-variant-numeric:tabular-nums; }
/* Battery saver mode tweaks (applied via body.battery-saver) */
body.battery-saver * { transition: none !important; animation: none !important; }
body.battery-saver canvas { filter: grayscale(.4); }
.remainingIntervals { margin-top:-0.4em; margin-bottom:0.6em; color:#9ca3af; text-transform:uppercase; letter-spacing:.6px; }
.floatingInstallBtn { position:fixed; top:0.75rem; left:0.75rem; background:#1e293b; color:#f1f5f9; width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:1.3rem; box-shadow:0 6px 22px -6px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05) inset; cursor:pointer; }
.floatingInstallBtn:hover { background:#24324a; }
/* Interval plan list */
.intervalPlanWrap { margin-top:1.2em; background:#1a1d21; padding:0.9em 0.95em 1em; border-radius:14px; box-shadow:0 3px 14px -4px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,0.04) inset; }
.intervalPlanHeader { display:flex; align-items:center; justify-content:space-between; font-size:.85rem; text-transform:uppercase; letter-spacing:.7px; color:#9ca3af; margin-bottom:.35em; }
.intervalPlanList { list-style:none; margin:0; padding:0; max-height:200px; overflow-y:auto; scrollbar-width:thin; }
.intervalPlanList li { display:flex; justify-content:space-between; align-items:center; padding:.55em .65em; font-size:.85rem; border-radius:10px; background:#20252b; margin-bottom:4px; line-height:1.2; position:relative; }
.intervalPlanList li span.intervalType { font-weight:600; letter-spacing:.3px; }
.intervalPlanList li.active { background:#1e3a8a; color:#f0f9ff; box-shadow:0 0 0 1px #3b82f6 inset; }
.intervalPlanList li.completed { opacity:.45; }
.intervalPlanList li.active::after { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; background:#60a5fa; border-top-left-radius:10px; border-bottom-left-radius:10px; }
.intervalPlanList li.type-Run { background:#1d2f24; }
.intervalPlanList li.type-Run.active { background:#0f5132; box-shadow:0 0 0 1px #198754 inset; }
.intervalPlanList li.type-Walk { background:#2a2330; }
.intervalPlanList li.type-Walk.active { background:#3c215d; box-shadow:0 0 0 1px #7c3aed inset; }
.intervalPlanList li.type-warmup { background:#2d2d23; }
.intervalPlanList li.type-cooldown { background:#262b33; }
.intervalPlanList li.type-warmup.active, .intervalPlanList li.type-cooldown.active { background:#374151; box-shadow:0 0 0 1px #6b7280 inset; }
.intervalPlanList li.type-Run.completed { background:#13281c; }
.intervalPlanList li.type-Walk.completed { background:#281f33; }
.intervalPlanToggle { font-size:.65rem; padding:.45em .7em; text-transform:uppercase; letter-spacing:.8px; }
.intervalPlanWrap.collapsed .intervalPlanList { display:none; }
.intervalPlanWrap.collapsed .intervalPlanToggle { background:#273549; }
/* Danger style for reset progress */
#resetProgressBtn { background:#3b0d0d; }
#resetProgressBtn:hover { background:#5a1313; }
#resetProgressBtn:active { background:#2b0909; }