From 593b34371cbf85549e35b9f104c688f5727ae366 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Oto=20=C5=A0=C5=A5=C3=A1va?= Date: Mon, 15 Jan 2024 20:11:13 +0100 Subject: [PATCH] doc: adjust colors according to the logo manual --- doc/_static/css/logo_colors.css | 36 +++++++++++++++++++++++++++++++++ doc/_static/css/main.css | 2 ++ doc/conf.py | 2 +- 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 doc/_static/css/logo_colors.css create mode 100644 doc/_static/css/main.css diff --git a/doc/_static/css/logo_colors.css b/doc/_static/css/logo_colors.css new file mode 100644 index 000000000..8774a8fc7 --- /dev/null +++ b/doc/_static/css/logo_colors.css @@ -0,0 +1,36 @@ +.wy-side-nav-search { + background-color: #00a2e2; /* From logo manual */ +} +.wy-side-nav-search input[type=text] { + border-color: #45bfff; +} +.wy-side-nav-search div.version { + color: hsla(0,0%,100%,0.4); +} +.wy-nav-top { + background-color: #00a2e2; +} + +a { + color: #00a2e2; +} +a:hover { + color: #45bfff; +} +a:visited { + color: #00619c; +} +a:visited:hover { + color: #00a2e2; +} + +.wy-menu-vertical p.caption { + color: #00a2e2; +} + +.wy-menu-vertical a, .wy-menu-vertical a:hover, .wy-menu-vertical a:visited, +.wy-menu-vertical a:visited:hover { + /* This is here so that the a-rules above do not override the menu colors, + * which should remain grey */ + color: #d9d9d9; +} diff --git a/doc/_static/css/main.css b/doc/_static/css/main.css new file mode 100644 index 000000000..a6b5f35c1 --- /dev/null +++ b/doc/_static/css/main.css @@ -0,0 +1,2 @@ +@import "custom.css"; +@import "logo_colors.css"; diff --git a/doc/conf.py b/doc/conf.py index a2aad176a..9dc0f670f 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -68,7 +68,7 @@ html_theme_options = { 'sticky_navigation': True, } html_logo = '_static/logo-negativ.svg' -html_style = 'css/custom.css' +html_style = 'css/main.css' # -- Options for LaTeX output -------------------------------------------------- -- 2.47.2