texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Gavin D. Smith
Date: Wed, 30 Nov 2022 13:36:45 -0500 (EST)

branch: old/qt-info
commit 101ba5d3f2cfed9ddb63eee2cf70b23f2c0bee69
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Apr 20 23:04:15 2019 +0100

    Change Top link in sidebar.
    
    * js/info.js (init_sidebar): Do not create <header> and <div>
    elements for the link to the Top node in the sidebar.  Remove
    the main heading from the Top node once done.  Use a <h3>
    element for the text of the link.
    * js/info.css: Remove styling for header element.
---
 ChangeLog   | 10 ++++++++++
 js/info.css |  4 ----
 js/info.js  | 10 ++++------
 3 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 5c7bf8a787..28de8fae08 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2019-04-20  Gavin Smith  <gavinsmith0123@gmail.com>
+
+       Change Top link in sidebar.
+
+       * js/info.js (init_sidebar): Do not create <header> and <div> 
+       elements for the link to the Top node in the sidebar.  Remove 
+       the main heading from the Top node once done.  Use a <h3> 
+       element for the text of the link.
+       * js/info.css: Remove styling for header element.
+
 2019-04-20  Gavin Smith  <gavinsmith0123@gmail.com>
 
        Fix loading of nodes beginning "g_t".
diff --git a/js/info.css b/js/info.css
index d63a512d7f..b8caf7cfb0 100644
--- a/js/info.css
+++ b/js/info.css
@@ -59,10 +59,6 @@ iframe.node {
     padding: 0px;
 }
 
-div.toc-sidebar header {
-    font-size: xx-large;
-}
-
 div.toc-sidebar div {
     padding: 0.25em;
     overflow: auto;
diff --git a/js/info.js b/js/info.js
index a703a2a362..0051df4c5b 100644
--- a/js/info.js
+++ b/js/info.js
@@ -1289,13 +1289,11 @@ init_sidebar ()
         var a = document.createElement ("a");
         a.setAttribute ("href", config.TOP_NAME);
         a.setAttribute ("id", "sidebar_start");
-        header.appendChild (a);
-        var div = document.createElement ("div");
-        a.appendChild (div);
-        var span = document.createElement ("span");
+        var span = document.createElement ("h3");
         span.textContent = h1.textContent;
-        div.appendChild (span);
-        elem.parentElement.insertBefore (header, elem);
+        a.appendChild (span);
+        elem.parentElement.insertBefore (a, elem);
+        h1.remove();
       }
   }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]