-
Notifications
You must be signed in to change notification settings - Fork 51
/
mathquill.css
executable file
·284 lines (263 loc) · 7.08 KB
/
mathquill.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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
/*
* LaTeX Math in pure HTML and CSS -- No images whatsoever
* v0.xa
* by Jay and Han
* Lesser GPL Licensed: http: //www.gnu.org/licenses/lgpl.html
*
* This file is automatically included by mathquill.js
*
*/
@font-face {
font-family: Symbola;
src: url(/font/Symbola.eot);
src: local("Symbola Regular"), local("Symbola"),
url(/font/Symbola.ttf) format("truetype"),
url(/font/Symbola.otf) format("opentype"),
url(/font/Symbola.svg#webfont7MzkO3xs) format("svg");
}
.mathquill-editable, .mathquill-embedded-latex .mathquill-editable {
display: -moz-inline-box;
display: inline-block;
border: 1px solid gray;
padding: 2px;
}
.mathquill-embedded-latex .mathquill-editable {
margin: 1px;
}
.mathquill-textbox {
overflow-x: auto;
overflow-y: hidden; /*so IE8 won't show a vertical scrollbar*/
}
.mathquill-editable.empty, .mathquill-editable * {
cursor: text;
}
.mathquill-editable .textarea {
position: relative;
display: inline; /*so Firefox 3.6 (Gecko 1.9.2) won't wrap the box to 2 lines*/
}
.mathquill-editable .textarea textarea {
position: absolute;
z-index: -1;
height: 1px;
width: 1px;
opacity: 0;
border: none;
outline: none;
}
.mathquill-editable .cursor {
border-left: 1px solid black;
margin-right: -1px;
display: inline;
position: relative;
z-index: 1;
}
.mathquill-editable .cursor.blink {
visibility: hidden;
}
.mathquill-editable.empty:after, .mathquill-textbox:after, .mathquill-rendered-math .empty:after {
visibility: hidden;
content: 'c';
}
/*separated from above because unrecognized pseudoclasses invalidate the entire selector*/
.mathquill-editable .cursor:only-child:after,
.mathquill-editable .textarea+.cursor:last-child:after {
visibility: hidden;
content: 'c';
}
.mathquill-editable .selection,
.mathquill-editable .selection .mathquill-rendered-math,
.mathquill-editable .selection sup, .mathquill-editable .selection sub {
background: #B4D5FE;
background: Highlight;
color: HighlightText;
border-color: HighlightText;
}
.mathquill-editable .selection.blur,
.mathquill-editable .selection.blur .mathquill-rendered-math,
.mathquill-editable .selection.blur sup,.mathquill-editable .selection.blur sub {
background: #CCC;
background: rgba(0, 0, 0, .2);
color: black;
border-color: black;
}
.mathquill-editable .selection .selection.blur,
.mathquill-editable .selection .selection.blur sup,
.mathquill-editable .selection .selection.blur sub {
background: #ABF;
}
.mathquill-editable .selection.blur .selection.blur,
.mathquill-editable .selection.blur .selection.blur sup,
.mathquill-editable .selection.blur .selection.blur sub {
background: #AAA;
background: rgba(0, 0, 0, .2);
}
.mathquill-textbox, .mathquill-rendered-math {
white-space: pre-wrap;
font-family: Symbola, "Times New Roman", serif;
}
.mathquill-rendered-math {
font-variant: normal;
font-weight: normal;
font-style: normal;
font-size: 115%;
line-height: 1;
display: -moz-inline-box;
display: inline-block;
-moz-user-select: none;
}
.mathquill-rendered-math var, .mathquill-rendered-math .nonSymbola {
font-family: "Times New Roman", serif;
}
.mathquill-rendered-math * {
font-size: inherit;
line-height: inherit;
display: -moz-inline-box;
display: inline-block;
margin: 0;
padding: 0;
border-color: black;
}
.mathquill-editable.hasCursor,
.mathquill-rendered-math .latex-command-input.hasCursor {
border-color: ActiveBorder;
}
.mathquill-editable.hasCursor, .mathquill-editable .hasCursor {
-webkit-box-shadow: #68B4DF 0 0 3px 2px;
-moz-box-shadow: #68B4DF 0 0 3px 2px;
box-shadow: #68B4DF 0 0 3px 2px;
}
.mathquill-rendered-math .empty {
background: #ccc;
}
.mathquill-rendered-math.empty {
background: transparent;
}
.mathquill-rendered-math .text {
display: inline;
font-size: 87%;
}
.mathquill-rendered-math var { /* variables, in case the user does something weird to their <var>'s */
font-style: italic;
font-weight: normal;
}
.mathquill-rendered-math var.florin { /* florin looks so much better than italic f */
margin: 0 -.1em;
}
.mathquill-rendered-math big {
font-size: 125%;
}
.mathquill-rendered-math sup, .mathquill-rendered-math sub {
position: relative;
font-size: 90%;
}
.mathquill-rendered-math sup {
vertical-align: .5em;
}
.mathquill-rendered-math sub {
vertical-align: -.4em;
}
.mathquill-rendered-math sup.nthroot {
margin-right: -.7em;
}
.mathquill-rendered-math sup.limit, .mathquill-rendered-math sub.limit,
.mathquill-rendered-math sup.nthroot {
font-size: 80%;
}
.mathquill-rendered-math sup.limit, .mathquill-rendered-math sup.nthroot {
vertical-align: .8em;
}
.mathquill-rendered-math sub.limit {
vertical-align: -.6em;
}
.mathquill-rendered-math .binary-operator {
padding: 0 .2em;
}
.mathquill-rendered-math .unary-operator {
padding-left: .2em;
}
.mathquill-rendered-math sup .binary-operator,
.mathquill-rendered-math sub .binary-operator {
padding: 0 .1em;
}
.mathquill-rendered-math sup .unary-operator,
.mathquill-rendered-math sub .unary-operator {
padding-left: .1em;
}
.mathquill-rendered-math .fraction {
font-size: 90%;
text-align: center;
vertical-align: -.5em;
padding: 0 .1em;
}
.mathquill-rendered-math .fraction, x:-moz-any-link { /* Firefox 2 (and older?) only */
display: -moz-groupbox; /* because display:inline-block is FUBAR in Gecko < 1.9.0 */
}
.mathquill-rendered-math .fraction, x:-moz-any-link, x:default { /* Firefox 3+ (Gecko 1.9.0+) */
display: inline-block;
}
.mathquill-rendered-math .numerator, .mathquill-rendered-math .denominator {
display: block;
}
.mathquill-rendered-math .numerator {
border-bottom: 1px solid; /* black is too black, contrasts with antialised text */
padding: 0 .1em;
}
.mathquill-rendered-math .denominator {
border-top: 1px solid;
float: right; /* take out of normal flow to manipulate baseline */
width: 100%;
}
.mathquill-rendered-math sup .fraction, .mathquill-rendered-math sub .fraction {
font-size: 70%;
vertical-align: -.4em;
}
.mathquill-rendered-math sup .numerator, .mathquill-rendered-math sub .numerator {
border-bottom: none;
padding-bottom: 0;
}
.mathquill-rendered-math sup .denominator, .mathquill-rendered-math sub .denominator {
padding-top: 0;
}
.mathquill-rendered-math .latex-command-input {
color: inherit;
font-family: "Courier New", monospace;
border: 1px solid gray;
padding-right: 1px;
margin-right: 1px;
margin-left: 2px;
}
.mathquill-rendered-math .latex-command-input:before {
content: '\\';
}
.mathquill-rendered-math .latex-command-input.empty {
background: transparent;
}
.mathquill-rendered-math .sqrt-prefix {
vertical-align: top;
position: relative;
top: 2px;
}
.mathquill-rendered-math .sqrt-stem {
border-top: 1px solid;
margin-top: 1px;
padding-left: 2px;
padding-right: .2em;
margin-right: .1em;
}
.mathquill-rendered-math .paren {
vertical-align: bottom;
position: relative;
}
.mathquill-rendered-math .array {
vertical-align: middle;
text-align: center;
}
.mathquill-rendered-math .array > span {
display: block;
}
.mathquill-rendered-math .non-italicized-function {
padding-right: .2em;
}
/*.mathquill-rendered-math .not {
margin-right: -.75em;
}*/