You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2025/12/18 20:31:43 UTC
(airflow-site) 01/01: Update version label to have better visibility in dark mode
This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch fix-version-label
in repository https://gitbox.apache.org/repos/asf/airflow-site.git
commit 15260c3f7483c8782059b571849b13c1de8b970b
Author: Kaxil Naik <ka...@gmail.com>
AuthorDate: Thu Dec 18 20:31:32 2025 +0000
Update version label to have better visibility in dark mode
---
landing-pages/site/assets/scss/_rst-content.scss | 10 ++++++++++
.../sphinx_airflow_theme/version-selector.html | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/landing-pages/site/assets/scss/_rst-content.scss b/landing-pages/site/assets/scss/_rst-content.scss
index d07ec6c41f..fa97615862 100644
--- a/landing-pages/site/assets/scss/_rst-content.scss
+++ b/landing-pages/site/assets/scss/_rst-content.scss
@@ -856,6 +856,16 @@ body {
}
}
+ // Style the version label to be theme-aware
+ .version-label {
+ @extend .bodytext__medium--greyish-brown;
+ color: var(--bs-secondary-color);
+ }
+
+ [data-bs-theme="dark"] .version-label {
+ color: var(--bs-body-color);
+ }
+
// Breadcrumbs
.breadcrumb {
background-color: transparent;
diff --git a/sphinx_airflow_theme/sphinx_airflow_theme/version-selector.html b/sphinx_airflow_theme/sphinx_airflow_theme/version-selector.html
index 774d110529..f6267f78a9 100644
--- a/sphinx_airflow_theme/sphinx_airflow_theme/version-selector.html
+++ b/sphinx_airflow_theme/sphinx_airflow_theme/version-selector.html
@@ -20,7 +20,7 @@
<div id="docs-version-selector" class="docs-version-selector sidebar__version-selector">
<a class="dropdown-toggle" href="#" id="versionDropdown" role="button" data-bs-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
- <span class="bodytext__medium--greyish-brown">Version: </span><span class="version">{{ version }}</span>
+ <span class="version-label">Version: </span><span class="version">{{ version }}</span>
</a>
<div class="dropdown-menu" aria-labelledby="versionDropdown">