From e60370d4dcf946c01ae6d6066c5744df94ecffca Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Tue, 24 Feb 2026 11:08:45 +0500 Subject: [PATCH] editor: improve hr styling (#9377) --- packages/editor/styles/styles.css | 37 ++++++++++++++++++------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/packages/editor/styles/styles.css b/packages/editor/styles/styles.css index 0fbc857b8..b59a9488b 100644 --- a/packages/editor/styles/styles.css +++ b/packages/editor/styles/styles.css @@ -38,15 +38,24 @@ margin-block: 0px; cursor: pointer; position: relative; - background-color: var(--separator); width: 100%; - height: 2px; - margin-top: 4px; - margin-bottom: 4px; + padding-top: 10px; + padding-bottom: 10px; + border-radius: 5px; } -.ProseMirror hr.ProseMirror-selectednode::after { - border: 2px solid var(--accent); +.ProseMirror hr::before { + content: ""; + position: absolute; + top: 50%; + left: 0; + right: 0; + height: 1px; + background-color: var(--separator); +} + +.ProseMirror hr.ProseMirror-selectednode { + background-color: var(--background-secondary); } .ProseMirror p code { @@ -402,17 +411,13 @@ img.ProseMirror-separator { .ProseMirror blockquote { margin-inline: 5px; padding-inline-start: 10px; -} + } -.ProseMirror a > span.image-view-content-wrap { - display: block; - margin-inline: 5px; - padding-inline-start: 10px; -} - -.ProseMirror hr { - height: 5px; -} + .ProseMirror a > span.image-view-content-wrap { + display: block; + margin-inline: 5px; + padding-inline-start: 10px; + } }