mirror of
https://github.com/Mail-0/Zero.git
synced 2026-07-01 08:16:28 +00:00
32 lines
670 B
CSS
32 lines
670 B
CSS
/* Only show placeholder when editor is completely empty */
|
|
.ProseMirror p.is-editor-empty:first-child::before {
|
|
color: #616161;
|
|
content: "Start writing...";
|
|
float: left;
|
|
height: 0;
|
|
pointer-events: none;
|
|
opacity: 0.4;
|
|
font-weight: normal;
|
|
}
|
|
|
|
/* Style for all empty paragraphs */
|
|
.ProseMirror p.is-empty::before {
|
|
color: #616161;
|
|
content: "Continue writing...";
|
|
float: left;
|
|
height: 0;
|
|
pointer-events: none;
|
|
opacity: 0.4;
|
|
font-weight: normal;
|
|
}
|
|
|
|
/* Remove the style for all empty paragraphs */
|
|
/*
|
|
.ProseMirror p.is-empty::before {
|
|
color: #adb5bd;
|
|
content: attr(data-placeholder);
|
|
float: left;
|
|
height: 0;
|
|
pointer-events: none;
|
|
}
|
|
*/ |