editor: improve hr & p styling (#7489)

Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
01zulfi
2025-02-17 12:10:10 +05:00
committed by GitHub
parent f476969e9e
commit a48bd360ca

View File

@@ -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,