@ywkrlerche/richardwho 1.0.39 → 1.0.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,352 @@
1
+ body {
2
+ font-family: sans-serif;
3
+ background: #111;
4
+ color: white;
5
+ margin: 0;
6
+ padding: 2rem;
7
+ }
8
+
9
+ #controls {
10
+ position: fixed;
11
+ top: 20px;
12
+ left: 20px;
13
+ right: 20px;
14
+ z-index: 1000;
15
+ display: flex;
16
+ flex-wrap: wrap;
17
+ gap: 10px;
18
+ justify-content: center;
19
+ padding: 10px;
20
+ }
21
+
22
+ .control-button {
23
+ padding: 0.5rem 1rem;
24
+ border: none;
25
+ border-radius: 8px;
26
+ font-weight: bold;
27
+ cursor: pointer;
28
+ transition: filter 0.15s, transform 0.1s;
29
+ }
30
+ .control-button:hover { filter: brightness(1.2); transform: scale(1.04); }
31
+
32
+ .favorites-toggle { background: #ffee00; color: #444; }
33
+ .overlap-toggle { background: #444; color: white; }
34
+ .stop-button { background: #aa0000; color: white; }
35
+
36
+ .tts-toggle {
37
+ background: linear-gradient(135deg, #1a6b8a, #0f3d52);
38
+ color: #7ee8ff;
39
+ border: 1px solid #7ee8ff55;
40
+ letter-spacing: 0.02em;
41
+ }
42
+ .tts-toggle-active {
43
+ background: linear-gradient(135deg, #7ee8ff, #3bc6f0);
44
+ color: #0a2430;
45
+ border-color: transparent;
46
+ }
47
+
48
+ #search-input {
49
+ padding: 0.5rem 1rem;
50
+ border-radius: 8px;
51
+ border: 1px solid #444;
52
+ background: #222;
53
+ color: white;
54
+ flex: 1;
55
+ min-width: 150px;
56
+ }
57
+ #search-input:focus { outline: none; border-color: #7ee8ff; }
58
+
59
+ #soundboard {
60
+ display: flex;
61
+ flex-wrap: wrap;
62
+ gap: 2rem;
63
+ justify-content: center;
64
+ margin-top: 100px;
65
+ }
66
+
67
+ .sound-wrapper {
68
+ display: flex;
69
+ flex-direction: column;
70
+ align-items: center;
71
+ width: 120px;
72
+ }
73
+
74
+ .sound-wrapper:hover {
75
+ transform: scale(1.05);
76
+ filter: brightness(1.2);
77
+ transition: 10ms;
78
+ }
79
+
80
+ .sound-button-img {
81
+ all: unset;
82
+ cursor: pointer;
83
+ width: 100px;
84
+ height: 100px;
85
+ position: relative;
86
+ }
87
+
88
+ .sound-image {
89
+ width: 100%;
90
+ height: 100%;
91
+ background-color: var(--btn-color);
92
+ background-image: url('button.png');
93
+ background-size: cover;
94
+ background-position: center;
95
+ background-blend-mode: multiply;
96
+ border-radius: 50%;
97
+ transition: transform 0.1s, filter 0.2s;
98
+ box-shadow: 0 0 8px var(--btn-color);
99
+ }
100
+
101
+ .sound-image.pressed {
102
+ background-image: url('button_pressed.png');
103
+ transform: scale(0.95);
104
+ }
105
+
106
+ .sound-label {
107
+ margin-top: 0.5rem;
108
+ text-align: center;
109
+ font-size: 0.9rem;
110
+ color: #eee;
111
+ font-weight: bold;
112
+ word-break: break-word;
113
+ }
114
+
115
+ .right-click-panel {
116
+ background: white;
117
+ border: 1px solid #ccc;
118
+ padding: 8px;
119
+ z-index: 1000;
120
+ border-radius: 4px;
121
+ box-shadow: 0 2px 5px rgba(0,0,0,0.3);
122
+ }
123
+ .right-click-panel-label { font-weight: bold; margin-bottom: 5px; }
124
+ .right-click-panel-button { padding: 5px; }
125
+
126
+ #ttsPanel {
127
+ position: fixed;
128
+ top: 80px;
129
+ right: 20px;
130
+ width: 380px;
131
+ max-width: calc(100vw - 40px);
132
+ z-index: 999;
133
+ background: #0d1f2d;
134
+ border: 1px solid #1e4a65;
135
+ border-radius: 16px;
136
+ padding: 20px;
137
+ box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 0 1px #7ee8ff22;
138
+ display: flex;
139
+ flex-direction: column;
140
+ gap: 14px;
141
+ font-family: sans-serif;
142
+ animation: tts-slide-in 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
143
+ }
144
+ #ttsPanel.hidden { display: none; }
145
+
146
+ @keyframes tts-slide-in {
147
+ from { opacity: 0; transform: translateY(-12px) scale(0.97); }
148
+ to { opacity: 1; transform: translateY(0) scale(1); }
149
+ }
150
+
151
+ .tts-panel-header {
152
+ display: flex;
153
+ justify-content: space-between;
154
+ align-items: center;
155
+ }
156
+ .tts-title {
157
+ font-size: 1rem;
158
+ font-weight: bold;
159
+ color: #7ee8ff;
160
+ letter-spacing: 0.05em;
161
+ text-transform: uppercase;
162
+ }
163
+ .tts-close {
164
+ background: none;
165
+ border: none;
166
+ color: #7ee8ff88;
167
+ cursor: pointer;
168
+ font-size: 1.1rem;
169
+ line-height: 1;
170
+ padding: 2px 6px;
171
+ border-radius: 6px;
172
+ transition: color 0.15s, background 0.15s;
173
+ }
174
+ .tts-close:hover { color: #fff; background: #ffffff18; }
175
+
176
+ .tts-textarea {
177
+ width: 100%;
178
+ min-height: 90px;
179
+ background: #081420;
180
+ color: #e0f4ff;
181
+ border: 1px solid #1e4a65;
182
+ border-radius: 10px;
183
+ padding: 10px 12px;
184
+ font-size: 0.9rem;
185
+ resize: vertical;
186
+ box-sizing: border-box;
187
+ transition: border-color 0.2s;
188
+ font-family: inherit;
189
+ }
190
+ .tts-textarea:focus { outline: none; border-color: #7ee8ff; }
191
+ .tts-textarea::placeholder { color: #456; }
192
+
193
+ .tts-controls-grid {
194
+ display: grid;
195
+ grid-template-columns: 1fr 1fr;
196
+ gap: 12px;
197
+ }
198
+ .tts-control-group { display: flex; flex-direction: column; gap: 5px; }
199
+ .tts-control-group.full-width { grid-column: 1 / -1; }
200
+
201
+ .tts-label {
202
+ font-size: 0.72rem;
203
+ font-weight: bold;
204
+ color: #7ee8ffaa;
205
+ text-transform: uppercase;
206
+ letter-spacing: 0.08em;
207
+ display: flex;
208
+ justify-content: space-between;
209
+ align-items: center;
210
+ }
211
+ .tts-val {
212
+ font-size: 0.8rem;
213
+ color: #7ee8ff;
214
+ font-variant-numeric: tabular-nums;
215
+ background: #0a2233;
216
+ padding: 1px 6px;
217
+ border-radius: 4px;
218
+ }
219
+
220
+ .tts-select {
221
+ background: #081420;
222
+ color: #e0f4ff;
223
+ border: 1px solid #1e4a65;
224
+ border-radius: 8px;
225
+ padding: 6px 8px;
226
+ font-size: 0.82rem;
227
+ cursor: pointer;
228
+ width: 100%;
229
+ appearance: none;
230
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237ee8ff' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
231
+ background-repeat: no-repeat;
232
+ background-position: right 10px center;
233
+ padding-right: 28px;
234
+ }
235
+ .tts-select:focus { outline: none; border-color: #7ee8ff; }
236
+ .tts-select option { background: #0d1f2d; }
237
+
238
+ .tts-slider {
239
+ -webkit-appearance: none;
240
+ width: 100%;
241
+ height: 5px;
242
+ border-radius: 3px;
243
+ background: #1e4a65;
244
+ cursor: pointer;
245
+ outline: none;
246
+ }
247
+ .tts-slider::-webkit-slider-thumb {
248
+ -webkit-appearance: none;
249
+ width: 16px;
250
+ height: 16px;
251
+ border-radius: 50%;
252
+ background: #7ee8ff;
253
+ cursor: pointer;
254
+ box-shadow: 0 0 6px #7ee8ff88;
255
+ transition: transform 0.1s;
256
+ }
257
+ .tts-slider::-webkit-slider-thumb:hover { transform: scale(1.3); }
258
+ .tts-slider::-moz-range-thumb {
259
+ width: 16px; height: 16px;
260
+ border-radius: 50%;
261
+ background: #7ee8ff;
262
+ border: none;
263
+ cursor: pointer;
264
+ }
265
+
266
+ .tts-status {
267
+ font-size: 0.8rem;
268
+ padding: 6px 10px;
269
+ border-radius: 7px;
270
+ background: #081420;
271
+ border: 1px solid #1e4a6544;
272
+ color: #7ee8ffaa;
273
+ transition: background 0.3s, color 0.3s, border-color 0.3s;
274
+ }
275
+ .tts-status--speaking { background: #0a2d1a; border-color: #22c55e55; color: #22c55e; }
276
+ .tts-status--paused { background: #2d1f0a; border-color: #f59e0b55; color: #f59e0b; }
277
+ .tts-status--done { background: #0a2233; border-color: #7ee8ff55; color: #7ee8ff; }
278
+ .tts-status--error { background: #2d0a0a; border-color: #ef444455; color: #ef4444; }
279
+ .tts-status--warn { background: #2d1a0a; border-color: #f59e0b55; color: #f59e0b; }
280
+ .tts-status--idle { background: #081420; border-color: #1e4a6544; color: #7ee8ffaa; }
281
+
282
+ .tts-actions {
283
+ display: flex;
284
+ gap: 8px;
285
+ flex-wrap: wrap;
286
+ }
287
+ .tts-btn {
288
+ flex: 1;
289
+ min-width: 60px;
290
+ padding: 8px 10px;
291
+ border: none;
292
+ border-radius: 8px;
293
+ font-weight: bold;
294
+ font-size: 0.78rem;
295
+ cursor: pointer;
296
+ transition: filter 0.15s, transform 0.1s, opacity 0.2s;
297
+ white-space: nowrap;
298
+ }
299
+ .tts-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; filter: none !important; }
300
+ .tts-btn:not(:disabled):hover { filter: brightness(1.2); transform: scale(1.05); }
301
+
302
+ .tts-btn-speak { background: linear-gradient(135deg, #22c55e, #16a34a); color: white; }
303
+ .tts-btn-pause { background: #f59e0b; color: #1a0e00; }
304
+ .tts-btn-resume { background: #3b82f6; color: white; }
305
+ .tts-btn-stop { background: #ef4444; color: white; }
306
+ .tts-btn-reset { background: #334155; color: #94a3b8; }
307
+
308
+ .tts-speaking-display {
309
+ display: flex;
310
+ align-items: center;
311
+ gap: 10px;
312
+ background: #081420;
313
+ border: 1px solid #1e4a65;
314
+ border-radius: 8px;
315
+ padding: 8px 12px;
316
+ }
317
+ .tts-speaking-display.hidden { display: none; }
318
+ .tts-speaking-label {
319
+ font-size: 0.72rem;
320
+ color: #7ee8ff88;
321
+ text-transform: uppercase;
322
+ letter-spacing: 0.07em;
323
+ white-space: nowrap;
324
+ }
325
+ .tts-current-word {
326
+ font-size: 1.1rem;
327
+ font-weight: bold;
328
+ color: #7ee8ff;
329
+ letter-spacing: 0.03em;
330
+ transition: color 0.1s;
331
+ }
332
+ @keyframes word-pop-anim {
333
+ 0% { transform: scale(1); color: #fff; }
334
+ 40% { transform: scale(1.25); color: #7ee8ff; }
335
+ 100% { transform: scale(1); color: #7ee8ff; }
336
+ }
337
+ .tts-current-word.word-pop {
338
+ animation: word-pop-anim 0.25s ease-out forwards;
339
+ }
340
+
341
+ @media (max-width: 500px) {
342
+ #ttsPanel {
343
+ top: 70px;
344
+ right: 10px;
345
+ left: 10px;
346
+ width: auto;
347
+ }
348
+ .tts-controls-grid { grid-template-columns: 1fr; }
349
+ .tts-control-group.full-width { grid-column: 1; }
350
+ }
351
+ .sort-select { background: #ff8c00; color: #111; border: none; cursor: pointer; appearance: auto; }
352
+ .sort-select option { background: #1b1b1b; color: #fff; }