From 62e32e15a94f55f4a0b84d73f131582ffcc2fafe Mon Sep 17 00:00:00 2001 From: magdesign Date: Mon, 11 Nov 2024 03:16:55 +0000 Subject: [PATCH] docs: use pmOS green color in html output (MR 2520) Tweaked-By: Oliver Smith --- docs/_static/pmOS.css | 13 +++++++++++++ docs/conf.py | 4 ++++ 2 files changed, 17 insertions(+) create mode 100644 docs/_static/pmOS.css diff --git a/docs/_static/pmOS.css b/docs/_static/pmOS.css new file mode 100644 index 00000000..2edc2803 --- /dev/null +++ b/docs/_static/pmOS.css @@ -0,0 +1,13 @@ +/* pmOS styling color */ +body { + --themecolor: #009900; +} + +/* sets the menu bg color for desktop layout */ +.wy-side-nav-search { + background-color: var(--themecolor) +} +/* sets the menu bg color for mobile layout */ +.wy-nav-top { + background-color: var(--themecolor) +} diff --git a/docs/conf.py b/docs/conf.py index 99cec3d1..ae1dd85f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -65,6 +65,10 @@ html_theme_options = { "style_external_links": True, } +# customize styling +html_static_path = ["_static"] +html_css_files = ["pmOS.css"] + # -- Options for manual page output --------------------------------------- # One entry per manual page. List of tuples