@ox-content/vite-plugin 3.0.0-alpha.8 → 3.0.0-beta.0
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/index.cjs +8898 -2585
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2050 -221
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2050 -221
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +8839 -2531
- package/dist/index.mjs.map +1 -1
- package/dist/markdown-tables.cjs +70 -0
- package/dist/markdown-tables.cjs.map +1 -0
- package/dist/markdown-tables.d.cts +22 -0
- package/dist/markdown-tables.d.cts.map +1 -0
- package/dist/markdown-tables.d.mts +22 -0
- package/dist/markdown-tables.d.mts.map +1 -0
- package/dist/markdown-tables.mjs +66 -0
- package/dist/markdown-tables.mjs.map +1 -0
- package/dist/napi.cjs +44 -0
- package/dist/napi.cjs.map +1 -0
- package/dist/napi.mjs +34 -0
- package/dist/napi.mjs.map +1 -0
- package/dist/reader-chrome-client.cjs +103 -0
- package/dist/reader-chrome-client.d.cts +2 -0
- package/dist/reader-chrome-client.d.mts +2 -0
- package/dist/reader-chrome-client.mjs +102 -0
- package/dist/reader-chrome.cjs +109 -0
- package/dist/reader-chrome.cjs.map +1 -0
- package/dist/reader-chrome.d.cts +103 -0
- package/dist/reader-chrome.d.mts +103 -0
- package/dist/reader-chrome.mjs +98 -0
- package/dist/reader-chrome.mjs.map +1 -0
- package/dist/styles/all.css +15 -0
- package/dist/styles/citations.css +62 -0
- package/dist/styles/core.css +2261 -0
- package/dist/styles/github.css +262 -0
- package/dist/styles/graphviz.css +34 -0
- package/dist/styles/magic-links.css +33 -0
- package/dist/styles/markdown-tables.css +16 -0
- package/dist/styles/mermaid.css +151 -0
- package/dist/styles/not-by-ai.css +43 -0
- package/dist/styles/ogp.css +170 -0
- package/dist/styles/reader-chrome.css +163 -0
- package/dist/styles/social.css +678 -0
- package/dist/styles/tabs.css +210 -0
- package/dist/styles/theme-transition.css +37 -0
- package/dist/styles/twitter-full.css +598 -0
- package/dist/styles/youtube.css +87 -0
- package/dist/theme-tokens.cjs +95 -0
- package/dist/theme-tokens.cjs.map +1 -0
- package/dist/theme-tokens.d.cts +72 -0
- package/dist/theme-tokens.d.cts.map +1 -0
- package/dist/theme-tokens.d.mts +72 -0
- package/dist/theme-tokens.d.mts.map +1 -0
- package/dist/theme-tokens.mjs +91 -0
- package/dist/theme-tokens.mjs.map +1 -0
- package/dist/theme-transition-client.cjs +161 -0
- package/dist/theme-transition-client.d.cts +21 -0
- package/dist/theme-transition-client.d.mts +21 -0
- package/dist/theme-transition-client.mjs +160 -0
- package/dist/twitter-client.cjs +84 -0
- package/dist/twitter-client.d.cts +11 -0
- package/dist/twitter-client.d.mts +11 -0
- package/dist/twitter-client.mjs +83 -0
- package/dist/vitepress.cjs +614 -77
- package/dist/vitepress.cjs.map +1 -1
- package/dist/vitepress.mjs +588 -65
- package/dist/vitepress.mjs.map +1 -1
- package/package.json +89 -4
- package/dist/api.cjs +0 -6563
- package/dist/api.cjs.map +0 -1
- package/dist/api.mjs +0 -6456
- package/dist/api.mjs.map +0 -1
- package/dist/interop.cjs +0 -31
- package/dist/interop.cjs.map +0 -1
- package/dist/interop.mjs +0 -26
- package/dist/interop.mjs.map +0 -1
- package/dist/tabs.cjs +0 -98
- package/dist/tabs.cjs.map +0 -1
- package/dist/tabs.mjs +0 -99
- package/dist/tabs.mjs.map +0 -1
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
.ox-code {
|
|
2
|
+
--ox-copy-reserved-inline-size: max(
|
|
3
|
+
2rem,
|
|
4
|
+
calc(var(--ox-copy-control-size, 1.75rem) + var(--ox-copy-inset, 0.5rem) - 0.25rem)
|
|
5
|
+
);
|
|
6
|
+
position: relative;
|
|
7
|
+
margin: 1.25rem 0;
|
|
8
|
+
}
|
|
9
|
+
.content .ox-code > pre,
|
|
10
|
+
.content .ox-code:has(ox-code-play) pre {
|
|
11
|
+
margin: 0;
|
|
12
|
+
padding-inline-end: calc(var(--ox-copy-reserved-inline-size) + 0.45rem);
|
|
13
|
+
}
|
|
14
|
+
.ox-code:has(> ox-code-play) .ox-code-play__toolbar {
|
|
15
|
+
padding-inline-end: calc(var(--ox-copy-reserved-inline-size) + 0.65rem);
|
|
16
|
+
}
|
|
17
|
+
.content .ox-code > pre[data-code-title]::before {
|
|
18
|
+
margin-inline-end: calc(-1 * (var(--ox-copy-reserved-inline-size) + 0.45rem));
|
|
19
|
+
padding-inline-end: calc(var(--ox-copy-reserved-inline-size) + 0.45rem);
|
|
20
|
+
}
|
|
21
|
+
.ox-copy {
|
|
22
|
+
position: absolute;
|
|
23
|
+
inset-block-start: var(--ox-copy-inset, 0.5rem);
|
|
24
|
+
inset-inline-end: var(--ox-copy-inset, 0.5rem);
|
|
25
|
+
z-index: 1;
|
|
26
|
+
display: grid;
|
|
27
|
+
width: var(--ox-copy-control-size, 1.75rem);
|
|
28
|
+
height: var(--ox-copy-control-size, 1.75rem);
|
|
29
|
+
padding: 0;
|
|
30
|
+
place-items: center;
|
|
31
|
+
border: 1px solid transparent;
|
|
32
|
+
border-radius: 4px;
|
|
33
|
+
background: transparent;
|
|
34
|
+
color: color-mix(in srgb, var(--octc-color-code-text) 70%, transparent);
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
opacity: 0.68;
|
|
37
|
+
transition:
|
|
38
|
+
opacity 0.15s ease,
|
|
39
|
+
color 0.15s ease,
|
|
40
|
+
border-color 0.15s ease,
|
|
41
|
+
background-color 0.15s ease;
|
|
42
|
+
}
|
|
43
|
+
.ox-code > .ox-copy {
|
|
44
|
+
z-index: 2;
|
|
45
|
+
min-width: 0;
|
|
46
|
+
min-height: 0;
|
|
47
|
+
width: var(--ox-copy-control-size, 1.75rem);
|
|
48
|
+
height: var(--ox-copy-control-size, 1.75rem);
|
|
49
|
+
padding: 0;
|
|
50
|
+
font: inherit;
|
|
51
|
+
line-height: 1;
|
|
52
|
+
}
|
|
53
|
+
.ox-copy::before {
|
|
54
|
+
content: "";
|
|
55
|
+
width: var(--ox-copy-icon-size, 0.8125rem);
|
|
56
|
+
height: var(--ox-copy-icon-size, 0.8125rem);
|
|
57
|
+
background-color: currentColor;
|
|
58
|
+
-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='9' width='11' height='11' rx='2'/><path d='M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3'/></svg>")
|
|
59
|
+
center / contain no-repeat;
|
|
60
|
+
mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='9' y='9' width='11' height='11' rx='2'/><path d='M15 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h3'/></svg>")
|
|
61
|
+
center / contain no-repeat;
|
|
62
|
+
}
|
|
63
|
+
.ox-copy:hover,
|
|
64
|
+
.ox-copy:focus-visible {
|
|
65
|
+
color: var(--octc-color-code-text);
|
|
66
|
+
border-color: color-mix(
|
|
67
|
+
in srgb,
|
|
68
|
+
var(--octc-color-primary) 42%,
|
|
69
|
+
var(--octc-color-code-frame-border)
|
|
70
|
+
);
|
|
71
|
+
background: color-mix(in srgb, var(--octc-color-code-bg) 82%, var(--octc-color-bg) 18%);
|
|
72
|
+
opacity: 0.96;
|
|
73
|
+
}
|
|
74
|
+
.ox-copy[data-copy-state="copied"] {
|
|
75
|
+
color: var(--octc-color-primary);
|
|
76
|
+
border-color: color-mix(in srgb, var(--octc-color-primary) 36%, transparent);
|
|
77
|
+
background: color-mix(in srgb, var(--octc-color-code-bg) 86%, var(--octc-color-bg) 14%);
|
|
78
|
+
opacity: 0.96;
|
|
79
|
+
}
|
|
80
|
+
.ox-copy[data-copy-state="copied"]::before {
|
|
81
|
+
-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 4 4L19 6'/></svg>");
|
|
82
|
+
mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 4 4L19 6'/></svg>");
|
|
83
|
+
}
|
|
84
|
+
.ox-copy[data-copy-state="failed"] {
|
|
85
|
+
color: var(--octc-color-code-line-error-border);
|
|
86
|
+
}
|
|
87
|
+
.ox-copy-status {
|
|
88
|
+
position: absolute;
|
|
89
|
+
width: 1px;
|
|
90
|
+
height: 1px;
|
|
91
|
+
padding: 0;
|
|
92
|
+
margin: -1px;
|
|
93
|
+
overflow: hidden;
|
|
94
|
+
clip: rect(0, 0, 0, 0);
|
|
95
|
+
clip-path: inset(50%);
|
|
96
|
+
white-space: nowrap;
|
|
97
|
+
border: 0;
|
|
98
|
+
}
|
|
99
|
+
@media (any-hover: hover) and (any-pointer: fine) {
|
|
100
|
+
.ox-copy {
|
|
101
|
+
opacity: 0;
|
|
102
|
+
pointer-events: none;
|
|
103
|
+
}
|
|
104
|
+
.ox-code:hover > .ox-copy,
|
|
105
|
+
.ox-code:focus-within > .ox-copy {
|
|
106
|
+
opacity: 0.86;
|
|
107
|
+
pointer-events: auto;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
.ox-external {
|
|
111
|
+
text-decoration-thickness: from-font;
|
|
112
|
+
}
|
|
113
|
+
.ox-external-icon {
|
|
114
|
+
display: inline-block;
|
|
115
|
+
width: 0.7em;
|
|
116
|
+
height: 0.7em;
|
|
117
|
+
margin-inline-start: 0.2em;
|
|
118
|
+
vertical-align: middle;
|
|
119
|
+
background-color: currentColor;
|
|
120
|
+
-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/><polyline points='15 3 21 3 21 9'/><line x1='10' y1='14' x2='21' y2='3'/></svg>")
|
|
121
|
+
center / contain no-repeat;
|
|
122
|
+
mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/><polyline points='15 3 21 3 21 9'/><line x1='10' y1='14' x2='21' y2='3'/></svg>")
|
|
123
|
+
center / contain no-repeat;
|
|
124
|
+
}
|
|
125
|
+
.content .ox-magic-link .ox-external-icon {
|
|
126
|
+
width: 0.62em;
|
|
127
|
+
height: 0.62em;
|
|
128
|
+
margin-inline-start: 0.02em;
|
|
129
|
+
opacity: 0.72;
|
|
130
|
+
flex: 0 0 auto;
|
|
131
|
+
}
|
|
132
|
+
.ox-back-to-top {
|
|
133
|
+
position: fixed;
|
|
134
|
+
right: 1.25rem;
|
|
135
|
+
bottom: 5.5rem;
|
|
136
|
+
z-index: 8;
|
|
137
|
+
padding: 0.45rem 0.75rem;
|
|
138
|
+
border: 1px solid color-mix(in srgb, var(--octc-color-border) 80%, transparent);
|
|
139
|
+
border-radius: 999px;
|
|
140
|
+
background: color-mix(in srgb, var(--octc-color-bg) 92%, transparent);
|
|
141
|
+
color: var(--octc-color-text);
|
|
142
|
+
font: inherit;
|
|
143
|
+
font-size: 0.75rem;
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
transition:
|
|
146
|
+
opacity 0.2s ease,
|
|
147
|
+
transform 0.2s ease;
|
|
148
|
+
}
|
|
149
|
+
.ox-back-to-top[hidden] {
|
|
150
|
+
display: none;
|
|
151
|
+
}
|
|
152
|
+
.ox-back-to-top:hover,
|
|
153
|
+
.ox-back-to-top:focus-visible {
|
|
154
|
+
color: var(--octc-color-primary);
|
|
155
|
+
border-color: var(--octc-color-primary);
|
|
156
|
+
}
|
|
157
|
+
@media (prefers-reduced-motion: reduce) {
|
|
158
|
+
.ox-reader-chrome--reduced-motion .ox-back-to-top,
|
|
159
|
+
.ox-back-to-top,
|
|
160
|
+
.ox-copy {
|
|
161
|
+
transition: none;
|
|
162
|
+
}
|
|
163
|
+
}
|