Template:Scrollable Math/styles.css: Difference between revisions
Template page
More actions
No edit summary |
m Protected "Template:Scrollable Math/styles.css" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
(No difference)
| |
Revision as of 14:55, 17 November 2025
.scrollable-math {
overflow-x: auto;
max-width: 100%;
padding: 4px 0;
}
/* Allow formulas to wrap correctly inside multi-line environments */
.scrollable-math math,
.scrollable-math .mwe-math-element {
display: block; /* Block so multi-line formulas are clean */
white-space: normal; /* Allow line breaks inside cases/align */
}
/* Optional: prevent extremely wide formulas from breaking layout */
.scrollable-math math > .mwe-math-element {
min-width: max-content;
}