From f2d7326a24156bb1a005ee0a109550c5821072ab Mon Sep 17 00:00:00 2001 From: Sandor Semsey Date: Fri, 9 Feb 2024 01:32:40 +0100 Subject: [PATCH] docs: add style.css --- docs/theme/style.css | 14 ++++++++++++++ mkdocs.yml | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 docs/theme/style.css diff --git a/docs/theme/style.css b/docs/theme/style.css new file mode 100644 index 0000000..d4023a0 --- /dev/null +++ b/docs/theme/style.css @@ -0,0 +1,14 @@ +/** Code blocks */ +code { + padding: 0.2em 0.4em !important; + border-radius: 6px !important; +} +/** Not inlined code blocks */ +pre > code { + padding: 0.8em 1.2em !important; +} + +/** Make dark theme background darker */ +[data-md-color-scheme="slate"] { + --md-default-bg-color: #0d1117; +} diff --git a/mkdocs.yml b/mkdocs.yml index 4d0e3c2..f65485f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -27,6 +27,7 @@ theme: toggle: icon: material/weather-night name: Switch to light mode + primary: custom language: en favicon: terminal.png font: @@ -38,6 +39,8 @@ theme: - navigation.instant - search.suggest - search.highlight +extra_css: + - theme/style.css markdown_extensions: - toc: