This repository was archived by the owner on Feb 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
/
Copy pathDraftEditor.css
74 lines (62 loc) · 1.53 KB
/
DraftEditor.css
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/**
* (c) Meta Platforms, Inc. and affiliates. Confidential and proprietary.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @providesModule DraftEditor
* @format
*/
/**
* We inherit the height of the container by default
*/
.DraftEditor/root,
.DraftEditor/editorContainer,
.public/DraftEditor/content {
height: inherit;
text-align: initial;
}
.public/DraftEditor/content[contenteditable='true'] {
-webkit-user-modify: read-write-plaintext-only;
}
.DraftEditor/root {
position: relative;
}
/**
* Zero-opacity background used to allow focus in IE. Otherwise, clicks
* fall through to the placeholder.
*/
.DraftEditor/editorContainer {
background-color: rgba(255, 255, 255, 0);
position: relative;
z-index: 1;
}
.safari .DraftEditor/editorContainer {
/* Repair mysterious missing Safari cursor */
border-left: 0.1px solid transparent;
}
.public/DraftEditor/block {
position: relative;
}
.DraftEditor/alignLeft .public/DraftStyleDefault/block {
text-align: left;
}
.DraftEditor/alignLeft .public/DraftEditorPlaceholder/root {
left: 0;
text-align: left;
}
.DraftEditor/alignCenter .public/DraftStyleDefault/block {
text-align: center;
}
.DraftEditor/alignCenter .public/DraftEditorPlaceholder/root {
margin: 0 auto;
text-align: center;
width: 100%;
}
.DraftEditor/alignRight .public/DraftStyleDefault/block {
text-align: right;
}
.DraftEditor/alignRight .public/DraftEditorPlaceholder/root {
right: 0;
text-align: right;
}