mirror of
https://github.com/Anon-Planet/thgtoa.git
synced 2026-06-21 04:58:04 +02:00
style(css): change main font and code fonts
Change the font to EB Garamond and Office Code Pro
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
}
|
||||
|
||||
.md-header__topic {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-family: var(--font-main);
|
||||
font-size: 0.75rem;
|
||||
letter-spacing: -0.02em;
|
||||
opacity: 0.9;
|
||||
@@ -42,7 +42,7 @@ div[data-md-component="content"] > h3::before {
|
||||
|
||||
nav[data-md-level="1"] .md-nav__link,
|
||||
nav[data-md-level="2"] .md-nav__link {
|
||||
font-family: var(--code-font);
|
||||
font-family: var(--font-main);
|
||||
font-size: 0.9rem;
|
||||
text-transform: none;
|
||||
letter-spacing: 0.01em;
|
||||
@@ -55,7 +55,7 @@ nav[data-md-level="2"] .md-nav__link {
|
||||
}
|
||||
|
||||
.md-sidebar.nav-primary > nav > .md-nav__list > li.is-parent > .md-nav__nested > li > a {
|
||||
color: var(--text-secondary);
|
||||
color: var(--crt-green);
|
||||
}
|
||||
|
||||
.md-sidebar.nav-primary > nav > .md-nav__list > li.is-parent > .md-nav__nested > li > a:hover,
|
||||
@@ -73,7 +73,7 @@ nav[data-md-level="2"] .md-nav__link {
|
||||
}
|
||||
|
||||
.md-sidebar__inner > .md-nav__title {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-family: 'EB Garamond', serif;
|
||||
font-size: 0.8rem;
|
||||
color: var(--crt-red);
|
||||
padding: 1em 1.5em;
|
||||
@@ -88,6 +88,68 @@ nav[data-md-level="2"] .md-nav__link {
|
||||
width: 4px;
|
||||
}
|
||||
|
||||
/* Ensure integrated TOC nav is always visible */
|
||||
.md-nav__link,
|
||||
.md-nav__item {
|
||||
color: var(--crt-green) !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.md-nav__list > .md-nav__nested > li > a {
|
||||
color: var(--crt-green) !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.md-nav__list > .md-nav__nested > li > a:hover,
|
||||
.md-nav__list > .md-nav__nested > li > a.md-nav--opened,
|
||||
.md-nav__list > .md-nav__nested > li > a.is-active {
|
||||
color: var(--crt-green) !important;
|
||||
}
|
||||
|
||||
/* Ensure nested TOC items are visible */
|
||||
.md-typeset details summary,
|
||||
.md-typeset details[open] {
|
||||
padding: 0.5em;
|
||||
margin: 0.25em 0;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.md-typeset details summary::-webkit-details-marker {
|
||||
color: var(--crt-green);
|
||||
}
|
||||
|
||||
/* Ensure admonition summaries are always transparent */
|
||||
.md-typeset details.admonition summary,
|
||||
summary[data-type="admonition"],
|
||||
.summary-admonition {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
/* Smooth expansion of nested nav items */
|
||||
.md-nav__inner {
|
||||
transition: max-height 0.3s ease-out;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
/* Ensure all nested TOC links are readable */
|
||||
.md-nav__list > li > .md-nav__link,
|
||||
.md-nav__list > li.is-parent > .md-nav__nested > li > .md-nav__link {
|
||||
color: var(--crt-green) !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
/* Active/expanded states for integrated TOC */
|
||||
.md-nav__link[aria-current="page"],
|
||||
.md-nav__item.is-active > .md-nav__link,
|
||||
.md-nav__list > li.is-parent > .md-nav__nested > li > a.md-nav--opened {
|
||||
color: var(--crt-green) !important;
|
||||
}
|
||||
|
||||
/* Fix for expanded nested lists */
|
||||
.md-sidebar.nav-primary > nav > .md-nav__list > li.is-parent > .md-nav__nested > li {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
.md-typeset {
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user