style: Add CSS variable fallbacks for better browser compatibility

Following LogRocket CSS best practices:
- Added fallback values to 150+ CSS variable usages across 22 files
- Fallbacks use light theme defaults for consistent behavior
- Improves compatibility with older browsers
- Example: var(--text-primary) → var(--text-primary, #1a1a1a)

Variables with fallbacks:
- Colors: text-primary, text-secondary, text-muted, accent-blue, etc.
- Backgrounds: page-bg, paper-bg, action-bar-bg, sidebar-bg
- Shadows: shadow-sm, shadow-md, shadow-lg
- Borders: border-color, border-light, icon-border

CSS Variables Best Practices compliance: 6/7 recommendations now followed
This commit is contained in:
juanatsap
2025-11-30 14:35:02 +00:00
parent 58c1237326
commit 0956c78d00
22 changed files with 152 additions and 152 deletions
+5 -5
View File
@@ -11,7 +11,7 @@
left: 2rem;
width: 50px;
height: 50px;
background: var(--black-bar); /* Dark by default like other buttons */
background: var(--black-bar, #2b2b2b); /* Dark by default like other buttons */
color: white;
border: none;
border-radius: 50%;
@@ -45,7 +45,7 @@
left: 2rem; /* LEFT SIDE instead of right */
width: 50px;
height: 50px;
background: var(--black-bar);
background: var(--black-bar, #2b2b2b);
color: white;
border: none;
border-radius: 50%;
@@ -82,7 +82,7 @@
left: 2rem;
width: 50px;
height: 50px;
background: var(--black-bar); /* Dark background by default */
background: var(--black-bar, #2b2b2b); /* Dark background by default */
color: white; /* White icon by default */
border: none;
border-radius: 50%;
@@ -131,7 +131,7 @@
left: 2rem;
width: 50px;
height: 50px;
background: var(--black-bar);
background: var(--black-bar, #2b2b2b);
color: white;
border: none;
border-radius: 50%;
@@ -146,7 +146,7 @@
}
.download-btn {
background: var(--black-bar); /* Gray by default like other buttons */
background: var(--black-bar, #2b2b2b); /* Gray by default like other buttons */
opacity: 0.6; /* Match other buttons */
}