From 9fcdc0e0c590b747a95371f2ecbcb3ec0f2589a5 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Mon, 2 Dec 2024 22:16:26 +0200 Subject: [PATCH] style(next): improve hr style --- src/public/app/widgets/type_widgets/editable_text.js | 2 +- src/public/stylesheets/theme-next.css | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/public/app/widgets/type_widgets/editable_text.js b/src/public/app/widgets/type_widgets/editable_text.js index 13f21882c..2a191c3d0 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.css index 743208c1e..b7c516cd9 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;