Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
style(next): improve hr style
Elian Doran9fcdc0e0c590
diff --git a/src/public/app/widgets/type_widgets/editable_text.js b/src/public/app/widgets/type_widgets/editable_text.jsindex 13f21882cd..2a191c3d0f 100644--- a/src/public/app/widgets/type_widgets/editable_text.js+++ b/src/public/app/widgets/type_widgets/editable_text.js@@ -54,7 +54,7 @@ const TPL = `cursor: text !important;}- .note-detail-editable-text *:not(figure,.include-note):first-child {+ .note-detail-editable-text *:not(figure, .include-note, hr):first-child {margin-top: 0 !important;}diff --git a/src/public/stylesheets/theme-next.css b/src/public/stylesheets/theme-next.cssindex 743208c1ed..b7c516cd9c 100644--- a/src/public/stylesheets/theme-next.css+++ b/src/public/stylesheets/theme-next.css@@ -983,7 +983,7 @@ html body .dropdown-item.disabled {overflow: unset;}-html .note-detail-editable-text :not(figure, .include-note):first-child {+html .note-detail-editable-text :not(figure, .include-note, hr):first-child {/* Create some space for the top-side shadow */margin-top: 1px !important;}@@ -1048,6 +1048,13 @@ html .note-detail-editable-text :not(figure, .include-note):first-child {right: 0.35em;}+.ck-content hr {+ margin: 5px 0;+ height: 1px;+ background-color: var(--main-border-color);+ opacity: 1;+}+.note-detail-printable:not(.word-wrap) pre code {white-space: pre;margin-right: 1em;