diff options
author | tdro <tdro@noreply.example.com> | 2024-02-24 18:33:47 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2024-02-24 18:33:47 -0500 |
commit | 070ca2eb3c21fe098da1f0d059bc3e6f0b64b16c (patch) | |
tree | 99faebe7bb300e96b35f62b57f727bf5a88bb111 /assets/css | |
parent | b9738b3feb929b6e3cfbdd3732ffb690f70c46ff (diff) | |
download | canory-070ca2eb3c21fe098da1f0d059bc3e6f0b64b16c.tar.gz canory-070ca2eb3c21fe098da1f0d059bc3e6f0b64b16c.tar.bz2 canory-070ca2eb3c21fe098da1f0d059bc3e6f0b64b16c.zip |
assets/css: Namespace MathML
Normalise. Generated math should not have inline styles
Diffstat (limited to 'assets/css')
-rw-r--r-- | assets/css/default-mathml.css | 26 | ||||
-rw-r--r-- | assets/css/default.css | 6 |
2 files changed, 26 insertions, 6 deletions
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; } |