mirror of
https://github.com/codex-team/editor.js
synced 2024-06-06 16:02:50 +02:00
28 lines
448 B
CSS
28 lines
448 B
CSS
|
/**
|
||
|
* Empty paragraph placeholder
|
||
|
*/
|
||
|
|
||
|
.ce-paragraph {
|
||
|
padding: 0.7em 0 !important;
|
||
|
line-height: 1.7em;
|
||
|
}
|
||
|
.ce-paragraph:empty::before{
|
||
|
content : attr(data-placeholder);
|
||
|
color: #818BA1;
|
||
|
opacity: .7;
|
||
|
transition: opacity 200ms ease;
|
||
|
}
|
||
|
.ce-paragraph:focus::before{
|
||
|
opacity: .1;
|
||
|
}
|
||
|
|
||
|
|
||
|
.ce-paragraph p {
|
||
|
margin: 1.2em 0;
|
||
|
}
|
||
|
.ce-paragraph p:first-of-type{
|
||
|
margin-top: 0;
|
||
|
}
|
||
|
.ce-paragraph p:last-of-type{
|
||
|
margin-bottom: 0;
|
||
|
}
|