editor: improve hr styling (#9377)

This commit is contained in:
Abdullah Atta
2026-02-24 11:08:45 +05:00
committed by GitHub
parent 3e412323ee
commit e60370d4dc

View File

@@ -38,15 +38,24 @@
margin-block: 0px; margin-block: 0px;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
background-color: var(--separator);
width: 100%; width: 100%;
height: 2px; padding-top: 10px;
margin-top: 4px; padding-bottom: 10px;
margin-bottom: 4px; border-radius: 5px;
} }
.ProseMirror hr.ProseMirror-selectednode::after { .ProseMirror hr::before {
border: 2px solid var(--accent); 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 { .ProseMirror p code {
@@ -409,10 +418,6 @@ img.ProseMirror-separator {
margin-inline: 5px; margin-inline: 5px;
padding-inline-start: 10px; padding-inline-start: 10px;
} }
.ProseMirror hr {
height: 5px;
}
} }