This repository has been 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 pathDraftStyleDefault.css
196 lines (163 loc) · 4.43 KB
/
DraftStyleDefault.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
/**
* (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 DraftStyleDefault
* @format
*/
.public/DraftStyleDefault/block {
position: relative;
white-space: pre-wrap;
}
/* @noflip */
.public/DraftStyleDefault/ltr {
direction: ltr;
text-align: left;
}
/* @noflip */
.public/DraftStyleDefault/rtl {
direction: rtl;
text-align: right;
}
/**
* These rules provide appropriate text direction for counter pseudo-elements.
*/
/* @noflip */
.public/DraftStyleDefault/listLTR {
direction: ltr;
}
/* @noflip */
.public/DraftStyleDefault/listRTL {
direction: rtl;
}
/**
* Default spacing for list container elements. Override with CSS as needed.
*/
.public/DraftStyleDefault/ul,
.public/DraftStyleDefault/ol {
margin: 16px 0;
padding: 0;
}
/**
* Default counters and styles are provided for five levels of nesting.
* If you require nesting beyond that level, you should use your own CSS
* classes to do so. If you care about handling RTL languages, the rules you
* create should look a lot like these.
*/
/* @noflip */
.public/DraftStyleDefault/depth0.public/DraftStyleDefault/listLTR {
margin-left: 1.5em;
}
/* @noflip */
.public/DraftStyleDefault/depth0.public/DraftStyleDefault/listRTL {
margin-right: 1.5em;
}
/* @noflip */
.public/DraftStyleDefault/depth1.public/DraftStyleDefault/listLTR {
margin-left: 3em;
}
/* @noflip */
.public/DraftStyleDefault/depth1.public/DraftStyleDefault/listRTL {
margin-right: 3em;
}
/* @noflip */
.public/DraftStyleDefault/depth2.public/DraftStyleDefault/listLTR {
margin-left: 4.5em;
}
/* @noflip */
.public/DraftStyleDefault/depth2.public/DraftStyleDefault/listRTL {
margin-right: 4.5em;
}
/* @noflip */
.public/DraftStyleDefault/depth3.public/DraftStyleDefault/listLTR {
margin-left: 6em;
}
/* @noflip */
.public/DraftStyleDefault/depth3.public/DraftStyleDefault/listRTL {
margin-right: 6em;
}
/* @noflip */
.public/DraftStyleDefault/depth4.public/DraftStyleDefault/listLTR {
margin-left: 7.5em;
}
/* @noflip */
.public/DraftStyleDefault/depth4.public/DraftStyleDefault/listRTL {
margin-right: 7.5em;
}
/**
* Only use `square` list-style after the first two levels.
*/
.public/DraftStyleDefault/unorderedListItem {
list-style-type: square;
position: relative;
}
.public/DraftStyleDefault/unorderedListItem.public/DraftStyleDefault/depth0 {
list-style-type: disc;
}
.public/DraftStyleDefault/unorderedListItem.public/DraftStyleDefault/depth1 {
list-style-type: circle;
}
/**
* Ordered list item counters are managed with CSS, since all list nesting is
* purely visual.
*/
.public/DraftStyleDefault/orderedListItem {
list-style-type: none;
position: relative;
}
/* @noflip */
.public/DraftStyleDefault/orderedListItem.public/DraftStyleDefault/listLTR:before {
left: -36px;
position: absolute;
text-align: right;
width: 30px;
}
/* @noflip */
.public/DraftStyleDefault/orderedListItem.public/DraftStyleDefault/listRTL:before {
position: absolute;
right: -36px;
text-align: left;
width: 30px;
}
/**
* Counters are reset in JavaScript. If you need different counter styles,
* override these rules. If you need more nesting, create your own rules to
* do so.
*/
.public/DraftStyleDefault/orderedListItem:before {
content: counter(ol0) '. ';
counter-increment: ol0;
}
.public/DraftStyleDefault/orderedListItem.public/DraftStyleDefault/depth1:before {
content: counter(ol1, lower-alpha) '. ';
counter-increment: ol1;
}
.public/DraftStyleDefault/orderedListItem.public/DraftStyleDefault/depth2:before {
content: counter(ol2, lower-roman) '. ';
counter-increment: ol2;
}
.public/DraftStyleDefault/orderedListItem.public/DraftStyleDefault/depth3:before {
content: counter(ol3) '. ';
counter-increment: ol3;
}
.public/DraftStyleDefault/orderedListItem.public/DraftStyleDefault/depth4:before {
content: counter(ol4, lower-alpha) '. ';
counter-increment: ol4;
}
.public/DraftStyleDefault/depth0.public/DraftStyleDefault/reset {
counter-reset: ol0;
}
.public/DraftStyleDefault/depth1.public/DraftStyleDefault/reset {
counter-reset: ol1;
}
.public/DraftStyleDefault/depth2.public/DraftStyleDefault/reset {
counter-reset: ol2;
}
.public/DraftStyleDefault/depth3.public/DraftStyleDefault/reset {
counter-reset: ol3;
}
.public/DraftStyleDefault/depth4.public/DraftStyleDefault/reset {
counter-reset: ol4;
}