From 84e42178ac67a7d052bf8781f8c8fb619167c453 Mon Sep 17 00:00:00 2001 From: Fay Arnold Date: Tue, 8 Mar 2022 13:22:42 +0000 Subject: [PATCH 1/4] change colours in extra.css --- docs/styles/extra.css | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/styles/extra.css b/docs/styles/extra.css index 0395fc2..8742d10 100644 --- a/docs/styles/extra.css +++ b/docs/styles/extra.css @@ -3,3 +3,27 @@ --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); +} -- 2.49.0 From 24118b80cc83aa46a8538ca5e962bb466ad04042 Mon Sep 17 00:00:00 2001 From: femmefaytale Date: Wed, 9 Mar 2022 15:34:24 +0000 Subject: [PATCH 2/4] enable theme cutsom directory and re-arrange search & repo blocks --- custom_theme/partials/header.html | 87 +++++++++++++++++++++++++++++++ mkdocs.yml | 1 + 2 files changed, 88 insertions(+) create mode 100644 custom_theme/partials/header.html 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/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 -- 2.49.0 From a6e5cdbfa34cedcf26d5c48365f9b87d860a1301 Mon Sep 17 00:00:00 2001 From: femmefaytale Date: Wed, 9 Mar 2022 16:30:05 +0000 Subject: [PATCH 3/4] change mobile navbar colours --- docs/styles/extra.css | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/styles/extra.css b/docs/styles/extra.css index 8742d10..22fe79f 100644 --- a/docs/styles/extra.css +++ b/docs/styles/extra.css @@ -27,3 +27,16 @@ .md-footer-meta { background-color: rgba(0, 0, 0, 0.45); } + +/* Mobile sidebar styling tweaks */ +.md-nav--primary .md-nav__title ~ .md-nav__list { + background-color: #D7E4FF !important; +} + +.md-nav__source { + background-color: #A7C5FF !important; +} + +label.md-nav__title[for="__drawer"] { + background-color: #6A9CFF !important; +} -- 2.49.0 From 46af53fef4bcd11efa01c7ca717cdd4baff6d2ae Mon Sep 17 00:00:00 2001 From: femmefaytale Date: Fri, 18 Mar 2022 12:26:37 +0000 Subject: [PATCH 4/4] nav bar list undo colours --- docs/styles/extra.css | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/styles/extra.css b/docs/styles/extra.css index 22fe79f..6f32f2e 100644 --- a/docs/styles/extra.css +++ b/docs/styles/extra.css @@ -18,8 +18,8 @@ font-weight: 600; } - /* Footer styling tweaks */ + .md-footer { background-color: #485FC7; } @@ -29,14 +29,12 @@ } /* Mobile sidebar styling tweaks */ -.md-nav--primary .md-nav__title ~ .md-nav__list { - background-color: #D7E4FF !important; -} .md-nav__source { background-color: #A7C5FF !important; } -label.md-nav__title[for="__drawer"] { +.md-nav--primary .md-nav__title { background-color: #6A9CFF !important; + color: var(--md-primary-bg-color) !important; } -- 2.49.0