From a48bd360ca5a0f714e1e242869b16782df920cef Mon Sep 17 00:00:00 2001 From: 01zulfi <85733202+01zulfi@users.noreply.github.com> Date: Mon, 17 Feb 2025 12:10:10 +0500 Subject: [PATCH] editor: improve hr & p styling (#7489) Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com> --- packages/editor/styles/styles.css | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/packages/editor/styles/styles.css b/packages/editor/styles/styles.css index 82af8d1b5..f17819ee6 100644 --- a/packages/editor/styles/styles.css +++ b/packages/editor/styles/styles.css @@ -40,20 +40,13 @@ background-color: transparent; border-width: 0px; margin-block: 0px; - padding-top: 10px; - padding-bottom: 10px; cursor: pointer; position: relative; - margin-top: 4px; - margin-bottom: -10px; -} - -.ProseMirror hr::after { - content: ""; - position: absolute; - width: 99%; - height: 5px; background-color: var(--border); + width: 100%; + height: 5px; + margin-top: 4px; + margin-bottom: 4px; } .ProseMirror hr.ProseMirror-selectednode::after { @@ -125,10 +118,12 @@ .ProseMirror > p[data-spacing="double"] { margin-top: 1em; + margin-bottom: 1em; } .ProseMirror > p[data-spacing="single"] { margin-top: 0px; + margin-bottom: 0px; } .ProseMirror > div.codeblock-view-content-wrap,