]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
doc/_static/css: fix anchor colors docs-develop-doc-blbbgj/deployments/3547
authorOto Šťáva <oto.stava@nic.cz>
Wed, 20 Mar 2024 14:12:56 +0000 (15:12 +0100)
committerOto Šťáva <oto.stava@nic.cz>
Fri, 22 Mar 2024 10:10:54 +0000 (11:10 +0100)
The global styling made some anchors misbehave. Since we only want to
recolor the anchors in the content part of the docs, let's properly
target the CSS rules.

doc/_static/css/custom.css [deleted file]
doc/_static/css/dev.css
doc/_static/css/logo_colors.css [deleted file]
doc/_static/css/main.css
doc/_static/css/user.css

diff --git a/doc/_static/css/custom.css b/doc/_static/css/custom.css
deleted file mode 100644 (file)
index e9ec794..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-/* SPDX-License-Identifier: GPL-3.0-or-later */
-@import "theme.css";
-
-table.docutils blockquote {
-    margin-left: 0;
-}
index c71d8ad27de16f2e6b46eff81c5ed0d0062d60b4..2c9fe5b7f30c6e9ad708fc9ca58943474d59243b 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: GPL-3.0-or-later */
 
 .wy-side-nav-search {
-    background-color: #b92929; /* From logo manual */
+    background-color: #b92929; /* RED FOR DEVELOPERS :-) */
 }
 .wy-side-nav-search input[type=text] {
     border-color: #a42424;
     background-color: #b92929;
 }
 
-a {
+.wy-nav-content-wrap a {
     color: #b92929;
 }
-a:hover {
+.wy-nav-content-wrap a:hover {
     color: #d13030;
 }
-a:visited {
+.wy-nav-content-wrap a:visited {
     color: #780001;
 }
-a:visited:hover {
+.wy-nav-content-wrap a:visited:hover {
     color: #d13030;
 }
 
 .wy-menu-vertical p.caption {
     color: #d95555;
 }
-
-.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/logo_colors.css b/doc/_static/css/logo_colors.css
deleted file mode 100644 (file)
index 8774a8f..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-.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;
-}
index a6b5f35c1f8ec4f863e63ce14a12673b14c1b411..e9ec7946e5253ec0a57b1187713711dfcb3dae8a 100644 (file)
@@ -1,2 +1,6 @@
-@import "custom.css";
-@import "logo_colors.css";
+/* SPDX-License-Identifier: GPL-3.0-or-later */
+@import "theme.css";
+
+table.docutils blockquote {
+    margin-left: 0;
+}
index 6b3b9c97336c294fc079a4a69551dcd9efd842db..06972b36c0f84fd81fa1be80f0604806ba6e50bb 100644 (file)
     background-color: #00a2e2;
 }
 
-a {
+.wy-nav-content-wrap a {
     color: #00619c;
 }
-a:hover {
+.wy-nav-content-wrap a:hover {
     color: #00a2e2;
 }
-a:visited {
+.wy-nav-content-wrap a:visited {
     color: #00619c;
 }
-a:visited:hover {
+.wy-nav-content-wrap 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;
-}