Add placeholder
This commit is contained in:
parent
64f2ad5bf7
commit
2800b15319
1 changed files with 9 additions and 1 deletions
10
src/app.css
10
src/app.css
|
|
@ -197,7 +197,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-content,
|
.link-content,
|
||||||
[tag] {
|
.tiptap [tag] {
|
||||||
@apply max-w-full overflow-hidden text-ellipsis whitespace-nowrap rounded bg-neutral px-1 text-neutral-content no-underline;
|
@apply max-w-full overflow-hidden text-ellipsis whitespace-nowrap rounded bg-neutral px-1 text-neutral-content no-underline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -205,6 +205,14 @@
|
||||||
@apply bg-primary text-primary-content;
|
@apply bg-primary text-primary-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tiptap p.is-editor-empty:first-child::before {
|
||||||
|
content: attr(data-placeholder);
|
||||||
|
float: left;
|
||||||
|
height: 0;
|
||||||
|
pointer-events: none;
|
||||||
|
opacity: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
/* date input */
|
/* date input */
|
||||||
|
|
||||||
.date-time-field {
|
.date-time-field {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue