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 b35d925f2c Hide the "Suggest a change" button when TOC is hovered 
(#1162)
b35d925f2c is described below

commit b35d925f2ca5a8eaf6fbbf6a5c94d543dd145a40
Author: Dion Ricky Saputra <[email protected]>
AuthorDate: Thu Apr 24 15:54:15 2025 +0700

    Hide the "Suggest a change" button when TOC is hovered (#1162)
    
    * Hide the "Suggest a change" button when TOC is hovered
    
    - Also set visibility to hide to prevent button to show when hovered over 
while hidden
    
    * Add new line after last line
    
    -  Also add license to _suggest-change.scss
---
 .../site/assets/scss/_suggest-change.scss          | 32 ++++++++++++++++++++++
 landing-pages/site/assets/scss/main-custom.scss    |  1 +
 .../suggest_change_button.html                     |  2 +-
 3 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/landing-pages/site/assets/scss/_suggest-change.scss 
b/landing-pages/site/assets/scss/_suggest-change.scss
new file mode 100644
index 0000000000..06096f4784
--- /dev/null
+++ b/landing-pages/site/assets/scss/_suggest-change.scss
@@ -0,0 +1,32 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+.fade-target {
+    opacity: 1;
+    visibility: visible;
+    pointer-events: auto;
+    transition: opacity 0.5s ease, visibility 0s linear;
+}
+
+.base-layout:has(.wy-nav-side-toc:hover) .fade-target {
+    opacity: 0;
+    pointer-events: none;
+    visibility: hidden;
+    transition: opacity 0.5s ease, visibility 0s linear;
+}
diff --git a/landing-pages/site/assets/scss/main-custom.scss 
b/landing-pages/site/assets/scss/main-custom.scss
index 701ac7042b..fb5887e204 100644
--- a/landing-pages/site/assets/scss/main-custom.scss
+++ b/landing-pages/site/assets/scss/main-custom.scss
@@ -56,3 +56,4 @@
 @import "docs";
 @import "survey";
 @import "testimonial";
+@import "suggest-change";
diff --git 
a/sphinx_airflow_theme/sphinx_airflow_theme/suggest_change_button.html 
b/sphinx_airflow_theme/sphinx_airflow_theme/suggest_change_button.html
index 98ee9a768b..161fd629e4 100644
--- a/sphinx_airflow_theme/sphinx_airflow_theme/suggest_change_button.html
+++ b/sphinx_airflow_theme/sphinx_airflow_theme/suggest_change_button.html
@@ -38,7 +38,7 @@
         {% else %}
             {% set github_link = 'https://' ~ 
github_host|default("github.com") ~ '/' ~  github_user ~ '/' ~ github_repo ~ 
'/' ~ theme_vcs_pageview_mode|default("blob") ~ '/' ~  github_version ~ 
conf_py_path ~ pagename ~ suffix %}
         {% endif %}
-        <div class="base-layout--button">
+        <div class="base-layout--button fade-target">
             <a href="{{ github_link }}" rel="nofollow">
 
                 <button class="btn-hollow btn-brown btn-with-icon 
with-box-shadow button-fixed">

Reply via email to