From ebac47e0d75946dc4c016ad65fb437338cdb8245 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E6=A1=93=E6=A1=93?= Date: Wed, 1 Mar 2023 20:03:44 +0800 Subject: [PATCH] refactor(prose): use `_partial/all` to replace a lot of components --- dist/bundle.css | 440 ++++++++++++++++++++++++++++++++++++ dist/bundle.css.map | 1 + dist/bundle.min.css | 2 + dist/bundle.min.css.map | 1 + src/scss/_partial/_all.scss | 1 + src/scss/prose.scss | 10 +- 6 files changed, 446 insertions(+), 9 deletions(-) create mode 100644 dist/bundle.css create mode 100644 dist/bundle.css.map create mode 100644 dist/bundle.min.css create mode 100644 dist/bundle.min.css.map create mode 100644 src/scss/_partial/_all.scss diff --git a/dist/bundle.css b/dist/bundle.css new file mode 100644 index 0000000..06310fc --- /dev/null +++ b/dist/bundle.css @@ -0,0 +1,440 @@ +@charset "UTF-8"; +:root { + --xm-font-sans: Open Sans, Inter, Roboto, Helvetica, Arial, Sarasa Gothic TC, Sarasa Gothic SC, Noto Sans TC, Noto Sans SC, Microsoft JhengHei, Microsoft YaHei, -apple-system, sans-serif; + --xm-font-mono: DM Mono, Fira Code, Jetbrains Mono, Input Mono, Menlo, MesloLGS NF, Ubuntu, monospace; + --xm-c-shiki-light: #f8f8f8; + --xm-c-shiki-dark: #0e0e0e; + --xm-c-link-border: hsla(0, 0%, 50%, 0.3); + --xm-c-code: #111827; + --xm-c-ol-counter: #6b7280; + --xm-c-ul-counter: #d1d5db; + --xm-c-hr-border: hsla(0, 0%, 50%, 0.3); + --xm-c-blockquote-border: hsla(0, 0%, 50%, 0.3); + --xm-c-figcaption: #6b7280; + --xm-c-pre: #e5e7eb; + --xm-c-thead: #111827; + --xm-c-thead-border: #d1d5db; + --xm-c-tr-border: #e5e7eb; +} + +.markdown-body { + --xm-c-general: #555; + --xm-c-dark: #222; + --xm-c-darker: #000; +} + +.dark .markdown-body { + --xm-c-general: #bbb; + --xm-c-dark: #ddd; + --xm-c-darker: #fff; +} + +.markdown-body { + font-family: Open Sans, Inter, Roboto, Helvetica, Arial, Sarasa Gothic TC, Sarasa Gothic SC, Noto Sans TC, Noto Sans SC, Microsoft JhengHei, Microsoft YaHei, -apple-system, sans-serif !important; + font-family: var(--xm-font-sans) !important; +} + +.markdown-body { + color: var(--xm-c-general); +} +.markdown-body pre:not(.shiki):not(.highlight) { + margin: 0; + padding: 0; + background: transparent; +} +.markdown-body .shiki, +.markdown-body .highlight { + font-family: DM Mono, Fira Code, Jetbrains Mono, Input Mono, Menlo, MesloLGS NF, Ubuntu, monospace !important; + font-family: var(--xm-font-mono) !important; +} +.markdown-body .shiki, +.markdown-body .highlight { + margin: 0.5rem 0; + font-size: 1.05rem; + line-height: 1.4; +} +.markdown-body .shiki.shiki-light, +.markdown-body .highlight.shiki-light { + background: #f8f8f8 !important; + background: var(--xm-c-shiki-light) !important; +} +.markdown-body .shiki.shiki-dark, +.markdown-body .highlight.shiki-dark { + background: #0e0e0e !important; + background: var(--xm-c-shiki-dark) !important; +} +.markdown-body img { + width: 100%; +} +.markdown-body a { + font-weight: inherit; + -webkit-text-decoration: none; + text-decoration: none; + border-bottom: 1px solid hsla(0, 0%, 50%, 0.3); + border-bottom: 1px solid var(--xm-c-link-border); + -webkit-transition: border 0.3s ease-in-out; + -o-transition: border 0.3s ease-in-out; + -moz-transition: border 0.3s ease-in-out; + transition: border 0.3s ease-in-out; +} +.markdown-body a:hover { + border-bottom: 1px solid var(--xm-c-general); +} +.markdown-body a code { + color: inherit; +} +.markdown-body hr { + margin: 2rem auto; + width: 50px; +} +.markdown-body blockquote { + padding: 0.6rem 1.2rem; + font-weight: normal; + font-style: normal; + line-height: 1.5rem; + opacity: 0.8; +} +.markdown-body blockquote > *:first-child { + margin-top: 0; +} +.markdown-body blockquote > *:last-child { + margin-bottom: 0; +} +.markdown-body blockquote p:first-of-type::before { + content: none; +} +.markdown-body blockquote p:first-of-type::after { + content: none; +} +.markdown-body:first-child { + margin-top: 1rem; +} + +.dark .shiki-light { + display: none; +} + +html:not(.dark) .shiki-dark { + display: none; +} + +.item { + -webkit-text-decoration: none; + text-decoration: none; + opacity: 0.6; + -webkit-transition: 0.2s all ease-out; + -o-transition: 0.2s all ease-out; + -moz-transition: 0.2s all ease-out; + transition: 0.2s all ease-out; +} +.item:hover { + opacity: 1; +} + +.header-anchor { + border: 0 !important; +} + +.header-anchor { + float: left; + margin-top: 0.125rem; + margin-left: -1.2rem; + padding-right: 0.5rem; + font-size: 0.85rem; + -webkit-text-decoration: none; + text-decoration: none; + opacity: 0; +} +.header-anchor:hover { + -webkit-text-decoration: none; + text-decoration: none; +} +.header-anchor:focus { + -webkit-text-decoration: none; + text-decoration: none; +} + +h1:hover .header-anchor, h1:focus .header-anchor, +h2:hover .header-anchor, +h2:focus .header-anchor, +h3:hover .header-anchor, +h3:focus .header-anchor, +h4:hover .header-anchor, +h4:focus .header-anchor, +h5:hover .header-anchor, +h5:focus .header-anchor, +h6:hover .header-anchor, +h6:focus .header-anchor { + opacity: 0.5; +} + +.prose { + max-width: -webkit-fit-content; + max-width: -moz-fit-content; + max-width: fit-content; + font-size: 1rem; + color: var(--xm-c-general); + line-height: 1.75; +} +.prose h1 { + margin-top: 0; + margin-bottom: 0.8889rem; + font-size: 2.25rem; + font-weight: 800; + color: var(--xm-c-darker); + line-height: 1.1111; +} +.prose h2 { + margin-top: 2rem; + font-size: 1.5rem; + font-weight: 700; + color: var(--xm-c-dark); + margin-bottom: 1rem; + line-height: 1.3334; +} +.prose h2 code { + font-size: 0.875rem; +} +.prose h2 + * { + margin-top: 0; +} +.prose h3 { + margin-top: 1.6rem; + font-size: 1.25rem; + font-weight: 600; + color: inherit; + margin-bottom: 0.6rem; + line-height: 1.6; + opacity: 0.7; +} +.prose h3 code { + font-size: 0.9rem; +} +.prose h3 + * { + margin-top: 0; +} +.prose h4 { + margin-top: 1.5rem; + font-weight: 600; + color: inherit; + margin-bottom: 0.5rem; + line-height: 1.5; +} +.prose h4 + * { + margin-top: 0; +} +.prose h5, +.prose h6 { + text-transform: uppercase; + margin-top: 20px; + margin-bottom: 10px; + font-weight: 500; + opacity: 0.5; + letter-spacing: 2px; +} +.prose hr { + margin-top: 3rem; + border-color: hsla(0, 0%, 50%, 0.3); + border-color: var(--xm-c-hr-border); + margin-bottom: 3rem; +} +.prose hr + * { + margin-top: 0; +} +.prose p { + margin-top: 1.25rem; + margin-bottom: 1.25rem; +} +.prose strong { + font-weight: 600; + color: var(--xm-c-dark); +} +.prose b { + color: var(--xm-c-dark); +} +.prose em { + color: inherit; +} +.prose a { + font-weight: 500; + -webkit-text-decoration: none; + text-decoration: none; + color: var(--xm-c-darker); +} +.prose a code { + color: #111827; + color: var(--xm-c-code); +} +.prose code { + font-size: 0.875rem; + font-weight: 600; + color: var(--xm-c-dark); +} +.prose code::before, .prose code::after { + content: "`"; +} +.prose pre { + overflow-x: auto; + margin-top: 1.7143rem; + padding-top: 0.8571rem, 1.1429rem; + font-size: 0.875rem; + color: #e5e7eb; + color: var(--xm-c-pre); + line-height: 1.7143; + margin-bottom: 1.7143rem; + border-radius: 0.375rem; +} +.prose pre code { + padding: 0; + font-size: inherit; + font-family: inherit; + font-weight: 400; + color: inherit; + background: transparent; + border-width: 0; + border-radius: 0; + line-height: inherit; +} +.prose pre code::before { + content: none; +} +.prose pre code::after { + content: none; +} +.prose blockquote, +.prose q { + margin-top: 1.6rem; + padding-left: 1rem; + font-weight: 500; + font-style: italic; + color: inherit; + border-color: hsla(0, 0%, 50%, 0.3); + border-color: var(--xm-c-blockquote-border); + border-left-width: 0.25rem; + quotes: "“" "”" "‘" "’"; + margin-bottom: 1.6rem; +} +.prose blockquote p:first-of-type::before, +.prose q p:first-of-type::before { + content: open-quote; +} +.prose blockquote p:last-of-type::after, +.prose q p:last-of-type::after { + content: close-quote; +} +.prose figure { + margin-top: 2rem; + margin-bottom: 2rem; +} +.prose figure figcaption { + margin-top: 0.8571rem; + font-size: 0.875rem; + color: #6b7280; + color: var(--xm-c-figcaption); + line-height: 1.4286; +} +.prose figure > * { + margin-top: 0; + margin-bottom: 0; +} +.prose li { + margin-top: 0.5rem; + margin-bottom: 0.5rem; +} +.prose ol { + margin-top: 1.25rem; + margin-bottom: 1.25rem; + list-style-type: none; +} +.prose ol > li { + position: relative; + padding-left: 1.75rem; +} +.prose ol > li::before { + content: counter(list-item, decimal) "."; + position: absolute; + left: 0; + font-weight: 400; + color: #6b7280; + color: var(--xm-c-ol-counter); +} +.prose ul { + margin-top: 1.25rem; + margin-bottom: 1.25rem; + list-style-type: none; +} +.prose ul > li { + position: relative; + padding-left: 1.75rem; +} +.prose ul > li::before { + content: ""; + position: absolute; + top: 0.6875rem; + left: 0.25rem; + width: 0.375rem; + height: 0.375rem; + background-color: #d1d5db; + background-color: var(--xm-c-ul-counter); + border-radius: 50%; +} +.prose ul ul, +.prose ul ol, +.prose ol ul, +.prose ol ol { + margin-top: 0.75rem; + margin-bottom: 0.75rem; +} +.prose table { + margin-top: 2rem; + margin-bottom: 2rem; + width: 100%; + table-layout: auto; + font-size: 0.875rem; + text-align: left; + line-height: 1.7143; +} +.prose thead { + font-weight: 600; + color: #111827; + color: var(--xm-c-thead); + border-bottom-width: 1px; + border-bottom-color: #d1d5db; + border-bottom-color: var(--xm-c-thead-border); +} +.prose thead th { + vertical-align: bottom; + padding-right: 0.5714rem; + padding-bottom: 0.5714rem; + padding-left: 0.5714rem; +} +.prose thead th:first-child { + padding-left: 0; +} +.prose thead th:last-child { + padding-right: 0; +} +.prose tbody tr { + border-bottom-width: 1px; + border-bottom-color: #e5e7eb; + border-bottom-color: var(--xm-c-tr-border); +} +.prose tbody tr:last-child { + border-bottom-width: 0; +} +.prose tbody td { + vertical-align: top; + padding: 0.5714rem; +} +.prose tbody td:first-child { + padding-left: 0; +} +.prose tbody td:last-child { + padding-right: 0; +} +.prose img, +.prose video { + margin-top: 2rem; + margin-bottom: 2rem; +} +/*# sourceMappingURL=bundle.css.map */ \ No newline at end of file diff --git a/dist/bundle.css.map b/dist/bundle.css.map new file mode 100644 index 0000000..95665ce --- /dev/null +++ b/dist/bundle.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["bundle.css"],"names":[],"mappings":"AAAA,gBAAgB;AAChB;EACE,0LAA0L;EAC1L,qGAAqG;EACrG,2BAA2B;EAC3B,0BAA0B;EAC1B,yCAAyC;EACzC,oBAAoB;EACpB,0BAA0B;EAC1B,0BAA0B;EAC1B,uCAAuC;EACvC,+CAA+C;EAC/C,0BAA0B;EAC1B,mBAAmB;EACnB,qBAAqB;EACrB,4BAA4B;EAC5B,yBAAyB;AAC3B;;AAEA;EACE,oBAAoB;EACpB,iBAAiB;EACjB,mBAAmB;AACrB;;AAEA;EACE,oBAAoB;EACpB,iBAAiB;EACjB,mBAAmB;AACrB;;AAEA;EACE,kMAA2C;EAA3C,2CAA2C;AAE7C;;AAHA;EAEE,0BAA0B;AAC5B;AACA;EACE,SAAS;EACT,UAAU;EACV,uBAAuB;AACzB;AACA;;EAIE,6GAA2C;EAA3C,2CAA2C;AAE7C;AANA;;EAEE,gBAAgB;EAChB,kBAAkB;EAElB,gBAAgB;AAClB;AACA;;EAEE,8BAA8C;EAA9C,8CAA8C;AAChD;AACA;;EAEE,8BAA6C;EAA7C,6CAA6C;AAC/C;AACA;EACE,WAAW;AACb;AACA;EACE,oBAAoB;EACpB,6BAAqB;EAArB,qBAAqB;EACrB,8CAAgD;EAAhD,gDAAgD;EAChD,2CAAmC;EAAnC,sCAAmC;EAAnC,wCAAmC;EAAnC,mCAAmC;AACrC;AACA;EACE,4CAA4C;AAC9C;AACA;EACE,cAAc;AAChB;AACA;EACE,iBAAiB;EACjB,WAAW;AACb;AACA;EACE,sBAAsB;EACtB,mBAAmB;EACnB,kBAAkB;EAClB,mBAAmB;EACnB,YAAY;AACd;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;AAClB;AACA;EACE,aAAa;AACf;AACA;EACE,aAAa;AACf;AACA;EACE,gBAAgB;AAClB;;AAEA;EACE,aAAa;AACf;;AAE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AAgB;EAChB,uBAAuB;AACzB;AACA;EACE,uBAAuB;AACzB;AACA;EACE,cAAc;AAChB;AACA;EACE,gBAAgB;EAChB,6BAAqB;EAArB,qBAAqB;EACrB,yBAAyB;AAC3B;AACA;EACE,cAAuB;EAAvB,uBAAuB;AACzB;AACA;EACE,mBAAmB;EACnB,gBAAgB;EAChB,uBAAuB;AACzB;AACA;EACE,YAAY;AACd;AACA;EACE,gBAAgB;EAChB,qBAAqB;EACrB,iCAAiC;EACjC,mBAAmB;EACnB,cAAsB;EAAtB,sBAAsB;EACtB,mBAAmB;EACnB,wBAAwB;EACxB,uBAAuB;AACzB;AACA;EACE,UAAU;EACV,kBAAkB;EAClB,oBAAoB;EACpB,gBAAgB;EAChB,cAAc;EACd,uBAAuB;EACvB,eAAe;EACf,gBAAgB;EAChB,oBAAoB;AACtB;AACA;EACE,aAAa;AACf;AACA;EACE,aAAa;AACf;AACA;;EAEE,kBAAkB;EAClB,kBAAkB;EAClB,gBAAgB;EAChB,kBAAkB;EAClB,cAAc;EACd,mCAA2C;EAA3C,2CAA2C;EAC3C,0BAA0B;EAC1B,uBAAuB;EACvB,qBAAqB;AACvB;AACA;;EAEE,mBAAmB;AACrB;AACA;;EAEE,oBAAoB;AACtB;AACA;EACE,gBAAgB;EAChB,mBAAmB;AACrB;AACA;EACE,qBAAqB;EACrB,mBAAmB;EACnB,cAA6B;EAA7B,6BAA6B;EAC7B,mBAAmB;AACrB;AACA;EACE,aAAa;EACb,gBAAgB;AAClB;AACA;EACE,kBAAkB;EAClB,qBAAqB;AACvB;AACA;EACE,mBAAmB;EACnB,sBAAsB;EACtB,qBAAqB;AACvB;AACA;EACE,kBAAkB;EAClB,qBAAqB;AACvB;AACA;EACE,wCAAwC;EACxC,kBAAkB;EAClB,OAAO;EACP,gBAAgB;EAChB,cAA6B;EAA7B,6BAA6B;AAC/B;AACA;EACE,mBAAmB;EACnB,sBAAsB;EACtB,qBAAqB;AACvB;AACA;EACE,kBAAkB;EAClB,qBAAqB;AACvB;AACA;EACE,WAAW;EACX,kBAAkB;EAClB,cAAc;EACd,aAAa;EACb,eAAe;EACf,gBAAgB;EAChB,yBAAwC;EAAxC,wCAAwC;EACxC,kBAAkB;AACpB;AACA;;;;EAIE,mBAAmB;EACnB,sBAAsB;AACxB;AACA;EACE,gBAAgB;EAChB,mBAAmB;EACnB,WAAW;EACX,kBAAkB;EAClB,mBAAmB;EACnB,gBAAgB;EAChB,mBAAmB;AACrB;AACA;EACE,gBAAgB;EAChB,cAAwB;EAAxB,wBAAwB;EACxB,wBAAwB;EACxB,4BAA6C;EAA7C,6CAA6C;AAC/C;AACA;EACE,sBAAsB;EACtB,wBAAwB;EACxB,yBAAyB;EACzB,uBAAuB;AACzB;AACA;EACE,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;AACA;EACE,wBAAwB;EACxB,4BAA0C;EAA1C,0CAA0C;AAC5C;AACA;EACE,sBAAsB;AACxB;AACA;EACE,mBAAmB;EACnB,kBAAkB;AACpB;AACA;EACE,eAAe;AACjB;AACA;EACE,gBAAgB;AAClB;AACA;;EAEE,gBAAgB;EAChB,mBAAmB;AACrB","file":"bundle.css","sourcesContent":["@charset \"UTF-8\";\n:root {\n --xm-font-sans: Open Sans, Inter, Roboto, Helvetica, Arial, Sarasa Gothic TC, Sarasa Gothic SC, Noto Sans TC, Noto Sans SC, Microsoft JhengHei, Microsoft YaHei, -apple-system, sans-serif;\n --xm-font-mono: DM Mono, Fira Code, Jetbrains Mono, Input Mono, Menlo, MesloLGS NF, Ubuntu, monospace;\n --xm-c-shiki-light: #f8f8f8;\n --xm-c-shiki-dark: #0e0e0e;\n --xm-c-link-border: hsla(0, 0%, 50%, 0.3);\n --xm-c-code: #111827;\n --xm-c-ol-counter: #6b7280;\n --xm-c-ul-counter: #d1d5db;\n --xm-c-hr-border: hsla(0, 0%, 50%, 0.3);\n --xm-c-blockquote-border: hsla(0, 0%, 50%, 0.3);\n --xm-c-figcaption: #6b7280;\n --xm-c-pre: #e5e7eb;\n --xm-c-thead: #111827;\n --xm-c-thead-border: #d1d5db;\n --xm-c-tr-border: #e5e7eb;\n}\n\n.markdown-body {\n --xm-c-general: #555;\n --xm-c-dark: #222;\n --xm-c-darker: #000;\n}\n\n.dark .markdown-body {\n --xm-c-general: #bbb;\n --xm-c-dark: #ddd;\n --xm-c-darker: #fff;\n}\n\n.markdown-body {\n font-family: var(--xm-font-sans) !important;\n color: var(--xm-c-general);\n}\n.markdown-body pre:not(.shiki, .highlight) {\n margin: 0;\n padding: 0;\n background: transparent;\n}\n.markdown-body .shiki,\n.markdown-body .highlight {\n margin: 0.5rem 0;\n font-size: 1.05rem;\n font-family: var(--xm-font-mono) !important;\n line-height: 1.4;\n}\n.markdown-body .shiki.shiki-light,\n.markdown-body .highlight.shiki-light {\n background: var(--xm-c-shiki-light) !important;\n}\n.markdown-body .shiki.shiki-dark,\n.markdown-body .highlight.shiki-dark {\n background: var(--xm-c-shiki-dark) !important;\n}\n.markdown-body img {\n width: 100%;\n}\n.markdown-body a {\n font-weight: inherit;\n text-decoration: none;\n border-bottom: 1px solid var(--xm-c-link-border);\n transition: border 0.3s ease-in-out;\n}\n.markdown-body a:hover {\n border-bottom: 1px solid var(--xm-c-general);\n}\n.markdown-body a code {\n color: inherit;\n}\n.markdown-body hr {\n margin: 2rem auto;\n width: 50px;\n}\n.markdown-body blockquote {\n padding: 0.6rem 1.2rem;\n font-weight: normal;\n font-style: normal;\n line-height: 1.5rem;\n opacity: 0.8;\n}\n.markdown-body blockquote > *:first-child {\n margin-top: 0;\n}\n.markdown-body blockquote > *:last-child {\n margin-bottom: 0;\n}\n.markdown-body blockquote p:first-of-type::before {\n content: none;\n}\n.markdown-body blockquote p:first-of-type::after {\n content: none;\n}\n.markdown-body:first-child {\n margin-top: 1rem;\n}\n\n.dark .shiki-light {\n display: none;\n}\n\nhtml:not(.dark) .shiki-dark {\n display: none;\n}\n\n.item {\n text-decoration: none;\n opacity: 0.6;\n transition: 0.2s all ease-out;\n}\n.item:hover {\n opacity: 1;\n}\n\n.header-anchor {\n float: left;\n margin-top: 0.125rem;\n margin-left: -1.2rem;\n padding-right: 0.5rem;\n font-size: 0.85rem;\n text-decoration: none;\n border: 0 !important;\n opacity: 0;\n}\n.header-anchor:hover {\n text-decoration: none;\n}\n.header-anchor:focus {\n text-decoration: none;\n}\n\nh1:hover .header-anchor, h1:focus .header-anchor,\nh2:hover .header-anchor,\nh2:focus .header-anchor,\nh3:hover .header-anchor,\nh3:focus .header-anchor,\nh4:hover .header-anchor,\nh4:focus .header-anchor,\nh5:hover .header-anchor,\nh5:focus .header-anchor,\nh6:hover .header-anchor,\nh6:focus .header-anchor {\n opacity: 0.5;\n}\n\n.prose {\n max-width: fit-content;\n font-size: 1rem;\n color: var(--xm-c-general);\n line-height: 1.75;\n}\n.prose h1 {\n margin-top: 0;\n margin-bottom: 0.8889rem;\n font-size: 2.25rem;\n font-weight: 800;\n color: var(--xm-c-darker);\n line-height: 1.1111;\n}\n.prose h2 {\n margin-top: 2rem;\n font-size: 1.5rem;\n font-weight: 700;\n color: var(--xm-c-dark);\n margin-bottom: 1rem;\n line-height: 1.3334;\n}\n.prose h2 code {\n font-size: 0.875rem;\n}\n.prose h2 + * {\n margin-top: 0;\n}\n.prose h3 {\n margin-top: 1.6rem;\n font-size: 1.25rem;\n font-weight: 600;\n color: inherit;\n margin-bottom: 0.6rem;\n line-height: 1.6;\n opacity: 0.7;\n}\n.prose h3 code {\n font-size: 0.9rem;\n}\n.prose h3 + * {\n margin-top: 0;\n}\n.prose h4 {\n margin-top: 1.5rem;\n font-weight: 600;\n color: inherit;\n margin-bottom: 0.5rem;\n line-height: 1.5;\n}\n.prose h4 + * {\n margin-top: 0;\n}\n.prose h5,\n.prose h6 {\n text-transform: uppercase;\n margin-top: 20px;\n margin-bottom: 10px;\n font-weight: 500;\n opacity: 0.5;\n letter-spacing: 2px;\n}\n.prose hr {\n margin-top: 3rem;\n border-color: var(--xm-c-hr-border);\n margin-bottom: 3rem;\n}\n.prose hr + * {\n margin-top: 0;\n}\n.prose p {\n margin-top: 1.25rem;\n margin-bottom: 1.25rem;\n}\n.prose strong {\n font-weight: 600;\n color: var(--xm-c-dark);\n}\n.prose b {\n color: var(--xm-c-dark);\n}\n.prose em {\n color: inherit;\n}\n.prose a {\n font-weight: 500;\n text-decoration: none;\n color: var(--xm-c-darker);\n}\n.prose a code {\n color: var(--xm-c-code);\n}\n.prose code {\n font-size: 0.875rem;\n font-weight: 600;\n color: var(--xm-c-dark);\n}\n.prose code::before, .prose code::after {\n content: \"`\";\n}\n.prose pre {\n overflow-x: auto;\n margin-top: 1.7143rem;\n padding-top: 0.8571rem, 1.1429rem;\n font-size: 0.875rem;\n color: var(--xm-c-pre);\n line-height: 1.7143;\n margin-bottom: 1.7143rem;\n border-radius: 0.375rem;\n}\n.prose pre code {\n padding: 0;\n font-size: inherit;\n font-family: inherit;\n font-weight: 400;\n color: inherit;\n background: transparent;\n border-width: 0;\n border-radius: 0;\n line-height: inherit;\n}\n.prose pre code::before {\n content: none;\n}\n.prose pre code::after {\n content: none;\n}\n.prose blockquote,\n.prose q {\n margin-top: 1.6rem;\n padding-left: 1rem;\n font-weight: 500;\n font-style: italic;\n color: inherit;\n border-color: var(--xm-c-blockquote-border);\n border-left-width: 0.25rem;\n quotes: \"“\" \"”\" \"‘\" \"’\";\n margin-bottom: 1.6rem;\n}\n.prose blockquote p:first-of-type::before,\n.prose q p:first-of-type::before {\n content: open-quote;\n}\n.prose blockquote p:last-of-type::after,\n.prose q p:last-of-type::after {\n content: close-quote;\n}\n.prose figure {\n margin-top: 2rem;\n margin-bottom: 2rem;\n}\n.prose figure figcaption {\n margin-top: 0.8571rem;\n font-size: 0.875rem;\n color: var(--xm-c-figcaption);\n line-height: 1.4286;\n}\n.prose figure > * {\n margin-top: 0;\n margin-bottom: 0;\n}\n.prose li {\n margin-top: 0.5rem;\n margin-bottom: 0.5rem;\n}\n.prose ol {\n margin-top: 1.25rem;\n margin-bottom: 1.25rem;\n list-style-type: none;\n}\n.prose ol > li {\n position: relative;\n padding-left: 1.75rem;\n}\n.prose ol > li::before {\n content: counter(list-item, decimal) \".\";\n position: absolute;\n left: 0;\n font-weight: 400;\n color: var(--xm-c-ol-counter);\n}\n.prose ul {\n margin-top: 1.25rem;\n margin-bottom: 1.25rem;\n list-style-type: none;\n}\n.prose ul > li {\n position: relative;\n padding-left: 1.75rem;\n}\n.prose ul > li::before {\n content: \"\";\n position: absolute;\n top: 0.6875rem;\n left: 0.25rem;\n width: 0.375rem;\n height: 0.375rem;\n background-color: var(--xm-c-ul-counter);\n border-radius: 50%;\n}\n.prose ul ul,\n.prose ul ol,\n.prose ol ul,\n.prose ol ol {\n margin-top: 0.75rem;\n margin-bottom: 0.75rem;\n}\n.prose table {\n margin-top: 2rem;\n margin-bottom: 2rem;\n width: 100%;\n table-layout: auto;\n font-size: 0.875rem;\n text-align: left;\n line-height: 1.7143;\n}\n.prose thead {\n font-weight: 600;\n color: var(--xm-c-thead);\n border-bottom-width: 1px;\n border-bottom-color: var(--xm-c-thead-border);\n}\n.prose thead th {\n vertical-align: bottom;\n padding-right: 0.5714rem;\n padding-bottom: 0.5714rem;\n padding-left: 0.5714rem;\n}\n.prose thead th:first-child {\n padding-left: 0;\n}\n.prose thead th:last-child {\n padding-right: 0;\n}\n.prose tbody tr {\n border-bottom-width: 1px;\n border-bottom-color: var(--xm-c-tr-border);\n}\n.prose tbody tr:last-child {\n border-bottom-width: 0;\n}\n.prose tbody td {\n vertical-align: top;\n padding: 0.5714rem;\n}\n.prose tbody td:first-child {\n padding-left: 0;\n}\n.prose tbody td:last-child {\n padding-right: 0;\n}\n.prose img,\n.prose video {\n margin-top: 2rem;\n margin-bottom: 2rem;\n}"]} \ No newline at end of file diff --git a/dist/bundle.min.css b/dist/bundle.min.css new file mode 100644 index 0000000..a9de824 --- /dev/null +++ b/dist/bundle.min.css @@ -0,0 +1,2 @@ +:root{--xm-font-sans:Open Sans,Inter,Roboto,Helvetica,Arial,Sarasa Gothic TC,Sarasa Gothic SC,Noto Sans TC,Noto Sans SC,Microsoft JhengHei,Microsoft YaHei,-apple-system,sans-serif;--xm-font-mono:DM Mono,Fira Code,Jetbrains Mono,Input Mono,Menlo,MesloLGS NF,Ubuntu,monospace;--xm-c-shiki-light:#f8f8f8;--xm-c-shiki-dark:#0e0e0e;--xm-c-link-border:hsla(0,0%,50%,.3);--xm-c-code:#111827;--xm-c-ol-counter:#6b7280;--xm-c-ul-counter:#d1d5db;--xm-c-hr-border:hsla(0,0%,50%,.3);--xm-c-blockquote-border:hsla(0,0%,50%,.3);--xm-c-figcaption:#6b7280;--xm-c-pre:#e5e7eb;--xm-c-thead:#111827;--xm-c-thead-border:#d1d5db;--xm-c-tr-border:#e5e7eb}.markdown-body{--xm-c-general:#555;--xm-c-dark:#222;--xm-c-darker:#000}.dark .markdown-body{--xm-c-general:#bbb;--xm-c-dark:#ddd;--xm-c-darker:#fff}.markdown-body{color:var(--xm-c-general);font-family:Open Sans,Inter,Roboto,Helvetica,Arial,Sarasa Gothic TC,Sarasa Gothic SC,Noto Sans TC,Noto Sans SC,Microsoft JhengHei,Microsoft YaHei,-apple-system,sans-serif!important;font-family:var(--xm-font-sans)!important}.markdown-body pre:not(.shiki):not(.highlight){background:transparent;margin:0;padding:0}.markdown-body .highlight,.markdown-body .shiki{font-family:DM Mono,Fira Code,Jetbrains Mono,Input Mono,Menlo,MesloLGS NF,Ubuntu,monospace!important;font-family:var(--xm-font-mono)!important;font-size:1.05rem;line-height:1.4;margin:.5rem 0}.markdown-body .highlight.shiki-light,.markdown-body .shiki.shiki-light{background:#f8f8f8!important;background:var(--xm-c-shiki-light)!important}.markdown-body .highlight.shiki-dark,.markdown-body .shiki.shiki-dark{background:#0e0e0e!important;background:var(--xm-c-shiki-dark)!important}.markdown-body img{width:100%}.markdown-body a{border-bottom:1px solid hsla(0,0%,50%,.3);border-bottom:1px solid var(--xm-c-link-border);font-weight:inherit;-webkit-text-decoration:none;text-decoration:none;-webkit-transition:border .3s ease-in-out;-o-transition:border .3s ease-in-out;-moz-transition:border .3s ease-in-out;transition:border .3s ease-in-out}.markdown-body a:hover{border-bottom:1px solid var(--xm-c-general)}.markdown-body a code{color:inherit}.markdown-body hr{margin:2rem auto;width:50px}.markdown-body blockquote{font-style:normal;font-weight:400;line-height:1.5rem;opacity:.8;padding:.6rem 1.2rem}.markdown-body blockquote>:first-child{margin-top:0}.markdown-body blockquote>:last-child{margin-bottom:0}.markdown-body blockquote p:first-of-type:after,.markdown-body blockquote p:first-of-type:before{content:none}.markdown-body:first-child{margin-top:1rem}.dark .shiki-light,html:not(.dark) .shiki-dark{display:none}.item{opacity:.6;-webkit-text-decoration:none;text-decoration:none;-webkit-transition:all .2s ease-out;-o-transition:all .2s ease-out;-moz-transition:all .2s ease-out;transition:all .2s ease-out}.item:hover{opacity:1}.header-anchor{border:0!important;float:left;font-size:.85rem;margin-left:-1.2rem;margin-top:.125rem;opacity:0;padding-right:.5rem}.header-anchor,.header-anchor:focus,.header-anchor:hover{-webkit-text-decoration:none;text-decoration:none}h1:focus .header-anchor,h1:hover .header-anchor,h2:focus .header-anchor,h2:hover .header-anchor,h3:focus .header-anchor,h3:hover .header-anchor,h4:focus .header-anchor,h4:hover .header-anchor,h5:focus .header-anchor,h5:hover .header-anchor,h6:focus .header-anchor,h6:hover .header-anchor{opacity:.5}.prose{color:var(--xm-c-general);font-size:1rem;line-height:1.75;max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content}.prose h1{color:var(--xm-c-darker);font-size:2.25rem;font-weight:800;line-height:1.1111;margin-bottom:.8889rem;margin-top:0}.prose h2{color:var(--xm-c-dark);font-size:1.5rem;font-weight:700;line-height:1.3334;margin-bottom:1rem;margin-top:2rem}.prose h2 code{font-size:.875rem}.prose h2+*{margin-top:0}.prose h3{color:inherit;font-size:1.25rem;font-weight:600;line-height:1.6;margin-bottom:.6rem;margin-top:1.6rem;opacity:.7}.prose h3 code{font-size:.9rem}.prose h3+*{margin-top:0}.prose h4{color:inherit;font-weight:600;line-height:1.5;margin-bottom:.5rem;margin-top:1.5rem}.prose h4+*{margin-top:0}.prose h5,.prose h6{font-weight:500;letter-spacing:2px;margin-bottom:10px;margin-top:20px;opacity:.5;text-transform:uppercase}.prose hr{border-color:hsla(0,0%,50%,.3);border-color:var(--xm-c-hr-border);margin-bottom:3rem;margin-top:3rem}.prose hr+*{margin-top:0}.prose p{margin-bottom:1.25rem;margin-top:1.25rem}.prose strong{font-weight:600}.prose b,.prose strong{color:var(--xm-c-dark)}.prose em{color:inherit}.prose a{color:var(--xm-c-darker);font-weight:500;-webkit-text-decoration:none;text-decoration:none}.prose a code{color:#111827;color:var(--xm-c-code)}.prose code{color:var(--xm-c-dark);font-size:.875rem;font-weight:600}.prose code:after,.prose code:before{content:"`"}.prose pre{border-radius:.375rem;color:#e5e7eb;color:var(--xm-c-pre);font-size:.875rem;line-height:1.7143;margin-bottom:1.7143rem;margin-top:1.7143rem;overflow-x:auto;padding-top:.8571rem,1.1429rem}.prose pre code{background:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:400;line-height:inherit;padding:0}.prose pre code:after,.prose pre code:before{content:none}.prose blockquote,.prose q{border-color:hsla(0,0%,50%,.3);border-color:var(--xm-c-blockquote-border);border-left-width:.25rem;color:inherit;font-style:italic;font-weight:500;margin-bottom:1.6rem;margin-top:1.6rem;padding-left:1rem;quotes:"“" "”" "‘" "’"}.prose blockquote p:first-of-type:before,.prose q p:first-of-type:before{content:open-quote}.prose blockquote p:last-of-type:after,.prose q p:last-of-type:after{content:close-quote}.prose figure{margin-bottom:2rem;margin-top:2rem}.prose figure figcaption{color:#6b7280;color:var(--xm-c-figcaption);font-size:.875rem;line-height:1.4286;margin-top:.8571rem}.prose figure>*{margin-bottom:0;margin-top:0}.prose li{margin-bottom:.5rem;margin-top:.5rem}.prose ol{list-style-type:none;margin-bottom:1.25rem;margin-top:1.25rem}.prose ol>li{padding-left:1.75rem;position:relative}.prose ol>li:before{color:#6b7280;color:var(--xm-c-ol-counter);content:counter(list-item,decimal) ".";font-weight:400;left:0;position:absolute}.prose ul{list-style-type:none;margin-bottom:1.25rem;margin-top:1.25rem}.prose ul>li{padding-left:1.75rem;position:relative}.prose ul>li:before{background-color:#d1d5db;background-color:var(--xm-c-ul-counter);border-radius:50%;content:"";height:.375rem;left:.25rem;position:absolute;top:.6875rem;width:.375rem}.prose ol ol,.prose ol ul,.prose ul ol,.prose ul ul{margin-bottom:.75rem;margin-top:.75rem}.prose table{font-size:.875rem;line-height:1.7143;margin-bottom:2rem;margin-top:2rem;table-layout:auto;text-align:left;width:100%}.prose thead{border-bottom-color:#d1d5db;border-bottom-color:var(--xm-c-thead-border);border-bottom-width:1px;color:#111827;color:var(--xm-c-thead);font-weight:600}.prose thead th{padding-bottom:.5714rem;padding-left:.5714rem;padding-right:.5714rem;vertical-align:bottom}.prose thead th:first-child{padding-left:0}.prose thead th:last-child{padding-right:0}.prose tbody tr{border-bottom-color:#e5e7eb;border-bottom-color:var(--xm-c-tr-border);border-bottom-width:1px}.prose tbody tr:last-child{border-bottom-width:0}.prose tbody td{padding:.5714rem;vertical-align:top}.prose tbody td:first-child{padding-left:0}.prose tbody td:last-child{padding-right:0}.prose img,.prose video{margin-bottom:2rem;margin-top:2rem} +/*# sourceMappingURL=bundle.min.css.map */ \ No newline at end of file diff --git a/dist/bundle.min.css.map b/dist/bundle.min.css.map new file mode 100644 index 0000000..2c75c4a --- /dev/null +++ b/dist/bundle.min.css.map @@ -0,0 +1 @@ +{"version":3,"sources":["bundle.min.css"],"names":[],"mappings":"AAAA,MAAM,6KAA0L,CAAC,6FAAqG,CAAC,0BAA2B,CAAC,yBAA0B,CAAC,oCAAyC,CAAC,mBAAoB,CAAC,yBAA0B,CAAC,yBAA0B,CAAC,kCAAuC,CAAC,0CAA+C,CAAC,yBAA0B,CAAC,kBAAmB,CAAC,oBAAqB,CAAC,2BAA4B,CAAC,wBAAyB,CAAC,eAAe,mBAAoB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iB,CAAjC,eAAkC","file":"bundle.min.css","sourcesContent":[":root{--xm-font-sans: Open Sans, Inter, Roboto, Helvetica, Arial, Sarasa Gothic TC, Sarasa Gothic SC, Noto Sans TC, Noto Sans SC, Microsoft JhengHei, Microsoft YaHei, -apple-system, sans-serif;--xm-font-mono: DM Mono, Fira Code, Jetbrains Mono, Input Mono, Menlo, MesloLGS NF, Ubuntu, monospace;--xm-c-shiki-light: #f8f8f8;--xm-c-shiki-dark: #0e0e0e;--xm-c-link-border: hsla(0, 0%, 50%, 0.3);--xm-c-code: #111827;--xm-c-ol-counter: #6b7280;--xm-c-ul-counter: #d1d5db;--xm-c-hr-border: hsla(0, 0%, 50%, 0.3);--xm-c-blockquote-border: hsla(0, 0%, 50%, 0.3);--xm-c-figcaption: #6b7280;--xm-c-pre: #e5e7eb;--xm-c-thead: #111827;--xm-c-thead-border: #d1d5db;--xm-c-tr-border: #e5e7eb}.markdown-body{--xm-c-general: #555;--xm-c-dark: #222;--xm-c-darker: #000}.dark .markdown-body{--xm-c-general: #bbb;--xm-c-dark: #ddd;--xm-c-darker: #fff}.markdown-body{font-family:var(--xm-font-sans) !important;color:var(--xm-c-general)}.markdown-body pre:not(.shiki,.highlight){margin:0;padding:0;background:rgba(0,0,0,0)}.markdown-body .shiki,.markdown-body .highlight{margin:.5rem 0;font-size:1.05rem;font-family:var(--xm-font-mono) !important;line-height:1.4}.markdown-body .shiki.shiki-light,.markdown-body .highlight.shiki-light{background:var(--xm-c-shiki-light) !important}.markdown-body .shiki.shiki-dark,.markdown-body .highlight.shiki-dark{background:var(--xm-c-shiki-dark) !important}.markdown-body img{width:100%}.markdown-body a{font-weight:inherit;text-decoration:none;border-bottom:1px solid var(--xm-c-link-border);transition:border .3s ease-in-out}.markdown-body a:hover{border-bottom:1px solid var(--xm-c-general)}.markdown-body a code{color:inherit}.markdown-body hr{margin:2rem auto;width:50px}.markdown-body blockquote{padding:.6rem 1.2rem;font-weight:normal;font-style:normal;line-height:1.5rem;opacity:.8}.markdown-body blockquote>*:first-child{margin-top:0}.markdown-body blockquote>*:last-child{margin-bottom:0}.markdown-body blockquote p:first-of-type::before{content:none}.markdown-body blockquote p:first-of-type::after{content:none}.markdown-body:first-child{margin-top:1rem}.dark .shiki-light{display:none}html:not(.dark) .shiki-dark{display:none}.item{text-decoration:none;opacity:.6;transition:.2s all ease-out}.item:hover{opacity:1}.header-anchor{float:left;margin-top:.125rem;margin-left:-1.2rem;padding-right:.5rem;font-size:.85rem;text-decoration:none;border:0 !important;opacity:0}.header-anchor:hover{text-decoration:none}.header-anchor:focus{text-decoration:none}h1:hover .header-anchor,h1:focus .header-anchor,h2:hover .header-anchor,h2:focus .header-anchor,h3:hover .header-anchor,h3:focus .header-anchor,h4:hover .header-anchor,h4:focus .header-anchor,h5:hover .header-anchor,h5:focus .header-anchor,h6:hover .header-anchor,h6:focus .header-anchor{opacity:.5}.prose{max-width:fit-content;font-size:1rem;color:var(--xm-c-general);line-height:1.75}.prose h1{margin-top:0;margin-bottom:.8889rem;font-size:2.25rem;font-weight:800;color:var(--xm-c-darker);line-height:1.1111}.prose h2{margin-top:2rem;font-size:1.5rem;font-weight:700;color:var(--xm-c-dark);margin-bottom:1rem;line-height:1.3334}.prose h2 code{font-size:.875rem}.prose h2+*{margin-top:0}.prose h3{margin-top:1.6rem;font-size:1.25rem;font-weight:600;color:inherit;margin-bottom:.6rem;line-height:1.6;opacity:.7}.prose h3 code{font-size:.9rem}.prose h3+*{margin-top:0}.prose h4{margin-top:1.5rem;font-weight:600;color:inherit;margin-bottom:.5rem;line-height:1.5}.prose h4+*{margin-top:0}.prose h5,.prose h6{text-transform:uppercase;margin-top:20px;margin-bottom:10px;font-weight:500;opacity:.5;letter-spacing:2px}.prose hr{margin-top:3rem;border-color:var(--xm-c-hr-border);margin-bottom:3rem}.prose hr+*{margin-top:0}.prose p{margin-top:1.25rem;margin-bottom:1.25rem}.prose strong{font-weight:600;color:var(--xm-c-dark)}.prose b{color:var(--xm-c-dark)}.prose em{color:inherit}.prose a{font-weight:500;text-decoration:none;color:var(--xm-c-darker)}.prose a code{color:var(--xm-c-code)}.prose code{font-size:.875rem;font-weight:600;color:var(--xm-c-dark)}.prose code::before,.prose code::after{content:\"`\"}.prose pre{overflow-x:auto;margin-top:1.7143rem;padding-top:.8571rem,1.1429rem;font-size:.875rem;color:var(--xm-c-pre);line-height:1.7143;margin-bottom:1.7143rem;border-radius:.375rem}.prose pre code{padding:0;font-size:inherit;font-family:inherit;font-weight:400;color:inherit;background:rgba(0,0,0,0);border-width:0;border-radius:0;line-height:inherit}.prose pre code::before{content:none}.prose pre code::after{content:none}.prose blockquote,.prose q{margin-top:1.6rem;padding-left:1rem;font-weight:500;font-style:italic;color:inherit;border-color:var(--xm-c-blockquote-border);border-left-width:.25rem;quotes:\"“\" \"”\" \"‘\" \"’\";margin-bottom:1.6rem}.prose blockquote p:first-of-type::before,.prose q p:first-of-type::before{content:open-quote}.prose blockquote p:last-of-type::after,.prose q p:last-of-type::after{content:close-quote}.prose figure{margin-top:2rem;margin-bottom:2rem}.prose figure figcaption{margin-top:.8571rem;font-size:.875rem;color:var(--xm-c-figcaption);line-height:1.4286}.prose figure>*{margin-top:0;margin-bottom:0}.prose li{margin-top:.5rem;margin-bottom:.5rem}.prose ol{margin-top:1.25rem;margin-bottom:1.25rem;list-style-type:none}.prose ol>li{position:relative;padding-left:1.75rem}.prose ol>li::before{content:counter(list-item, decimal) \".\";position:absolute;left:0;font-weight:400;color:var(--xm-c-ol-counter)}.prose ul{margin-top:1.25rem;margin-bottom:1.25rem;list-style-type:none}.prose ul>li{position:relative;padding-left:1.75rem}.prose ul>li::before{content:\"\";position:absolute;top:.6875rem;left:.25rem;width:.375rem;height:.375rem;background-color:var(--xm-c-ul-counter);border-radius:50%}.prose ul ul,.prose ul ol,.prose ol ul,.prose ol ol{margin-top:.75rem;margin-bottom:.75rem}.prose table{margin-top:2rem;margin-bottom:2rem;width:100%;table-layout:auto;font-size:.875rem;text-align:left;line-height:1.7143}.prose thead{font-weight:600;color:var(--xm-c-thead);border-bottom-width:1px;border-bottom-color:var(--xm-c-thead-border)}.prose thead th{vertical-align:bottom;padding-right:.5714rem;padding-bottom:.5714rem;padding-left:.5714rem}.prose thead th:first-child{padding-left:0}.prose thead th:last-child{padding-right:0}.prose tbody tr{border-bottom-width:1px;border-bottom-color:var(--xm-c-tr-border)}.prose tbody tr:last-child{border-bottom-width:0}.prose tbody td{vertical-align:top;padding:.5714rem}.prose tbody td:first-child{padding-left:0}.prose tbody td:last-child{padding-right:0}.prose img,.prose video{margin-top:2rem;margin-bottom:2rem}"]} \ No newline at end of file diff --git a/src/scss/_partial/_all.scss b/src/scss/_partial/_all.scss new file mode 100644 index 0000000..7c957c6 --- /dev/null +++ b/src/scss/_partial/_all.scss @@ -0,0 +1 @@ +@import 'title', 'text', 'link', 'code', 'quote', 'figure', 'list', 'table', 'media'; diff --git a/src/scss/prose.scss b/src/scss/prose.scss index 1a4a363..bf63f58 100644 --- a/src/scss/prose.scss +++ b/src/scss/prose.scss @@ -2,13 +2,5 @@ .prose { @include container; - @import '_partial/title'; - @import '_partial/text'; - @import '_partial/link'; - @import '_partial/code'; - @import '_partial/quote'; - @import '_partial/figure'; - @import '_partial/list'; - @import '_partial/table'; - @import '_partial/media'; + @import '_partial/all'; }