From 070ca2eb3c21fe098da1f0d059bc3e6f0b64b16c Mon Sep 17 00:00:00 2001 From: tdro Date: Sat, 24 Feb 2024 18:33:47 -0500 Subject: assets/css: Namespace MathML Normalise. Generated math should not have inline styles --- assets/css/default-mathml.css | 26 ++++++++++++++++++++++++++ assets/css/default.css | 6 ------ 2 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 assets/css/default-mathml.css (limited to 'assets') diff --git a/assets/css/default-mathml.css b/assets/css/default-mathml.css new file mode 100644 index 0000000..4aa437a --- /dev/null +++ b/assets/css/default-mathml.css @@ -0,0 +1,26 @@ +@namespace mathml url(http://www.w3.org/1998/Math/MathML); + +mathml|math { + display: block; + display: block math; +} + +mathml|mtd { + display: flex; + justify-content: center; + padding-right: 0.4em; + padding-left: 0.4em; + padding-bottom: 0.5rem; + padding-top: 0.5rem; +} + +@-moz-document url-prefix() { + mathml|mtd { + display: flex; + justify-content: center; + padding-right: 0.4em; + padding-left: 0.4em; + padding-bottom: 0.5ex; + padding-top: 0.5ex; + } +} diff --git a/assets/css/default.css b/assets/css/default.css index cfb99a2..89ad378 100644 --- a/assets/css/default.css +++ b/assets/css/default.css @@ -2287,12 +2287,6 @@ link-card article a { display: block; } -math-ml, -math-ml math { - display: block; - display: block math; -} - math-ml:not(:last-child) { margin-bottom: 0.75rem; } -- cgit v1.2.3