Math/modules/ext.math.css
Frédéric Wang a3015f6e79 Hide redundant output in the MathML mode.
In the MathML mode, the SVG is always visible and for Gecko the MathML
output is visible too. This commit modifies ext.math.css to hide redundant
output for a given mathematical formula.

Change-Id: I5d48ec4f2a40246567b201e82444e61d408cb3b5
2014-06-11 14:16:57 +02:00

37 lines
1.6 KiB
CSS

/*
Document : ext.math
Created on : 23.09.2013, 13:55:00
Author : Physikerwelt (Moritz Schubotz)
Description:
Shows browser-dependent math output.
*/
.mwe-math-mathml-inline,
.mwe-math-mathml-display { display: none; }
.mwe-math-fallback-png-inline { display: inline; vertical-align: middle}
.mwe-math-fallback-png-display { display: block; margin-left: auto; margin-right: auto;}
.mwe-math-fallback-source-inline { display: inline; vertical-align: middle}
.mwe-math-fallback-source-display { display: block; margin-left: auto; margin-right: auto;}
@-moz-document url-prefix() {
span.mwe-math-mathml-inline { display: inline !important; }
span.mwe-math-mathml-display { display: block !important; margin: auto !important; }
span.mwe-math-mathml-inline + img.mwe-math-fallback-svg-inline,
span.mwe-math-mathml-display + img.mwe-math-fallback-svg-display,
img.mwe-math-fallback-svg-inline + img.mwe-math-fallback-png-inline,
img.mwe-math-fallback-svg-display + img.mwe-math-fallback-png-display { display: none !important; }
}
/* Set the fonts to use for the MathML rendering */
@namespace m url('http://www.w3.org/1998/Math/MathML');
m|math {
/* Try OpenType MATH fonts, the WOFF fallback and the old math fonts */
font-family: Cambria Math, Latin Modern Math, STIX Math, LatinModernMathWOFF, MathJax_Main, STIXGeneral, serif;
}
@font-face {
/* WOFF version of Latin Modern Math.
See https://github.com/fred-wang/MathFonts */
font-family: LatinModernMathWOFF;
src: url(./LatinModern/latinmodern-math.woff);
}