diff --git a/assets/scss/_styles_project.scss b/assets/scss/_styles_project.scss index 45f69610e8..502ab72263 100644 --- a/assets/scss/_styles_project.scss +++ b/assets/scss/_styles_project.scss @@ -895,6 +895,100 @@ nav.foldable-nav { a > code { color: unset; } + + // a11y: links distinguishable without color alone (underline, focus) + a:not(.btn) { + text-decoration: underline; + text-underline-offset: 0.15em; + + &:focus-visible { + outline: 2px solid currentColor; + outline-offset: 2px; + } + } +} + +// a11y: same for homepage content sections (links not relying on color only) +#overview a:not(.btn), +#community a:not(.btn), +#pageContent a:not(.btn) { + text-decoration: underline; + text-underline-offset: 0.15em; + + &:focus-visible { + outline: 2px solid currentColor; + outline-offset: 2px; + } +} + +// -------------------------------------------------- +// a11y: sufficient contrast for navbar badges and adopters button +// -------------------------------------------------- +.td-navbar .badge-warning { + background-color: #b38600; + color: #fff; +} + +// Adopters button: ensure 4.5:1+ contrast (light theme = dark blue on light bg) +[data-theme="light"] #adopters .btn-outline-primary { + color: #003d99; + border-color: #003d99; + font-weight: 500; + + &:hover { + color: #fff; + background-color: #003d99; + border-color: #003d99; + } + + &:focus-visible { + outline: 2px solid #003d99; + outline-offset: 2px; + } +} + +// Adopters button: dark theme = light blue on dark bg +[data-theme="dark"] #adopters .btn-outline-primary { + color: #7eb8ff; + border-color: #7eb8ff; + font-weight: 500; + + &:hover { + color: #0d1117; + background-color: #7eb8ff; + border-color: #7eb8ff; + } + + &:focus-visible { + outline: 2px solid #7eb8ff; + outline-offset: 2px; + } +} + +// Fallback when data-theme not set (e.g. no-JS) +#adopters .btn-outline-primary { + font-weight: 500; + + &:focus-visible { + outline: 2px solid currentColor; + outline-offset: 2px; + } +} + +// a11y: sufficient contrast for main content area (background and text) +.td-main main { + background-color: $body-bg; + color: $body-color; +} + +[data-theme="light"] .td-main main { + background-color: #ffffff; + color: #212529; +} + +[data-theme="dark"] .td-main main { + background-color: #0d1117; + color: #e6edf3; } // -------------------------------------------------- diff --git a/config.toml b/config.toml index cbad9feedc..a394756a99 100644 --- a/config.toml +++ b/config.toml @@ -69,7 +69,7 @@ ignoreFiles = [] [[menu.main]] name = "" weight = -1000 - pre = "March 23rd, 2026Amsterdam, Netherlands" + pre = "Cloud Native AI 2025 eventMarch 23rd, 2026Amsterdam, Netherlands" post = "" url = "https://events.linuxfoundation.org/kubecon-cloudnativecon-europe/co-located-events/cloud-native-ai-kubeflow-day/" # [[menu.main]] diff --git a/content/en/_index.html b/content/en/_index.html index 5bfad5c681..cfc74357ff 100644 --- a/content/en/_index.html +++ b/content/en/_index.html @@ -19,8 +19,8 @@
- - + +
@@ -28,7 +28,7 @@
-

+

Open Source. Battle-Tested. Community Built.

@@ -62,7 +62,7 @@

-

+

What is Kubeflow?

@@ -81,7 +81,7 @@

-

+

Trusted by

@@ -129,7 +129,7 @@

-

+

Kubeflow Projects

@@ -290,7 +290,7 @@

-

+

Join our Community

@@ -306,13 +306,13 @@

Cloud Native Computing Foundation Logo Cloud Native Computing Foundation Logo

diff --git a/layouts/partials/navbar.html b/layouts/partials/navbar.html index 075778e402..31b845320e 100644 --- a/layouts/partials/navbar.html +++ b/layouts/partials/navbar.html @@ -6,7 +6,7 @@