Files
youtube-sync-docker/static/style.css
azcomputerguru b3f378a8ef Add web UI for configuration and management
- Flask-based web interface on port 8080
- Dashboard with channel statistics and sync status
- Channel management (add/remove channels via UI)
- Settings page for all configuration options
- Cookie file upload interface
- Real-time log viewer
- Manual sync trigger from web UI
- Updated Dockerfile to include Flask and web assets
- Updated Unraid template with WebUI port
- Updated README with web UI documentation
2026-05-08 19:00:36 -04:00

441 lines
7.1 KiB
CSS

/* Reset and Base Styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
:root {
--primary: #2563eb;
--primary-hover: #1d4ed8;
--secondary: #64748b;
--success: #10b981;
--warning: #f59e0b;
--danger: #ef4444;
--light: #f8fafc;
--dark: #1e293b;
--border: #e2e8f0;
--text: #334155;
--text-light: #64748b;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
line-height: 1.6;
color: var(--text);
background: var(--light);
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Navigation */
.navbar {
background: white;
border-bottom: 1px solid var(--border);
padding: 0;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.navbar .container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 2rem;
max-width: 1200px;
margin: 0 auto;
}
.nav-brand h1 {
font-size: 1.5rem;
color: var(--primary);
}
.nav-menu {
list-style: none;
display: flex;
gap: 2rem;
}
.nav-menu a {
text-decoration: none;
color: var(--text);
font-weight: 500;
transition: color 0.2s;
padding: 0.5rem 0;
border-bottom: 2px solid transparent;
}
.nav-menu a:hover {
color: var(--primary);
}
.nav-menu a.active {
color: var(--primary);
border-bottom-color: var(--primary);
}
/* Container */
.container {
max-width: 1200px;
margin: 0 auto;
padding: 2rem;
flex: 1;
}
/* Page Header */
.page-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
}
.page-header h2 {
font-size: 2rem;
color: var(--dark);
}
.header-actions {
display: flex;
gap: 1rem;
}
/* Cards */
.card {
background: white;
border-radius: 8px;
padding: 1.5rem;
margin-bottom: 1.5rem;
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.card h3 {
font-size: 1.25rem;
color: var(--dark);
margin-bottom: 1rem;
padding-bottom: 0.75rem;
border-bottom: 1px solid var(--border);
}
.cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
margin-bottom: 1.5rem;
}
.info-card {
background: #eff6ff;
border-left: 4px solid var(--primary);
}
.info-card h3 {
color: var(--primary);
}
/* Status and Config Info */
.status-info, .config-info {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.status-item, .config-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.5rem 0;
}
.status-item .label, .config-item .label {
font-weight: 500;
color: var(--text-light);
}
.status-item .value, .config-item .value {
font-weight: 600;
}
.status-ok {
color: var(--success);
}
.status-warning {
color: var(--warning);
}
.status-running {
color: var(--primary);
}
.status-idle {
color: var(--text-light);
}
/* Tables */
.table-responsive {
overflow-x: auto;
}
.table {
width: 100%;
border-collapse: collapse;
}
.table thead {
background: var(--light);
}
.table th {
text-align: left;
padding: 0.75rem;
font-weight: 600;
color: var(--text-light);
font-size: 0.875rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.table td {
padding: 0.75rem;
border-bottom: 1px solid var(--border);
}
.table tbody tr:hover {
background: var(--light);
}
.table code {
background: var(--light);
padding: 0.25rem 0.5rem;
border-radius: 4px;
font-size: 0.875rem;
}
/* Forms */
.form {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.form-group {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.form-group label {
font-weight: 500;
color: var(--dark);
}
.form-control {
padding: 0.75rem;
border: 1px solid var(--border);
border-radius: 6px;
font-size: 1rem;
transition: border-color 0.2s;
font-family: inherit;
}
.form-control:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-help {
font-size: 0.875rem;
color: var(--text-light);
}
.required {
color: var(--danger);
}
/* Buttons */
.btn {
padding: 0.75rem 1.5rem;
border: none;
border-radius: 6px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s;
text-decoration: none;
display: inline-block;
text-align: center;
}
.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.btn-primary {
background: var(--primary);
color: white;
}
.btn-primary:hover:not(:disabled) {
background: var(--primary-hover);
}
.btn-secondary {
background: var(--secondary);
color: white;
}
.btn-secondary:hover:not(:disabled) {
background: #475569;
}
.btn-danger {
background: var(--danger);
color: white;
}
.btn-danger:hover:not(:disabled) {
background: #dc2626;
}
.btn-sm {
padding: 0.5rem 1rem;
font-size: 0.875rem;
}
/* Alerts */
.alert {
padding: 1rem;
border-radius: 6px;
margin-bottom: 1.5rem;
position: relative;
display: flex;
justify-content: space-between;
align-items: center;
}
.alert-success {
background: #d1fae5;
color: #065f46;
border-left: 4px solid var(--success);
}
.alert-error {
background: #fee2e2;
color: #991b1b;
border-left: 4px solid var(--danger);
}
.alert-warning {
background: #fef3c7;
color: #92400e;
border-left: 4px solid var(--warning);
}
.alert .close {
background: none;
border: none;
font-size: 1.5rem;
cursor: pointer;
color: inherit;
opacity: 0.7;
}
.alert .close:hover {
opacity: 1;
}
/* Empty State */
.empty-state {
text-align: center;
padding: 3rem 1rem;
color: var(--text-light);
}
.empty-state p {
margin-bottom: 1rem;
}
/* Logs */
.logs-container {
max-height: 600px;
overflow-y: auto;
background: var(--dark);
border-radius: 6px;
}
.logs {
color: #e2e8f0;
font-family: 'Courier New', monospace;
font-size: 0.875rem;
line-height: 1.4;
padding: 1rem;
margin: 0;
white-space: pre-wrap;
word-wrap: break-word;
}
/* Spinner */
.spinner {
display: inline-block;
width: 1rem;
height: 1rem;
border: 2px solid rgba(255,255,255,0.3);
border-top-color: white;
border-radius: 50%;
animation: spin 0.8s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* Footer */
footer {
background: white;
border-top: 1px solid var(--border);
padding: 1.5rem 0;
margin-top: auto;
}
footer .container {
text-align: center;
color: var(--text-light);
font-size: 0.875rem;
}
/* Responsive */
@media (max-width: 768px) {
.navbar .container {
flex-direction: column;
gap: 1rem;
}
.nav-menu {
flex-direction: column;
gap: 0.5rem;
text-align: center;
}
.page-header {
flex-direction: column;
align-items: flex-start;
gap: 1rem;
}
.cards {
grid-template-columns: 1fr;
}
.table {
font-size: 0.875rem;
}
.container {
padding: 1rem;
}
}