fixes end note citation color in dark mode core_developer_branch
authorThomas Walker Lynch <eknp9n@reasoningtechnology.com>
Fri, 5 Jun 2026 09:15:31 +0000 (09:15 +0000)
committerThomas Walker Lynch <eknp9n@reasoningtechnology.com>
Fri, 5 Jun 2026 09:15:31 +0000 (09:15 +0000)
developer/authored/RT/element/citation.js
developer/authored/RT/theme/dark_gold.js

index 5c725f6..857862e 100644 (file)
@@ -35,8 +35,7 @@ window.StyleRT.citation = function(){
     const refNum = index + 1;
     const refText = cite.getAttribute('ref') || cite.innerHTML;
     
-    // Transform the inline tag into a superscript link
-    cite.innerHTML = `<sup><a href="#note-${refNum}" id="cite-${refNum}">[${refNum}]</a></sup>`;
+    cite.innerHTML = `<a href="#note-${refNum}" id="cite-${refNum}">[${refNum}]</a>`;
     cite.style.cursor = 'pointer';
     cite.style.color = 'var(--rt-brand-link)';
     cite.style.textDecoration = 'none';
index f576147..77eb67a 100644 (file)
@@ -69,6 +69,7 @@
       s.setProperty(`--rt-${key.replace(/_/g, '-')}`, value);
     }
     
+
     // 3. Global Overrides
     const style_id = 'rt-global-overrides';
     if (!document.getElementById(style_id)) {
            border-radius: 8px; 
         }
         ::-webkit-scrollbar-thumb:hover { background: var(--rt-brand-secondary); }
+
+        /* --- Citation & Endnote Styling --- */
+        rt-cite a, .rt-inline-cite a, rt-endnotes a {
+          color: var(--rt-brand-link);
+          text-decoration: none;
+        }
+        rt-cite a:hover, .rt-inline-cite a:hover, rt-endnotes a:hover {
+          text-decoration: underline;
+        }
+        rt-cite, .rt-inline-cite {
+          font-size: 1em;
+          vertical-align: baseline;
+          padding: 0 0.15em;
+        }
+
+        /* --- Image Inversion for Diagrams --- */
+        img.rt-diagram {
+          filter: invert(1) hue-rotate(180deg);
+        }
       `;
+
       document.head.appendChild(style);
     }
   };