« get me outta code hell

content, client, css: accents in content headings - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-11-07 20:31:57 -0400
committer(quasar) nebula <qznebula@protonmail.com>2023-11-09 16:07:36 -0400
commitb8e612f9723ef1b890a1af8745e3f165220ce9d1 (patch)
treed92c6f29dc93f80ad921bdf5a8b9745ce09ad3e6 /src/static
parent7166db580d57504b5ec42d9d07078ea24f0b1149 (diff)
content, client, css: accents in content headings
Diffstat (limited to 'src/static')
-rw-r--r--src/static/client2.js4
-rw-r--r--src/static/site5.css6
2 files changed, 10 insertions, 0 deletions
diff --git a/src/static/client2.js b/src/static/client2.js
index 28882a88..0ec052bd 100644
--- a/src/static/client2.js
+++ b/src/static/client2.js
@@ -879,6 +879,10 @@ function updateStickySubheadingContent(index) {
     }
 
     for (const child of closestHeading.childNodes) {
+      if (child.classList?.contains('content-heading-accent')) {
+        continue;
+      }
+
       if (child.tagName === 'A') {
         for (const grandchild of child.childNodes) {
           stickySubheading.appendChild(grandchild.cloneNode(true));
diff --git a/src/static/site5.css b/src/static/site5.css
index 0eb7dcda..afce9b0f 100644
--- a/src/static/site5.css
+++ b/src/static/site5.css
@@ -1275,6 +1275,12 @@ html[data-url-key="localized.home"] .carousel-container {
   animation-delay: 125ms;
 }
 
+.content-heading .content-heading-accent {
+  font-weight: normal;
+  font-size: 1rem;
+  margin-left: 0.25em;
+}
+
 h3.content-heading {
   clear: both;
 }