mirror of https://github.com/zulip/zulip.git
markdown: Clarify and reorder margin and padding on KaTeX.
This commit is contained in:
parent
282d900bea
commit
6e32ce9084
|
@ -219,10 +219,11 @@
|
||||||
/* LaTeX styling */
|
/* LaTeX styling */
|
||||||
.katex-display {
|
.katex-display {
|
||||||
/* KaTeX sometimes overdraws its bounding box by a little, so we
|
/* KaTeX sometimes overdraws its bounding box by a little, so we
|
||||||
enlarge its scrolling area by stealing 3px from the margin
|
enlarge its scrolling area by adding 3px of padding to its top
|
||||||
of the enclosing <p>. */
|
and bottom. To prevent what will appear as extra whitespace,
|
||||||
margin: -3px 0;
|
we reduce surrounding margins by the same 3px. */
|
||||||
padding: 3px 0;
|
padding: 3px 0;
|
||||||
|
margin: -3px 0;
|
||||||
overflow: auto hidden;
|
overflow: auto hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue