User:Mkdmo/common.css

/***** /* -*- Mode: CSS; tab-width: 2; indent-tabs-mode:nil; c-basic-offset: 2 -*- */ /* vim: set ts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 * Display MathML
 * Source: https://github.com/fred-wang/webextension-native-mathml/blob/0c73d6b89f153bb00bf905ccb0eafda215f3e75f/content-scripts/mediawiki.css
 * See: https://en.wikipedia.org/wiki/Help:Displaying_a_formula#Native_MathML
 * Requires math fonts: https://developer.mozilla.org/en-US/docs/Web/MathML/Fonts
 * MacOS: brew install font-latin-modern-math font-stix-two-math
 * Requires math fonts: https://developer.mozilla.org/en-US/docs/Web/MathML/Fonts
 * MacOS: brew install font-latin-modern-math font-stix-two-math

/* Reset some CSS properties set by MediaWiki and hide the image fallback */ .mwe-math-mathml-a11y { clip: auto !important; overflow: visible !important; position: static !important; width: auto !important; height: auto !important; opacity: 1 !important; display: inherit !important; } body.mediawiki .ve-ce-mwLatexNode .mwe-math-mathml-a11y { /* override https://phabricator.wikimedia.org/diffusion/EMAT/browse/master/modules/ve-math/ve.ce.MWLatexNode.css */ display: inherit !important; } /* Support where MediaWiki lazy loaded images */ .mwe-math-mathml-inline ~ .lazy-image-placeholder, .mwe-math-mathml-display ~ .lazy-image-placeholder, /* Support where MediaWiki doesn't lazy load images */ .mwe-math-mathml-inline + .mwe-math-fallback-image-inline, .mwe-math-mathml-display + .mwe-math-fallback-image-display { display: none !important; }