mirror of https://github.com/fantasticit/think.git
tiptap: fix title placeholer style
This commit is contained in:
parent
4380617601
commit
0510303c7c
|
@ -1,17 +1,20 @@
|
|||
.ProseMirror {
|
||||
.title {
|
||||
.node-title {
|
||||
position: relative;
|
||||
margin: 12px 0 24px;
|
||||
font-size: 2.5em;
|
||||
font-weight: bold;
|
||||
color: var(--semi-color-text-0);
|
||||
border-bottom: 1px solid var(--semi-color-border);
|
||||
|
||||
&.is-empty::before {
|
||||
float: left;
|
||||
&::before {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
height: 0;
|
||||
color: #aaa;
|
||||
pointer-events: none;
|
||||
content: attr(data-placeholder);
|
||||
transform: translateY(-1.7em);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue