forked from codex-team/editor.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtext.css
More file actions
44 lines (36 loc) · 636 Bytes
/
text.css
File metadata and controls
44 lines (36 loc) · 636 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* 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;
}