forked from codex-team/editor.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathui.css
More file actions
37 lines (32 loc) · 602 Bytes
/
ui.css
File metadata and controls
37 lines (32 loc) · 602 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
/**
* Editor wrapper
*/
.codex-editor {
position: relative;
box-sizing: border-box;
.hide {
display: none;
}
&__redactor {
padding-bottom: 300px;
}
svg {
fill: currentColor;
vertical-align: middle;
max-height: 100%;
}
}
/**
* Set color for native selection
*/
::selection{
background-color: var(--selectionColor);
}
/**
* Add placeholder to content editable elements with data attribute
* data-placeholder="Hello world!"
*/
[contentEditable=true][data-placeholder]:empty:not(:focus):before{
content: attr(data-placeholder);
color: var(--grayText);
}