This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow-site.git


The following commit(s) were added to refs/heads/main by this push:
     new 475d84dbf8 fix: make staging watermark visible in dark mode (#1367)
475d84dbf8 is described below

commit 475d84dbf8d576763060bc94e3323f84b63d1d1a
Author: Siddhant_Ulekar <[email protected]>
AuthorDate: Fri Jan 2 13:31:24 2026 +0530

    fix: make staging watermark visible in dark mode (#1367)
    
    Fixes #1358
---
 .github/scripts/add_watermark.py | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/.github/scripts/add_watermark.py b/.github/scripts/add_watermark.py
index 8b9b794cb6..6fd2dbdf50 100755
--- a/.github/scripts/add_watermark.py
+++ b/.github/scripts/add_watermark.py
@@ -49,8 +49,25 @@ CSS_TO_ADD = """
       pointer-events: none; /* Ensures the watermark doesn't interfere with 
user interactions */
       z-index: -1; /* Places the pseudo-element behind all other elements */
   }
+
+  /* Dark mode support - increases watermark visibility */
+  [data-theme="dark"] body::before,
+  [data-bs-theme="dark"] body::before,
+  .dark body::before,
+  .dark-mode body::before {
+      opacity: 0.4; /* Higher opacity for dark mode visibility */
+      filter: invert(1) brightness(2); /* Inverts colors for dark background */
+  }
+
+  @media (prefers-color-scheme: dark) {
+      body::before {
+          opacity: 0.4;
+          filter: invert(1) brightness(2);
+      }
+  }
 """
 
+
 IMAGE_FILE=Path(__file__).parent / "images" / "staging.png"
 
 if __name__ == "__main__":

Reply via email to