• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1@namespace "http://www.w3.org/1998/Math/MathML";
2
3math {
4    font-family: STIXGeneral, Symbol, "Times New Roman", sans-serif;
5    display: inline-block;
6    padding: 0px;
7    margin: 0px;
8    text-align: left;
9    vertical-align: baseline;
10    line-height: 1.0;
11    padding-left: 1px;
12    padding-right: 1px;
13}
14
15math[display="block"] {
16    display: block;
17    page-break-inside: avoid;
18    margin-bottom: 1em;
19    text-align: center;
20    margin-left: auto;
21    margin-right: auto;
22}
23
24mrow, mfenced {
25    display: inline-block;
26    white-space: nowrap;
27    vertical-align: baseline;
28}
29
30mfenced {
31    padding-left: 1px;
32    padding-right: 1px;
33}
34
35mi {
36    font-style: italic;
37    padding-right: 0.1em;
38}
39
40mi + mrow {
41    margin-left: 0.1em;
42}
43
44mfrac {
45    display: inline-block;
46}
47
48msub, msup {
49    display: inline-block;
50    vertical-align: baseline;
51}
52
53msub > * + * {
54    vertical-align: sub;
55    font-size: 0.75em;
56}
57
58msup > * + * {
59    vertical-align: super;
60    font-size: 0.75em;
61}
62
63msubsup {
64    display: inline-block;
65    vertical-align: baseline;
66}
67
68msubsup > * {
69    margin: 0px;
70    padding: 0px;
71}
72
73msubsup > * + * {
74    font-size: 0.75em;
75}
76
77munder, mover, munderover {
78    display: inline-block;
79    vertical-align: baseline;
80}
81
82munderover > * + *, mover > * + *, munder > * + * {
83    font-size: 0.75em;
84}
85
86mo, mn, mi, mtext {
87    padding: 0px;
88    margin: 0px;
89}
90
91mo {
92    display: inline-block;
93}
94
95math > mo, mrow > mo, mfenced > mo {
96    padding-right: 0.1em;
97}
98
99math[mathvariant="normal"], mstyle[mathvariant="normal"], mo[mathvariant="normal"], mn[mathvariant="normal"], mi[mathvariant="normal"], mtext[mathvariant="normal"], mspace[mathvariant="normal"], ms[mathvariant="normal"] {
100    font-style: normal;
101    font-weight: normal;
102}
103
104math[mathvariant="bold"], mstyle[mathvariant="bold"], mo[mathvariant="bold"], mn[mathvariant="bold"], mi[mathvariant="bold"], mtext[mathvariant="bold"], mspace[mathvariant="bold"], ms[mathvariant="bold"] {
105    font-style: normal;
106    font-weight: bold;
107}
108
109math[mathvariant="italic"], mstyle[mathvariant="italic"], mo[mathvariant="italic"], mn[mathvariant="italic"], mi[mathvariant="italic"], mtext[mathvariant="italic"], mspace[mathvariant="italic"], ms[mathvariant="italic"] {
110    font-style: italic;
111    font-weight: normal;
112}
113
114math[mathvariant="bold-italic"], mstyle[mathvariant="bold-italic"], mo[mathvariant="bold-italic"], mn[mathvariant="bold-italic"], mi[mathvariant="bold-italic"], mtext[mathvariant="bold-italic"], mspace[mathvariant="bold-italic"], ms[mathvariant="bold-italic"] {
115    font-weight: bold;
116    font-style: italic;
117}
118
119math[mathsize="small"], mstyle[mathsize="small"], mo[mathsize="small"], mn[mathsize="small"], mi[mathsize="small"], mtext[mathsize="small"], mspace[mathsize="small"], ms[mathsize="small"] {
120    font-size: 0.75em;
121}
122
123math[mathsize="normal"], mstyle[mathsize="normal"], mo[mathsize="normal"], mn[mathsize="normal"], mi[mathsize="normal"], mtext[mathsize="normal"], mspace[mathsize="normal"], ms[mathsize="normal"] {
124    font-size: 1em;
125}
126
127math[mathsize="big"], mstyle[mathsize="big"], mo[mathsize="big"], mn[mathsize="big"], mi[mathsize="big"], mtext[mathsize="big"], mspace[mathsize="big"], ms[mathsize="big"] {
128    font-size: 1.5em;
129}
130
131annotation, annotation-xml {
132    display:none;
133}
134
135mphantom {
136    visibility: hidden;
137}
138
139merror {
140    outline: solid thin red;
141    font-weight: bold;
142    font-family: sans-serif;
143    background-color: lightYellow;
144}
145
146msqrt {
147    display: inline-block;
148    padding-top: 0.2em;
149    padding-left: 0.75em;
150}
151
152mroot {
153    display: inline-block;
154    position: relative;
155    padding-top: 0.2em;
156    padding-left: 0.2em;
157}
158
159mroot > * + * {
160    font-size: 0.75em;
161    vertical-align: bottom;
162    position: absolute;
163    left: 0px;
164    padding-right: 0.4em;
165    padding-left: 0.2em;
166    padding-bottom: 0.2em;
167}
168
169mroot > * + mrow, mroot > * + mfenced {
170    padding-bottom: 0.4em;
171}
172
173mtable {
174    display: inline-table;
175    text-align: center;
176    vertical-align: -40%;
177}
178
179mtr {
180    display: table-row;
181}
182
183mtd {
184    display: table-cell;
185    padding: 0 0.5ex;
186}
187
188mtable[columnalign="left"], mtr[columnalign="left"], mtd[columnalign="left"] {
189    text-align: left;
190}
191
192mtable[columnalign="right"], mtr[columnalign="right"], mtd[columnalign="right"] {
193    text-align: right;
194}
195
196mtable[rowalign="top"] mtd, mtable mtr[rowalign="top"] mtd, mtable mtr mtd[rowalign="top"] {
197    vertical-align: top;
198}
199
200mtable[rowalign="bottom"] mtd, mtable mtr[rowalign="bottom"] mtd, mtable mtr mtd[rowalign="bottom"] {
201    vertical-align: bottom;
202}
203
204mtable[rowalign="center"] mtd, mtable mtr[rowalign="center"] mtd, mtable mtr mtd[rowalign="center"] {
205    vertical-align: middle;
206}
207
208mtable[frame="solid"] {
209    border: solid thin;
210}
211
212mtable[frame="dashed"] {
213    border: dashed thin;
214}
215
216mtable[rowlines="solid"], mtable[rowlines="dashed"], mtable[columnlines="solid"], mtable[columnlines="dashed"] {
217    border-collapse: collapse;
218}
219
220mtable[rowlines="solid"] > mtr + mtr {
221    border-top: solid thin;
222}
223
224mtable[rowlines="dashed"] > mtr + mtr {
225    border-top: dashed thin;
226}
227
228mtable[columnlines="solid"] > mtr > mtd + mtd {
229    border-left: solid thin;
230}
231
232mtable[columnlines="dashed"] > mtr > mtd + mtd {
233    border-left: dashed thin;
234}
235
236mspace[linebreak="newline"] {
237    display: block;
238}
239