0956c78d00
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
46 lines
1.5 KiB
CSS
46 lines
1.5 KiB
CSS
/* ============================================================================
|
|
CSS RESET - Normalize & Base Styles
|
|
============================================================================ */
|
|
|
|
/* Box sizing reset */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
/* Body base */
|
|
body {
|
|
background-color: var(--page-bg, #d6d6d6);
|
|
|
|
/* OLD PATTERN - Keep for reference (can be restored anytime) */
|
|
/* background-image:
|
|
linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
|
|
linear-gradient(180deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
|
|
linear-gradient(180deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
|
|
background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px; */
|
|
|
|
/* NEW TEST PATTERNS - Theme-specific (woven fabric for light, diagonal grid for dark) */
|
|
background-image: var(--page-bg-pattern, none);
|
|
background-size: 40px 40px; /* For dark theme diagonal grid */
|
|
background-attachment: fixed;
|
|
max-width: 100vw; /* Prevent horizontal overflow */
|
|
overflow-x: clip; /* Clip prevents horizontal scroll WITHOUT breaking position: sticky */
|
|
}
|
|
|
|
/* Smooth scrolling */
|
|
html {
|
|
scroll-behavior: smooth;
|
|
scroll-padding-top: 70px; /* Account for fixed header */
|
|
max-width: 100vw; /* Prevent horizontal overflow */
|
|
overflow-x: clip; /* Clip prevents horizontal scroll WITHOUT breaking position: sticky */
|
|
}
|
|
|
|
/* Ensure Iconify icons display properly */
|
|
.iconify,
|
|
iconify-icon {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|