@tempoxyz/ds 0.3.16 → 0.3.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/AGENTS.md +4 -2
- package/dist/docs/marketing.md +699 -0
- package/dist/docs/product/documents.md +225 -0
- package/dist/docs/product/foundations.md +1 -1
- package/dist/document/Document.d.ts +46 -0
- package/dist/document/Document.d.ts.map +1 -0
- package/dist/document/Document.js +190 -0
- package/dist/document/Document.js.map +1 -0
- package/dist/document/Enhance.d.ts +13 -0
- package/dist/document/Enhance.d.ts.map +1 -0
- package/dist/document/Enhance.js +421 -0
- package/dist/document/Enhance.js.map +1 -0
- package/dist/document/bin.d.ts +3 -0
- package/dist/document/bin.d.ts.map +1 -0
- package/dist/document/bin.js +38 -0
- package/dist/document/bin.js.map +1 -0
- package/dist/document/document.css +373 -0
- package/dist/document/index.d.ts +3 -0
- package/dist/document/index.d.ts.map +1 -0
- package/dist/document/index.js +3 -0
- package/dist/document/index.js.map +1 -0
- package/dist/document/internal/Cli.d.ts +43 -0
- package/dist/document/internal/Cli.d.ts.map +1 -0
- package/dist/document/internal/Cli.js +87 -0
- package/dist/document/internal/Cli.js.map +1 -0
- package/dist/document/internal/Template.d.ts +21 -0
- package/dist/document/internal/Template.d.ts.map +1 -0
- package/dist/document/internal/Template.js +15 -0
- package/dist/document/internal/Template.js.map +1 -0
- package/dist/document/script.d.ts +2 -0
- package/dist/document/script.d.ts.map +1 -0
- package/dist/document/script.js +379 -0
- package/dist/document/templates/brief.html +96 -0
- package/dist/document/templates/essay.html +70 -0
- package/dist/document/templates/post.html +69 -0
- package/package.json +19 -1
- package/src/document/Document.ts +277 -0
- package/src/document/Enhance.ts +434 -0
- package/src/document/bin.ts +38 -0
- package/src/document/document.css +373 -0
- package/src/document/index.ts +2 -0
- package/src/document/internal/Cli.ts +132 -0
- package/src/document/internal/Template.ts +25 -0
- package/src/document/script.ts +8 -0
- package/src/document/templates/brief.html +96 -0
- package/src/document/templates/essay.html +70 -0
- package/src/document/templates/post.html +69 -0
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
/* Tempo document mode. Generated by scripts/compile-document.ts from src/web/vars.ts. Do not edit. */
|
|
2
|
+
@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:100 900;src:url('../fonts/Inter-symbols.woff2') format('woff2');unicode-range:U+02CD-036F,U+0E3F,U+1DC0-1DFF,U+2070-2298,U+2303-232B,U+2380-238B,U+23CE-23CF,U+2423-2468,U+24B6-24EA,U+25A0-26A0,U+2713-2788,U+27EF-27FA,U+2913,U+2A38,U+2B06-2B24,U+2E18,U+A92E,U+E000-E163,U+E1C3-E2DC,U+EE01-EEE1,U+F6C3,U+1F12F-1F16B,U+1F850-1F852;}
|
|
3
|
+
@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:100 900;src:url('../fonts/Inter-cyrillic-ext.woff2') format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;}
|
|
4
|
+
@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:100 900;src:url('../fonts/Inter-cyrillic.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;}
|
|
5
|
+
@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:100 900;src:url('../fonts/Inter-greek-ext.woff2') format('woff2');unicode-range:U+1F00-1FFF;}
|
|
6
|
+
@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:100 900;src:url('../fonts/Inter-greek.woff2') format('woff2');unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;}
|
|
7
|
+
@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:100 900;src:url('../fonts/Inter-vietnamese.woff2') format('woff2');unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;}
|
|
8
|
+
@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:100 900;src:url('../fonts/Inter-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
|
|
9
|
+
@font-face{font-display:swap;font-family:Inter;font-style:normal;font-weight:100 900;src:url('../fonts/Inter-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
|
|
10
|
+
@font-face{font-display:swap;font-family:JetBrains Mono;font-style:normal;font-weight:400;src:url('../fonts/JetBrainsMono-Regular-other.woff2') format('woff2');unicode-range:U+0100-0259,U+02B9-04F5,U+0AEA,U+1E80-1EF9,U+2070-20BF,U+2102-2140,U+218A-2424,U+2500-25F6,U+266D-26A1,U+2713-27F7,U+2916-2988,U+2A00-2A06,U+2B58,U+E0A0-E0B3,U+FE62,U+FF5B-FF5D,U+16910,U+1D538-1D56B;}
|
|
11
|
+
@font-face{font-display:swap;font-family:JetBrains Mono;font-style:normal;font-weight:400;src:url('../fonts/JetBrainsMono-Regular-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
|
|
12
|
+
@font-face{font-display:swap;font-family:JetBrains Mono;font-style:normal;font-weight:500;src:url('../fonts/JetBrainsMono-Medium-other.woff2') format('woff2');unicode-range:U+0100-0259,U+02B9-04F5,U+0AEA,U+1E80-1EF9,U+2070-20BF,U+2102-2140,U+218A-2424,U+2500-25F6,U+266D-26A1,U+2713-27F7,U+2916-2988,U+2A00-2A06,U+2B58,U+E0A0-E0B3,U+FE62,U+FF5B-FF5D,U+16910,U+1D538-1D56B;}
|
|
13
|
+
@font-face{font-display:swap;font-family:JetBrains Mono;font-style:normal;font-weight:500;src:url('../fonts/JetBrainsMono-Medium-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
|
|
14
|
+
@font-face{font-display:swap;font-family:JetBrains Mono;font-style:normal;font-weight:600;src:url('../fonts/JetBrainsMono-SemiBold-other.woff2') format('woff2');unicode-range:U+0100-0259,U+02B9-04F5,U+0AEA,U+1E80-1EF9,U+2070-20BF,U+2102-2140,U+218A-2424,U+2500-25F6,U+266D-26A1,U+2713-27F7,U+2916-2988,U+2A00-2A06,U+2B58,U+E0A0-E0B3,U+FE62,U+FF5B-FF5D,U+16910,U+1D538-1D56B;}
|
|
15
|
+
@font-face{font-display:swap;font-family:JetBrains Mono;font-style:normal;font-weight:600;src:url('../fonts/JetBrainsMono-SemiBold-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
|
|
16
|
+
@font-face{font-display:swap;font-family:JetBrains Mono;font-style:normal;font-weight:700;src:url('../fonts/JetBrainsMono-Bold-other.woff2') format('woff2');unicode-range:U+0100-0259,U+02B9-04F5,U+0AEA,U+1E80-1EF9,U+2070-20BF,U+2102-2140,U+218A-2424,U+2500-25F6,U+266D-26A1,U+2713-27F7,U+2916-2988,U+2A00-2A06,U+2B58,U+E0A0-E0B3,U+FE62,U+FF5B-FF5D,U+16910,U+1D538-1D56B;}
|
|
17
|
+
@font-face{font-display:swap;font-family:JetBrains Mono;font-style:normal;font-weight:700;src:url('../fonts/JetBrainsMono-Bold-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
|
|
18
|
+
@font-face{font-display:swap;font-family:Pilat;font-style:normal;font-weight:100;src:url('../fonts/Pilat-Thin-other.woff2') format('woff2');unicode-range:U+0100-0192,U+01FA-0237,U+02C7-0328,U+03A9-03C0,U+1E80-1E85,U+1EF2-1EF3,U+2070-208E,U+2113-212E,U+2190-2199,U+2202-2265,U+25CA-25CC,U+FB00;}
|
|
19
|
+
@font-face{font-display:swap;font-family:Pilat;font-style:normal;font-weight:100;src:url('../fonts/Pilat-Thin-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
|
|
20
|
+
@font-face{font-display:swap;font-family:Pilat;font-style:normal;font-weight:300;src:url('../fonts/Pilat-Light-other.woff2') format('woff2');unicode-range:U+0100-0192,U+01FA-0237,U+02C7-0328,U+03A9-03C0,U+1E80-1E85,U+1EF2-1EF3,U+2070-208E,U+2113-212E,U+2190-2199,U+2202-2265,U+25CA-25CC,U+FB00;}
|
|
21
|
+
@font-face{font-display:swap;font-family:Pilat;font-style:normal;font-weight:300;src:url('../fonts/Pilat-Light-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
|
|
22
|
+
@font-face{font-display:swap;font-family:Pilat;font-style:normal;font-weight:400;src:url('../fonts/Pilat-Regular-other.woff2') format('woff2');unicode-range:U+0100-0192,U+01FA-0237,U+02C7-0328,U+03A9-03C0,U+1E80-1E85,U+1EF2-1EF3,U+2070-208E,U+2113-212E,U+2190-2199,U+2202-2265,U+25CA-25CC,U+FB00;}
|
|
23
|
+
@font-face{font-display:swap;font-family:Pilat;font-style:normal;font-weight:400;src:url('../fonts/Pilat-Regular-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
|
|
24
|
+
@font-face{font-display:swap;font-family:Pilat;font-style:normal;font-weight:500;src:url('../fonts/Pilat-Book-other.woff2') format('woff2');unicode-range:U+0100-0192,U+01FA-0237,U+02C7-0328,U+03A9-03C0,U+1E80-1E85,U+1EF2-1EF3,U+2070-208E,U+2113-212E,U+2190-2199,U+2202-2265,U+25CA-25CC,U+FB00;}
|
|
25
|
+
@font-face{font-display:swap;font-family:Pilat;font-style:normal;font-weight:500;src:url('../fonts/Pilat-Book-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
|
|
26
|
+
@font-face{font-display:swap;font-family:Pilat;font-style:normal;font-weight:600;src:url('../fonts/Pilat-Demi-other.woff2') format('woff2');unicode-range:U+0100-0192,U+01FA-0237,U+02C7-0328,U+03A9-03C0,U+1E80-1E85,U+1EF2-1EF3,U+2070-208E,U+2113-212E,U+2190-2199,U+2202-2265,U+25CA-25CC,U+FB00;}
|
|
27
|
+
@font-face{font-display:swap;font-family:Pilat;font-style:normal;font-weight:600;src:url('../fonts/Pilat-Demi-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
|
|
28
|
+
@font-face{font-display:swap;font-family:Pilat;font-style:normal;font-weight:700;src:url('../fonts/Pilat-Bold-other.woff2') format('woff2');unicode-range:U+0100-0192,U+01FA-0237,U+02C7-0328,U+03A9-03C0,U+1E80-1E85,U+1EF2-1EF3,U+2070-208E,U+2113-212E,U+2190-2199,U+2202-2265,U+25CA-25CC,U+FB00;}
|
|
29
|
+
@font-face{font-display:swap;font-family:Pilat;font-style:normal;font-weight:700;src:url('../fonts/Pilat-Bold-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
|
|
30
|
+
@font-face{font-display:swap;font-family:Pilat;font-style:normal;font-weight:800;src:url('../fonts/Pilat-Heavy-other.woff2') format('woff2');unicode-range:U+0100-0192,U+01FA-0237,U+02C7-0328,U+03A9-03C0,U+1E80-1E85,U+1EF2-1EF3,U+2070-208E,U+2113-212E,U+2190-2199,U+2202-2265,U+25CA-25CC,U+FB00;}
|
|
31
|
+
@font-face{font-display:swap;font-family:Pilat;font-style:normal;font-weight:800;src:url('../fonts/Pilat-Heavy-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
|
|
32
|
+
@font-face{font-display:swap;font-family:Pilat;font-style:normal;font-weight:900;src:url('../fonts/Pilat-Black-other.woff2') format('woff2');unicode-range:U+0100-0192,U+01FA-0237,U+02C7-0328,U+03A9-03C0,U+1E80-1E85,U+1EF2-1EF3,U+2070-208E,U+2113-212E,U+2190-2199,U+2202-2265,U+25CA-25CC,U+FB00;}
|
|
33
|
+
@font-face{font-display:swap;font-family:Pilat;font-style:normal;font-weight:900;src:url('../fonts/Pilat-Black-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
|
|
34
|
+
|
|
35
|
+
:root {
|
|
36
|
+
color-scheme: light dark;
|
|
37
|
+
--doc-background-elevated: light-dark(#fff, #1a1a1a);
|
|
38
|
+
--doc-background-primary: light-dark(#f5f5f5, #141414);
|
|
39
|
+
--doc-background-secondary: light-dark(#fff, #141414);
|
|
40
|
+
--doc-border-focus: light-dark(#00000066, #ffffff85);
|
|
41
|
+
--doc-container-regular: light-dark(#0000000a, #ffffff14);
|
|
42
|
+
--doc-content-primary: light-dark(#000, #fff);
|
|
43
|
+
--doc-content-secondary: light-dark(#0000008f, #ffffffa3);
|
|
44
|
+
--doc-content-tertiary: light-dark(#00000066, #ffffff85);
|
|
45
|
+
--doc-line-primary: light-dark(#00000029, #ffffff3d);
|
|
46
|
+
--doc-line-secondary: light-dark(#00000014, #ffffff14);
|
|
47
|
+
--doc-ease-snappy: cubic-bezier(0.23, 1, 0.32, 1);
|
|
48
|
+
--doc-font-body: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
49
|
+
--doc-font-heading: Pilat, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
|
|
50
|
+
--doc-font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
51
|
+
--doc-radius-2xs: calc(0.5rem * var(--tds-corner-scale, 1));
|
|
52
|
+
--doc-radius-3xs: calc(0.25rem * var(--tds-corner-scale, 1));
|
|
53
|
+
--doc-radius-full: 62.4375rem;
|
|
54
|
+
--doc-radius-sm: calc(1rem * var(--tds-corner-scale, 1));
|
|
55
|
+
--doc-radius-xs: calc(0.75rem * var(--tds-corner-scale, 1));
|
|
56
|
+
--doc-shadow-regular: 0 8px 48px #0000000a, 0 4px 16px #0000000a, 0 2px 8px #0000000a;
|
|
57
|
+
--doc-bar-min: 0.75rem;
|
|
58
|
+
--doc-edge: 1.25rem;
|
|
59
|
+
--doc-hang: 3rem;
|
|
60
|
+
--doc-measure: 40rem;
|
|
61
|
+
--doc-side: 18rem;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/* Base */
|
|
65
|
+
*, *::before, *::after { box-sizing: border-box; }
|
|
66
|
+
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 2rem; }
|
|
67
|
+
body {
|
|
68
|
+
margin: 0; padding: 0;
|
|
69
|
+
background: var(--doc-background-secondary); color: var(--doc-content-primary);
|
|
70
|
+
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 14px; font-weight: 400; letter-spacing: -.09px; line-height: 22px;
|
|
71
|
+
-webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
|
|
72
|
+
}
|
|
73
|
+
a { color: inherit; text-decoration: underline; text-decoration-color: var(--doc-content-secondary); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
|
|
74
|
+
a:hover { text-decoration-color: currentColor; }
|
|
75
|
+
:focus-visible { outline: 2px solid var(--doc-border-focus); outline-offset: 2px; }
|
|
76
|
+
|
|
77
|
+
/* Grid: four symmetric widths around the text column. l-body is the default. */
|
|
78
|
+
.doc {
|
|
79
|
+
position: relative;
|
|
80
|
+
display: grid;
|
|
81
|
+
grid-template-columns:
|
|
82
|
+
[screen-start] minmax(var(--doc-edge), 1fr)
|
|
83
|
+
[page-start] minmax(0, var(--doc-hang))
|
|
84
|
+
[outset-start] minmax(0, var(--doc-hang))
|
|
85
|
+
[body-start] minmax(0, var(--doc-measure))
|
|
86
|
+
[body-end] minmax(0, var(--doc-hang))
|
|
87
|
+
[outset-end] minmax(0, var(--doc-hang))
|
|
88
|
+
[page-end] minmax(var(--doc-edge), 1fr)
|
|
89
|
+
[screen-end];
|
|
90
|
+
padding-block: 4rem 6rem;
|
|
91
|
+
counter-reset: sn;
|
|
92
|
+
}
|
|
93
|
+
.doc > * { grid-column: body; margin-block: 0 1rem; min-width: 0; }
|
|
94
|
+
.doc > .l-outset { grid-column: outset; }
|
|
95
|
+
.doc > .l-page { grid-column: page; }
|
|
96
|
+
.doc > .l-screen { grid-column: screen; }
|
|
97
|
+
.doc > .l-screen > figcaption { padding-inline: var(--doc-edge); max-width: calc(var(--doc-measure) + 2 * var(--doc-edge)); margin-inline: auto; }
|
|
98
|
+
|
|
99
|
+
/* Title block */
|
|
100
|
+
.doc header, .brief > header { margin-bottom: 2.5rem; }
|
|
101
|
+
h1 { font-family: Pilat, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif; font-size: 24px; font-weight: 500; letter-spacing: -.36px; line-height: 27.6px; margin: 0 0 1rem; color: var(--doc-content-primary); text-wrap: balance; }
|
|
102
|
+
.dek { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 16px; font-weight: 400; letter-spacing: -.18px; line-height: 22px; color: var(--doc-content-secondary); margin: 0 0 1rem; text-wrap: pretty; }
|
|
103
|
+
.byline { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 12px; font-weight: 400; letter-spacing: 0px; line-height: 16px; color: var(--doc-content-secondary); margin: 0; }
|
|
104
|
+
|
|
105
|
+
/* Headings: Pilat for the title and the article's H2s, Inter everywhere else. No H4. */
|
|
106
|
+
h2 { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 14px; font-weight: 500; letter-spacing: -.09px; line-height: 22px; margin: 2.5rem 0 0.75rem; text-wrap: balance; }
|
|
107
|
+
.doc > h2 { font-family: Pilat, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif; font-size: 20px; font-weight: 500; letter-spacing: -.3px; line-height: 23px; color: var(--doc-content-primary); }
|
|
108
|
+
h3 { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 14px; font-weight: 500; letter-spacing: -.09px; line-height: 22px; margin: 1.5rem 0 0.25rem; }
|
|
109
|
+
p, li { text-wrap: pretty; }
|
|
110
|
+
p { margin: 0 0 1rem; }
|
|
111
|
+
ul, ol { padding-left: 1.25rem; }
|
|
112
|
+
li { margin-bottom: 0.25rem; }
|
|
113
|
+
li::marker { color: var(--doc-content-secondary); }
|
|
114
|
+
strong, b { font-weight: 500; }
|
|
115
|
+
|
|
116
|
+
/* Quote, code, note */
|
|
117
|
+
blockquote { margin-inline: 0; padding-left: 1.5rem; border-left: 1px solid var(--doc-content-primary); }
|
|
118
|
+
blockquote p { margin: 0; }
|
|
119
|
+
blockquote footer { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 400; letter-spacing: .01px; line-height: 16px; color: var(--doc-content-secondary); margin-top: 0.5rem; }
|
|
120
|
+
blockquote.input { padding: 1rem 1.25rem; border-left: 0; border-radius: var(--doc-radius-xs); background: var(--doc-container-regular); }
|
|
121
|
+
blockquote.input::before { content: attr(data-label); display: block; margin-bottom: 0.25rem; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 500; letter-spacing: .01px; line-height: 16px; color: var(--doc-content-secondary); }
|
|
122
|
+
code, kbd, pre { font-family: var(--doc-font-mono); }
|
|
123
|
+
code { font-size: 12px; padding: 0.1em 0.3em; border-radius: var(--doc-radius-3xs); background: var(--doc-container-regular); }
|
|
124
|
+
pre { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 12px; font-weight: 400; letter-spacing: 0px; line-height: 16px; background: var(--doc-container-regular); border-radius: var(--doc-radius-xs); padding: 1rem 1.25rem; overflow-x: auto; tab-size: 2; }
|
|
125
|
+
pre code { background: none; padding: 0; font-size: inherit; border-radius: 0; }
|
|
126
|
+
.note { border-block: 1px solid var(--doc-line-primary); padding-block: 0.75rem; color: var(--doc-content-secondary); }
|
|
127
|
+
|
|
128
|
+
/* Copy button on code blocks, added by the script. The pre's right padding keeps the first line clear. */
|
|
129
|
+
.code-block { position: relative; }
|
|
130
|
+
.code-block > pre { margin: 0; padding-right: 5.5rem; }
|
|
131
|
+
.copy {
|
|
132
|
+
position: absolute; top: 0.5rem; right: 0.5rem;
|
|
133
|
+
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 500; letter-spacing: .01px; line-height: 16px; color: var(--doc-content-secondary);
|
|
134
|
+
background: var(--doc-background-secondary); border: 1px solid var(--doc-line-secondary); border-radius: var(--doc-radius-2xs);
|
|
135
|
+
padding: 0.25rem 0.5rem; cursor: pointer;
|
|
136
|
+
transition: color 150ms var(--doc-ease-snappy), border-color 150ms var(--doc-ease-snappy), transform 120ms var(--doc-ease-snappy);
|
|
137
|
+
}
|
|
138
|
+
.copy:hover { color: var(--doc-content-primary); border-color: var(--doc-line-primary); }
|
|
139
|
+
.copy:active { transform: scale(0.97); }
|
|
140
|
+
.copy[data-copied] { color: var(--doc-content-primary); }
|
|
141
|
+
|
|
142
|
+
/* Figures, diagrams, and charts */
|
|
143
|
+
figure { margin-inline: 0; }
|
|
144
|
+
figure > svg, figure > img { display: block; width: 100%; height: auto; }
|
|
145
|
+
figcaption { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 400; letter-spacing: .01px; line-height: 16px; color: var(--doc-content-secondary); margin-top: 0.5rem; }
|
|
146
|
+
svg text { font-family: var(--doc-font-body); }
|
|
147
|
+
svg .ink { stroke: var(--doc-content-primary); fill: none; }
|
|
148
|
+
svg .hair { stroke: var(--doc-line-primary); fill: none; }
|
|
149
|
+
svg .label { fill: var(--doc-content-primary); font-size: 14px; }
|
|
150
|
+
svg .meta { fill: var(--doc-content-secondary); font-size: 12px; }
|
|
151
|
+
svg .fill-ink { fill: var(--doc-content-primary); }
|
|
152
|
+
svg .fill-quiet { fill: var(--doc-content-tertiary); }
|
|
153
|
+
svg .fill-line { fill: var(--doc-line-primary); }
|
|
154
|
+
/* A chart stays inside its block. Bars shrink with it down to --doc-bar-min each, then the plot scrolls. */
|
|
155
|
+
.chart-key { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 0; margin: 0 0 0.75rem; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 400; letter-spacing: .01px; line-height: 16px; color: var(--doc-content-secondary); }
|
|
156
|
+
.chart-key > li { display: inline-flex; align-items: center; gap: 0.375rem; margin: 0; }
|
|
157
|
+
.chart-key .swatch { width: 0.625rem; height: 0.625rem; border-radius: 2px; background: var(--doc-content-primary); }
|
|
158
|
+
.chart-key .swatch.fill-quiet { background: var(--doc-content-tertiary); }
|
|
159
|
+
.chart-key .swatch.fill-line { background: var(--doc-line-primary); }
|
|
160
|
+
.chart-scroll { overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
|
|
161
|
+
.chart-plot { min-width: calc(var(--bars, 0) * var(--doc-bar-min)); }
|
|
162
|
+
.chart-plot > svg { display: block; width: 100%; height: 12rem; }
|
|
163
|
+
|
|
164
|
+
/* Big numbers: a row of two to four */
|
|
165
|
+
.figures { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; padding-block: 1.25rem; border-block: 1px solid var(--doc-line-primary); }
|
|
166
|
+
.figures > div { display: flex; flex-direction: column-reverse; min-width: 7rem; }
|
|
167
|
+
.figures dt { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 400; letter-spacing: .01px; line-height: 16px; color: var(--doc-content-secondary); }
|
|
168
|
+
.figures dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; }
|
|
169
|
+
|
|
170
|
+
/* Tables: one size for every cell. Row titles primary and medium, descriptions secondary and regular. */
|
|
171
|
+
table { width: 100%; border-collapse: collapse; }
|
|
172
|
+
caption { caption-side: bottom; text-align: left; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 400; letter-spacing: .01px; line-height: 16px; color: var(--doc-content-secondary); padding-top: 0.5rem; }
|
|
173
|
+
th, td { text-align: left; padding: 0.5rem 1rem 0.5rem 0; border-bottom: 1px solid var(--doc-line-secondary); vertical-align: baseline; }
|
|
174
|
+
th:last-child, td:last-child { padding-right: 0; }
|
|
175
|
+
thead th { font-weight: 500; color: var(--doc-content-secondary); border-bottom-color: var(--doc-content-primary); }
|
|
176
|
+
tbody td { color: var(--doc-content-secondary); font-weight: 400; }
|
|
177
|
+
tbody th, tbody tr > td:first-child { color: var(--doc-content-primary); font-weight: 500; }
|
|
178
|
+
td.n, th.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
|
|
179
|
+
tbody tr:last-child > * { border-bottom: 0; }
|
|
180
|
+
table.kv { border-top: 1px solid var(--doc-line-primary); }
|
|
181
|
+
table.kv th[scope="row"] { width: 8rem; padding-right: 1.5rem; white-space: nowrap; }
|
|
182
|
+
table.results td.outcome { white-space: nowrap; }
|
|
183
|
+
|
|
184
|
+
/* Footnotes: span.sn > small. Without the script a note reads inline, in parentheses. */
|
|
185
|
+
.sn { counter-increment: sn; }
|
|
186
|
+
.sn > small { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 400; letter-spacing: .01px; line-height: 16px; color: var(--doc-content-secondary); }
|
|
187
|
+
.sn > small::before { content: " (" counter(sn) "\2002"; }
|
|
188
|
+
.sn > small::after { content: ")"; }
|
|
189
|
+
.sn-ref {
|
|
190
|
+
all: unset; cursor: pointer; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 500; letter-spacing: .01px; line-height: 16px; vertical-align: super; line-height: 0;
|
|
191
|
+
padding: 0.35em 0.2em; margin: -0.35em 0; color: var(--doc-content-primary); border-radius: var(--doc-radius-3xs);
|
|
192
|
+
}
|
|
193
|
+
.sn-ref:hover, .sn-ref[aria-expanded="true"] { text-decoration: underline; text-underline-offset: 0.2em; }
|
|
194
|
+
.sn-ref:focus-visible { outline: 2px solid var(--doc-border-focus); outline-offset: 1px; }
|
|
195
|
+
.js .sn > small { display: none; }
|
|
196
|
+
.js .sn.open > small {
|
|
197
|
+
display: block; position: absolute; z-index: 30; width: min(20rem, calc(100vw - 2.5rem));
|
|
198
|
+
left: var(--pop-x, 0); top: var(--pop-y, 0); padding: 1.25rem; border-radius: var(--doc-radius-sm);
|
|
199
|
+
background: var(--doc-background-elevated); box-shadow: var(--doc-shadow-regular); color: var(--doc-content-primary);
|
|
200
|
+
animation: doc-pop 200ms var(--doc-ease-snappy);
|
|
201
|
+
}
|
|
202
|
+
.js .sn.open > small::before { content: counter(sn) "\2002"; color: var(--doc-content-secondary); }
|
|
203
|
+
.js .sn.open > small::after { content: none; }
|
|
204
|
+
@keyframes doc-pop { from { opacity: 0; transform: scale(0.96); } }
|
|
205
|
+
.footnotes { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 400; letter-spacing: .01px; line-height: 16px; color: var(--doc-content-secondary); }
|
|
206
|
+
.doc > .footnotes h2 { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 14px; font-weight: 500; letter-spacing: -.09px; line-height: 22px; font-family: var(--doc-font-body); color: var(--doc-content-primary); margin-top: 2.5rem; }
|
|
207
|
+
.footnotes ol { padding-left: 1.5rem; }
|
|
208
|
+
|
|
209
|
+
/* Heading copy-link anchors, added by the script */
|
|
210
|
+
h2[id], h3[id] { scroll-margin-top: 2rem; }
|
|
211
|
+
.h-tail { white-space: nowrap; }
|
|
212
|
+
.h-anchor {
|
|
213
|
+
all: unset; box-sizing: border-box; cursor: pointer; position: relative;
|
|
214
|
+
display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
|
|
215
|
+
width: 1.5rem; height: 1.5rem; margin-left: 0.25rem; margin-top: -0.25rem; border-radius: var(--doc-radius-full);
|
|
216
|
+
color: var(--doc-content-secondary); opacity: 0;
|
|
217
|
+
transition: opacity 160ms var(--doc-ease-snappy), background-color 160ms var(--doc-ease-snappy);
|
|
218
|
+
}
|
|
219
|
+
.h-anchor svg { width: 1rem; height: 1rem; display: block; }
|
|
220
|
+
h2:hover .h-anchor, h3:hover .h-anchor, .h-anchor:focus-visible, .h-anchor[data-copied] { opacity: 1; }
|
|
221
|
+
.h-anchor:hover { color: var(--doc-content-primary); background: var(--doc-container-regular); }
|
|
222
|
+
.h-anchor:focus-visible { outline: 2px solid var(--doc-border-focus); outline-offset: 0; }
|
|
223
|
+
.h-anchor .tip {
|
|
224
|
+
position: absolute; right: 0; bottom: calc(100% + 4px); white-space: nowrap; pointer-events: none;
|
|
225
|
+
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 400; letter-spacing: .01px; line-height: 16px; padding: 6px 12px; border-radius: var(--doc-radius-xs);
|
|
226
|
+
background: var(--doc-content-primary); color: var(--doc-background-primary); opacity: 0; transition: opacity 160ms var(--doc-ease-snappy);
|
|
227
|
+
}
|
|
228
|
+
.h-anchor:hover .tip { opacity: 1; transition-delay: 600ms; }
|
|
229
|
+
.h-anchor:focus-visible .tip, .h-anchor[data-copied] .tip { opacity: 1; transition-delay: 0ms; }
|
|
230
|
+
@media (hover: none) {
|
|
231
|
+
.h-anchor { opacity: 1; color: var(--doc-content-tertiary); }
|
|
232
|
+
.h-anchor .tip { display: none; }
|
|
233
|
+
.h-anchor[data-copied] .tip { display: block; }
|
|
234
|
+
}
|
|
235
|
+
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
|
|
236
|
+
|
|
237
|
+
/* Timeline: Chronology, dates hanging left of the column */
|
|
238
|
+
.chronology { list-style: none; padding: 0; }
|
|
239
|
+
.chronology > li { position: relative; margin: 0 0 1rem; }
|
|
240
|
+
.chronology > li > time { display: block; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 400; letter-spacing: .01px; line-height: 16px; padding-top: 2px; color: var(--doc-content-secondary); font-variant-numeric: tabular-nums; }
|
|
241
|
+
.chronology > li > p { margin: 0; }
|
|
242
|
+
|
|
243
|
+
/* Timeline: Axis. Without the script, and on phones, a vertical list on a thin rule. */
|
|
244
|
+
.axis { list-style: none; padding: 0 0 0 1.25rem; margin: 0; border-left: 1px solid var(--doc-line-primary); }
|
|
245
|
+
.axis > li { position: relative; margin: 0 0 0.5rem; }
|
|
246
|
+
.axis > li::before { content: ""; position: absolute; left: -1.25rem; top: 0.6875rem; width: 0.75rem; border-top: 1px solid var(--doc-content-primary); }
|
|
247
|
+
.axis > li > time { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 400; letter-spacing: .01px; line-height: 16px; font-variant-numeric: tabular-nums; color: var(--doc-content-secondary); margin-right: 0.5rem; }
|
|
248
|
+
.axis > li.minor { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 400; letter-spacing: .01px; line-height: 16px; color: var(--doc-content-secondary); margin-bottom: 0.25rem; }
|
|
249
|
+
.axis > li.minor::before { top: 0.5rem; width: 0.375rem; border-top-color: var(--doc-line-primary); }
|
|
250
|
+
.axis > li.phase { font-weight: 500; margin-top: 1.25rem; }
|
|
251
|
+
.axis > li.phase:first-child { margin-top: 0; }
|
|
252
|
+
.axis > li.phase::before { left: calc(-1.25rem - 1.5px); top: 0.125rem; width: 0; height: 1.25rem; border-top: 0; border-left: 2px solid var(--doc-content-primary); }
|
|
253
|
+
.axis-scale { display: none; }
|
|
254
|
+
@media (min-width: 768px) {
|
|
255
|
+
.axis[data-placed] {
|
|
256
|
+
--row: 1.625rem;
|
|
257
|
+
position: relative; border: 0; padding: 0; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 400; letter-spacing: .01px; line-height: 16px;
|
|
258
|
+
height: calc((var(--phase-lanes, 1) + var(--event-lanes, 1)) * var(--row) + 1.5rem);
|
|
259
|
+
}
|
|
260
|
+
.axis[data-placed]::after { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--phase-lanes, 1) * var(--row) + 0.75rem); border-top: 1px solid var(--doc-content-primary); }
|
|
261
|
+
.axis[data-placed] > li { position: absolute; margin: 0; left: calc(var(--x) * 100%); white-space: nowrap; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 400; letter-spacing: .01px; line-height: 16px; color: var(--doc-content-primary); }
|
|
262
|
+
.axis[data-placed] > li::before { content: none; }
|
|
263
|
+
.axis[data-placed] > li > time { display: none; }
|
|
264
|
+
.axis[data-placed] > li:not(.phase) {
|
|
265
|
+
top: calc(var(--phase-lanes, 1) * var(--row) + 0.75rem);
|
|
266
|
+
padding: calc(var(--lane, 0) * var(--row) + 0.75rem) 0 0 0.375rem;
|
|
267
|
+
border-left: 1px solid var(--doc-line-primary);
|
|
268
|
+
}
|
|
269
|
+
.axis[data-placed] > li:not(.phase)::after { content: ""; position: absolute; left: -1px; top: -0.3125rem; height: 0.625rem; border-left: 1px solid var(--doc-content-primary); }
|
|
270
|
+
.axis[data-placed] > li[data-flip]:not(.phase) { border-left: 0; border-right: 1px solid var(--doc-line-primary); padding-left: 0; padding-right: 0.375rem; transform: translateX(-100%); }
|
|
271
|
+
.axis[data-placed] > li[data-flip]:not(.phase)::after { left: auto; right: -1px; }
|
|
272
|
+
.axis[data-placed] > li.minor { border: 0; padding: 0; width: 0; height: 0; overflow: visible; font-size: 0; color: transparent; }
|
|
273
|
+
.axis[data-placed] > li.minor::after { left: 0; top: -0.25rem; height: 0.5rem; border-left-color: var(--doc-content-secondary); }
|
|
274
|
+
.axis[data-placed] > li.phase {
|
|
275
|
+
top: calc(var(--lane, 0) * var(--row)); width: calc(var(--w) * 100%); min-width: 2px;
|
|
276
|
+
padding-bottom: 0.125rem; border-bottom: 2px solid var(--doc-content-primary); font-weight: 500;
|
|
277
|
+
}
|
|
278
|
+
.axis-scale { display: block; position: relative; height: 1.25rem; margin-top: 0.25rem; }
|
|
279
|
+
.axis-scale > span { position: absolute; top: 0; transform: translateX(-50%); font-variant-numeric: tabular-nums; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 400; letter-spacing: .01px; line-height: 16px; color: var(--doc-content-secondary); white-space: nowrap; }
|
|
280
|
+
.axis-scale > span:first-child { transform: none; }
|
|
281
|
+
.axis-scale > span:last-child { transform: translateX(-100%); }
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* Essay: reading progress rail, added by the script */
|
|
285
|
+
.rail { position: fixed; z-index: 20; left: 2rem; top: 7.5rem; width: 1.75rem; height: min(calc(100vh - 15rem), 45rem); opacity: 0; visibility: hidden; transition: opacity 240ms var(--doc-ease-snappy), visibility 0s linear 240ms; }
|
|
286
|
+
.rail[data-on] { opacity: 1; visibility: visible; transition: opacity 240ms var(--doc-ease-snappy), visibility 0s; }
|
|
287
|
+
.rail-track, .rail-fill { position: absolute; left: 0.8125rem; top: 0; bottom: 0; width: 1px; }
|
|
288
|
+
.rail-track { background: var(--doc-line-primary); }
|
|
289
|
+
.rail-fill { background: var(--doc-content-primary); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
|
|
290
|
+
.rail a { position: absolute; left: 0.4375rem; width: 0.8125rem; height: 0.75rem; margin-top: -0.375rem; top: calc(var(--at, 0) * 100%); display: block; }
|
|
291
|
+
.rail a::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--doc-content-primary); }
|
|
292
|
+
.rail a span {
|
|
293
|
+
position: absolute; left: 1.375rem; top: 50%; transform: translateY(-50%); white-space: nowrap; pointer-events: none;
|
|
294
|
+
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 400; letter-spacing: .01px; line-height: 16px; padding: 6px 12px; border-radius: var(--doc-radius-xs);
|
|
295
|
+
background: var(--doc-content-primary); color: var(--doc-background-primary); opacity: 0; transition: opacity 160ms var(--doc-ease-snappy);
|
|
296
|
+
}
|
|
297
|
+
.rail a:hover span, .rail a:focus-visible span { opacity: 1; }
|
|
298
|
+
|
|
299
|
+
/* Brief: the column with a sticky summary on the right */
|
|
300
|
+
.brief {
|
|
301
|
+
display: grid;
|
|
302
|
+
grid-template-columns: minmax(var(--doc-edge), 1fr) minmax(0, calc(var(--doc-measure) + 2 * var(--doc-hang) + 3rem)) 3rem var(--doc-side) minmax(var(--doc-edge), 1fr);
|
|
303
|
+
grid-template-areas: ". head . side ." ". main . side .";
|
|
304
|
+
grid-template-rows: auto 1fr;
|
|
305
|
+
padding-block: 4rem 6rem;
|
|
306
|
+
}
|
|
307
|
+
.brief > header { grid-area: head; padding-left: calc(2 * var(--doc-hang)); }
|
|
308
|
+
.brief > .doc {
|
|
309
|
+
grid-area: main; padding: 0;
|
|
310
|
+
grid-template-columns:
|
|
311
|
+
[screen-start page-start] minmax(0, var(--doc-hang)) [outset-start] minmax(0, var(--doc-hang))
|
|
312
|
+
[body-start] minmax(0, var(--doc-measure)) [body-end] minmax(0, 1.5rem) [outset-end] minmax(0, 1.5rem)
|
|
313
|
+
[page-end screen-end];
|
|
314
|
+
}
|
|
315
|
+
.brief > .summary { grid-area: side; }
|
|
316
|
+
.summary { position: sticky; top: 2rem; align-self: start; border-top: 1px solid var(--doc-content-primary); padding-top: 0.75rem; }
|
|
317
|
+
.summary dl { margin: 0; }
|
|
318
|
+
.summary dd { margin: 0; }
|
|
319
|
+
.summary .facts > div { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.75rem; padding-block: 0.5rem; border-bottom: 1px solid var(--doc-line-secondary); }
|
|
320
|
+
.summary .facts dt { color: var(--doc-content-primary); font-weight: 500; }
|
|
321
|
+
.summary .facts dd { color: var(--doc-content-secondary); }
|
|
322
|
+
.summary nav { margin-top: 1.75rem; }
|
|
323
|
+
.summary nav h2 { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 500; letter-spacing: .01px; line-height: 16px; color: var(--doc-content-secondary); margin: 0 0 0.5rem; }
|
|
324
|
+
.summary nav ol { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--doc-line-primary); }
|
|
325
|
+
.summary nav li { margin: 0; }
|
|
326
|
+
.summary nav a { display: block; padding: 0.25rem 0 0.25rem 0.875rem; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; color: var(--doc-content-secondary); }
|
|
327
|
+
.summary nav a:hover { color: var(--doc-content-primary); }
|
|
328
|
+
.summary nav a[aria-current="true"] { color: var(--doc-content-primary); border-left-color: var(--doc-content-primary); }
|
|
329
|
+
|
|
330
|
+
/* Post: numbered steps */
|
|
331
|
+
ol.steps { list-style: none; counter-reset: step; padding: 0; }
|
|
332
|
+
ol.steps > li { counter-increment: step; position: relative; padding-left: 2rem; margin-bottom: 0.75rem; }
|
|
333
|
+
ol.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 1.375rem; text-align: center; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; font-size: 12px; font-weight: 500; letter-spacing: .01px; line-height: 16px; line-height: 1.375rem; border-radius: var(--doc-radius-full); background: var(--doc-container-regular); color: var(--doc-content-primary); }
|
|
334
|
+
|
|
335
|
+
@media (min-width: 1024px) {
|
|
336
|
+
.chronology > li > time { position: absolute; right: calc(100% + 1.5rem); top: 0; width: calc(2 * var(--doc-hang) - 1.5rem); text-align: right; white-space: nowrap; }
|
|
337
|
+
.doc[data-rail] { --doc-edge: 3.5rem; }
|
|
338
|
+
}
|
|
339
|
+
@media (max-width: 1023.98px) {
|
|
340
|
+
.doc { --doc-hang: 0rem; }
|
|
341
|
+
.rail { left: 0; right: 0; top: 0; width: auto; height: 2px; }
|
|
342
|
+
.rail-track { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 2px; background: transparent; }
|
|
343
|
+
.rail-fill { left: 0; right: 0; width: auto; height: 2px; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
|
|
344
|
+
.rail a { display: none; }
|
|
345
|
+
.brief { grid-template-columns: minmax(var(--doc-edge), 1fr) minmax(0, var(--doc-measure)) minmax(var(--doc-edge), 1fr); grid-template-areas: ". head ." ". side ." ". main ."; grid-template-rows: auto; padding-top: 3rem; }
|
|
346
|
+
.brief > header { padding-left: 0; margin-bottom: 1.5rem; }
|
|
347
|
+
.brief > .doc { grid-template-columns: [screen-start page-start outset-start body-start] minmax(0, 1fr) [body-end outset-end page-end screen-end]; }
|
|
348
|
+
.summary { position: static; margin-bottom: 1rem; border-bottom: 1px solid var(--doc-line-primary); padding-bottom: 0.5rem; }
|
|
349
|
+
.summary .facts > div:last-child { border-bottom: 0; }
|
|
350
|
+
.summary nav { display: none; }
|
|
351
|
+
}
|
|
352
|
+
@media (min-width: 640px) and (max-width: 1023.98px) {
|
|
353
|
+
.chronology > li { padding-left: 5.5rem; }
|
|
354
|
+
.chronology > li > time { position: absolute; left: 0; top: 0; }
|
|
355
|
+
}
|
|
356
|
+
@media (max-width: 639.98px) {
|
|
357
|
+
.doc { padding-block: 2.5rem 4rem; }
|
|
358
|
+
blockquote { padding-left: 1rem; }
|
|
359
|
+
.figures { gap: 1rem 2rem; }
|
|
360
|
+
th, td { padding-right: 0.5rem; }
|
|
361
|
+
table.kv th[scope="row"] { width: 6.5rem; padding-right: 0.75rem; white-space: normal; }
|
|
362
|
+
table.results td.outcome { white-space: normal; }
|
|
363
|
+
pre { padding: 0.875rem 1rem; }
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/* Motion and print */
|
|
367
|
+
@media (prefers-reduced-motion: reduce) {
|
|
368
|
+
*, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
|
|
369
|
+
.copy:active { transform: none; }
|
|
370
|
+
}
|
|
371
|
+
@media print {
|
|
372
|
+
.rail, .summary nav, .h-anchor, .copy { display: none; }
|
|
373
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/document/index.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAC7G,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/document/index.ts"],"names":[],"mappings":"AAAA,6GAA6G;AAC7G,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/** The `tempo-document` command line, which writes starter documents and lints documents through injected file operations. @module */
|
|
2
|
+
import * as Document from '../Document.ts';
|
|
3
|
+
/** The text that `tempo-document help` prints. */
|
|
4
|
+
export declare const usage = "Usage: tempo-document <command>\n\nCommands:\n init <essay|brief|post> [file] Write a starter document that links this version on jsDelivr.\n lint <file.html...> Check whole documents against the document mode contract.\n";
|
|
5
|
+
/**
|
|
6
|
+
* Runs one command and returns its exit code and output. `init` writes a starter template to a new
|
|
7
|
+
* file, with its links pinned to `version`, and fails when the file exists. `lint` runs
|
|
8
|
+
* `Document.lint` on each whole page and prints one `file:line: rule message` line per diagnostic.
|
|
9
|
+
* The code is 1 when a command fails or a document has a diagnostic, and 0 otherwise.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* await Cli.run({ args: ['lint', 'brief.html'], files, version: '0.3.17' })
|
|
13
|
+
* // { code: 0, stderr: '', stdout: '1 document passes the document mode lint.\n' }
|
|
14
|
+
*/
|
|
15
|
+
export declare function run(options: run.Options): Promise<run.ReturnType>;
|
|
16
|
+
export declare namespace run {
|
|
17
|
+
/** The file operations that the commands perform. Paths are relative to the working directory. */
|
|
18
|
+
type Files = {
|
|
19
|
+
/** Writes a new file. Resolves false, and writes nothing, when the path exists. */
|
|
20
|
+
create: (path: string, text: string) => Promise<boolean>;
|
|
21
|
+
/** Reads a file. Resolves undefined when the path does not exist. */
|
|
22
|
+
read: (path: string) => Promise<string | undefined>;
|
|
23
|
+
/** Reads the source of a starter template, with its version tokens. */
|
|
24
|
+
template: (name: (typeof Document.templates)[number]) => Promise<string>;
|
|
25
|
+
};
|
|
26
|
+
type Options = {
|
|
27
|
+
/** The arguments after the executable, such as `['lint', 'brief.html']`. */
|
|
28
|
+
args: readonly string[];
|
|
29
|
+
/** The file operations that the commands perform. */
|
|
30
|
+
files: Files;
|
|
31
|
+
/** The installed package version, which `init` pins the links to. */
|
|
32
|
+
version: string;
|
|
33
|
+
};
|
|
34
|
+
type ReturnType = {
|
|
35
|
+
/** The exit code: 1 when the command fails or a document has a diagnostic, and 0 otherwise. */
|
|
36
|
+
code: 0 | 1;
|
|
37
|
+
/** The text for standard error, empty unless the command fails. */
|
|
38
|
+
stderr: string;
|
|
39
|
+
/** The text for standard output. */
|
|
40
|
+
stdout: string;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=Cli.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cli.d.ts","sourceRoot":"","sources":["../../../src/document/internal/Cli.ts"],"names":[],"mappings":"AAAA,sIAAsI;AACtI,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAA;AAG1C,kDAAkD;AAClD,eAAO,MAAM,KAAK,iPAKjB,CAAA;AAED;;;;;;;;;GASG;AACH,wBAAsB,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAavE;AAED,MAAM,CAAC,OAAO,WAAW,GAAG,CAAC;IAC3B,kGAAkG;IAClG,KAAK,KAAK,GAAG;QACX,mFAAmF;QACnF,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;QACxD,qEAAqE;QACrE,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAAA;QACnD,uEAAuE;QACvE,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,OAAO,QAAQ,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;KACzE,CAAA;IAED,KAAK,OAAO,GAAG;QACb,4EAA4E;QAC5E,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;QACvB,qDAAqD;QACrD,KAAK,EAAE,KAAK,CAAA;QACZ,qEAAqE;QACrE,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;IAED,KAAK,UAAU,GAAG;QAChB,+FAA+F;QAC/F,IAAI,EAAE,CAAC,GAAG,CAAC,CAAA;QACX,mEAAmE;QACnE,MAAM,EAAE,MAAM,CAAA;QACd,oCAAoC;QACpC,MAAM,EAAE,MAAM,CAAA;KACf,CAAA;CACF"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/** The `tempo-document` command line, which writes starter documents and lints documents through injected file operations. @module */
|
|
2
|
+
import * as Document from '../Document.js';
|
|
3
|
+
import * as Template from './Template.js';
|
|
4
|
+
/** The text that `tempo-document help` prints. */
|
|
5
|
+
export const usage = `Usage: tempo-document <command>
|
|
6
|
+
|
|
7
|
+
Commands:
|
|
8
|
+
init <essay|brief|post> [file] Write a starter document that links this version on jsDelivr.
|
|
9
|
+
lint <file.html...> Check whole documents against the document mode contract.
|
|
10
|
+
`;
|
|
11
|
+
/**
|
|
12
|
+
* Runs one command and returns its exit code and output. `init` writes a starter template to a new
|
|
13
|
+
* file, with its links pinned to `version`, and fails when the file exists. `lint` runs
|
|
14
|
+
* `Document.lint` on each whole page and prints one `file:line: rule message` line per diagnostic.
|
|
15
|
+
* The code is 1 when a command fails or a document has a diagnostic, and 0 otherwise.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* await Cli.run({ args: ['lint', 'brief.html'], files, version: '0.3.17' })
|
|
19
|
+
* // { code: 0, stderr: '', stdout: '1 document passes the document mode lint.\n' }
|
|
20
|
+
*/
|
|
21
|
+
export async function run(options) {
|
|
22
|
+
const { args, files, version } = options;
|
|
23
|
+
const [command, ...operands] = args;
|
|
24
|
+
if (command === 'init')
|
|
25
|
+
return init({ files, operands, version });
|
|
26
|
+
if (command === 'lint')
|
|
27
|
+
return lint({ files, operands });
|
|
28
|
+
if (command === 'help' || command === '--help' || command === '-h')
|
|
29
|
+
return { code: 0, stderr: '', stdout: usage };
|
|
30
|
+
return {
|
|
31
|
+
code: 1,
|
|
32
|
+
stderr: (command ? `Unknown command "${command}".\n\n` : '') + usage,
|
|
33
|
+
stdout: '',
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/** Writes a starter template to a new file. */
|
|
37
|
+
async function init(options) {
|
|
38
|
+
const { files, operands, version } = options;
|
|
39
|
+
const [name, file = `${name}.html`] = operands;
|
|
40
|
+
const template = Document.templates.find((entry) => entry === name);
|
|
41
|
+
if (!template)
|
|
42
|
+
return {
|
|
43
|
+
code: 1,
|
|
44
|
+
stderr: `init needs a template: ${Document.templates.join(', ')}.\n\n${usage}`,
|
|
45
|
+
stdout: '',
|
|
46
|
+
};
|
|
47
|
+
const html = Template.render({ source: await files.template(template), version });
|
|
48
|
+
if (!(await files.create(file, html)))
|
|
49
|
+
return {
|
|
50
|
+
code: 1,
|
|
51
|
+
stderr: `${file} already exists, and init does not overwrite files. Pass a new path.\n`,
|
|
52
|
+
stdout: '',
|
|
53
|
+
};
|
|
54
|
+
return {
|
|
55
|
+
code: 0,
|
|
56
|
+
stderr: '',
|
|
57
|
+
stdout: [
|
|
58
|
+
`Wrote ${file} from the ${template} template, linked to @tempoxyz/ds@${version} on jsDelivr.`,
|
|
59
|
+
'Replace the content that its comments mark, then check it:',
|
|
60
|
+
` npx -p @tempoxyz/ds@${version} tempo-document lint ${file}`,
|
|
61
|
+
'',
|
|
62
|
+
].join('\n'),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
/** Lints each file as a whole page. */
|
|
66
|
+
async function lint(options) {
|
|
67
|
+
const { files, operands } = options;
|
|
68
|
+
if (operands.length === 0)
|
|
69
|
+
return { code: 1, stderr: `lint needs at least one file.\n\n${usage}`, stdout: '' };
|
|
70
|
+
const lines = [];
|
|
71
|
+
const missing = [];
|
|
72
|
+
for (const file of operands) {
|
|
73
|
+
const html = await files.read(file);
|
|
74
|
+
if (html === undefined) {
|
|
75
|
+
missing.push(`${file}: no such file.`);
|
|
76
|
+
continue;
|
|
77
|
+
}
|
|
78
|
+
for (const diagnostic of Document.lint(html, { page: true }))
|
|
79
|
+
lines.push(`${file}:${diagnostic.line}: ${diagnostic.rule} ${diagnostic.message}`);
|
|
80
|
+
}
|
|
81
|
+
const stderr = missing.map((line) => `${line}\n`).join('');
|
|
82
|
+
if (lines.length > 0 || missing.length > 0)
|
|
83
|
+
return { code: 1, stderr, stdout: lines.map((line) => `${line}\n`).join('') };
|
|
84
|
+
const count = operands.length === 1 ? '1 document passes' : `${operands.length} documents pass`;
|
|
85
|
+
return { code: 0, stderr, stdout: `${count} the document mode lint.\n` };
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=Cli.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cli.js","sourceRoot":"","sources":["../../../src/document/internal/Cli.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Pins the links in a starter document template to one published version of the package. @module */
|
|
2
|
+
/**
|
|
3
|
+
* Returns a starter template with each version token replaced, so its stylesheet and script links
|
|
4
|
+
* point at that version on jsDelivr.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* Template.render({ source: '<link href="…/@tempoxyz/ds@{{version}}/…" />', version: '0.3.17' })
|
|
8
|
+
* // '<link href="…/@tempoxyz/ds@0.3.17/…" />'
|
|
9
|
+
*/
|
|
10
|
+
export declare function render(options: render.Options): string;
|
|
11
|
+
export declare namespace render {
|
|
12
|
+
type Options = {
|
|
13
|
+
/** The template source, as `src/document/templates` holds it. */
|
|
14
|
+
source: string;
|
|
15
|
+
/** The package version to pin, such as `0.3.17`. */
|
|
16
|
+
version: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
/** The placeholder that a template source holds in place of the package version. */
|
|
20
|
+
export declare const token = "{{version}}";
|
|
21
|
+
//# sourceMappingURL=Template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Template.d.ts","sourceRoot":"","sources":["../../../src/document/internal/Template.ts"],"names":[],"mappings":"AAAA,qGAAqG;AAErG;;;;;;;GAOG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,GAAG,MAAM,CAEtD;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,KAAK,OAAO,GAAG;QACb,iEAAiE;QACjE,MAAM,EAAE,MAAM,CAAA;QACd,oDAAoD;QACpD,OAAO,EAAE,MAAM,CAAA;KAChB,CAAA;CACF;AAED,oFAAoF;AACpF,eAAO,MAAM,KAAK,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Pins the links in a starter document template to one published version of the package. @module */
|
|
2
|
+
/**
|
|
3
|
+
* Returns a starter template with each version token replaced, so its stylesheet and script links
|
|
4
|
+
* point at that version on jsDelivr.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* Template.render({ source: '<link href="…/@tempoxyz/ds@{{version}}/…" />', version: '0.3.17' })
|
|
8
|
+
* // '<link href="…/@tempoxyz/ds@0.3.17/…" />'
|
|
9
|
+
*/
|
|
10
|
+
export function render(options) {
|
|
11
|
+
return options.source.replaceAll(token, options.version);
|
|
12
|
+
}
|
|
13
|
+
/** The placeholder that a template source holds in place of the package version. */
|
|
14
|
+
export const token = '{{version}}';
|
|
15
|
+
//# sourceMappingURL=Template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Template.js","sourceRoot":"","sources":["../../../src/document/internal/Template.ts"],"names":[],"mappings":"AAAA,qGAAqG;AAErG;;;;;;;GAOG;AACH,MAAM,UAAU,MAAM,CAAC,OAAuB;IAC5C,OAAO,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;AAC1D,CAAC;AAWD,oFAAoF;AACpF,MAAM,CAAC,MAAM,KAAK,GAAG,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"script.d.ts","sourceRoot":"","sources":["../../src/document/script.ts"],"names":[],"mappings":""}
|