mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-12 01:08:55 +00:00
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
This commit is contained in:
parent
cbbf5453d1
commit
a3015f6e79
|
@ -6,16 +6,20 @@
|
|||
Shows browser-dependent math output.
|
||||
*/
|
||||
|
||||
.mwe-math-mathml-inline { display: none;}
|
||||
.mwe-math-mathml-display { display: none ;}
|
||||
.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() {
|
||||
.mwe-math-mathml-inline { display: inline !important; }
|
||||
.mwe-math-mathml-display { display: block !important; margin:auto!important;}
|
||||
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 */
|
||||
|
|
Loading…
Reference in a new issue