From ba7c8e6f95caeaff05125767919ff5d6267c15e2 Mon Sep 17 00:00:00 2001 From: Aaron Lutomski Date: Sat, 23 May 2026 21:33:59 -0700 Subject: [PATCH] Restore theme-aware fonts. --- css/deltagreen.css | 11 ++++++++++- css/editor.css | 43 +++++++++++++++++++++++++++---------------- 2 files changed, 37 insertions(+), 17 deletions(-) diff --git a/css/deltagreen.css b/css/deltagreen.css index 3d6cf24..e9c5cdb 100644 --- a/css/deltagreen.css +++ b/css/deltagreen.css @@ -933,10 +933,19 @@ div.motivation-editor-container div.editor { min-height: 0; } -.deltagreen .editor-host prose-mirror .editor-content { +/* Description fonts follow the selected sheet theme (see .cowboy-style / .program-style). */ +.cowboy-style .editor-host prose-mirror .editor-content, +.cowboy-style .editor-host prose-mirror .editor-content .ProseMirror { font-family: "SpecialElite", sans-serif !important; } +.outlaw-style .editor-host prose-mirror .editor-content, +.outlaw-style .editor-host prose-mirror .editor-content .ProseMirror, +.program-style .editor-host prose-mirror .editor-content, +.program-style .editor-host prose-mirror .editor-content .ProseMirror { + font-family: "PublicSans", sans-serif !important; +} + /* Actor sheets: compact description when not editing. */ .deltagreen:not(.item) .editor-host prose-mirror:not(.active) .editor-content { position: relative; diff --git a/css/editor.css b/css/editor.css index 54c4ef6..f26444b 100644 --- a/css/editor.css +++ b/css/editor.css @@ -1,38 +1,49 @@ @font-face { font-family: "SpecialElite"; src: url("../assets/font/special_elite/SpecialElite-Regular.ttf") - format("truetype"); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */ + format("truetype"); } .special-elite-font { font-family: "SpecialElite", sans-serif !important; } -.editor-content { - font-family: "SpecialElite", sans-serif !important; -} - -.tox .tox-editor-container { - font-family: "SpecialElite", sans-serif !important; +.public-sans-font { + font-family: "PublicSans", sans-serif !important; } +/* TinyMCE iframe (legacy); theme is not available inside the iframe — keep Special Elite. */ +.tox .tox-editor-container, .tox .tox-edit-area { font-family: "SpecialElite", sans-serif !important; } -.editor-host .editor .editor-content, -.editor-host prose-mirror .editor-content { +.cowboy-style .editor-host .editor .editor-content, +.cowboy-style .editor-host prose-mirror .editor-content, +.cowboy-style .editor-host prose-mirror .editor-content .ProseMirror { font-family: "SpecialElite", sans-serif !important; } -.editor-host .tox { +.outlaw-style .editor-host .editor .editor-content, +.outlaw-style .editor-host prose-mirror .editor-content, +.outlaw-style .editor-host prose-mirror .editor-content .ProseMirror, +.program-style .editor-host .editor .editor-content, +.program-style .editor-host prose-mirror .editor-content, +.program-style .editor-host prose-mirror .editor-content .ProseMirror { + font-family: "PublicSans", sans-serif !important; +} + +.cowboy-style .editor-host .tox, +.cowboy-style .editor-host .tox-tinymce, +.cowboy-style .editor-host .tox .tox-edit-area { font-family: "SpecialElite", sans-serif !important; } -.editor-host .tox-tinymce { - font-family: "SpecialElite", sans-serif !important; -} - -.editor-host .tox .tox-edit-area { - font-family: "SpecialElite", sans-serif !important; +.outlaw-style .editor-host .tox, +.outlaw-style .editor-host .tox-tinymce, +.outlaw-style .editor-host .tox .tox-edit-area, +.program-style .editor-host .tox, +.program-style .editor-host .tox-tinymce, +.program-style .editor-host .tox .tox-edit-area { + font-family: "PublicSans", sans-serif !important; }