-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
235 lines (235 loc) · 4.91 KB
/
Copy pathstyles.css
File metadata and controls
235 lines (235 loc) · 4.91 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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
:root {
color-scheme: dark;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: system-ui, -apple-system, sans-serif;
background: #111;
color: #eee;
padding-bottom: 104px;
}
header {
position: sticky;
top: 0;
padding: 16px;
background: #111;
z-index: 1;
}
h1 {
font-size: 1.3rem;
margin: 0;
}
main {
padding: 0 16px;
}
.podcast h2 {
font-size: 1.05rem;
margin: 20px 0 8px;
color: #9cf;
}
/* The podcast heading doubles as a collapse/expand toggle for its episode list. */
.podcast-head {
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
user-select: none;
}
.podcast-head::before {
content: "▾";
flex: none;
font-size: 0.85em;
color: #9cf;
transition: transform 0.15s ease;
}
.podcast.collapsed .podcast-head::before {
transform: rotate(-90deg);
}
.podcast-head:focus-visible {
outline: 2px solid #9cf;
outline-offset: 2px;
border-radius: 4px;
}
.podcast-title {
flex: 1;
min-width: 0;
}
/* Episode count — handy while a list is folded shut. */
.ep-count {
flex: none;
font-size: 0.72rem;
font-weight: normal;
color: #777;
}
.podcast.collapsed ul {
display: none;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
li {
display: flex;
align-items: center;
gap: 8px;
border-bottom: 1px solid #222;
position: relative; /* anchor for the .ep-bar progress strip */
}
.ep-title {
flex: 1;
min-width: 0;
padding: 12px 4px 12px 8px;
cursor: pointer;
}
.ep-title:active {
background: #1c1c1c;
}
.ep-title.unplayable {
color: #666;
cursor: default;
}
/* Finished (auto-detected at >=95% listened): the title recedes so played
episodes read as "done" against unplayed/in-progress ones. Still tappable to
replay. Placed after .unplayable so a played row dims even when also offline. */
.ep-title.played {
color: #6f6f6f;
}
/* Passive "played" status badge. Neutral grey — deliberately NOT the green of
the "✓ 저장됨" download badge, so the two checks never read as the same thing. */
.ep-played {
flex: none;
font-size: 0.72rem;
color: #8a8a8a;
white-space: nowrap;
}
/* Listening progress: a thin strip on the bottom edge of each episode row. The
width is set inline (0..100%); the currently-playing row's width updates live,
other rows show their last-saved resume point. */
.ep-bar {
position: absolute;
left: 0;
bottom: 0;
height: 3px;
background: #9cf;
border-radius: 0 2px 2px 0;
pointer-events: none; /* never steal taps from .ep-title */
transition: width 0.25s linear; /* smooth the ~4Hz live steps */
}
/* 이어듣기 (Continue Listening): a cross-podcast section pinned above the feed,
reusing .podcast / <h2> / <li> verbatim. Cap its height so a long resume list
can't bury the feed below the fold on a phone — it scrolls internally instead,
and the count pill still signals there are more. */
.continue ul {
max-height: calc(4.5 * 64px);
overflow-y: auto;
}
/* Inside 이어듣기 the title stacks over a second line (podcast name + time left),
so the same row reads as a cross-podcast item. The main list is untouched. */
.continue .ep-title {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 2px;
}
.ep-sub {
display: flex;
gap: 6px;
font-size: 0.75rem;
}
.ep-sub .pod {
color: #8ab; /* the cross-podcast disambiguator — the stronger of the two */
}
.ep-sub .left {
color: #888;
}
.dl-btn {
flex: none;
min-width: 48px;
height: 36px;
margin: 6px 4px;
border: 1px solid #2a2a2a;
border-radius: 8px;
background: #1c1c1c;
color: #9cf;
font-size: 0.9rem;
cursor: pointer;
}
.dl-btn:active {
background: #262626;
}
/* Downloaded = a passive status badge (never a delete affordance) ... */
.dl-saved {
flex: none;
font-size: 0.72rem;
color: #6ddf8e;
white-space: nowrap;
}
/* ... paired with a separate, destructive remove button. */
.dl-del {
min-width: 40px;
color: #ff9b9b;
border-color: #4a2323;
}
.dl-del:active {
background: #2a1414;
}
/* Mid-download percent readout — a status, not a button. */
.dl-progress {
flex: none;
min-width: 48px;
margin: 6px 4px;
text-align: center;
font-size: 0.8rem;
color: #9cf;
}
.offline-badge {
margin-left: 10px;
padding: 2px 8px;
border-radius: 999px;
background: #3a1d1d;
color: #ff9b9b;
font-size: 0.75rem;
vertical-align: middle;
}
.banner {
position: sticky;
top: 52px;
z-index: 1;
margin: 0 16px;
padding: 10px 12px;
border-radius: 8px;
background: #3a2a1d;
color: #ffd9a8;
font-size: 0.85rem;
cursor: pointer;
}
.storage {
font-size: 0.75rem;
color: #888;
margin-bottom: 6px;
}
.player {
position: fixed;
left: 0;
right: 0;
bottom: 0;
background: #181818;
border-top: 1px solid #2a2a2a;
padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}
.now {
font-size: 0.85rem;
color: #bbb;
margin-bottom: 6px;
min-height: 1em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
audio {
width: 100%;
}