-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathstyle.css
More file actions
346 lines (298 loc) · 6.48 KB
/
style.css
File metadata and controls
346 lines (298 loc) · 6.48 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
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
/* this file is loaded by index.html and styles the page */
:root {
--primary-color: #4361ee;
--secondary-color: #3a0ca3;
--accent-color: #7209b7;
--background-color: #f8f9fa;
--text-color: #333;
--light-gray: #e9ecef;
--dark-gray: #6c757d;
--success-color: #4CAF50;
--danger-color: #e63946;
--border-radius: 8px;
--shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
--transition: all 0.3s ease;
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html {
height: 100%;
}
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
line-height: 1.6;
color: var(--text-color);
background-color: var(--background-color);
padding: 10px; /* Reduced from 20px to give more space */
max-width: 1200px;
margin: 0 auto;
height: 100vh; /* Use full viewport height */
display: flex;
flex-direction: column;
}
h1, h2, h3 {
margin-bottom: 0.5em;
color: var(--primary-color);
}
.container {
background-color: white;
border-radius: var(--border-radius);
padding: 20px; /* Reduced from 30px */
box-shadow: var(--shadow);
flex: 1; /* Take up all available space */
display: flex;
flex-direction: column;
}
.header {
text-align: center;
margin-bottom: 20px; /* Reduced from 30px */
}
.header h1 {
font-size: 2.5rem;
color: var(--secondary-color);
}
.header p {
color: var(--dark-gray);
font-size: 1.1rem;
}
/* Text area styling */
.text-input {
flex: 1; /* Take up all available space */
display: flex;
margin-bottom: 20px;
}
textarea {
width: 100%;
border: 1px solid var(--light-gray);
border-radius: var(--border-radius);
padding: 15px;
font-size: 16px;
line-height: 1.5;
resize: none; /* Prevent manual resizing since we're using all available space */
font-family: inherit;
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
transition: var(--transition);
flex: 1; /* Take up all available space */
}
textarea:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}
/* Voice selector styling */
.voice-selection {
display: flex;
align-items: center;
gap: 10px;
flex: 1;
}
.voice-selection label {
font-weight: 600;
color: var(--text-color);
white-space: nowrap;
}
.voice-selection select {
padding: 8px 12px;
border-radius: var(--border-radius);
border: 1px solid var(--light-gray);
background-color: white;
font-size: 14px;
font-family: inherit;
color: var(--text-color);
cursor: pointer;
transition: var(--transition);
width: 100%;
}
.voice-selection select:focus {
outline: none;
border-color: var(--primary-color);
box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}
.voice-selection select:disabled {
opacity: 0.6;
cursor: not-allowed;
background-color: var(--light-gray);
}
/* Button styling */
.control-panel {
display: flex;
gap: 20px;
margin-bottom: 20px;
flex-wrap: wrap;
align-items: center;
}
button {
background-color: var(--primary-color);
color: white;
border: none;
padding: 12px 20px;
border-radius: var(--border-radius);
cursor: pointer;
font-size: 16px;
font-weight: 600;
transition: var(--transition);
flex: 1;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
box-shadow: var(--shadow);
}
button:hover:not(:disabled) {
background-color: var(--secondary-color);
transform: translateY(-2px);
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}
button:active:not(:disabled) {
transform: translateY(0);
box-shadow: var(--shadow);
}
button:disabled {
background-color: var(--light-gray);
color: var(--dark-gray);
cursor: not-allowed;
box-shadow: none;
}
/* Stop button style */
button.stop-streaming, button.stop-saving {
background-color: var(--danger-color);
}
button.stop-streaming:hover, button.stop-saving:hover {
background-color: #d32f2f;
}
/* Progress bar styles */
#progressContainer {
margin-bottom: 20px;
padding: 15px;
border-radius: var(--border-radius);
background-color: white;
box-shadow: var(--shadow);
transition: opacity 0.5s ease;
}
#progressLabel {
font-weight: 600;
margin-bottom: 8px;
color: var(--secondary-color);
transition: transform 0.3s ease;
}
.progress-bar {
width: 100%;
height: 10px;
background-color: var(--light-gray);
border-radius: 5px;
margin: 10px 0;
overflow: hidden;
}
.progress-bar-fill {
height: 100%;
background-color: var(--primary-color);
border-radius: 5px;
width: 0%;
transition: width 0.3s ease, background-color 0.5s ease;
}
.progress-bar-fill.success {
background-color: var(--success-color);
}
#progressStatus {
text-align: right;
font-size: 14px;
color: var(--dark-gray);
font-weight: 500;
}
/* Footer section */
.footer-section {
/* No longer needed to push to bottom since we're no longer at the bottom */
margin-bottom: 0;
}
/* Info section */
.info-section {
background-color: white;
border-radius: var(--border-radius);
padding: 20px;
margin-top: 20px;
box-shadow: var(--shadow);
}
.info-item {
margin-bottom: 15px;
padding: 10px;
border-radius: 5px;
transition: background-color 0.2s ease;
}
.info-item:hover {
background-color: var(--light-gray);
}
.info-item b {
color: var(--accent-color);
display: block;
margin-bottom: 5px;
}
/* Animation for the button icons */
button svg {
transition: transform 0.3s ease;
}
button:hover:not(:disabled) svg {
transform: scale(1.2);
}
/* Responsive design */
@media (max-width: 768px) {
.control-panel {
flex-direction: column;
}
body {
padding: 15px;
}
.container {
padding: 20px;
}
.header h1 {
font-size: 2rem;
}
.voice-selection {
margin-bottom: 15px;
}
}
/* Loading animation for buttons when processing */
.loading::after {
content: '';
width: 20px;
height: 20px;
border: 3px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: white;
animation: button-loading-spinner 1s ease infinite;
position: absolute;
}
/* Style for buttons with custom loading state */
.loading.has-content::after {
display: none; /* Don't show the default loading spinner */
}
/* Button content spans */
.btn-content {
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
}
/* Spinning animation for SVG elements */
.spin {
animation: spin-animation 1.5s linear infinite;
}
@keyframes spin-animation {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
@keyframes button-loading-spinner {
from {
transform: rotate(0turn);
}
to {
transform: rotate(1turn);
}
}