diff --git a/custom_theme/partials/header.html b/custom_theme/partials/header.html new file mode 100644 index 0000000..49fabe8 --- /dev/null +++ b/custom_theme/partials/header.html @@ -0,0 +1,87 @@ +{#- + This file was copied from the Material theme + You can find the file in .venv/lib/python3.10/site-packages/material/partials/header.html +-#} +{% set class = "md-header" %} +{% if "navigation.tabs.sticky" in features %} + {% set class = class ~ " md-header--lifted" %} +{% endif %} +
+ + {% if "navigation.tabs.sticky" in features %} + {% if "navigation.tabs" in features %} + {% include "partials/tabs.html" %} + {% endif %} + {% endif %} +
diff --git a/docs/styles/extra.css b/docs/styles/extra.css index 0395fc2..6f32f2e 100644 --- a/docs/styles/extra.css +++ b/docs/styles/extra.css @@ -3,3 +3,38 @@ --md-primary-fg-color--light: #202674; --md-primary-fg-color--dark: #ee4a33; } + +/* Navbar styling tweaks */ + +.md-search__form { + background-color: rgba(0, 0, 255, 0.20); +} + +.md-tabs { + background-color: #6A9CFF; +} + +.md-tabs__item { + font-weight: 600; +} + +/* Footer styling tweaks */ + +.md-footer { + background-color: #485FC7; +} + +.md-footer-meta { + background-color: rgba(0, 0, 0, 0.45); +} + +/* Mobile sidebar styling tweaks */ + +.md-nav__source { + background-color: #A7C5FF !important; +} + +.md-nav--primary .md-nav__title { + background-color: #6A9CFF !important; + color: var(--md-primary-bg-color) !important; +} diff --git a/mkdocs.yml b/mkdocs.yml index 732d34f..a1d0388 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -17,6 +17,7 @@ theme: accent: purple logo: img/favicon.ico favicon: img/favicon.ico + custom_dir: custom_theme/ copyright: Copyleft 🄯 2022 Co-op Cloud