aboutsummaryrefslogtreecommitdiff
path: root/editor/editor.css
diff options
context:
space:
mode:
Diffstat (limited to 'editor/editor.css')
-rw-r--r--editor/editor.css40
1 files changed, 40 insertions, 0 deletions
diff --git a/editor/editor.css b/editor/editor.css
index c8c2aeb..75d9495 100644
--- a/editor/editor.css
+++ b/editor/editor.css
@@ -392,3 +392,43 @@ li.ProseMirror-selectednode:after {
left: 0;
top: 24px;
}
+
+
+ .ProseMirror {
+ counter-reset: prosemirror-footnote;
+ }
+ footnote {
+ display: inline-block;
+ position: relative;
+ cursor: pointer;
+ }
+ footnote::after {
+ content: counter(prosemirror-footnote);
+ vertical-align: super;
+ font-size: 75%;
+ counter-increment: prosemirror-footnote;
+ }
+ .ProseMirror-hideselection .footnote-tooltip *::selection { background-color: transparent; }
+ .ProseMirror-hideselection .footnote-tooltip *::-moz-selection { background-color: transparent; }
+ .footnote-tooltip {
+ cursor: auto;
+ position: absolute;
+ left: -30px;
+ top: calc(100% + 10px);
+ background: silver;
+ padding: 3px;
+ border-radius: 2px;
+ width: 500px;
+ }
+ .footnote-tooltip::before {
+ border: 5px solid silver;
+ border-top-width: 0px;
+ border-left-color: transparent;
+ border-right-color: transparent;
+ position: absolute;
+ top: -5px;
+ left: 27px;
+ content: " ";
+ height: 0;
+ width: 0;
+ }