refactor: replace hardcoded colors with CSS variables
- FocusMode: replace #000, white with theme variables - miniplayer: replace #6366f1, #fff, #818cf8 with accent/text variables - AlbumDetailView: replace #666666 with --text-muted - LoginView: use --danger and --warning variables for error/timeout boxes - PlaylistModal: use .icon-inline utility class Add to app.css: - Warning color variables (--warning, --warning-bg, --warning-border) - .icon-inline and .badge-warning utility classes
This commit is contained in:
1 parent
8ae4f62401
commit
590fea538c
6 files changed
+57
-28
No files matched your search
+29
@@ -21,6 +21,11 @@
|
||||
--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;
|
||||
|
||||
@@ -85,6 +90,11 @@
|
||||
--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);
|
||||
@@ -533,3 +543,22 @@ select {
|
||||
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;
|
||||
}
|
||||
Reference in new issue
Block a user