Replace the cyan accent and Tailwind gray ramp with gruvbox. - primary-* now resolves through CSS variables (css/tailwind.css) because gruvbox uses a different blue for light (#076678) and dark (#83a598); a single hex cannot serve both modes. - gray is remapped to the gruvbox neutral ramp (light0 -> dark0), so page background, headings, muted text and borders all come from the theme. - body/header/mobile-nav/dropdown/search use bg-gray-50 instead of bg-white so the canvas picks up light0 (#fbf1c7). - theme-color meta and the logo mark follow the palette. - 404 button was hardcoded bg-blue-600; now bg-primary-600.
81 lines
1.9 KiB
CSS
81 lines
1.9 KiB
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
/* Gruvbox accent ramp.
|
|
Gruvbox uses a different blue for light and dark, so the primary-* utilities
|
|
resolve through these variables instead of fixed hexes. `.dark` must stay
|
|
after `:root` — same specificity, so source order decides. */
|
|
:root {
|
|
--primary-300: 168 196 184; /* #a8c4b8 — derived lighten of bright_blue */
|
|
--primary-400: 131 165 152; /* #83a598 — bright_blue */
|
|
--primary-500: 7 102 120; /* #076678 — faded_blue */
|
|
--primary-600: 5 74 86; /* #054a56 — derived darken of faded_blue */
|
|
--primary-700: 4 58 68; /* #043a44 — derived darken of faded_blue */
|
|
}
|
|
|
|
.dark {
|
|
--primary-300: 168 196 184; /* #a8c4b8 */
|
|
--primary-400: 168 196 184; /* #a8c4b8 — hover in dark */
|
|
--primary-500: 131 165 152; /* #83a598 — resting link in dark */
|
|
--primary-600: 7 102 120; /* #076678 — active chip in the theme menu */
|
|
--primary-700: 7 102 120; /* #076678 */
|
|
}
|
|
|
|
.task-list-item::before {
|
|
@apply hidden;
|
|
}
|
|
|
|
.task-list-item {
|
|
@apply list-none;
|
|
}
|
|
|
|
.footnotes {
|
|
@apply mt-12 border-t border-gray-200 pt-8 dark:border-gray-700;
|
|
}
|
|
|
|
.data-footnote-backref {
|
|
@apply no-underline;
|
|
}
|
|
|
|
.csl-entry {
|
|
@apply my-5;
|
|
}
|
|
|
|
.no-scrollbar::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.no-scrollbar {
|
|
-ms-overflow-style: none; /* IE and Edge */
|
|
scrollbar-width: none; /* Firefox */
|
|
}
|
|
|
|
/* https://stackoverflow.com/questions/61083813/how-to-avoid-internal-autofill-selected-style-to-be-applied */
|
|
input:-webkit-autofill,
|
|
input:-webkit-autofill:focus {
|
|
transition:
|
|
background-color 600000s 0s,
|
|
color 600000s 0s;
|
|
}
|
|
|
|
.katex-display {
|
|
overflow: auto hidden;
|
|
}
|
|
|
|
.content-header-link {
|
|
opacity: 0;
|
|
margin-left: -24px;
|
|
padding-right: 4px;
|
|
}
|
|
|
|
.content-header:hover .content-header-link,
|
|
.content-header-link:hover {
|
|
opacity: 1;
|
|
}
|
|
|
|
.linkicon {
|
|
display: inline-block;
|
|
vertical-align: middle;
|
|
}
|