]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
doc: adjust colors according to the logo manual docs-develop-doc-c5x6fl/deployments/3037
authorOto Šťáva <oto.stava@nic.cz>
Mon, 15 Jan 2024 19:11:13 +0000 (20:11 +0100)
committerOto Šťáva <oto.stava@nic.cz>
Mon, 15 Jan 2024 19:52:01 +0000 (20:52 +0100)
doc/_static/css/logo_colors.css [new file with mode: 0644]
doc/_static/css/main.css [new file with mode: 0644]
doc/conf.py

diff --git a/doc/_static/css/logo_colors.css b/doc/_static/css/logo_colors.css
new file mode 100644 (file)
index 0000000..8774a8f
--- /dev/null
@@ -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 (file)
index 0000000..a6b5f35
--- /dev/null
@@ -0,0 +1,2 @@
+@import "custom.css";
+@import "logo_colors.css";
index a2aad176a6192d874122ccedac8719a0da1380d2..9dc0f670f8d92d6562428964ade4677c5c494778 100644 (file)
@@ -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 --------------------------------------------------