diff --git a/docs/docs/stylesheets/extra.css b/docs/docs/stylesheets/extra.css index a248d7c279..953ba68227 100644 --- a/docs/docs/stylesheets/extra.css +++ b/docs/docs/stylesheets/extra.css @@ -68,10 +68,17 @@ p { text-align: justify; } -div:nth-of-type(1) p { +div:nth-of-type(1) p:not(.admonition-title) { padding-top: 12px; } +/* Use the theme code font (bootstrap.css otherwise overrides it) */ +.md-typeset code, +.md-typeset kbd, +.md-typeset pre { + font-family: var(--md-code-font-family); +} + /* Remove page title (Zensical inserts a skip-link anchor before the h1) */ .md-content h1:first-child, .md-content #__skip + h1 { diff --git a/docs/mkdocs.zensical.yml b/docs/mkdocs.zensical.yml index 815e710539..671f4e13f4 100644 --- a/docs/mkdocs.zensical.yml +++ b/docs/mkdocs.zensical.yml @@ -1,6 +1,6 @@ # Zensical evaluation config - derived from mkdocs.yml. Build from repo root with: # zensical build -f docs/mkdocs.zensical.yml -# Differences: theme.variant classic, include_dir relative to this file, native mermaid, +# Differences: theme.variant modern (default fonts), include_dir relative to this file, native mermaid, # macros on_error_fail. The mermaid2, simple-hooks and git-revision-date # plugins are not supported by Zensical (silently ignored). # Post-build checks (hooks.on_post_build) are run separately by "invoke build-docs". @@ -19,9 +19,7 @@ repo_name: inventree/inventree # Theme theme: name: material - variant: classic - font: - text: Roboto + variant: modern custom_dir: _includes/overrides palette: - media: "(prefers-color-scheme: light)"