refactor(css): restructure stylesheet, remove duplicates, and improve maintainability

* reorganized CSS into clear sections (Root, Base, Layout, Typography, Components, Utilities)
* removed redundant and duplicate rules (header, branding, search, media, etc.)
* consolidated repeated selectors into single sources of truth
* unified form styles (comments + CF7)
* cleaned up sidebar/widget styles and resolved conflicting rules
* fixed related posts grid issue (min-width: 0 for grid children)
* improved TOC structure and extracted shared calculations
* simplified social links and hover behavior
* removed unsafe global performance hint (will-change)
* added prefers-reduced-motion support for accessibility
* improved overall cascade predictability and reduced specificity conflicts

No visual changes intended (safe refactor).
This commit is contained in:
2026-04-29 19:24:55 +02:00
parent 798d3f9e1f
commit 33df5bbe2e
3 changed files with 2259 additions and 11 deletions
+6 -7
View File
@@ -1,12 +1,11 @@
:root {
--site-title-color: #f7f7fa;
--primary-color: #f7f7fa;
--secondary-color: #f7f7fa;
--light-color: #1e1f29;
--grey-color: #f7f7fa;
--dark-color: #f7f7fa;
--light-color: #f7f7fa;
--dark-color: #1e1f29;
--footer-color: #2f313d;
--hover-color: #bd93f9;
}
body {
background-color: #1e1f29;
}
}