- Add tab refresh loading bar animation for all 4 tab loaders - Add profiles loading guard to prevent concurrent fetches - Centralize theme colors into CSS variables (--text-secondary, --text-muted, --bg-secondary, --success-color, --shadow-color) for both dark/light themes - Replace hardcoded gray values across 10 CSS files with variables - Fix duplicate .btn-sm definition in modal.css - Fix z-index: toast 2001→2500 to safely clear modals at 2000 - Add :focus-visible keyboard navigation indicators for all interactive elements - Add responsive breakpoints for tab bar and header on narrow screens - Prevent background page scroll when command palette is open Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
389 lines
7.4 KiB
CSS
389 lines
7.4 KiB
CSS
.badge {
|
|
padding: 4px 12px;
|
|
border-radius: 12px;
|
|
font-size: 0.85rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.badge.processing {
|
|
background: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.badge.idle {
|
|
background: var(--warning-color);
|
|
color: white;
|
|
}
|
|
|
|
.badge.error {
|
|
background: var(--danger-color);
|
|
color: white;
|
|
}
|
|
|
|
.card-content {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.info-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 8px 0;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.info-row:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.info-label {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.info-value {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.card-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: auto;
|
|
padding-top: 12px;
|
|
border-top: 1px solid var(--border-color);
|
|
align-items: center;
|
|
}
|
|
|
|
.btn {
|
|
padding: 8px 16px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
cursor: pointer;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
transition: opacity 0.2s;
|
|
flex: 1 1 auto;
|
|
min-width: 100px;
|
|
}
|
|
|
|
.btn:hover {
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--danger-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--border-color);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.btn-icon {
|
|
min-width: auto;
|
|
padding: 8px 12px;
|
|
font-size: 1.2rem;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.btn-icon:hover {
|
|
transform: scale(1.1);
|
|
opacity: 1;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.settings-toggle-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.settings-toggle {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 34px;
|
|
height: 18px;
|
|
cursor: pointer;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.settings-toggle input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.settings-toggle-slider {
|
|
position: absolute;
|
|
inset: 0;
|
|
background: var(--border-color);
|
|
border-radius: 9px;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.settings-toggle-slider::after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 2px;
|
|
left: 2px;
|
|
width: 14px;
|
|
height: 14px;
|
|
background: white;
|
|
border-radius: 50%;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.settings-toggle input:checked + .settings-toggle-slider {
|
|
background: var(--primary-color);
|
|
}
|
|
|
|
.settings-toggle input:checked + .settings-toggle-slider::after {
|
|
transform: translateX(16px);
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 5px;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
input[type="text"],
|
|
input[type="url"],
|
|
input[type="number"],
|
|
input[type="password"],
|
|
select {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
background: var(--bg-color);
|
|
color: var(--text-color);
|
|
font-size: 1rem;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
|
|
transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
|
|
}
|
|
|
|
input[type="number"]:disabled,
|
|
input[type="password"]:disabled,
|
|
select:disabled {
|
|
opacity: 0.4;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
input[type="range"] {
|
|
width: 100%;
|
|
margin: 8px 0;
|
|
}
|
|
|
|
/* Better password field appearance */
|
|
input[type="password"] {
|
|
letter-spacing: 0.15em;
|
|
}
|
|
|
|
input:focus,
|
|
select:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
|
|
}
|
|
|
|
/* Remove browser autofill styling */
|
|
input:-webkit-autofill,
|
|
input:-webkit-autofill:hover,
|
|
input:-webkit-autofill:focus {
|
|
-webkit-box-shadow: 0 0 0 1000px var(--bg-color) inset;
|
|
-webkit-text-fill-color: var(--text-color);
|
|
transition: background-color 5000s ease-in-out 0s;
|
|
}
|
|
|
|
.loading {
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.loading-spinner {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
padding: 40px;
|
|
}
|
|
|
|
.loading-spinner::after {
|
|
content: '';
|
|
width: 28px;
|
|
height: 28px;
|
|
border: 3px solid var(--border-color);
|
|
border-top-color: var(--primary-color);
|
|
border-radius: 50%;
|
|
animation: spin 0.8s linear infinite;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
/* Full-page overlay spinner */
|
|
.overlay-spinner {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.7);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 9999;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.overlay-spinner .progress-container {
|
|
position: relative;
|
|
width: 120px;
|
|
height: 120px;
|
|
}
|
|
|
|
.overlay-spinner .progress-ring {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
.overlay-spinner .progress-ring-circle {
|
|
transition: stroke-dashoffset 0.1s linear;
|
|
stroke: var(--primary-color);
|
|
stroke-width: 4;
|
|
fill: transparent;
|
|
}
|
|
|
|
.overlay-spinner .progress-ring-bg {
|
|
stroke: rgba(255, 255, 255, 0.1);
|
|
stroke-width: 4;
|
|
fill: transparent;
|
|
}
|
|
|
|
.overlay-spinner .progress-content {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 50%;
|
|
transform: translate(-50%, -50%);
|
|
text-align: center;
|
|
}
|
|
|
|
.overlay-spinner .progress-percentage {
|
|
color: white;
|
|
font-size: 28px;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.overlay-spinner .spinner-text {
|
|
margin-top: 24px;
|
|
color: white;
|
|
font-size: 16px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.overlay-spinner-close {
|
|
position: absolute;
|
|
top: 16px;
|
|
right: 16px;
|
|
background: none;
|
|
border: none;
|
|
color: rgba(255, 255, 255, 0.6);
|
|
font-size: 32px;
|
|
cursor: pointer;
|
|
line-height: 1;
|
|
padding: 4px 8px;
|
|
transition: color 0.15s;
|
|
}
|
|
|
|
.overlay-spinner-close:hover {
|
|
color: white;
|
|
}
|
|
|
|
.toast {
|
|
position: fixed;
|
|
bottom: 40px;
|
|
left: 50%;
|
|
transform: translateX(-50%) translateY(100px);
|
|
padding: 16px 24px;
|
|
border-radius: 8px;
|
|
color: white;
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
opacity: 0;
|
|
transition: opacity 0.3s, transform 0.3s;
|
|
z-index: 2500;
|
|
box-shadow: 0 4px 20px var(--shadow-color);
|
|
min-width: 300px;
|
|
text-align: center;
|
|
}
|
|
|
|
.toast.show {
|
|
opacity: 1;
|
|
transform: translateX(-50%) translateY(0);
|
|
animation: toastShake 0.5s ease-in-out;
|
|
}
|
|
|
|
@keyframes toastShake {
|
|
0%, 100% { transform: translateX(-50%) translateY(0); }
|
|
10%, 30%, 50%, 70%, 90% { transform: translateX(-50%) translateY(-5px); }
|
|
20%, 40%, 60%, 80% { transform: translateX(-50%) translateY(5px); }
|
|
}
|
|
|
|
.toast.success {
|
|
background: var(--primary-color);
|
|
}
|
|
|
|
.toast.error {
|
|
background: var(--danger-color);
|
|
}
|
|
|
|
.toast.info {
|
|
background: var(--info-color);
|
|
}
|
|
|
|
/* ── Focus-visible indicators for keyboard navigation ── */
|
|
|
|
.btn:focus-visible,
|
|
.btn-icon:focus-visible,
|
|
.card-remove-btn:focus-visible,
|
|
.card-autostart-btn:focus-visible,
|
|
.card-power-btn:focus-visible,
|
|
.card-tutorial-btn:focus-visible,
|
|
.hint-toggle:focus-visible,
|
|
.modal-close-btn:focus-visible,
|
|
.modal-header-btn:focus-visible,
|
|
.tab-btn:focus-visible,
|
|
.stream-tab-btn:focus-visible,
|
|
.search-toggle:focus-visible,
|
|
.theme-toggle:focus-visible,
|
|
.tutorial-trigger-btn:focus-visible,
|
|
.tutorial-close-btn:focus-visible,
|
|
.btn-expand-collapse:focus-visible,
|
|
.btn-filter-action:focus-visible,
|
|
.settings-toggle:focus-visible {
|
|
outline: 2px solid var(--primary-color);
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
input:focus-visible,
|
|
select:focus-visible,
|
|
textarea:focus-visible {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
|
|
}
|