forked from slab/quill
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcore.styl
215 lines (195 loc) · 4.28 KB
/
core.styl
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
LIST_STYLE = decimal lower-alpha lower-roman
MAX_INDENT = 8
controlHeight = 24px
inputPadding = 5px
iconPadding = 3px inputPadding
resets(arr)
unquote('list-' + join(' list-', arr))
.ql-container
box-sizing: border-box
font-family: Helvetica, Arial, sans-serif
font-size: 13px
height: 100%
margin: 0px
position: relative
.ql-hidden
display: none
.ql-clipboard
left: -100000px
position: absolute
top: 50%
.ql-tooltip
position: absolute
a
cursor: pointer
text-decoration: none
.ql-toolbar
button
background: none
border: none
cursor: pointer
display: inline-block
float: left
height: controlHeight
outline: none
padding: iconPadding
width: controlHeight
svg
height: 100%
.ql-stroke
fill: none
stroke-linecap: round
stroke-linejoin: round
stroke-width: 2
.ql-stroke-mitter
fill: none
stroke-mitterlimit: 10
stroke-width: 2
.ql-empty
fill: none
.ql-even
fill-rule: evenodd
.ql-thin, .ql-stroke.ql-thin
stroke-width: 1
.ql-transparent
opacity: 0.4
.ql-editor
box-sizing: border-box
cursor: text
line-height: 1.42
height: 100%
outline: none
overflow-y: auto
padding: 12px 15px
tab-size: 4
white-space: pre-wrap
p, ol, ul, pre, blockquote, h1, h2, h3, h4, h5, h6
margin: 0
padding: 0
counter-reset: resets(1..MAX_INDENT)
h1
font-size: 2em
h2
font-size: 1.5em
h3
font-size: 1.17em
h4
font-size: 1em
h5
font-size: 0.83em
h6
font-size: 0.67em
pre
white-space: pre-wrap
a
text-decoration: underline
blockquote
border-left: 4px solid #ccc
font-style: italic
margin-bottom: 5px
margin-top: 5px
padding-left: 16px
code, pre:not(.hljs) // TODO core should not be aware of hljs
background-color: #f0f0f0
code, pre
border-radius: 3px
code
font-size: 85%
padding-bottom: 2px
padding-top: 2px
&:before, &:after
content: "\00a0"
letter-spacing: -2px
*:not(pre) + pre, pre:first-of-type
margin-top: 5px
padding-top: 5px
pre
margin-bottom: 5px
padding: 0px 10px 5px
pre + pre
margin-top: -10px
img
max-width: 100%
ol
padding-left: 20px
ul
padding-left: 8px
list-style: disc inside
ol
list-style-type: none
position: relative
li
counter-reset: resets(1..MAX_INDENT)
counter-increment: unquote('list-' + num)
&:before
content: unquote('counter(list-' + num + ', ' + LIST_STYLE[0] + ')') '. '
margin-right: -16px
position: absolute
right: 100%
text-align: right
for num in (1..MAX_INDENT)
li.ql-indent-{num}
counter-increment: unquote('list-' + num)
&:before
content: unquote('counter(list-' + num + ', ' + LIST_STYLE[num%3] + ')') '. '
margin-right: (-40*num - 16)px
if (num < MAX_INDENT)
li.ql-indent-{num}
counter-reset: resets((num+1)..MAX_INDENT)
for num in (1..MAX_INDENT)
.ql-indent-{num}
padding-left: (40 * num)px
video
display: block
video.ql-align-center
margin: 0 auto
video.ql-align-right
margin: 0 0 0 auto
.ql-align-center
text-align: center
.ql-align-justify
text-align: justify
.ql-align-right
text-align: right
.ql-bg-black
background-color: rgb(0,0,0);
.ql-bg-red
background-color: rgb(230,0,0);
.ql-bg-orange
background-color: rgb(255,153,0);
.ql-bg-yellow
background-color: rgb(255,255,0);
.ql-bg-green
background-color: rgb(0,138,0);
.ql-bg-blue
background-color: rgb(0,102,204);
.ql-bg-purple
background-color: rgb(153,51,255);
.ql-color-white
color: rgb(255,255,255);
.ql-color-red
color: rgb(230,0,0);
.ql-color-orange
color: rgb(255,153,0);
.ql-color-yellow
color: rgb(255,255,0);
.ql-color-green
color: rgb(0,138,0);
.ql-color-blue
color: rgb(0,102,204);
.ql-color-purple
color: rgb(153,51,255);
.ql-font-serif
font-family: Georgia, Times New Roman, serif;
.ql-font-monospace
font-family: Monaco, Courier New, monospace;
.ql-size-small
font-size: 10px;
.ql-size-large
font-size: 18px;
.ql-size-huge
font-size: 32px;
.ql-editor.ql-empty::before
color: rgba(0,0,0,0.6);
content: attr(data-placeholder);
position: absolute;