summaryrefslogtreecommitdiff
path: root/editor/editor.css
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2021-02-24 20:51:43 +0100
committerSébastien Dailly <sebastien@dailly.me>2022-02-07 16:43:33 +0100
commit3f5e3dd53755dd67c24721afc62e32d2187e3583 (patch)
tree16d4e694a1adeb83abcaea12da8fb0a16a11ed00 /editor/editor.css
parent274789e733c46e7e20fc1dc918a7251b0206b3d2 (diff)
Update editor code
Diffstat (limited to 'editor/editor.css')
-rw-r--r--editor/editor.css52
1 files changed, 42 insertions, 10 deletions
diff --git a/editor/editor.css b/editor/editor.css
index fb58773..c8c2aeb 100644
--- a/editor/editor.css
+++ b/editor/editor.css
@@ -325,38 +325,70 @@ li.ProseMirror-selectednode:after {
.ProseMirror p { margin-bottom: 1em }
-.editor em::before, .editor em::after {
+.editor [contenteditable="true"] em::before, .editor [contenteditable="true"] em::after {
content: "//"
}
-.editor blockquote p::before {
+.editor [contenteditable="true"] blockquote p::before {
content: "> "
}
-.editor strong::before, .editor strong::after {
- content: "**"
+.editor [contenteditable="true"] strong::before, .editor [contenteditable="true"] strong::after {
+ content: "**";
+ display: inline-block;
+ pointer-events: none;
}
-.editor h1::before {
+.editor [contenteditable="true"] h1::before {
content: "# "
}
-.editor h2::before {
+.editor [contenteditable="true"] h2::before {
content: "## "
}
-.editor h3::before {
+.editor [contenteditable="true"] h3::before {
content: "### "
}
-.editor h4::before {
+.editor [contenteditable="true"] h4::before {
content: "#### "
}
-.editor h5::before {
+.editor [contenteditable="true"] h5::before {
content: "##### "
}
-.editor h6::before {
+.editor [contenteditable="true"] h6::before {
content: "###### "
}
+
+#title {
+ font-size:2.4em;
+ font-weight:300;
+ line-height:1.1;
+ font-family:Source Sans Pro,Roboto,Open Sans,Liberation Sans,DejaVu Sans,Verdana,Helvetica,Arial,sans-serif;
+ width:100%;
+
+}
+
+.editor a[href] {
+ position: relative;
+}
+.tooltip, .editor a[href]:hover::after {
+ position: absolute;
+ border: 1px #3b4252 solid;
+ border-radius: 10px;
+ background-color: #2e3440;
+ padding: 12px;
+ color: #eceff4;
+ font-size: 14px;
+ z-index: 99;
+ pointer-events: none;
+}
+
+.editor a[href]:hover::after {
+ content: attr(href);
+ left: 0;
+ top: 24px;
+}