clean: Remove custom CSS that was suppressing mdbook's native theming

Stripped out legacy CSS overrides that were conflicting with mdbook's
built-in theme, allowing the rust/sepia theme to render correctly without
interference.
This commit is contained in:
Matthew Binning 2026-03-23 06:18:45 -07:00
parent d7daf6222d
commit 2896fd81a2
4 changed files with 1 additions and 208 deletions

View file

@ -7,11 +7,10 @@ language = "en"
build-dir = "blog" build-dir = "blog"
[output.html] [output.html]
default-theme = "light" default-theme = "rust"
smart-punctuation = true smart-punctuation = true
git-repository-url = "https://forgejo.binning.net/matthew.binning/www" git-repository-url = "https://forgejo.binning.net/matthew.binning/www"
edit-url-template = "https://forgejo.binning.net/matthew.binning/www/src/branch/main/{path}" edit-url-template = "https://forgejo.binning.net/matthew.binning/www/src/branch/main/{path}"
additional-css = ["theme/sepia.css"]
no-section-label = true no-section-label = true
fold.enable = true fold.enable = true
fold.level = 0 fold.level = 0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.5 KiB

View file

@ -1,22 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 199.7 184.2">
<style>
@media (prefers-color-scheme: dark) {
svg { fill: white; }
}
</style>
<path d="M189.5,36.8c0.2,2.8,0,5.1-0.6,6.8L153,162c-0.6,2.1-2,3.7-4.2,5c-2.2,1.2-4.4,1.9-6.7,1.9H31.4c-9.6,0-15.3-2.8-17.3-8.4
c-0.8-2.2-0.8-3.9,0.1-5.2c0.9-1.2,2.4-1.8,4.6-1.8H123c7.4,0,12.6-1.4,15.4-4.1s5.7-8.9,8.6-18.4l32.9-108.6
c1.8-5.9,1-11.1-2.2-15.6S169.9,0,164,0H72.7c-1,0-3.1,0.4-6.1,1.1l0.1-0.4C64.5,0.2,62.6,0,61,0.1s-3,0.5-4.3,1.4
c-1.3,0.9-2.4,1.8-3.2,2.8S52,6.5,51.2,8.1c-0.8,1.6-1.4,3-1.9,4.3s-1.1,2.7-1.8,4.2c-0.7,1.5-1.3,2.7-2,3.7c-0.5,0.6-1.2,1.5-2,2.5
s-1.6,2-2.2,2.8s-0.9,1.5-1.1,2.2c-0.2,0.7-0.1,1.8,0.2,3.2c0.3,1.4,0.4,2.4,0.4,3.1c-0.3,3-1.4,6.9-3.3,11.6
c-1.9,4.7-3.6,8.1-5.1,10.1c-0.3,0.4-1.2,1.3-2.6,2.7c-1.4,1.4-2.3,2.6-2.6,3.7c-0.3,0.4-0.3,1.5-0.1,3.4c0.3,1.8,0.4,3.1,0.3,3.8
c-0.3,2.7-1.3,6.3-3,10.8c-1.7,4.5-3.4,8.2-5,11c-0.2,0.5-0.9,1.4-2,2.8c-1.1,1.4-1.8,2.5-2,3.4c-0.2,0.6-0.1,1.8,0.1,3.4
c0.2,1.6,0.2,2.8-0.1,3.6c-0.6,3-1.8,6.7-3.6,11c-1.8,4.3-3.6,7.9-5.4,11c-0.5,0.8-1.1,1.7-2,2.8c-0.8,1.1-1.5,2-2,2.8
s-0.8,1.6-1,2.5c-0.1,0.5,0,1.3,0.4,2.3c0.3,1.1,0.4,1.9,0.4,2.6c-0.1,1.1-0.2,2.6-0.5,4.4c-0.2,1.8-0.4,2.9-0.4,3.2
c-1.8,4.8-1.7,9.9,0.2,15.2c2.2,6.2,6.2,11.5,11.9,15.8c5.7,4.3,11.7,6.4,17.8,6.4h110.7c5.2,0,10.1-1.7,14.7-5.2s7.7-7.8,9.2-12.9
l33-108.6c1.8-5.8,1-10.9-2.2-15.5C194.9,39.7,192.6,38,189.5,36.8z M59.6,122.8L73.8,80c0,0,7,0,10.8,0s28.8-1.7,25.4,17.5
c-3.4,19.2-18.8,25.2-36.8,25.4S59.6,122.8,59.6,122.8z M78.6,116.8c4.7-0.1,18.9-2.9,22.1-17.1S89.2,86.3,89.2,86.3l-8.9,0
l-10.2,30.5C70.2,116.9,74,116.9,78.6,116.8z M75.3,68.7L89,26.2h9.8l0.8,34l23.6-34h9.9l-13.6,42.5h-7.1l12.5-35.4l-24.5,35.4h-6.8
l-0.8-35L82,68.7H75.3z"/>
</svg>
<!-- Original image Copyright Dave Gandy — CC BY 4.0 License -->

