mirror of
https://github.com/codex-team/editor.js
synced 2024-06-10 09:52:36 +02:00
48ac2271f9
Co-authored-by: Murod Khaydarov <murod.haydarov@gmail.com> Co-authored-by: Petr Savchenko <specc.dev@gmail.com> Co-authored-by: George Berezhnoy <gohabereg@gmail.com> Co-authored-by: Taly Guryn <vitalik7tv@yandex.ru>
45 lines
636 B
CSS
45 lines
636 B
CSS
/**
|
|
* Empty paragraph placeholder
|
|
*/
|
|
|
|
.ce-text {
|
|
padding: 10px 0;
|
|
line-height: 1.6em;
|
|
outline: none;
|
|
}
|
|
|
|
.ce-text p:first-of-type {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.ce-text p:last-of-type {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
|
|
.ce-paragraph:empty::before,
|
|
.ce-paragraph p:empty::before{
|
|
content : attr(data-placeholder);
|
|
color: #818BA1;
|
|
opacity: .7;
|
|
transition: opacity 200ms ease;
|
|
}
|
|
.ce-paragraph:focus::before{
|
|
opacity: .1;
|
|
}
|
|
|
|
.toolbar-opened .ce-paragraph::before {
|
|
display: none;
|
|
}
|
|
|
|
|
|
.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;
|
|
}
|