UNPKG

mathpix-markdown-it

Version:

Mathpix-markdown-it is an open source implementation of the mathpix-markdown spec written in Typescript. It relies on the following open source libraries: MathJax v3 (to render math with SVGs), markdown-it (for standard Markdown parsing)

10 lines 2.54 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ContainerStyle = void 0; var colors_1 = require("./colors"); var ContainerStyle = function (useColors) { if (useColors === void 0) { useColors = true; } return "\nhtml,body {\n width: 100%;\n height: 100%;\n}\n*, *::before,*::after {\n box-sizing: border-box;\n}\nbody {\n margin: 0;\n ".concat(useColors ? "color: ".concat(colors_1.COLOR_BODY_TEXT, ";") : '', "\n font-size: 14px;\n line-height: normal;\n}\nhr {\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n}\nh1, h2, h3, h4, h5, h6 {\n margin-top: 0;\n margin-bottom: 0.5em;\n ").concat(useColors ? "color: ".concat(colors_1.COLOR_HEADING_TEXT, ";") : '', "\n font-weight: 500;\n}\np {\n margin-top: 0;\n margin-bottom: 1em;\n}\nol, ul, dl {\n margin-top: 0;\n margin-bottom: 1em;\n}\nol ol, ul ul, ol ul, ul ol {\n margin-bottom: 0;\n}\ndt {\n font-weight: 500;\n}\ndd {\n margin-bottom: 0.5em;\n margin-left: 0;\n}\nblockquote {\n margin: 0 0 1em;\n}\ndfn {\n font-style: italic;\n}\nb, strong {\n font-weight: bolder;\n}\nsmall {\n font-size: 80%;\n}\nsub, sup {\n position: relative;\n font-size: 75%;\n line-height: 0;\n vertical-align: baseline;\n}\nsub {\n bottom: -0.25em;\n}\nsup {\n top: -0.5em;\n}\na {\n ").concat(useColors ? "color: ".concat(colors_1.COLOR_LINK, ";") : '', "\n text-decoration: none;\n background-color: transparent;\n outline: none;\n cursor: pointer;\n transition: color 0.3s;\n}\na:hover {\n ").concat(useColors ? "color: ".concat(colors_1.COLOR_LINK_HOVER, ";") : '', "\n}\na:active {\n ").concat(useColors ? "color: ".concat(colors_1.COLOR_LINK_ACTIVE, ";") : '', "\n}\na:active, a:hover {\n text-decoration: none;\n outline: 0;\n}\na[disabled] {\n ").concat(useColors ? "color: ".concat(colors_1.COLOR_LINK_DISABLED, ";") : '', "\n cursor: not-allowed;\n pointer-events: none;\n}\npre, code, kbd, samp {\n font-size: 1em;\n}\npre {\n margin-top: 0;\n margin-bottom: 1em;\n overflow: auto;\n}\nfigure {\n margin: 0 0 1em;\n}\nimg {\n vertical-align: middle;\n border-style: none;\n}\nsvg:not(:root) {\n overflow: hidden;\n}\ntable {\n border-collapse: collapse;\n}\ncaption {\n padding-top: 0.75em;\n padding-bottom: 0.3em;\n ").concat(useColors ? "color: ".concat(colors_1.COLOR_CAPTION_TEXT, ";") : '', "\n text-align: left;\n caption-side: bottom;\n}\nth {\n text-align: inherit;\n}\n"); }; exports.ContainerStyle = ContainerStyle; //# sourceMappingURL=styles-container.js.map