mirror of
https://github.com/remsky/Kokoro-FastAPI.git
synced 2025-08-05 16:48:53 +00:00
266 lines
No EOL
5 KiB
CSS
266 lines
No EOL
5 KiB
CSS
:root {
|
|
--bg-color: #0f172a;
|
|
--fg-color: #6366f1;
|
|
--surface: rgba(30, 41, 59, 1); /* Made opaque */
|
|
--text: #f8fafc;
|
|
--text-light: #cbd5e1;
|
|
--border: rgba(148, 163, 184, 0.2);
|
|
--error: #ef4444;
|
|
--success: #22c55e;
|
|
--font-family: 'Inter', system-ui, sans-serif;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: var(--font-family);
|
|
line-height: 1.6;
|
|
color: var(--text);
|
|
background: radial-gradient(circle at top right,
|
|
var(--fg-color) 0%,
|
|
var(--bg-color) 100%);
|
|
min-height: 100vh;
|
|
position: relative;
|
|
}
|
|
|
|
.container {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
padding: 4rem 1.5rem;
|
|
}
|
|
|
|
header {
|
|
margin-bottom: 3rem;
|
|
text-align: center;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 3rem;
|
|
font-weight: 700;
|
|
color: var(--text);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.subtitle {
|
|
color: var(--text-light);
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.input-section, .player-section {
|
|
background: var(--surface);
|
|
padding: 2rem;
|
|
border-radius: 1rem;
|
|
border: 1px solid var(--border);
|
|
backdrop-filter: blur(12px);
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
|
0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
margin-bottom: 2rem;
|
|
}
|
|
|
|
textarea {
|
|
width: 100%;
|
|
min-height: 120px;
|
|
padding: 1rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: 0.5rem;
|
|
background: rgba(15, 23, 42, 0.3);
|
|
color: var(--text);
|
|
font-size: 1rem;
|
|
transition: border-color 0.2s ease;
|
|
font-family: var(--font-family);
|
|
resize: vertical;
|
|
}
|
|
|
|
textarea:focus {
|
|
outline: none;
|
|
border-color: var(--fg-color);
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
|
|
}
|
|
|
|
textarea::placeholder {
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.controls {
|
|
margin-top: 1.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.voice-select-container {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.voice-search {
|
|
flex: 1;
|
|
padding: 0.75rem 1rem;
|
|
border: 1px solid var(--border);
|
|
border-radius: 0.5rem;
|
|
background: rgba(15, 23, 42, 0.3);
|
|
color: var(--text);
|
|
font-size: 1rem;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.voice-search:focus {
|
|
outline: none;
|
|
border-color: var(--fg-color);
|
|
box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
|
|
}
|
|
|
|
.voice-search::placeholder {
|
|
color: var(--text-light);
|
|
}
|
|
|
|
.voice-dropdown {
|
|
display: none;
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 0;
|
|
right: 0;
|
|
background: var(--surface);
|
|
border: 1px solid var(--border);
|
|
border-radius: 0.5rem;
|
|
margin-top: 0.5rem;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
z-index: 1000; /* Increased z-index */
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
|
|
0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
.voice-select-container:focus-within .voice-dropdown,
|
|
.voice-dropdown:hover {
|
|
display: block;
|
|
}
|
|
|
|
.voice-option {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.75rem;
|
|
cursor: pointer;
|
|
border-radius: 0.25rem;
|
|
transition: background-color 0.2s ease;
|
|
color: var(--text);
|
|
}
|
|
|
|
.voice-option:hover {
|
|
background: rgba(99, 102, 241, 0.1);
|
|
}
|
|
|
|
.selected-voice-tag {
|
|
background: rgba(99, 102, 241, 0.2);
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 1rem;
|
|
font-size: 0.875rem;
|
|
border: 1px solid rgba(99, 102, 241, 0.3);
|
|
}
|
|
|
|
.options {
|
|
display: flex;
|
|
gap: 2rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.options label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
color: var(--text-light);
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
button {
|
|
background: var(--fg-color);
|
|
color: var(--text);
|
|
padding: 1rem;
|
|
border-radius: 0.5rem;
|
|
border: none;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
button:hover {
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.7;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
box-shadow: none;
|
|
}
|
|
|
|
.theme-toggle {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
width: 60px;
|
|
height: 60px;
|
|
cursor: pointer;
|
|
z-index: 100;
|
|
border-radius: 50%;
|
|
background: var(--fg-color);
|
|
box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.theme-toggle:hover {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
/* Make audio player full width */
|
|
audio {
|
|
width: 100%;
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.container {
|
|
padding: 2rem 1rem;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.subtitle {
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.input-section, .player-section {
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
.voice-select-container {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.options {
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.theme-toggle {
|
|
width: 50px;
|
|
height: 50px;
|
|
top: 10px;
|
|
right: 10px;
|
|
}
|
|
} |