1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
|
/* Responsives: make equations scrollable on small screens.
* See: https://github.com/Khan/KaTeX/issues/327 */
.katex-display > .katex {
max-width: 100%;
}
.katex-display > .katex > .katex-html {
max-width: 100%;
overflow-x: auto;
overflow-y: hidden;
padding-left: 2px;
padding-right: 2px;
padding-bottom: 1px;
padding-top: 3px;
}
/* Increase margin around equations */
.katex-display {
margin: 1.2em 0;
}
/* Equation number floats to the right and shows permalink for mouse hover
on the right side of equation number. */
div.math {
position: relative;
padding-right: 2.5em;
}
.eqno {
height: 100%;
position: absolute;
right: 0;
padding-left: 5px;
padding-bottom: 5px;
padding-right: 1px;
}
.eqno:before {
/* Force vertical alignment of number */
display: inline-block;
height: 100%;
vertical-align: middle;
content: "";
}
.eqno .headerlink {
display: none;
visibility: hidden;
font-size: 14px;
padding-left: .3em;
}
.eqno:hover .headerlink {
display: inline-block;
visibility: visible;
margin-right: -1.05em;
}
|