Restore theme-aware fonts.

This commit is contained in:
Aaron Lutomski
2026-05-29 21:07:33 -07:00
parent 20a03864be
commit ba7c8e6f95
2 changed files with 37 additions and 17 deletions
+10 -1
View File
@@ -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;
+27 -16
View File
@@ -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;
}