From: Thomas Walker Lynch Date: Sun, 28 Jun 2026 14:31:54 +0000 (+0000) Subject: not paginating X-Git-Url: https://git.reasoningtechnology.com/machine%20fig.png?a=commitdiff_plain;h=37a9bee847e0e77d0c9161ea0961be0c34999c59;p=RT-Style not paginating --- diff --git a/developer/authored/Manuscript.copy/Core/theme_make.js b/developer/authored/Manuscript.copy/Core/theme_make.js index 04b2280..af67ac0 100644 --- a/developer/authored/Manuscript.copy/Core/theme_make.js +++ b/developer/authored/Manuscript.copy/Core/theme_make.js @@ -14,6 +14,7 @@ window.RT.theme = (function() { state: { success: "", warning: "", error: "", info: "" }, syntax: { keyword: "", string: "", func: "", comment: "" }, page: { width: "", min_height: "", padding: "", margin: "", bg_color: "", border_color: "", text_color: "", shadow: "" }, + custom_css: "" }; function resolve_path(path_array) { @@ -94,6 +95,17 @@ window.RT.theme = (function() { } apply_and_validate_theme(window.RT.theme_library[theme_name], fallback); + + // --- CSS Fallback for Pseudo-Elements and External Libraries --- + let style_el = document.getElementById('rt-theme-custom-css'); + if (!style_el) { + style_el = document.createElement('style'); + style_el.id = 'rt-theme-custom-css'; + document.head.appendChild(style_el); + } + // Write the string if it exists, otherwise clear the block + style_el.textContent = dictionary.custom_css || ''; + return true; } diff --git a/developer/authored/Manuscript.copy/Document/manual.html b/developer/authored/Manuscript.copy/Document/manual.html index a2d9afe..c81adc2 100644 --- a/developer/authored/Manuscript.copy/Document/manual.html +++ b/developer/authored/Manuscript.copy/Document/manual.html @@ -5,7 +5,7 @@ RT Style System: Reference Manual diff --git a/developer/authored/Manuscript.copy/Element/code.js b/developer/authored/Manuscript.copy/Element/code.js index 2eeca8b..eef99a3 100644 --- a/developer/authored/Manuscript.copy/Element/code.js +++ b/developer/authored/Manuscript.copy/Element/code.js @@ -15,12 +15,12 @@ function code() { document.querySelectorAll('rt·code').forEach((el) => { el.style.fontFamily = 'monospace'; - + const computed = window.getComputedStyle(el); - const accent = computed.getPropertyValue('--RT·accent').trim() || 'gold'; + const accent = window.RT.theme('read', 'brand', 'secondary') || 'gold'; const is_block = U.Dom.is_block_content(el); - const parentColor = computed.color; + const parentColor = window.RT.theme('read', 'content', 'main'); const is_text_light = U.Color.is_light(parentColor); const alpha = is_block ? 0.08 : 0.15;