mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-07 20:15:39 +00:00
- Fix dark mode code block styling in chroma.css (background stays bright issue) - Resolve JavaScript errors with window.hbb object initialization - Fix Mermaid.js color parsing errors with proper CSS variable fallbacks - Move inline JavaScript to external files for CSP compliance - Create dedicated hb-search.js for search functionality - Add proper error handling and validation for PagefindUI initialization - Update .stylelintrc.yaml to disable no-descending-specificity rule - Fix remaining lint issues: flex-flow shorthand and kebab-case IDs - Ensure theme toggler functionality works correctly Resolves regressions introduced during Tailwind 3→4 migration. All functionality now works in both light and dark modes.
55 lines
1.2 KiB
CSS
55 lines
1.2 KiB
CSS
/* Base styles for better text rendering */
|
|
@layer base {
|
|
html {
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
text-rendering: optimizelegibility;
|
|
}
|
|
|
|
body {
|
|
line-height: 1.5;
|
|
}
|
|
}
|
|
|
|
/* Custom utilities and components */
|
|
@utility task-list {
|
|
list-style: none;
|
|
padding-left: 1.5rem;
|
|
}
|
|
|
|
/* Custom typography styles - the plugin handles the base styles */
|
|
/* Additional customization for prose elements */
|
|
@layer components {
|
|
.prose a {
|
|
text-decoration: underline;
|
|
text-decoration-color: rgb(var(--color-primary-300));
|
|
font-weight: 500;
|
|
}
|
|
|
|
.prose a:hover {
|
|
color: rgb(var(--color-primary-600));
|
|
text-decoration: none;
|
|
border-radius: 0.09rem;
|
|
}
|
|
|
|
.prose mark {
|
|
color: rgb(var(--color-neutral-900));
|
|
background-color: rgb(var(--color-primary-200));
|
|
padding: 0.1rem 0.2rem;
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
.dark .prose-invert a {
|
|
text-decoration-color: rgb(var(--color-neutral-500));
|
|
}
|
|
|
|
.dark .prose-invert a:hover {
|
|
color: rgb(var(--color-primary-300));
|
|
}
|
|
|
|
.dark .prose-invert mark {
|
|
background-color: rgb(var(--color-primary-400));
|
|
color: black;
|
|
}
|
|
}
|