Skip to content

Commit

Permalink
Fix mathml styling in Chrome #710
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf authored Jun 27, 2024
1 parent d383971 commit 9076d96
Showing 1 changed file with 6 additions and 32 deletions.
38 changes: 6 additions & 32 deletions src/app/shared/styles/math.scss
Original file line number Diff line number Diff line change
@@ -1,38 +1,12 @@
/* Inspired by http://fred-wang.github.io/mathml.css/ */
@import "../../../bootstrap-variables";

/* math */
math {
display: inline;
text-indent: 0;
math,
mi,
mo,
mn {
font-size: $font-size-base;
}

math[display="block"] {
display: block;
text-align: center;
}

/* fraction */
mfrac {
display: inline-block !important;
vertical-align: -50%;
border-collapse: collapse;
text-align: center;
}

mfrac > * {
display: block !important;
}

mfrac > * + * {
display: inline-block !important;
vertical-align: top;
}

mfrac:not([linethickness="0"]) > *:first-child {
border-bottom: solid thin;
}

/* token elements */
mi {
font-style: italic;
}
Expand Down

0 comments on commit 9076d96

Please sign in to comment.