Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

editor: make hr bigger & easily selectable (fixes #847)

Abdullah Atta99b9dda47db3
diff --git a/packages/editor/styles/styles.css b/packages/editor/styles/styles.css
index 59df707e6..22a483397 100644
--- a/packages/editor/styles/styles.css
+++ b/packages/editor/styles/styles.css
@@ -15,12 +15,29 @@
}
.ProseMirror hr {
+ box-sizing: border-box;
+ background-color: transparent;
+ border-width: 0px;
+ margin-block: 0px;
+ padding-top: 10px;
+ padding-bottom: 10px;
+ cursor: pointer;
+ position: relative;
+}
+
+.ProseMirror hr::after {
+ content: "";
+ position: absolute;
+ width: 99%;
+ height: 5px;
background-color: var(--border);
- border-width: 0;
- height: 2px;
}
-.ProseMirror code:not(pre code) {
+.ProseMirror hr.ProseMirror-selectednode::after {
+ border: 2px solid var(--primary);
+}
+
+.ProseMirror code:not(pre code){
background-color: var(--bgSecondary);
border: 1px solid var(--border);
border-radius: 5px;
@@ -30,6 +47,11 @@
font-size: 10pt !important;
}
+.ProseMirror code > span {
+ font-family: ui-monospace, SFMono-Regular, SF Mono, Consolas, Liberation Mono,
+ Menlo, monospace !important;
+}
+
.ProseMirror li p {
margin: 0px;
}