From: Oto Šťáva Date: Mon, 15 Jan 2024 19:11:13 +0000 (+0100) Subject: doc: adjust colors according to the logo manual X-Git-Tag: v5.7.1~5^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=593b34371cbf85549e35b9f104c688f5727ae366;p=thirdparty%2Fknot-resolver.git doc: adjust colors according to the logo manual --- 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 --------------------------------------------------