From b9d83f2bba6cf8b5f799a84dc18c6cc4bcc3c99a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 7 Feb 2026 00:48:58 +0000 Subject: [PATCH] Switch to Material theme with dark mode and orange accent colors Co-authored-by: orange-cpp <59374393+orange-cpp@users.noreply.github.com> --- .gitignore | 1 + docs/styles/custom-header.css | 11 ------ docs/styles/links.css | 65 ----------------------------------- mkdocs.yml | 12 ++++--- 4 files changed, 9 insertions(+), 80 deletions(-) delete mode 100644 docs/styles/custom-header.css delete mode 100644 docs/styles/links.css diff --git a/.gitignore b/.gitignore index 6473a82..a01caf3 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ /clang-coverage/ *.gcov *.bin +/site/ # pixi lock pixi.lock # pixi environments diff --git a/docs/styles/custom-header.css b/docs/styles/custom-header.css deleted file mode 100644 index f3b6931..0000000 --- a/docs/styles/custom-header.css +++ /dev/null @@ -1,11 +0,0 @@ -/* Widen the navbar container */ -.navbar .container { - max-width: 100%; /* adjust to your target width */ - width: 95%; -} - -/* Tighter spacing between navbar items */ -.navbar-nav > li > a { - padding-left: 8px; - padding-right: 8px; -} diff --git a/docs/styles/links.css b/docs/styles/links.css deleted file mode 100644 index 28a7e96..0000000 --- a/docs/styles/links.css +++ /dev/null @@ -1,65 +0,0 @@ -/* Normal links */ -a { - color: orange; -} - - -/* On hover/focus */ -a:hover, -a:focus { - color: #ff9900; /* a slightly different orange, optional */ -} -/* Navbar background */ -.navbar, -.navbar-default, -.navbar-inverse { - background-color: #a26228 !important; /* your orange */ - border-color: #ff6600 !important; -} - -/* Navbar brand + links */ -.navbar .navbar-brand, -.navbar .navbar-nav > li > a { - color: #ffffff !important; -} - -/* Active and hover states */ -.navbar .navbar-nav > .active > a, -.navbar .navbar-nav > .active > a:focus, -.navbar .navbar-nav > .active > a:hover, -.navbar .navbar-nav > li > a:hover, -.navbar .navbar-nav > li > a:focus { - color: #ffffff !important; -} -/* === DROPDOWN MENU BACKGROUND === */ -.navbar .dropdown-menu { - border-color: #ff6600 !important; -} - -/* Caret icon (the little triangle) */ -.navbar .dropdown-toggle .caret { - border-top-color: #ffffff !important; - border-bottom-color: #ffffff !important; -} - -/* === BOOTSTRAP 3 STYLE ITEMS (mkdocs + bootswatch darkly often use this) === */ -.navbar .dropdown-menu > li > a { - color: #ffffff !important; -} - -.navbar .dropdown-menu > li > a:hover, -.navbar .dropdown-menu > li > a:focus { - background-color: #e65c00 !important; /* darker orange on hover */ - color: #ffffff !important; -} - -/* === BOOTSTRAP 4+ STYLE ITEMS (if your theme uses .dropdown-item) === */ -.navbar .dropdown-item { - color: #ffffff !important; -} - -.navbar .dropdown-item:hover, -.navbar .dropdown-item:focus { - background-color: #e65c00 !important; - color: #ffffff !important; -} diff --git a/mkdocs.yml b/mkdocs.yml index cd9bdcd..f8086be 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,8 +1,12 @@ site_name: OMATH Docs theme: - name: darkly + name: material + palette: + scheme: slate + primary: deep orange + accent: orange + font: + text: Roboto Condensed extra_css: - styles/fonts.css - - styles/center.css - - styles/custom-header.css - - styles/links.css \ No newline at end of file + - styles/center.css \ No newline at end of file