From: Adam Dullage Date: Fri, 24 Nov 2023 12:55:32 +0000 (+0000) Subject: Reorganised toast ui css overrides X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=52ee931336388e9fccdbd1ece49ae5ffa38944ac;p=flatnotes.git Reorganised toast ui css overrides --- diff --git a/flatnotes/src/components/NoteViewerEditor.vue b/flatnotes/src/components/NoteViewerEditor.vue index a840964..cc30b23 100644 --- a/flatnotes/src/components/NoteViewerEditor.vue +++ b/flatnotes/src/components/NoteViewerEditor.vue @@ -98,7 +98,12 @@ - - - diff --git a/flatnotes/src/toastui-editor-theme.scss b/flatnotes/src/toastui-editor-overrides.scss similarity index 82% rename from flatnotes/src/toastui-editor-theme.scss rename to flatnotes/src/toastui-editor-overrides.scss index 48abf13..fc34012 100644 --- a/flatnotes/src/toastui-editor-theme.scss +++ b/flatnotes/src/toastui-editor-overrides.scss @@ -1,10 +1,44 @@ @import "../colours"; +@import "../mixins"; -.note { - background-color: var(--colour-background-elevated); - box-shadow: 0 0 10px var(--colour-shadow); +.ProseMirror { + font-family: "Inter", sans-serif; +} + +.toastui-editor-contents { + font-family: "Inter", sans-serif; + h1, + h2, + h3, + h4, + h5, + h6 { + border-bottom: none; + } + @include note-padding; +} + +.toastui-editor-defaultUI .ProseMirror { + @include note-padding; +} + +// Override the default font-family for code blocks as some of the fallbacks are not monospace +.toastui-editor-contents code, +.toastui-editor-contents pre, +.toastui-editor-md-code, +.toastui-editor-md-code-block { + font-family: Consolas, "Lucida Console", Monaco, "Andale Mono", monospace; +} + +// Disable checkboxes in view mode. See https://github.com/nhn/tui.editor/issues/1087. +.note-viewer li.task-list-item { + pointer-events: none; + a { + pointer-events: auto; + } } +// Colours .toastui-editor-defaultUI { border: none; } @@ -115,6 +149,7 @@ } .dark-theme .toastui-editor-toolbar-icons { + // Standard dark theme buttons are dark grey, this position change makes them white background-position-y: -49px; }