This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-fluido-skin.git
The following commit(s) were added to refs/heads/master by this push:
new be15162 Darken link and menu heading colours to reach 4.5:1
be15162 is described below
commit be15162f7401b234cc7b6c2d05f929bf250d9e5e
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Mon Nov 2 09:09:47 2026 +0000
Darken link and menu heading colours to reach 4.5:1
Underline links in the page body, since the darker blue alone no longer
stands out from the body text. The dark theme keeps its lighter colours.
---
src/main/resources/css/dark-theme.css | 7 +++++++
src/main/resources/css/maven-theme.css | 17 ++++++++++++++---
2 files changed, 21 insertions(+), 3 deletions(-)
diff --git a/src/main/resources/css/dark-theme.css
b/src/main/resources/css/dark-theme.css
index 5b87dce..e53fe81 100644
--- a/src/main/resources/css/dark-theme.css
+++ b/src/main/resources/css/dark-theme.css
@@ -28,6 +28,13 @@
--link-color: #0088cc;
--code-color: #ff7b72;
}
+ /* the light theme's darker link and heading colours are too dark on a
dark background */
+ a, a > code {
+ color: var(--link-color);
+ }
+ .nav-header, .breadcrumb>.active {
+ color: #999;
+ }
.nav>li>a:hover, .nav>li>a:focus {
background-color: var(--stripe-color);
color: var(--text-color);
diff --git a/src/main/resources/css/maven-theme.css
b/src/main/resources/css/maven-theme.css
index db18dbe..42d5571 100644
--- a/src/main/resources/css/maven-theme.css
+++ b/src/main/resources/css/maven-theme.css
@@ -111,9 +111,20 @@ h5 > code {
text-align: revert;
}
-/* linked code must be styled in same color as plain links */
-a > code {
- color: #0088cc;
+/* Bootstrap's #0088cc links reach 3.9:1 on white and 3.6:1 on the grey
sidebar, its #999 headings 2.6:1; these
+ reach 4.5:1 on both (WCAG 1.4.3). Linked code must be styled in same color
as plain links. */
+a, a > code {
+ color: #006da3;
+}
+.nav-header, .breadcrumb>.active {
+ color: #6c6c6c;
+}
+.nav-list>.active>a, .nav-list>.active>a:hover, .nav-list>.active>a:focus {
+ background-color: #006da3;
+}
+/* the darker blue is too close to the body text to mark links by colour alone
(WCAG 1.4.1) */
+#bodyColumn a:not(.btn) {
+ text-decoration: underline;
}
.nav-header, .nav-list>li>a, .breadcrumb>li {