422 lines
7.7 KiB
CSS
422 lines
7.7 KiB
CSS
/* Modern, clean, and accessible UI styles for Chatterbox TTS */
|
|
body {
|
|
font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
|
|
line-height: 1.7;
|
|
margin: 0;
|
|
padding: 0;
|
|
background-color: #f7f9fa;
|
|
color: #222;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1100px;
|
|
margin: 0 auto;
|
|
padding: 0 18px;
|
|
}
|
|
|
|
header {
|
|
background: #222e3a;
|
|
color: #fff;
|
|
padding: 1.5rem 0 1rem 0;
|
|
text-align: center;
|
|
border-bottom: 3px solid #4a90e2;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2.4rem;
|
|
margin: 0;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
main {
|
|
margin-top: 30px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.panel-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 28px;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.panel {
|
|
flex: 1 1 320px;
|
|
min-width: 320px;
|
|
background: none;
|
|
box-shadow: none;
|
|
border: none;
|
|
padding: 0;
|
|
}
|
|
|
|
|
|
#results-display.panel {
|
|
flex: 1 1 100%;
|
|
min-width: 0;
|
|
margin-top: 32px;
|
|
}
|
|
|
|
/* Dialog Table Styles */
|
|
#dialog-items-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
font-size: 1rem;
|
|
margin-bottom: 0;
|
|
table-layout: fixed;
|
|
}
|
|
|
|
#dialog-items-table th, #dialog-items-table td {
|
|
padding: 7px 10px;
|
|
border: 1px solid #ddd;
|
|
text-align: left;
|
|
vertical-align: middle;
|
|
font-weight: 400;
|
|
font-size: 0.97rem;
|
|
color: #2b2b2b;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
|
|
/* Widen the Text/Duration column */
|
|
#dialog-items-table th:nth-child(3), #dialog-items-table td:nth-child(3) {
|
|
min-width: 240px;
|
|
width: 40%;
|
|
font-weight: 400;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* Make the Speaker (2nd) column narrower */
|
|
#dialog-items-table th:nth-child(2), #dialog-items-table td:nth-child(2) {
|
|
width: 60px;
|
|
min-width: 60px;
|
|
max-width: 60px;
|
|
text-align: center;
|
|
}
|
|
|
|
/* Make the Actions (4th) column narrower */
|
|
#dialog-items-table th:nth-child(4), #dialog-items-table td:nth-child(4) {
|
|
width: 110px;
|
|
min-width: 90px;
|
|
max-width: 130px;
|
|
text-align: center;
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
|
|
|
|
#dialog-items-table th:first-child, #dialog-items-table td.type-icon-cell {
|
|
width: 44px;
|
|
min-width: 36px;
|
|
max-width: 48px;
|
|
text-align: center;
|
|
padding-left: 0;
|
|
padding-right: 0;
|
|
}
|
|
|
|
.type-icon-cell {
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.dialog-type-icon {
|
|
font-size: 1.4em;
|
|
display: inline-block;
|
|
line-height: 1;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
#dialog-items-table th {
|
|
background: #f3f7fa;
|
|
color: #4a90e2;
|
|
font-weight: 600;
|
|
font-size: 1.05rem;
|
|
}
|
|
#dialog-items-table tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
#dialog-items-table td.actions {
|
|
text-align: center;
|
|
min-width: 110px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Collapsible log details */
|
|
details#generation-log-details {
|
|
margin-bottom: 0;
|
|
border-radius: 4px;
|
|
background: #f3f5f7;
|
|
box-shadow: 0 1px 3px rgba(44,62,80,0.04);
|
|
padding: 0 0 0 0;
|
|
transition: box-shadow 0.15s;
|
|
}
|
|
details#generation-log-details[open] {
|
|
box-shadow: 0 2px 8px rgba(44,62,80,0.07);
|
|
background: #f9fafb;
|
|
}
|
|
details#generation-log-details summary {
|
|
font-size: 1rem;
|
|
color: #357ab8;
|
|
padding: 10px 0 6px 0;
|
|
outline: none;
|
|
}
|
|
details#generation-log-details summary:focus {
|
|
outline: 2px solid #4a90e2;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.panel-grid {
|
|
display: block;
|
|
gap: 0;
|
|
}
|
|
.panel, .full-width-panel {
|
|
min-width: 0;
|
|
width: 100%;
|
|
flex: 1 1 100%;
|
|
}
|
|
#dialog-items-table th, #dialog-items-table td {
|
|
font-size: 0.97rem;
|
|
padding: 7px 8px;
|
|
}
|
|
#speaker-management.panel {
|
|
margin-bottom: 36px;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
flex: 1 1 100%;
|
|
}
|
|
}
|
|
|
|
.card {
|
|
background: #fff;
|
|
border-radius: 8px;
|
|
box-shadow: 0 2px 8px rgba(44,62,80,0.07);
|
|
padding: 18px 20px;
|
|
margin-bottom: 18px;
|
|
}
|
|
|
|
section {
|
|
margin-bottom: 0;
|
|
border-radius: 0;
|
|
padding: 0;
|
|
background: none;
|
|
}
|
|
|
|
hr {
|
|
display: none;
|
|
}
|
|
|
|
h2 {
|
|
font-size: 1.5rem;
|
|
margin-top: 0;
|
|
margin-bottom: 16px;
|
|
color: #4a90e2;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
h3 {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 10px;
|
|
color: #333;
|
|
}
|
|
|
|
.x-remove-btn {
|
|
background: #e74c3c;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 50%;
|
|
width: 28px;
|
|
height: 28px;
|
|
font-size: 1.2rem;
|
|
line-height: 1;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: background 0.15s;
|
|
margin: 0 2px;
|
|
box-shadow: 0 1px 2px rgba(44,62,80,0.06);
|
|
outline: none;
|
|
padding: 0;
|
|
}
|
|
.x-remove-btn:hover, .x-remove-btn:focus {
|
|
background: #c0392b;
|
|
color: #fff;
|
|
outline: 2px solid #e74c3c;
|
|
}
|
|
|
|
.form-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
label {
|
|
min-width: 120px;
|
|
font-weight: 500;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
input[type='text'], input[type='file'] {
|
|
padding: 8px 10px;
|
|
border: 1px solid #cfd8dc;
|
|
border-radius: 4px;
|
|
font-size: 1rem;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
input[type='file'] {
|
|
background: #f7f7f7;
|
|
font-size: 0.97rem;
|
|
}
|
|
|
|
button {
|
|
padding: 9px 18px;
|
|
background: #4a90e2;
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 5px;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
transition: background 0.15s;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.generate-line-btn, .play-line-btn {
|
|
background: #f3f7fa;
|
|
color: #357ab8;
|
|
border: 1.5px solid #b5c6df;
|
|
border-radius: 50%;
|
|
width: 32px;
|
|
height: 32px;
|
|
font-size: 1.25rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin: 0 3px;
|
|
padding: 0;
|
|
box-shadow: 0 1px 2px rgba(44,62,80,0.06);
|
|
vertical-align: middle;
|
|
}
|
|
.generate-line-btn:disabled, .play-line-btn:disabled {
|
|
opacity: 0.45;
|
|
cursor: not-allowed;
|
|
}
|
|
.generate-line-btn.loading {
|
|
background: #f9e79f;
|
|
color: #b7950b;
|
|
border-color: #f7ca18;
|
|
}
|
|
.generate-line-btn:hover, .play-line-btn:hover {
|
|
background: #eaf1fa;
|
|
color: #205081;
|
|
border-color: #357ab8;
|
|
}
|
|
|
|
button:hover, button:focus {
|
|
background: #357ab8;
|
|
outline: none;
|
|
}
|
|
|
|
.dialog-controls {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
#speaker-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
#speaker-list li {
|
|
padding: 7px 0;
|
|
border-bottom: 1px solid #e3e3e3;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
#speaker-list li:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
pre {
|
|
background: #f3f5f7;
|
|
padding: 12px;
|
|
border-radius: 4px;
|
|
font-size: 0.98rem;
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
margin: 0;
|
|
}
|
|
|
|
audio {
|
|
width: 100%;
|
|
margin-top: 8px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
#zip-archive-link {
|
|
display: inline-block;
|
|
margin-right: 10px;
|
|
color: #fff;
|
|
background: #4a90e2;
|
|
padding: 7px 16px;
|
|
border-radius: 4px;
|
|
text-decoration: none;
|
|
font-weight: 500;
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
#zip-archive-link:hover, #zip-archive-link:focus {
|
|
background: #357ab8;
|
|
}
|
|
|
|
footer {
|
|
text-align: center;
|
|
padding: 20px 0;
|
|
background: #222e3a;
|
|
color: #fff;
|
|
margin-top: 40px;
|
|
font-size: 1rem;
|
|
border-top: 3px solid #4a90e2;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
.panel-grid {
|
|
flex-direction: column;
|
|
gap: 22px;
|
|
}
|
|
.panel {
|
|
min-width: 0;
|
|
}
|
|
}
|
|
|
|
/* Simple side-by-side layout for speaker management */
|
|
.speaker-mgmt-row {
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
.speaker-mgmt-row .card {
|
|
flex: 1;
|
|
width: 50%;
|
|
}
|
|
|
|
/* Stack on mobile */
|
|
@media (max-width: 768px) {
|
|
.speaker-mgmt-row {
|
|
flex-direction: column;
|
|
}
|
|
.speaker-mgmt-row .card {
|
|
width: 100%;
|
|
}
|
|
}
|