Files
qbz/src/app.css
T
vicrodh c190fe79b0 Add searchable playlist dropdown and fix button text contrast
PlaylistModal changes:
- Replace native select with custom searchable dropdown
- Show max 8 playlists at a time with scroll indicator
- Add search/autocomplete functionality
- Support keyboard navigation (arrows, enter, escape)

Button contrast fix:
- Add --btn-primary-text CSS variable per theme
- Use dark text on light accent colors (Warm, Nord, Dracula, etc.)
- Use light text on dark accent colors (Adwaita, default)
2026-01-27 04:46:10 -06:00

578 lines
12 KiB
CSS

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400&family=LINE+Seed+JP:wght@400;700&display=swap');
:root {
/* QBZ Dark Theme Colors */
--bg-primary: #0f0f0f;
--bg-secondary: #1a1a1a;
--bg-tertiary: #2a2a2a;
--bg-hover: #1f1f1f;
--text-primary: #ffffff;
--text-secondary: #cccccc;
--text-muted: #888888;
--text-disabled: #555555;
--accent-primary: #4285F4;
--accent-hover: #5a9bf4;
--accent-active: #3275e4;
--btn-primary-text: #ffffff;
--danger: #ef4444;
--danger-bg: rgba(239, 68, 68, 0.1);
--danger-border: rgba(239, 68, 68, 0.3);
--danger-hover: rgba(239, 68, 68, 0.2);
--warning: #fbbf24;
--warning-bg: rgba(251, 191, 36, 0.1);
--warning-border: rgba(251, 191, 36, 0.3);
--warning-hover: rgba(251, 191, 36, 0.2);
--border-subtle: #2a2a2a;
--border-strong: #3a3a3a;
/* Alpha/Opacity - for overlays, borders, backgrounds needing transparency */
/* Dark themes use white-based, light themes use black-based */
--alpha-4: rgba(255, 255, 255, 0.04);
--alpha-5: rgba(255, 255, 255, 0.05);
--alpha-6: rgba(255, 255, 255, 0.06);
--alpha-8: rgba(255, 255, 255, 0.08);
--alpha-10: rgba(255, 255, 255, 0.1);
--alpha-15: rgba(255, 255, 255, 0.15);
--alpha-18: rgba(255, 255, 255, 0.18);
--alpha-20: rgba(255, 255, 255, 0.2);
--alpha-25: rgba(255, 255, 255, 0.25);
--alpha-30: rgba(255, 255, 255, 0.3);
--alpha-35: rgba(255, 255, 255, 0.35);
--alpha-40: rgba(255, 255, 255, 0.4);
--alpha-45: rgba(255, 255, 255, 0.45);
--alpha-50: rgba(255, 255, 255, 0.5);
--alpha-60: rgba(255, 255, 255, 0.6);
--alpha-70: rgba(255, 255, 255, 0.7);
--alpha-80: rgba(255, 255, 255, 0.8);
--alpha-85: rgba(255, 255, 255, 0.85);
--alpha-90: rgba(255, 255, 255, 0.9);
--alpha-95: rgba(255, 255, 255, 0.95);
/* Layout */
--sidebar-width: 240px;
--now-playing-height: 80px;
/* Spacing System */
--spacing-micro: 4px;
--spacing-tight: 8px;
--spacing-default: 12px;
--spacing-component: 16px;
--spacing-section: 24px;
--spacing-large: 32px;
--spacing-page: 48px;
/* Typography */
--font-sans: 'LINE Seed JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
--font-mono: 'JetBrains Mono', monospace;
}
/* Light Theme */
[data-theme="light"] {
--bg-primary: #ffffff;
--bg-secondary: #f5f5f5;
--bg-tertiary: #e8e8e8;
--bg-hover: #f0f0f0;
--text-primary: #0f0f0f;
--text-secondary: #444444;
--text-muted: #666666;
--text-disabled: #999999;
--btn-primary-text: #ffffff;
--border-subtle: #e0e0e0;
--border-strong: #cccccc;
--danger: #dc2626;
--danger-bg: rgba(220, 38, 38, 0.1);
--danger-border: rgba(220, 38, 38, 0.3);
--danger-hover: rgba(220, 38, 38, 0.15);
--warning: #d97706;
--warning-bg: rgba(217, 119, 6, 0.1);
--warning-border: rgba(217, 119, 6, 0.3);
--warning-hover: rgba(217, 119, 6, 0.15);
/* Alpha overrides for light theme - use black-based */
--alpha-4: rgba(0, 0, 0, 0.04);
--alpha-5: rgba(0, 0, 0, 0.05);
--alpha-6: rgba(0, 0, 0, 0.06);
--alpha-8: rgba(0, 0, 0, 0.08);
--alpha-10: rgba(0, 0, 0, 0.1);
--alpha-15: rgba(0, 0, 0, 0.15);
--alpha-18: rgba(0, 0, 0, 0.18);
--alpha-20: rgba(0, 0, 0, 0.2);
--alpha-25: rgba(0, 0, 0, 0.25);
--alpha-30: rgba(0, 0, 0, 0.3);
--alpha-35: rgba(0, 0, 0, 0.35);
--alpha-40: rgba(0, 0, 0, 0.4);
--alpha-45: rgba(0, 0, 0, 0.45);
--alpha-50: rgba(0, 0, 0, 0.5);
--alpha-60: rgba(0, 0, 0, 0.6);
--alpha-70: rgba(0, 0, 0, 0.7);
--alpha-80: rgba(0, 0, 0, 0.8);
--alpha-85: rgba(0, 0, 0, 0.85);
--alpha-90: rgba(0, 0, 0, 0.9);
--alpha-95: rgba(0, 0, 0, 0.95);
}
/* OLED Theme */
[data-theme="oled"] {
--bg-primary: #000000;
--bg-secondary: #0a0a0a;
--bg-tertiary: #1a1a1a;
--bg-hover: #111111;
--border-subtle: #1a1a1a;
--border-strong: #2a2a2a;
}
/* Warm Theme */
[data-theme="warm"] {
--bg-primary: #1a1814;
--bg-secondary: #242018;
--bg-tertiary: #2e2820;
--bg-hover: #282218;
--accent-primary: #d4a574;
--accent-hover: #e0b888;
--accent-active: #c49460;
--btn-primary-text: #1a1814;
--border-subtle: #2e2820;
--border-strong: #3d362a;
}
/* Nord Theme */
[data-theme="nord"] {
--bg-primary: #2e3440;
--bg-secondary: #3b4252;
--bg-tertiary: #434c5e;
--bg-hover: #4c566a;
--text-primary: #eceff4;
--text-secondary: #e5e9f0;
--text-muted: #d8dee9;
--text-disabled: #4c566a;
--accent-primary: #88c0d0;
--accent-hover: #81a1c1;
--accent-active: #5e81ac;
--btn-primary-text: #2e3440;
--border-subtle: #434c5e;
--border-strong: #4c566a;
}
/* Dracula Theme */
[data-theme="dracula"] {
--bg-primary: #282a36;
--bg-secondary: #343746;
--bg-tertiary: #44475a;
--bg-hover: #6272a4;
--text-primary: #f8f8f2;
--text-secondary: #e4e8f2;
--text-muted: #9da5c0;
--text-disabled: #6272a4;
--accent-primary: #bd93f9;
--accent-hover: #ff79c6;
--accent-active: #8be9fd;
--btn-primary-text: #282a36;
--border-subtle: #44475a;
--border-strong: #6272a4;
}
/* Tokyo Night Theme */
[data-theme="tokyo-night"] {
--bg-primary: #1a1b26;
--bg-secondary: #1f2335;
--bg-tertiary: #292e42;
--bg-hover: #414868;
--text-primary: #c0caf5;
--text-secondary: #a9b1d6;
--text-muted: #565f89;
--text-disabled: #414868;
--accent-primary: #7aa2f7;
--accent-hover: #bb9af7;
--accent-active: #2ac3de;
--btn-primary-text: #1a1b26;
--border-subtle: #292e42;
--border-strong: #414868;
}
/* Catppuccin Mocha Theme */
[data-theme="catppuccin-mocha"] {
--bg-primary: #11111b;
--bg-secondary: #181825;
--bg-tertiary: #1e1e2e;
--bg-hover: #313244;
--text-primary: #cdd6f4;
--text-secondary: #bac2de;
--text-muted: #6c7086;
--text-disabled: #313244;
--accent-primary: #89b4fa;
--accent-hover: #74c7ec;
--accent-active: #b4befe;
--btn-primary-text: #11111b;
--border-subtle: #1e1e2e;
--border-strong: #313244;
}
/* Rose Pine Dawn Theme */
[data-theme="rose-pine-dawn"] {
--bg-primary: #faf4ed;
--bg-secondary: #fffaf3;
--bg-tertiary: #f2e9e1;
--bg-hover: #dfdad9;
--text-primary: #575279;
--text-secondary: #797593;
--text-muted: #9893a5;
--text-disabled: #dfdad9;
--accent-primary: #907aa9;
--accent-hover: #286983;
--accent-active: #d7827e;
--btn-primary-text: #faf4ed;
--border-subtle: #f2e9e1;
--border-strong: #dfdad9;
}
/* Breeze Dark Theme */
[data-theme="breeze-dark"] {
--bg-primary: #141618;
--bg-secondary: #202326;
--bg-tertiary: #292c30;
--bg-hover: #31363b;
--text-primary: #ffffff;
--text-secondary: #fcfcfc;
--text-muted: #a1a9b1;
--text-disabled: #31363b;
--accent-primary: #3daee9;
--accent-hover: #9b59b6;
--accent-active: #1d99f3;
--btn-primary-text: #141618;
--border-subtle: #292c30;
--border-strong: #31363b;
}
/* Breeze Light Theme */
[data-theme="breeze-light"] {
--bg-primary: #ffffff;
--bg-secondary: #eff0f1;
--bg-tertiary: #dee0e2;
--bg-hover: #c8cdd3;
--text-primary: #1b1f23;
--text-secondary: #232629;
--text-muted: #5f6a75;
--text-disabled: #c8cdd3;
--accent-primary: #3daee9;
--accent-hover: #9b59b6;
--accent-active: #2980b9;
--btn-primary-text: #ffffff;
--border-subtle: #dee0e2;
--border-strong: #c8cdd3;
}
/* Adwaita Dark Theme */
[data-theme="adwaita-dark"] {
--bg-primary: #1d1d20;
--bg-secondary: #222226;
--bg-tertiary: #28282c;
--bg-hover: #2e2e32;
--text-primary: #ffffff;
--text-secondary: #ffffff;
--text-muted: #b3b3b8;
--text-disabled: #2e2e32;
--accent-primary: #3584e4;
--accent-hover: #1c71d8;
--accent-active: #1a5fb4;
--btn-primary-text: #ffffff;
--border-subtle: #28282c;
--border-strong: #2e2e32;
}
/* Adwaita Light Theme */
[data-theme="adwaita-light"] {
--bg-primary: #fafafb;
--bg-secondary: #ffffff;
--bg-tertiary: #f3f3f5;
--bg-hover: #deddda;
--text-primary: #241f31;
--text-secondary: #333338;
--text-muted: #5e5c64;
--text-disabled: #deddda;
--accent-primary: #3584e4;
--accent-hover: #1c71d8;
--accent-active: #1a5fb4;
--btn-primary-text: #ffffff;
--border-subtle: #f3f3f5;
--border-strong: #deddda;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-size: 16px;
height: 100%;
width: 100%;
overflow: hidden;
}
body {
font-family: var(--font-sans);
font-size: 14px;
line-height: 1.5;
background-color: var(--bg-primary);
color: var(--text-primary);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
overflow: hidden;
}
/* Scrollbar Styling */
::-webkit-scrollbar {
width: 8px;
height: 8px;
}
::-webkit-scrollbar-track {
background: transparent;
}
::-webkit-scrollbar-thumb {
background: var(--bg-tertiary);
border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
background: var(--text-muted);
}
::selection {
background-color: var(--accent-primary);
color: var(--text-primary);
}
:focus-visible {
outline: 2px solid var(--accent-primary);
outline-offset: 2px;
}
button {
background: none;
border: none;
cursor: pointer;
font: inherit;
color: inherit;
}
a {
color: inherit;
text-decoration: none;
}
input,
textarea,
select {
font: inherit;
color: inherit;
}
/* Hide scrollbar for horizontal scroll containers */
.hide-scrollbar {
-ms-overflow-style: none;
scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar {
display: none;
}
/* Utility classes */
.truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tabular-nums {
font-variant-numeric: tabular-nums;
}
/* ============ Action Buttons ============ */
/* Reusable circular action buttons for headers and toolbars */
/* Uses box-shadow inset instead of border for smoother anti-aliasing */
.action-btn-circle {
display: flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 50%;
border: none;
background: transparent;
color: var(--text-muted);
cursor: pointer;
box-shadow: inset 0 0 0 1px var(--border-strong);
transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.action-btn-circle:hover:not(:disabled) {
background: var(--bg-hover);
color: var(--text-primary);
box-shadow: inset 0 0 0 1px var(--text-primary);
}
.action-btn-circle:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.action-btn-circle.primary {
width: 44px;
height: 44px;
background: var(--accent-primary);
border: none;
color: var(--text-primary);
box-shadow: inset 0 0 0 2px var(--border-subtle);
transition: background 150ms ease, box-shadow 200ms ease;
}
.action-btn-circle.primary:hover {
background: var(--accent-hover);
box-shadow: inset 0 0 0 2px var(--text-primary);
}
.action-btn-circle.is-active {
background: rgba(var(--accent-primary-rgb, 66, 133, 244), 0.15);
box-shadow: inset 0 0 0 1px var(--accent-primary);
color: var(--accent-primary);
}
/* ============ Standard Buttons ============ */
/* Reusable button styles for modals, forms, and actions */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 8px 20px;
border-radius: 8px;
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 150ms ease;
border: 1px solid transparent;
white-space: nowrap;
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-primary {
background: var(--accent-primary);
color: var(--btn-primary-text);
}
.btn-primary:hover:not(:disabled) {
opacity: 0.9;
}
.btn-secondary {
background: var(--bg-secondary);
border-color: var(--bg-tertiary);
color: var(--text-primary);
}
.btn-secondary:hover:not(:disabled) {
background: var(--bg-tertiary);
}
.btn-danger {
background: var(--danger-bg);
border: 1px solid var(--danger-border);
color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
background: var(--danger-hover);
}
.btn-ghost {
background: transparent;
color: var(--text-muted);
}
.btn-ghost:hover:not(:disabled) {
background: var(--bg-hover);
color: var(--text-primary);
}
/* Button sizes */
.btn-sm {
padding: 6px 14px;
font-size: 13px;
border-radius: 6px;
}
.btn-lg {
padding: 12px 28px;
font-size: 15px;
border-radius: 10px;
}
/* ============ Utility Classes ============ */
/* Icon inline with text */
.icon-inline {
display: inline;
vertical-align: middle;
margin-right: 4px;
}
/* Warning badge (complements .btn-danger) */
.badge-warning {
background: rgba(251, 191, 36, 0.1);
color: #fbbf24;
border: 1px solid rgba(251, 191, 36, 0.3);
padding: 8px 12px;
border-radius: 8px;
font-size: 13px;
}