test out some colors when editing
This commit is contained in:
@@ -38,7 +38,7 @@ function getDecorations(doc: ProsemirrorNode) {
|
|||||||
|
|
||||||
decorations.push(
|
decorations.push(
|
||||||
Decoration.inline(pos + from, pos + to, {
|
Decoration.inline(pos + from, pos + to, {
|
||||||
class: 'autolink',
|
class: 'inline-tag',
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
+29
-7
@@ -48,6 +48,9 @@
|
|||||||
--text: black;
|
--text: black;
|
||||||
--background: white;
|
--background: white;
|
||||||
--backgroundLight: #F3F3F8;
|
--backgroundLight: #F3F3F8;
|
||||||
|
--blue: #0085ff;
|
||||||
|
--teal: #9AD5CA;
|
||||||
|
--yellow: #FED766;
|
||||||
}
|
}
|
||||||
html.colorMode--dark {
|
html.colorMode--dark {
|
||||||
--text: white;
|
--text: white;
|
||||||
@@ -136,17 +139,36 @@
|
|||||||
.tippy-content .items {
|
.tippy-content .items {
|
||||||
width: fit-content;
|
width: fit-content;
|
||||||
}
|
}
|
||||||
.ProseMirror .inline-tag {
|
|
||||||
|
/* Hashtags in ProseMirror */
|
||||||
|
.ProseMirror .inline-tag,
|
||||||
|
.ProseMirror .mention {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
margin: 0 3px;
|
||||||
}
|
}
|
||||||
.ProseMirror .inline-tag::after {
|
.ProseMirror .inline-tag::after,
|
||||||
|
.ProseMirror .mention::after {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: -1px;
|
||||||
bottom: 0;
|
bottom: -2px;
|
||||||
left: 0;
|
left: -3px;
|
||||||
right: 0;
|
right: -3px;
|
||||||
background-color: whitesmoke;
|
z-index: -1;
|
||||||
|
opacity: 0.3;
|
||||||
|
border-radius: 4px;
|
||||||
|
}
|
||||||
|
.ProseMirror .inline-tag {
|
||||||
|
color: var(--teal);
|
||||||
|
}
|
||||||
|
.ProseMirror .inline-tag::after {
|
||||||
|
background-color: var(--teal);
|
||||||
|
}
|
||||||
|
.ProseMirror .mention {
|
||||||
|
color: var(--yellow);
|
||||||
|
}
|
||||||
|
.ProseMirror .mention::after {
|
||||||
|
background-color: var(--yellow);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Tooltips */
|
/* Tooltips */
|
||||||
|
|||||||
Reference in New Issue
Block a user