Before

Width:  |  Height:  |  Size: 1.8 KiB

View file

@ -1,184 +0,0 @@
/* Sepia theme override for mdbook */
:root {
--bg: #f4ecd8;
--fg: #3e2723;
--sidebar-bg: #efebe9;
--sidebar-fg: #5d4037;
--sidebar-non-existant: #a1887f;
--sidebar-active: #4e342e;
--sidebar-spacer: #8d6e63;
--scrollbar: #8d6e63;
--icons: #5d4037;
--icons-hover: #4e342e;
--links: #6d4c41;
--inline-code-color: #4e342e;
--theme-popup-bg: #efebe9;
--theme-popup-border: #d7ccc8;
--theme-hover: #f4ecd8;
--quote-bg: #faf8f3;
--quote-border: #d7ccc8;
--table-border-color: #d7ccc8;
--table-header-bg: #efebe9;
--table-alternate-bg: #faf8f3;
--searchbar-border-color: #d7ccc8;
--searchbar-bg: #efebe9;
--searchbar-fg: #3e2723;
--searchbar-shadow-color: rgb(62, 39, 35, 0.1);
--searchresults-header-fg: #4e342e;
--searchresults-border-color: #d7ccc8;
--searchresults-li-bg: #faf8f3;
--search-mark-bg: #d7ccc8;
}
body {
font-family: 'Courier New', 'Courier', 'Monaco', 'Lucida Console', monospace !important;
background-color: #f4ecd8;
color: #3e2723;
font-size: 16px !important;
line-height: 1.6 !important;
}
html {
font-size: 16px !important;
}
.sidebar {
background-color: #efebe9;
border-right: 2px solid #d7ccc8;
}
.chapter {
color: #5d4037;
line-height: 1.7;
}
.chapter li.chapter-item {
line-height: 1.7;
}
.chapter li a {
color: #6d4c41;
text-decoration: none;
}
.chapter li a:hover {
color: #4e342e;
}
.chapter li a.active {
color: #4e342e;
font-weight: bold;
}
#content {
max-width: 1200px;
}
.content {
padding: 2rem;
}
h1, h2, h3, h4, h5 {
color: #4e342e;
}
h1 {
border-bottom: 3px solid #8d6e63;
padding-bottom: 0.5rem;
}
h2 {
border-bottom: 2px solid #8d6e63;
padding-bottom: 0.3rem;
margin-top: 2rem;
}
a {
color: #6d4c41;
}
a:hover {
color: #4e342e;
}
blockquote {
border-left: 4px solid #8d6e63;
background-color: #faf8f3;
padding: 1rem;
margin: 1rem 0;
}
code {
background-color: #faf8f3;
border: 1px solid #d7ccc8;
border-radius: 3px;
padding: 0.1em 0.3em;
color: #4e342e;
font-family: 'Courier New', 'Courier', 'Monaco', monospace;
}
pre {
background-color: #faf8f3;
border: 1px solid #d7ccc8;
border-radius: 4px;
padding: 1rem;
}
pre > code {
background-color: transparent;
border: none;
padding: 0;
}
table {
border-collapse: collapse;
margin: 1rem 0;
}
table thead {
background-color: #efebe9;
}
table th, table td {
border: 1px solid #d7ccc8;
padding: 0.5rem;
}
table tr:nth-child(even) {
background-color: #faf8f3;
}
hr {
border: none;
border-top: 2px solid #d7ccc8;
margin: 2rem 0;
}
/* Navigation buttons */
.nav-chapters {
color: #6d4c41;
}
.nav-chapters:hover {
color: #4e342e;
text-decoration: none;
}
/* Hide default mdbook elements we don't want */
.menu-title {
color: #4e342e;
font-weight: bold;
}
/* Adjust sidebar chapter spacing */
.chapter li {
margin: 0.5rem 0;
}
/* Make separators in SUMMARY.md look nice */
.chapter .spacer {
height: 2px;
background-color: #d7ccc8;
margin: 1rem 0;
}