It was inline, which caused weird padding on the bottom.
div.m-math {
overflow-x: auto;
overflow-y: hidden; /* Chrome 62 displays a vertical scrollbar otherwise */
- text-align: center;
+}
+div.m-math svg {
+ margin-left: auto;
+ margin-right: auto;
+ display: block;
}
div.m-button a svg.m-math { fill: var(--button-background-color); }
div.m-button.m-flat a svg.m-math { fill: var(--color); }
}
/* Plots, graphs */
-div.m-plot, div.m-graph { text-align: center; }
div.m-graph { font-size: var(--font-size); }
-div.m-plot svg, div.m-graph svg { max-width: 100%; }
+div.m-plot svg, div.m-graph svg {
+ max-width: 100%;
+ margin-left: auto;
+ margin-right: auto;
+ display: block;
+}
div.m-plot .m-background { fill: var(--plot-background-color); }
/* Font sizes are hardcoded in m.plots, change there first! */
div.m-plot svg .m-label { font-size: 11px; }
div.m-math {
overflow-x: auto;
overflow-y: hidden;
- text-align: center;
+}
+div.m-math svg {
+ margin-left: auto;
+ margin-right: auto;
+ display: block;
}
div.m-button a svg.m-math { fill: #22272e; }
div.m-button.m-flat a svg.m-math { fill: #dcdcdc; }
div.m-button.m-default a:active svg.m-math {
fill: #a5c9ea;
}
-div.m-plot, div.m-graph { text-align: center; }
div.m-graph { font-size: 16px; }
-div.m-plot svg, div.m-graph svg { max-width: 100%; }
+div.m-plot svg, div.m-graph svg {
+ max-width: 100%;
+ margin-left: auto;
+ margin-right: auto;
+ display: block;
+}
div.m-plot .m-background { fill: #34424d; }
div.m-plot svg .m-label { font-size: 11px; }
div.m-plot svg .m-title { font-size: 13px; }
div.m-math {
overflow-x: auto;
overflow-y: hidden;
- text-align: center;
+}
+div.m-math svg {
+ margin-left: auto;
+ margin-right: auto;
+ display: block;
}
div.m-button a svg.m-math { fill: #22272e; }
div.m-button.m-flat a svg.m-math { fill: #dcdcdc; }
div.m-button.m-default a:active svg.m-math {
fill: #a5c9ea;
}
-div.m-plot, div.m-graph { text-align: center; }
div.m-graph { font-size: 16px; }
-div.m-plot svg, div.m-graph svg { max-width: 100%; }
+div.m-plot svg, div.m-graph svg {
+ max-width: 100%;
+ margin-left: auto;
+ margin-right: auto;
+ display: block;
+}
div.m-plot .m-background { fill: #34424d; }
div.m-plot svg .m-label { font-size: 11px; }
div.m-plot svg .m-title { font-size: 13px; }
div.m-math {
overflow-x: auto;
overflow-y: hidden;
- text-align: center;
+}
+div.m-math svg {
+ margin-left: auto;
+ margin-right: auto;
+ display: block;
}
div.m-button a svg.m-math { fill: #ffffff; }
div.m-button.m-flat a svg.m-math { fill: #000000; }
div.m-button.m-default a:active svg.m-math {
fill: #cb4b16;
}
-div.m-plot, div.m-graph { text-align: center; }
div.m-graph { font-size: 14px; }
-div.m-plot svg, div.m-graph svg { max-width: 100%; }
+div.m-plot svg, div.m-graph svg {
+ max-width: 100%;
+ margin-left: auto;
+ margin-right: auto;
+ display: block;
+}
div.m-plot .m-background { fill: #fbf0ec; }
div.m-plot svg .m-label { font-size: 11px; }
div.m-plot svg .m-title { font-size: 13px; }
div.m-math {
overflow-x: auto;
overflow-y: hidden;
- text-align: center;
+}
+div.m-math svg {
+ margin-left: auto;
+ margin-right: auto;
+ display: block;
}
div.m-button a svg.m-math { fill: #ffffff; }
div.m-button.m-flat a svg.m-math { fill: #000000; }
div.m-button.m-default a:active svg.m-math {
fill: #cb4b16;
}
-div.m-plot, div.m-graph { text-align: center; }
div.m-graph { font-size: 14px; }
-div.m-plot svg, div.m-graph svg { max-width: 100%; }
+div.m-plot svg, div.m-graph svg {
+ max-width: 100%;
+ margin-left: auto;
+ margin-right: auto;
+ display: block;
+}
div.m-plot .m-background { fill: #fbf0ec; }
div.m-plot svg .m-label { font-size: 11px; }
div.m-plot svg .m-title { font-size: 13px; }