@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,598 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Host-prose isolation for full-fidelity Tweet cards.
|
|
3
|
+
*
|
|
4
|
+
* The full card replaces native elements — a `<figure>` root, `<img>`
|
|
5
|
+
* avatars and media, a `<blockquote>` for the quoted post — and an article
|
|
6
|
+
* stylesheet such as `@tailwindcss/typography` styles those by element. The
|
|
7
|
+
* component rules below the isolation block win wherever they set a
|
|
8
|
+
* property; this file covers the properties they never set, which is how a
|
|
9
|
+
* `.prose` article was adding image margins to avatars and quotation
|
|
10
|
+
* typography to the quoted post.
|
|
11
|
+
*
|
|
12
|
+
* Every selector doubles the root class (`.ox-tweet.ox-tweet--full`) so it
|
|
13
|
+
* outranks `.prose <element>` regardless of which stylesheet the host
|
|
14
|
+
* imports last. Generated quotes need a longer chain still: Tailwind writes
|
|
15
|
+
* them at `.prose blockquote p:first-of-type::before`.
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
/*
|
|
19
|
+
* The card root is a `<figure>`, and the component sets its margin at one
|
|
20
|
+
* class of specificity — which `.prose figure` outranks. Restate it here
|
|
21
|
+
* through the same custom property, so a host that overrides the property
|
|
22
|
+
* still gets what it asked for.
|
|
23
|
+
*/
|
|
24
|
+
.ox-tweet.ox-tweet--full {
|
|
25
|
+
margin: var(--ox-tweet-container-margin);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.ox-tweet.ox-tweet--full * {
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ox-tweet.ox-tweet--full :where(img, video, figure, picture, svg) {
|
|
33
|
+
margin: 0;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.ox-tweet.ox-tweet--full :where(p, ul, ol, li, dl, dd, dt, hr, h1, h2, h3, h4, h5, h6) {
|
|
37
|
+
margin: 0;
|
|
38
|
+
padding: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.ox-tweet.ox-tweet--full :where(ul, ol) {
|
|
42
|
+
list-style: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ox-tweet.ox-tweet--full :where(a) {
|
|
46
|
+
padding: 0;
|
|
47
|
+
font-size: inherit;
|
|
48
|
+
font-weight: inherit;
|
|
49
|
+
line-height: inherit;
|
|
50
|
+
text-decoration: none;
|
|
51
|
+
background: transparent;
|
|
52
|
+
border: 0;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ox-tweet.ox-tweet--full :where(code, pre, kbd, samp) {
|
|
56
|
+
padding: 0;
|
|
57
|
+
font-size: inherit;
|
|
58
|
+
font-family: inherit;
|
|
59
|
+
background: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.ox-tweet.ox-tweet--full :where(code)::before,
|
|
63
|
+
.ox-tweet.ox-tweet--full :where(code)::after {
|
|
64
|
+
content: none;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* The quoted post is a `<blockquote>`, which prose styles the hardest. */
|
|
68
|
+
.ox-tweet.ox-tweet--full .ox-tweet__quote {
|
|
69
|
+
font-style: normal;
|
|
70
|
+
font-weight: 400;
|
|
71
|
+
color: inherit;
|
|
72
|
+
quotes: none;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.ox-tweet.ox-tweet--full .ox-tweet__quote :where(p)::before,
|
|
76
|
+
.ox-tweet.ox-tweet--full .ox-tweet__quote :where(p)::after,
|
|
77
|
+
.ox-tweet.ox-tweet--full .ox-tweet__quote :where(p):first-of-type::before,
|
|
78
|
+
.ox-tweet.ox-tweet--full .ox-tweet__quote :where(p):last-of-type::after {
|
|
79
|
+
content: none;
|
|
80
|
+
}
|
|
81
|
+
/*
|
|
82
|
+
* Opt-in full-card chrome for Twitter/X embeds.
|
|
83
|
+
* Loaded only when a page has .ox-tweet--full.
|
|
84
|
+
*
|
|
85
|
+
* Visual tokens and control icons follow the theme contract of:
|
|
86
|
+
*
|
|
87
|
+
* react-tweet — https://github.com/vercel/react-tweet
|
|
88
|
+
* Copyright (c) 2023 Luis Alvarez
|
|
89
|
+
*
|
|
90
|
+
* sveltweet — https://github.com/ryoppippi/sveltweet
|
|
91
|
+
* Copyright (c) 2024 ryoppippi
|
|
92
|
+
*
|
|
93
|
+
* Both are MIT-licensed. The permission notice is included because this
|
|
94
|
+
* stylesheet is a substantial portion of that visual contract. Ox Content
|
|
95
|
+
* does not vendor their JavaScript, React, or Svelte components.
|
|
96
|
+
*
|
|
97
|
+
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
98
|
+
* copy of this software and associated documentation files (the
|
|
99
|
+
* "Software"), to deal in the Software without restriction, including
|
|
100
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
101
|
+
* distribute, sublicense, and/or sell copies of the Software, and to
|
|
102
|
+
* permit persons to whom the Software is furnished to do so, subject to
|
|
103
|
+
* the following conditions:
|
|
104
|
+
*
|
|
105
|
+
* The above copyright notice and this permission notice shall be included
|
|
106
|
+
* in all copies or substantial portions of the Software.
|
|
107
|
+
*
|
|
108
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
109
|
+
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
110
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
111
|
+
* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
112
|
+
* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
113
|
+
* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
114
|
+
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
115
|
+
*
|
|
116
|
+
* X, Twitter, and related marks are trademarks of their respective owners.
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
.ox-tweet--full {
|
|
120
|
+
--ox-tweet-container-margin: 1.5rem 0;
|
|
121
|
+
--ox-tweet-header-font-size: 0.9375rem;
|
|
122
|
+
--ox-tweet-body-font-size: 1.25rem;
|
|
123
|
+
--ox-tweet-body-line-height: 1.5rem;
|
|
124
|
+
--ox-tweet-quoted-body-font-size: 0.938rem;
|
|
125
|
+
--ox-tweet-info-font-size: 0.9375rem;
|
|
126
|
+
--ox-tweet-actions-font-size: 1rem;
|
|
127
|
+
--ox-tweet-actions-line-height: 1.25rem;
|
|
128
|
+
--ox-tweet-actions-font-weight: 700;
|
|
129
|
+
--ox-tweet-actions-icon-size: 1.25em;
|
|
130
|
+
--ox-tweet-actions-icon-wrapper-size: 2rem;
|
|
131
|
+
--ox-tweet-replies-font-size: 0.875rem;
|
|
132
|
+
--ox-tweet-replies-line-height: 1rem;
|
|
133
|
+
--ox-tweet-replies-font-weight: 700;
|
|
134
|
+
--ox-tweet-icon-size: 1.25em;
|
|
135
|
+
--ox-tweet-border: 1px solid rgb(207, 217, 222);
|
|
136
|
+
--ox-tweet-font-color: rgb(15, 20, 25);
|
|
137
|
+
--ox-tweet-font-color-secondary: rgb(83, 100, 113);
|
|
138
|
+
--ox-tweet-bg: #fff;
|
|
139
|
+
--ox-tweet-bg-hover: rgb(247, 249, 249);
|
|
140
|
+
--ox-tweet-quote-hover: rgba(0, 0, 0, 0.03);
|
|
141
|
+
--ox-tweet-color-blue: rgb(29, 155, 240);
|
|
142
|
+
--ox-tweet-color-blue-text: rgb(0, 111, 214);
|
|
143
|
+
--ox-tweet-color-blue-hover: rgba(0, 111, 214, 0.1);
|
|
144
|
+
--ox-tweet-color-red: rgb(249, 24, 128);
|
|
145
|
+
--ox-tweet-color-red-hover: rgba(249, 24, 128, 0.1);
|
|
146
|
+
--ox-tweet-color-green: rgb(0, 186, 124);
|
|
147
|
+
--ox-tweet-color-green-hover: rgba(0, 186, 124, 0.1);
|
|
148
|
+
--ox-tweet-verified-blue: var(--ox-tweet-color-blue);
|
|
149
|
+
--ox-tweet-verified-gold: rgb(226, 179, 64);
|
|
150
|
+
--ox-tweet-verified-gray: rgb(130, 154, 171);
|
|
151
|
+
--ox-tweet-icon-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.746l7.727-8.83L1.254 2.25H8.08l4.257 5.622L18.244 2.25zm-1.161 17.52h1.833L7.084 4.126H5.117z'/%3E%3C/svg%3E");
|
|
152
|
+
--ox-tweet-icon-like: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M20.884 13.19c-1.351 2.48-4.001 5.12-8.379 7.67l-.503.3-.504-.3c-4.379-2.55-7.029-5.19-8.382-7.67-1.36-2.5-1.41-4.86-.514-6.67.887-1.79 2.647-2.91 4.601-3.01 1.651-.09 3.368.56 4.798 2.01 1.429-1.45 3.146-2.1 4.796-2.01 1.954.1 3.714 1.22 4.601 3.01.896 1.81.846 4.17-.514 6.67z'/%3E%3C/svg%3E");
|
|
153
|
+
--ox-tweet-icon-reply: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M1.751 10c0-4.42 3.584-8 8.005-8h4.366c4.49 0 8.129 3.64 8.129 8.13 0 2.96-1.607 5.68-4.196 7.11l-8.054 4.46v-3.69h-.067c-4.49.1-8.183-3.51-8.183-8.01z'/%3E%3C/svg%3E");
|
|
154
|
+
--ox-tweet-icon-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M18.36 5.64c-1.95-1.96-5.11-1.96-7.07 0L9.88 7.05 8.46 5.64l1.42-1.42c2.73-2.73 7.16-2.73 9.9 0 2.73 2.74 2.73 7.17 0 9.9l-1.42 1.42-1.41-1.42 1.41-1.41c1.96-1.96 1.96-5.12 0-7.07zm-2.12 3.53l-7.07 7.07-1.41-1.41 7.07-7.07 1.41 1.41zm-12.02.71l1.42-1.42 1.41 1.42-1.41 1.41c-1.96 1.96-1.96 5.12 0 7.07 1.95 1.96 5.11 1.96 7.07 0l1.41-1.41 1.42 1.41-1.42 1.42c-2.73 2.73-7.16 2.73-9.9 0-2.73-2.74-2.73-7.17 0-9.9z'/%3E%3C/svg%3E");
|
|
155
|
+
--ox-tweet-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9.64 18.952l-5.55-4.861 1.317-1.504 3.951 3.459 8.459-10.948L19.4 6.32 9.64 18.952z'/%3E%3C/svg%3E");
|
|
156
|
+
--ox-tweet-icon-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M13.5 8.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5S11.17 7 12 7s1.5.67 1.5 1.5zM13 17v-5h-2v5h2zm-1 5.25c5.66 0 10.25-4.59 10.25-10.25S17.66 1.75 12 1.75 1.75 6.34 1.75 12 6.34 22.25 12 22.25zM20.25 12c0 4.56-3.69 8.25-8.25 8.25S3.75 16.56 3.75 12 7.44 3.75 12 3.75s8.25 3.69 8.25 8.25z'/%3E%3C/svg%3E");
|
|
157
|
+
--ox-tweet-icon-badge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M22.25 12c0-1.43-.88-2.67-2.19-3.34.46-1.39.2-2.9-.81-3.91s-2.52-1.27-3.91-.81c-.66-1.31-1.91-2.19-3.34-2.19s-2.67.88-3.34 2.19c-1.4-.46-2.91-.2-3.91.81s-1.27 2.52-.81 3.91c-1.31.67-2.19 1.91-2.19 3.34s.88 2.67 2.19 3.34c-.46 1.39-.2 2.9.81 3.91s2.52 1.27 3.91.81c.67 1.31 1.91 2.19 3.34 2.19s2.67-.88 3.34-2.19c1.4.46 2.91.2 3.91-.81s1.27-2.52.81-3.91c1.31-.67 2.19-1.91 2.19-3.34zm-11.71 4.2L6.8 12.46l1.41-1.42 2.26 2.26 4.8-5.23 1.47 1.36-6.2 6.77z'/%3E%3C/svg%3E");
|
|
158
|
+
box-sizing: border-box;
|
|
159
|
+
width: 100%;
|
|
160
|
+
max-width: 550px;
|
|
161
|
+
min-width: 0;
|
|
162
|
+
margin: var(--ox-tweet-container-margin);
|
|
163
|
+
padding: 0.75rem 1rem;
|
|
164
|
+
overflow: hidden;
|
|
165
|
+
color: var(--ox-tweet-font-color);
|
|
166
|
+
border: var(--ox-tweet-border);
|
|
167
|
+
border-radius: 12px;
|
|
168
|
+
background: var(--ox-tweet-bg);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
[data-theme="dark"] .ox-tweet--full,
|
|
172
|
+
.dark .ox-tweet--full {
|
|
173
|
+
--ox-tweet-border: 1px solid rgb(66, 83, 100);
|
|
174
|
+
--ox-tweet-font-color: rgb(247, 249, 249);
|
|
175
|
+
--ox-tweet-font-color-secondary: rgb(139, 152, 165);
|
|
176
|
+
--ox-tweet-bg: rgb(21, 32, 43);
|
|
177
|
+
--ox-tweet-bg-hover: rgb(30, 39, 50);
|
|
178
|
+
--ox-tweet-quote-hover: rgba(255, 255, 255, 0.03);
|
|
179
|
+
--ox-tweet-color-blue-text: rgb(107, 201, 251);
|
|
180
|
+
--ox-tweet-color-blue-hover: rgba(107, 201, 251, 0.1);
|
|
181
|
+
--ox-tweet-verified-blue: #fff;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
@media (prefers-color-scheme: dark) {
|
|
185
|
+
:root:not([data-theme="light"]):not(.light) .ox-tweet--full {
|
|
186
|
+
--ox-tweet-border: 1px solid rgb(66, 83, 100);
|
|
187
|
+
--ox-tweet-font-color: rgb(247, 249, 249);
|
|
188
|
+
--ox-tweet-font-color-secondary: rgb(139, 152, 165);
|
|
189
|
+
--ox-tweet-bg: rgb(21, 32, 43);
|
|
190
|
+
--ox-tweet-bg-hover: rgb(30, 39, 50);
|
|
191
|
+
--ox-tweet-quote-hover: rgba(255, 255, 255, 0.03);
|
|
192
|
+
--ox-tweet-color-blue-text: rgb(107, 201, 251);
|
|
193
|
+
--ox-tweet-color-blue-hover: rgba(107, 201, 251, 0.1);
|
|
194
|
+
--ox-tweet-verified-blue: #fff;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.ox-tweet--full .ox-tweet__header {
|
|
199
|
+
display: flex;
|
|
200
|
+
align-items: center;
|
|
201
|
+
gap: 0;
|
|
202
|
+
margin: 0 0 0.75rem;
|
|
203
|
+
overflow: hidden;
|
|
204
|
+
font-size: var(--ox-tweet-header-font-size);
|
|
205
|
+
line-height: 1.25rem;
|
|
206
|
+
white-space: nowrap;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.ox-tweet--full .ox-tweet__avatar-link {
|
|
210
|
+
flex: 0 0 48px;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.ox-tweet--full .ox-tweet__avatar {
|
|
214
|
+
width: 48px;
|
|
215
|
+
height: 48px;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.ox-tweet--full .ox-tweet__author {
|
|
219
|
+
min-width: 0;
|
|
220
|
+
margin: 0 0.5rem;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.ox-tweet--full .ox-tweet__author-name,
|
|
224
|
+
.ox-tweet--full .ox-tweet__author-handle,
|
|
225
|
+
.ox-tweet--full .ox-tweet__follow {
|
|
226
|
+
text-decoration: none;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.ox-tweet--full .ox-tweet__author-name {
|
|
230
|
+
display: flex;
|
|
231
|
+
align-items: center;
|
|
232
|
+
gap: 0.2rem;
|
|
233
|
+
overflow: hidden;
|
|
234
|
+
font-weight: 700;
|
|
235
|
+
color: inherit;
|
|
236
|
+
text-overflow: ellipsis;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.ox-tweet--full .ox-tweet__author-name:hover,
|
|
240
|
+
.ox-tweet--full .ox-tweet__follow:hover {
|
|
241
|
+
text-decoration: underline;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.ox-tweet--full .ox-tweet__author-meta {
|
|
245
|
+
display: flex;
|
|
246
|
+
min-width: 0;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.ox-tweet--full .ox-tweet__author-handle {
|
|
250
|
+
overflow: hidden;
|
|
251
|
+
color: var(--ox-tweet-font-color-secondary);
|
|
252
|
+
text-overflow: ellipsis;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
.ox-tweet--full .ox-tweet__sep {
|
|
256
|
+
padding: 0 0.25rem;
|
|
257
|
+
color: var(--ox-tweet-font-color-secondary);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.ox-tweet--full .ox-tweet__follow {
|
|
261
|
+
font-weight: 700;
|
|
262
|
+
color: var(--ox-tweet-color-blue-text);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
.ox-tweet--full .ox-tweet__brand {
|
|
266
|
+
margin-inline-start: auto;
|
|
267
|
+
color: inherit;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.ox-tweet--full .ox-tweet__badge,
|
|
271
|
+
.ox-tweet--full .ox-tweet__icon {
|
|
272
|
+
display: inline-block;
|
|
273
|
+
flex: 0 0 auto;
|
|
274
|
+
width: 1.125em;
|
|
275
|
+
height: 1.125em;
|
|
276
|
+
background: currentColor;
|
|
277
|
+
-webkit-mask: var(--ox-tweet-icon-badge) center / contain no-repeat;
|
|
278
|
+
mask: var(--ox-tweet-icon-badge) center / contain no-repeat;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.ox-tweet--full .ox-tweet__icon {
|
|
282
|
+
width: var(--ox-tweet-icon-size);
|
|
283
|
+
height: var(--ox-tweet-icon-size);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.ox-tweet--full .ox-tweet__badge--blue {
|
|
287
|
+
color: var(--ox-tweet-verified-blue);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.ox-tweet--full .ox-tweet__badge--gold {
|
|
291
|
+
color: var(--ox-tweet-verified-gold);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
.ox-tweet--full .ox-tweet__badge--gray {
|
|
295
|
+
color: var(--ox-tweet-verified-gray);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.ox-tweet--full .ox-tweet__icon--x {
|
|
299
|
+
-webkit-mask-image: var(--ox-tweet-icon-x);
|
|
300
|
+
mask-image: var(--ox-tweet-icon-x);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.ox-tweet--full .ox-tweet__icon--like {
|
|
304
|
+
color: var(--ox-tweet-color-red);
|
|
305
|
+
-webkit-mask-image: var(--ox-tweet-icon-like);
|
|
306
|
+
mask-image: var(--ox-tweet-icon-like);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.ox-tweet--full .ox-tweet__icon--reply {
|
|
310
|
+
color: var(--ox-tweet-color-blue);
|
|
311
|
+
-webkit-mask-image: var(--ox-tweet-icon-reply);
|
|
312
|
+
mask-image: var(--ox-tweet-icon-reply);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
.ox-tweet--full .ox-tweet__icon--copy {
|
|
316
|
+
-webkit-mask-image: var(--ox-tweet-icon-copy);
|
|
317
|
+
mask-image: var(--ox-tweet-icon-copy);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.ox-tweet--full .ox-tweet__action--copy[data-ox-tweet-copied] .ox-tweet__icon--copy {
|
|
321
|
+
-webkit-mask-image: var(--ox-tweet-icon-check);
|
|
322
|
+
mask-image: var(--ox-tweet-icon-check);
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.ox-tweet--full .ox-tweet__icon--info {
|
|
326
|
+
-webkit-mask-image: var(--ox-tweet-icon-info);
|
|
327
|
+
mask-image: var(--ox-tweet-icon-info);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
.ox-tweet--full .ox-tweet__reply {
|
|
331
|
+
margin: 0 0 0.25rem;
|
|
332
|
+
font-size: var(--ox-tweet-header-font-size);
|
|
333
|
+
line-height: 1.25rem;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
.ox-tweet--full .ox-tweet__body {
|
|
337
|
+
margin: 0;
|
|
338
|
+
font-size: var(--ox-tweet-body-font-size);
|
|
339
|
+
font-weight: 400;
|
|
340
|
+
line-height: var(--ox-tweet-body-line-height);
|
|
341
|
+
overflow-wrap: break-word;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.ox-tweet--full .ox-tweet__body a,
|
|
345
|
+
.ox-tweet--full .ox-tweet__quote-body a {
|
|
346
|
+
color: var(--ox-tweet-color-blue-text);
|
|
347
|
+
text-decoration: none;
|
|
348
|
+
}
|
|
349
|
+
.ox-tweet--full .ox-tweet__media {
|
|
350
|
+
display: grid;
|
|
351
|
+
grid-template-columns: 1fr;
|
|
352
|
+
gap: 2px;
|
|
353
|
+
margin: 0.75rem 0 0;
|
|
354
|
+
overflow: hidden;
|
|
355
|
+
border: var(--ox-tweet-border);
|
|
356
|
+
border-radius: 12px;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.ox-tweet--full .ox-tweet__media[data-count="2"],
|
|
360
|
+
.ox-tweet--full .ox-tweet__media[data-count="3"],
|
|
361
|
+
.ox-tweet--full .ox-tweet__media[data-count="4"] {
|
|
362
|
+
grid-template-columns: 1fr 1fr;
|
|
363
|
+
aspect-ratio: 16 / 9;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.ox-tweet--full .ox-tweet__media[data-count="3"],
|
|
367
|
+
.ox-tweet--full .ox-tweet__media[data-count="4"] {
|
|
368
|
+
grid-template-rows: 1fr 1fr;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.ox-tweet--full .ox-tweet__media[data-count="3"] > :first-child {
|
|
372
|
+
grid-row: span 2;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.ox-tweet--full .ox-tweet__media-item {
|
|
376
|
+
width: 100%;
|
|
377
|
+
height: auto;
|
|
378
|
+
border: 0;
|
|
379
|
+
border-radius: 0;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.ox-tweet--full .ox-tweet__media[data-count="2"] .ox-tweet__media-item,
|
|
383
|
+
.ox-tweet--full .ox-tweet__media[data-count="3"] .ox-tweet__media-item,
|
|
384
|
+
.ox-tweet--full .ox-tweet__media[data-count="4"] .ox-tweet__media-item {
|
|
385
|
+
height: 100%;
|
|
386
|
+
object-fit: cover;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.ox-tweet--full .ox-tweet__media-fallback {
|
|
390
|
+
position: relative;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.ox-tweet--full .ox-tweet__watch {
|
|
394
|
+
margin-top: 0.375rem;
|
|
395
|
+
font-size: 0.8125rem;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.ox-tweet--full .ox-tweet__quote {
|
|
399
|
+
margin: 0.75rem 0 0;
|
|
400
|
+
padding: 0.75rem;
|
|
401
|
+
overflow: hidden;
|
|
402
|
+
border: var(--ox-tweet-border);
|
|
403
|
+
border-radius: 12px;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.ox-tweet--full .ox-tweet__quote-header {
|
|
407
|
+
margin: 0;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
.ox-tweet--full .ox-tweet__quote .ox-tweet__avatar {
|
|
411
|
+
width: 20px;
|
|
412
|
+
height: 20px;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
.ox-tweet--full .ox-tweet__quote-body {
|
|
416
|
+
margin: 0.25rem 0 0;
|
|
417
|
+
font-size: var(--ox-tweet-quoted-body-font-size);
|
|
418
|
+
line-height: 1.25rem;
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.ox-tweet--full .ox-tweet__quote .ox-tweet__media {
|
|
422
|
+
margin-top: 0.75rem;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.ox-tweet--full .ox-tweet__info,
|
|
426
|
+
.ox-tweet--full .ox-tweet__metrics,
|
|
427
|
+
.ox-tweet--full .ox-tweet__actions {
|
|
428
|
+
display: flex;
|
|
429
|
+
align-items: center;
|
|
430
|
+
margin-top: 0.125rem;
|
|
431
|
+
overflow: hidden;
|
|
432
|
+
color: var(--ox-tweet-font-color-secondary);
|
|
433
|
+
white-space: nowrap;
|
|
434
|
+
text-overflow: ellipsis;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.ox-tweet--full .ox-tweet__actions {
|
|
438
|
+
padding-top: 0.25rem;
|
|
439
|
+
margin-top: 0.25rem;
|
|
440
|
+
border-top: var(--ox-tweet-border);
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
.ox-tweet--full .ox-tweet__metrics {
|
|
444
|
+
gap: 0.75rem;
|
|
445
|
+
font-size: var(--ox-tweet-actions-font-size);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.ox-tweet--full .ox-tweet__permalink,
|
|
449
|
+
.ox-tweet--full .ox-tweet__info-help,
|
|
450
|
+
.ox-tweet--full .ox-tweet__action,
|
|
451
|
+
.ox-tweet--full .ox-tweet__replies-link {
|
|
452
|
+
color: inherit;
|
|
453
|
+
text-decoration: none;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.ox-tweet--full .ox-tweet__permalink {
|
|
457
|
+
font-size: var(--ox-tweet-info-font-size);
|
|
458
|
+
line-height: 1.25rem;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
.ox-tweet--full .ox-tweet__permalink:hover {
|
|
462
|
+
text-decoration: underline;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
.ox-tweet--full .ox-tweet__info-help {
|
|
466
|
+
display: flex;
|
|
467
|
+
align-items: center;
|
|
468
|
+
justify-content: center;
|
|
469
|
+
width: 2em;
|
|
470
|
+
height: 2em;
|
|
471
|
+
margin-left: auto;
|
|
472
|
+
border-radius: 9999px;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
.ox-tweet--full .ox-tweet__action {
|
|
476
|
+
display: flex;
|
|
477
|
+
align-items: center;
|
|
478
|
+
min-width: var(--ox-tweet-actions-icon-wrapper-size);
|
|
479
|
+
min-height: var(--ox-tweet-actions-icon-wrapper-size);
|
|
480
|
+
padding: 0;
|
|
481
|
+
margin: 0 1.25rem 0 0;
|
|
482
|
+
font-size: var(--ox-tweet-actions-font-size);
|
|
483
|
+
font-weight: var(--ox-tweet-actions-font-weight);
|
|
484
|
+
line-height: var(--ox-tweet-actions-line-height);
|
|
485
|
+
background: transparent;
|
|
486
|
+
border: 0;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.ox-tweet--full .ox-tweet__action-icon {
|
|
490
|
+
box-sizing: border-box;
|
|
491
|
+
display: flex;
|
|
492
|
+
flex: 0 0 var(--ox-tweet-actions-icon-wrapper-size);
|
|
493
|
+
align-items: center;
|
|
494
|
+
justify-content: center;
|
|
495
|
+
width: var(--ox-tweet-actions-icon-wrapper-size);
|
|
496
|
+
height: var(--ox-tweet-actions-icon-wrapper-size);
|
|
497
|
+
margin: 0 0.25rem 0 -0.25rem;
|
|
498
|
+
border-radius: 9999px;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.ox-tweet--full .ox-tweet__action .ox-tweet__icon {
|
|
502
|
+
width: var(--ox-tweet-actions-icon-size);
|
|
503
|
+
height: var(--ox-tweet-actions-icon-size);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.ox-tweet--full .ox-tweet__action--like:hover .ox-tweet__action-text {
|
|
507
|
+
color: var(--ox-tweet-color-red);
|
|
508
|
+
text-decoration-line: underline;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.ox-tweet--full .ox-tweet__action--like:hover .ox-tweet__action-icon {
|
|
512
|
+
background-color: var(--ox-tweet-color-red-hover);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.ox-tweet--full .ox-tweet__action--reply:hover .ox-tweet__action-text {
|
|
516
|
+
color: var(--ox-tweet-color-blue-text);
|
|
517
|
+
text-decoration-line: underline;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.ox-tweet--full .ox-tweet__action--reply:hover .ox-tweet__action-icon {
|
|
521
|
+
background-color: var(--ox-tweet-color-blue-hover);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
.ox-tweet--full .ox-tweet__action--copy:hover,
|
|
525
|
+
.ox-tweet--full .ox-tweet__action--copy[data-ox-tweet-copied] {
|
|
526
|
+
color: var(--ox-tweet-color-green);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.ox-tweet--full .ox-tweet__action--copy:hover .ox-tweet__action-icon,
|
|
530
|
+
.ox-tweet--full .ox-tweet__action--copy[data-ox-tweet-copied] .ox-tweet__action-icon {
|
|
531
|
+
background-color: var(--ox-tweet-color-green-hover);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.ox-tweet--full .ox-tweet__action--copy:hover .ox-tweet__action-text,
|
|
535
|
+
.ox-tweet--full .ox-tweet__action--copy[data-ox-tweet-copied] .ox-tweet__action-text {
|
|
536
|
+
color: var(--ox-tweet-color-green);
|
|
537
|
+
text-decoration-line: underline;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.ox-tweet--full .ox-tweet__copied-text {
|
|
541
|
+
display: none;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.ox-tweet--full .ox-tweet__copy-status {
|
|
545
|
+
position: absolute;
|
|
546
|
+
width: 1px;
|
|
547
|
+
height: 1px;
|
|
548
|
+
padding: 0;
|
|
549
|
+
margin: -1px;
|
|
550
|
+
overflow: hidden;
|
|
551
|
+
clip: rect(0, 0, 0, 0);
|
|
552
|
+
white-space: nowrap;
|
|
553
|
+
border: 0;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
.ox-tweet--full .ox-tweet__action--copy[data-ox-tweet-copied] .ox-tweet__copy-text {
|
|
557
|
+
display: none;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.ox-tweet--full .ox-tweet__action--copy[data-ox-tweet-copied] .ox-tweet__copied-text {
|
|
561
|
+
display: inline;
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.ox-tweet--full .ox-tweet__replies {
|
|
565
|
+
padding: 0.25rem 0;
|
|
566
|
+
margin: 0;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.ox-tweet--full .ox-tweet__replies-link {
|
|
570
|
+
box-sizing: border-box;
|
|
571
|
+
display: flex;
|
|
572
|
+
align-items: center;
|
|
573
|
+
justify-content: center;
|
|
574
|
+
width: 100%;
|
|
575
|
+
min-height: 32px;
|
|
576
|
+
padding: 0 1rem;
|
|
577
|
+
font-size: var(--ox-tweet-replies-font-size);
|
|
578
|
+
font-weight: var(--ox-tweet-replies-font-weight);
|
|
579
|
+
line-height: var(--ox-tweet-replies-line-height);
|
|
580
|
+
color: var(--ox-tweet-color-blue-text);
|
|
581
|
+
border: var(--ox-tweet-border);
|
|
582
|
+
border-radius: 9999px;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.ox-tweet--full .ox-tweet__replies-link:hover {
|
|
586
|
+
background-color: var(--ox-tweet-color-blue-hover);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
@media (max-width: 400px) {
|
|
590
|
+
.ox-tweet--full {
|
|
591
|
+
padding: 0.625rem 0.75rem;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
.ox-tweet--full .ox-tweet__follow,
|
|
595
|
+
.ox-tweet--full .ox-tweet__sep {
|
|
596
|
+
display: none;
|
|
597
|
+
}
|
|
598
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* ox-content YouTube Plugin - iframe styles */
|
|
2
|
+
|
|
3
|
+
.ox-youtube {
|
|
4
|
+
margin: 1.5rem 0;
|
|
5
|
+
position: relative;
|
|
6
|
+
width: 100%;
|
|
7
|
+
aspect-ratio: 16 / 9;
|
|
8
|
+
border-radius: 4px;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
background: var(--octc-color-bg-alt);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ox-youtube iframe {
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: 0;
|
|
16
|
+
left: 0;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 100%;
|
|
19
|
+
border: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* Placeholder when iframe hasn't loaded */
|
|
23
|
+
.ox-youtube::before {
|
|
24
|
+
content: "";
|
|
25
|
+
position: absolute;
|
|
26
|
+
inset: 0;
|
|
27
|
+
background: linear-gradient(135deg, var(--octc-color-bg-alt) 0%, var(--octc-color-border) 100%);
|
|
28
|
+
z-index: -1;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Play button placeholder */
|
|
32
|
+
.ox-youtube-placeholder {
|
|
33
|
+
position: absolute;
|
|
34
|
+
inset: 0;
|
|
35
|
+
display: flex;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
cursor: pointer;
|
|
39
|
+
background-size: cover;
|
|
40
|
+
background-position: center;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.ox-youtube-placeholder::after {
|
|
44
|
+
content: "";
|
|
45
|
+
width: 68px;
|
|
46
|
+
height: 48px;
|
|
47
|
+
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath fill='%23f00' d='M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z'/%3E%3Cpath fill='%23fff' d='M45 24L27 14v20'/%3E%3C/svg%3E")
|
|
48
|
+
center/contain no-repeat;
|
|
49
|
+
transition: transform 0.2s ease;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.ox-youtube-placeholder:hover::after {
|
|
53
|
+
transform: scale(1.1);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Title overlay */
|
|
57
|
+
.ox-youtube-title {
|
|
58
|
+
position: absolute;
|
|
59
|
+
top: 0;
|
|
60
|
+
left: 0;
|
|
61
|
+
right: 0;
|
|
62
|
+
padding: 1rem;
|
|
63
|
+
background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
|
|
64
|
+
color: #fff;
|
|
65
|
+
font-size: 0.875rem;
|
|
66
|
+
font-weight: 500;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/* Responsive adjustments */
|
|
70
|
+
@media (max-width: 640px) {
|
|
71
|
+
.ox-youtube {
|
|
72
|
+
margin-left: -0.75rem;
|
|
73
|
+
margin-right: -0.75rem;
|
|
74
|
+
border-radius: 0;
|
|
75
|
+
width: calc(100% + 1.5rem);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@media (prefers-reduced-motion: reduce) {
|
|
80
|
+
.ox-youtube-placeholder::after {
|
|
81
|
+
transition: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.ox-youtube-placeholder:hover::after {
|
|
85
|
+
transform: none;
|
|
86
|
+
}
|
|
87
|
+
}
|