@ox-content/vite-plugin 3.0.0-alpha.1 → 3.0.0-alpha.11

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.
@@ -0,0 +1,210 @@
1
+ /* ox-content Tabs Plugin - Pure CSS, No JS */
2
+
3
+ .ox-tabs {
4
+ margin: 1.5rem 0;
5
+ border: 1px solid var(--octc-color-border);
6
+ border-radius: 4px;
7
+ overflow: hidden;
8
+ background: var(--octc-color-bg);
9
+ }
10
+
11
+ .ox-tabs-header {
12
+ display: flex;
13
+ align-items: end;
14
+ gap: 0.125rem;
15
+ padding: 0.35rem 0.35rem 0;
16
+ background: var(--octc-color-bg-alt);
17
+ border-bottom: 1px solid var(--octc-color-border);
18
+ overflow-x: auto;
19
+ -webkit-overflow-scrolling: touch;
20
+ scrollbar-width: none;
21
+ }
22
+
23
+ .ox-tabs-header::-webkit-scrollbar {
24
+ display: none;
25
+ }
26
+
27
+ /* Hidden radio inputs for tab selection */
28
+ .ox-tabs input[type="radio"] {
29
+ position: absolute;
30
+ width: 1px;
31
+ height: 1px;
32
+ padding: 0;
33
+ margin: -1px;
34
+ overflow: hidden;
35
+ clip: rect(0, 0, 0, 0);
36
+ white-space: nowrap;
37
+ border: 0;
38
+ }
39
+
40
+ /* Tab labels */
41
+ .ox-tabs label {
42
+ display: inline-flex;
43
+ align-items: center;
44
+ justify-content: center;
45
+ flex: 1 0 max-content;
46
+ min-width: 3.5rem;
47
+ padding: 0.65rem 0.85rem;
48
+ cursor: pointer;
49
+ font-size: 0.875rem;
50
+ font-weight: 500;
51
+ color: var(--octc-color-text-muted);
52
+ border: 1px solid transparent;
53
+ border-bottom: 2px solid transparent;
54
+ margin-bottom: -1px;
55
+ border-radius: 4px 4px 0 0;
56
+ white-space: nowrap;
57
+ transition:
58
+ background-color 0.2s ease,
59
+ color 0.2s ease,
60
+ border-color 0.2s ease;
61
+ }
62
+
63
+ .ox-tabs label:hover {
64
+ color: var(--octc-color-text);
65
+ background: color-mix(in srgb, var(--octc-color-bg) 72%, transparent);
66
+ }
67
+
68
+ /* Checked tab label */
69
+ .ox-tabs input[type="radio"]:checked + label {
70
+ color: var(--octc-color-primary);
71
+ background: var(--octc-color-bg);
72
+ border-color: var(--octc-color-border);
73
+ border-bottom-color: var(--octc-color-primary);
74
+ }
75
+
76
+ /* Focus styles for accessibility */
77
+ .ox-tabs input[type="radio"]:focus-visible + label {
78
+ outline: var(--octc-focus-ring);
79
+ outline-offset: -2px;
80
+ }
81
+
82
+ /* Tab content panels */
83
+ .ox-tab-panel {
84
+ display: none;
85
+ padding: 1rem;
86
+ background: var(--octc-color-bg);
87
+ }
88
+
89
+ /* Reset margins for first/last children in panels */
90
+ .ox-tab-panel > :first-child {
91
+ margin-top: 0;
92
+ }
93
+
94
+ .ox-tab-panel > :last-child {
95
+ margin-bottom: 0;
96
+ }
97
+
98
+ /* Panel visibility via :has(). Radio ids are `ox-tab-{group}-{index}`. */
99
+ @supports selector(:has(*)) {
100
+ .ox-tabs:has(input[id$="-0"]:checked) .ox-tab-panel[data-tab="0"] {
101
+ display: block;
102
+ }
103
+ .ox-tabs:has(input[id$="-1"]:checked) .ox-tab-panel[data-tab="1"] {
104
+ display: block;
105
+ }
106
+ .ox-tabs:has(input[id$="-2"]:checked) .ox-tab-panel[data-tab="2"] {
107
+ display: block;
108
+ }
109
+ .ox-tabs:has(input[id$="-3"]:checked) .ox-tab-panel[data-tab="3"] {
110
+ display: block;
111
+ }
112
+ .ox-tabs:has(input[id$="-4"]:checked) .ox-tab-panel[data-tab="4"] {
113
+ display: block;
114
+ }
115
+ .ox-tabs:has(input[id$="-5"]:checked) .ox-tab-panel[data-tab="5"] {
116
+ display: block;
117
+ }
118
+ .ox-tabs:has(input[id$="-6"]:checked) .ox-tab-panel[data-tab="6"] {
119
+ display: block;
120
+ }
121
+ .ox-tabs:has(input[id$="-7"]:checked) .ox-tab-panel[data-tab="7"] {
122
+ display: block;
123
+ }
124
+
125
+ .ox-tab-panel:has(> pre:only-child),
126
+ .ox-tabs-fallback .ox-tabs-fallback-content:has(> pre:only-child) {
127
+ padding: 0;
128
+ background: var(--octc-color-code-bg);
129
+ }
130
+
131
+ .ox-tab-panel:has(> pre:only-child) > pre,
132
+ .ox-tabs-fallback .ox-tabs-fallback-content:has(> pre:only-child) > pre {
133
+ margin: 0;
134
+ border: 0;
135
+ border-radius: 0;
136
+ }
137
+ }
138
+
139
+ /* Code blocks inside tabs */
140
+ .ox-tab-panel pre {
141
+ margin: 0.5rem 0;
142
+ }
143
+
144
+ .ox-tab-panel pre:first-child {
145
+ margin-top: 0;
146
+ }
147
+
148
+ .ox-tab-panel pre:last-child {
149
+ margin-bottom: 0;
150
+ }
151
+
152
+ .ox-tab-panel > .ox-code {
153
+ margin: 0;
154
+ }
155
+
156
+ /* Fallback for older browsers using <details> */
157
+ .ox-tabs-fallback {
158
+ margin: 1.5rem 0;
159
+ }
160
+
161
+ .ox-tabs-fallback details {
162
+ border: 1px solid var(--octc-color-border);
163
+ border-radius: 4px;
164
+ margin-bottom: 0.5rem;
165
+ }
166
+
167
+ .ox-tabs-fallback details:last-child {
168
+ margin-bottom: 0;
169
+ }
170
+
171
+ .ox-tabs-fallback summary {
172
+ padding: 0.75rem 1rem;
173
+ cursor: pointer;
174
+ font-weight: 500;
175
+ background: var(--octc-color-bg-alt);
176
+ border-radius: 4px;
177
+ list-style: none;
178
+ }
179
+
180
+ .ox-tabs-fallback summary::-webkit-details-marker {
181
+ display: none;
182
+ }
183
+
184
+ .ox-tabs-fallback summary::before {
185
+ content: "▸ ";
186
+ display: inline-block;
187
+ margin-right: 0.5rem;
188
+ transition: transform 0.2s ease;
189
+ }
190
+
191
+ .ox-tabs-fallback details[open] summary::before {
192
+ transform: rotate(90deg);
193
+ }
194
+
195
+ .ox-tabs-fallback details[open] summary {
196
+ border-radius: 4px 4px 0 0;
197
+ border-bottom: 1px solid var(--octc-color-border);
198
+ }
199
+
200
+ .ox-tabs-fallback .ox-tabs-fallback-content {
201
+ padding: 1rem;
202
+ }
203
+
204
+ /* The disclosure marker still turns, it just turns instantly. */
205
+ @media (prefers-reduced-motion: reduce) {
206
+ .ox-tabs label,
207
+ .ox-tabs-fallback summary::before {
208
+ transition: none;
209
+ }
210
+ }
@@ -0,0 +1,453 @@
1
+ /*
2
+ * Opt-in full-card chrome for Twitter/X embeds.
3
+ * Loaded only when a page has .ox-tweet--full.
4
+ *
5
+ * Visual tokens and control icons follow the theme contract of:
6
+ *
7
+ * react-tweet — https://github.com/vercel/react-tweet
8
+ * Copyright (c) 2023 Luis Alvarez
9
+ *
10
+ * sveltweet — https://github.com/ryoppippi/sveltweet
11
+ * Copyright (c) 2024 ryoppippi
12
+ *
13
+ * Both are MIT-licensed. The permission notice is included because this
14
+ * stylesheet is a substantial portion of that visual contract. Ox Content
15
+ * does not vendor their JavaScript, React, or Svelte components.
16
+ *
17
+ * Permission is hereby granted, free of charge, to any person obtaining a
18
+ * copy of this software and associated documentation files (the
19
+ * "Software"), to deal in the Software without restriction, including
20
+ * without limitation the rights to use, copy, modify, merge, publish,
21
+ * distribute, sublicense, and/or sell copies of the Software, and to
22
+ * permit persons to whom the Software is furnished to do so, subject to
23
+ * the following conditions:
24
+ *
25
+ * The above copyright notice and this permission notice shall be included
26
+ * in all copies or substantial portions of the Software.
27
+ *
28
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
29
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
30
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
31
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
32
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
33
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
34
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
35
+ *
36
+ * X, Twitter, and related marks are trademarks of their respective owners.
37
+ */
38
+
39
+ .ox-tweet--full {
40
+ --ox-tweet-container-margin: 1.5rem 0;
41
+ --ox-tweet-header-font-size: 0.9375rem;
42
+ --ox-tweet-body-font-size: 1.25rem;
43
+ --ox-tweet-body-line-height: 1.5rem;
44
+ --ox-tweet-quoted-body-font-size: 0.938rem;
45
+ --ox-tweet-info-font-size: 0.9375rem;
46
+ --ox-tweet-actions-font-size: 0.875rem;
47
+ --ox-tweet-icon-size: 1.25em;
48
+ --ox-tweet-border: 1px solid rgb(207, 217, 222);
49
+ --ox-tweet-font-color: rgb(15, 20, 25);
50
+ --ox-tweet-font-color-secondary: rgb(83, 100, 113);
51
+ --ox-tweet-bg: #fff;
52
+ --ox-tweet-bg-hover: rgb(247, 249, 249);
53
+ --ox-tweet-quote-hover: rgba(0, 0, 0, 0.03);
54
+ --ox-tweet-color-blue: rgb(29, 155, 240);
55
+ --ox-tweet-color-blue-text: rgb(0, 111, 214);
56
+ --ox-tweet-color-blue-hover: rgba(0, 111, 214, 0.1);
57
+ --ox-tweet-color-red: rgb(249, 24, 128);
58
+ --ox-tweet-color-red-hover: rgba(249, 24, 128, 0.1);
59
+ --ox-tweet-color-green: rgb(0, 186, 124);
60
+ --ox-tweet-color-green-hover: rgba(0, 186, 124, 0.1);
61
+ --ox-tweet-verified-blue: var(--ox-tweet-color-blue);
62
+ --ox-tweet-verified-gold: rgb(226, 179, 64);
63
+ --ox-tweet-verified-gray: rgb(130, 154, 171);
64
+ --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");
65
+ --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='M12 21.638h-.014C9.403 21.59 1.95 14.856 1.95 8.478c0-3.064 2.525-5.754 5.403-5.754 2.29 0 3.83 1.58 4.646 2.73.814-1.148 2.354-2.73 4.645-2.73 2.88 0 5.404 2.69 5.404 5.755 0 6.376-7.454 13.11-10.037 13.157H12z'/%3E%3C/svg%3E");
66
+ --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.01zm8.005-6c-3.317 0-6.005 2.69-6.005 6 0 3.37 2.77 6.08 6.138 6.01l.351-.01h1.761v2.3l5.087-2.81C17.04 14.42 18.25 12.37 18.25 10.14c0-3.39-2.744-6.13-6.129-6.13H9.756z'/%3E%3C/svg%3E");
67
+ --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='M7 7.75A2.75 2.75 0 0 1 9.75 5h8.5A2.75 2.75 0 0 1 21 7.75v8.5A2.75 2.75 0 0 1 18.25 19h-8.5A2.75 2.75 0 0 1 7 16.25v-8.5zM9.75 7A.75.75 0 0 0 9 7.75v8.5c0 .41.34.75.75.75h8.5c.41 0 .75-.34.75-.75v-8.5a.75.75 0 0 0-.75-.75h-8.5zM3 4.75A2.75 2.75 0 0 1 5.75 2h8.5a1 1 0 1 1 0 2h-8.5a.75.75 0 0 0-.75.75v8.5a1 1 0 1 1-2 0v-8.5z'/%3E%3C/svg%3E");
68
+ --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");
69
+ --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");
70
+ box-sizing: border-box;
71
+ width: 100%;
72
+ max-width: 550px;
73
+ min-width: 0;
74
+ margin: var(--ox-tweet-container-margin);
75
+ padding: 0.75rem 1rem;
76
+ overflow: hidden;
77
+ color: var(--ox-tweet-font-color);
78
+ border: var(--ox-tweet-border);
79
+ border-radius: 12px;
80
+ background: var(--ox-tweet-bg);
81
+ }
82
+
83
+ [data-theme="dark"] .ox-tweet--full,
84
+ .dark .ox-tweet--full {
85
+ --ox-tweet-border: 1px solid rgb(66, 83, 100);
86
+ --ox-tweet-font-color: rgb(247, 249, 249);
87
+ --ox-tweet-font-color-secondary: rgb(139, 152, 165);
88
+ --ox-tweet-bg: rgb(21, 32, 43);
89
+ --ox-tweet-bg-hover: rgb(30, 39, 50);
90
+ --ox-tweet-quote-hover: rgba(255, 255, 255, 0.03);
91
+ --ox-tweet-color-blue-text: rgb(107, 201, 251);
92
+ --ox-tweet-color-blue-hover: rgba(107, 201, 251, 0.1);
93
+ --ox-tweet-verified-blue: #fff;
94
+ }
95
+
96
+ @media (prefers-color-scheme: dark) {
97
+ :root:not([data-theme="light"]):not(.light) .ox-tweet--full {
98
+ --ox-tweet-border: 1px solid rgb(66, 83, 100);
99
+ --ox-tweet-font-color: rgb(247, 249, 249);
100
+ --ox-tweet-font-color-secondary: rgb(139, 152, 165);
101
+ --ox-tweet-bg: rgb(21, 32, 43);
102
+ --ox-tweet-bg-hover: rgb(30, 39, 50);
103
+ --ox-tweet-quote-hover: rgba(255, 255, 255, 0.03);
104
+ --ox-tweet-color-blue-text: rgb(107, 201, 251);
105
+ --ox-tweet-color-blue-hover: rgba(107, 201, 251, 0.1);
106
+ --ox-tweet-verified-blue: #fff;
107
+ }
108
+ }
109
+
110
+ .ox-tweet--full .ox-tweet__header {
111
+ display: flex;
112
+ align-items: center;
113
+ gap: 0;
114
+ margin: 0 0 0.75rem;
115
+ overflow: hidden;
116
+ font-size: var(--ox-tweet-header-font-size);
117
+ line-height: 1.25rem;
118
+ white-space: nowrap;
119
+ }
120
+
121
+ .ox-tweet--full .ox-tweet__avatar-link {
122
+ flex: 0 0 48px;
123
+ }
124
+
125
+ .ox-tweet--full .ox-tweet__avatar {
126
+ width: 48px;
127
+ height: 48px;
128
+ }
129
+
130
+ .ox-tweet--full .ox-tweet__author {
131
+ min-width: 0;
132
+ margin: 0 0.5rem;
133
+ }
134
+
135
+ .ox-tweet--full .ox-tweet__author-name,
136
+ .ox-tweet--full .ox-tweet__author-handle,
137
+ .ox-tweet--full .ox-tweet__follow {
138
+ text-decoration: none;
139
+ }
140
+
141
+ .ox-tweet--full .ox-tweet__author-name {
142
+ display: flex;
143
+ align-items: center;
144
+ gap: 0.2rem;
145
+ overflow: hidden;
146
+ font-weight: 700;
147
+ color: inherit;
148
+ text-overflow: ellipsis;
149
+ }
150
+
151
+ .ox-tweet--full .ox-tweet__author-name:hover,
152
+ .ox-tweet--full .ox-tweet__follow:hover {
153
+ text-decoration: underline;
154
+ }
155
+
156
+ .ox-tweet--full .ox-tweet__author-meta {
157
+ display: flex;
158
+ min-width: 0;
159
+ }
160
+
161
+ .ox-tweet--full .ox-tweet__author-handle {
162
+ overflow: hidden;
163
+ color: var(--ox-tweet-font-color-secondary);
164
+ text-overflow: ellipsis;
165
+ }
166
+
167
+ .ox-tweet--full .ox-tweet__sep {
168
+ padding: 0 0.25rem;
169
+ color: var(--ox-tweet-font-color-secondary);
170
+ }
171
+
172
+ .ox-tweet--full .ox-tweet__follow {
173
+ font-weight: 700;
174
+ color: var(--ox-tweet-color-blue-text);
175
+ }
176
+
177
+ .ox-tweet--full .ox-tweet__brand {
178
+ margin-inline-start: auto;
179
+ color: inherit;
180
+ }
181
+
182
+ .ox-tweet--full .ox-tweet__badge,
183
+ .ox-tweet--full .ox-tweet__icon {
184
+ display: inline-block;
185
+ flex: 0 0 auto;
186
+ width: 1.125em;
187
+ height: 1.125em;
188
+ background: currentColor;
189
+ -webkit-mask: var(--ox-tweet-icon-badge) center / contain no-repeat;
190
+ mask: var(--ox-tweet-icon-badge) center / contain no-repeat;
191
+ }
192
+
193
+ .ox-tweet--full .ox-tweet__icon {
194
+ width: var(--ox-tweet-icon-size);
195
+ height: var(--ox-tweet-icon-size);
196
+ }
197
+
198
+ .ox-tweet--full .ox-tweet__badge--blue {
199
+ color: var(--ox-tweet-verified-blue);
200
+ }
201
+
202
+ .ox-tweet--full .ox-tweet__badge--gold {
203
+ color: var(--ox-tweet-verified-gold);
204
+ }
205
+
206
+ .ox-tweet--full .ox-tweet__badge--gray {
207
+ color: var(--ox-tweet-verified-gray);
208
+ }
209
+
210
+ .ox-tweet--full .ox-tweet__icon--x {
211
+ -webkit-mask-image: var(--ox-tweet-icon-x);
212
+ mask-image: var(--ox-tweet-icon-x);
213
+ }
214
+
215
+ .ox-tweet--full .ox-tweet__icon--like {
216
+ color: var(--ox-tweet-color-red);
217
+ -webkit-mask-image: var(--ox-tweet-icon-like);
218
+ mask-image: var(--ox-tweet-icon-like);
219
+ }
220
+
221
+ .ox-tweet--full .ox-tweet__icon--reply {
222
+ color: var(--ox-tweet-color-blue);
223
+ -webkit-mask-image: var(--ox-tweet-icon-reply);
224
+ mask-image: var(--ox-tweet-icon-reply);
225
+ }
226
+
227
+ .ox-tweet--full .ox-tweet__icon--copy {
228
+ -webkit-mask-image: var(--ox-tweet-icon-copy);
229
+ mask-image: var(--ox-tweet-icon-copy);
230
+ }
231
+
232
+ .ox-tweet--full .ox-tweet__icon--info {
233
+ -webkit-mask-image: var(--ox-tweet-icon-info);
234
+ mask-image: var(--ox-tweet-icon-info);
235
+ }
236
+
237
+ .ox-tweet--full .ox-tweet__reply {
238
+ margin: 0 0 0.25rem;
239
+ font-size: var(--ox-tweet-header-font-size);
240
+ line-height: 1.25rem;
241
+ }
242
+
243
+ .ox-tweet--full .ox-tweet__body {
244
+ margin: 0;
245
+ font-size: var(--ox-tweet-body-font-size);
246
+ font-weight: 400;
247
+ line-height: var(--ox-tweet-body-line-height);
248
+ overflow-wrap: break-word;
249
+ }
250
+
251
+ .ox-tweet--full .ox-tweet__body a,
252
+ .ox-tweet--full .ox-tweet__quote-body a {
253
+ color: var(--ox-tweet-color-blue-text);
254
+ text-decoration: none;
255
+ }
256
+ .ox-tweet--full .ox-tweet__media {
257
+ display: grid;
258
+ grid-template-columns: 1fr;
259
+ gap: 2px;
260
+ margin: 0.75rem 0 0;
261
+ overflow: hidden;
262
+ border: var(--ox-tweet-border);
263
+ border-radius: 12px;
264
+ }
265
+
266
+ .ox-tweet--full .ox-tweet__media[data-count="2"],
267
+ .ox-tweet--full .ox-tweet__media[data-count="3"],
268
+ .ox-tweet--full .ox-tweet__media[data-count="4"] {
269
+ grid-template-columns: 1fr 1fr;
270
+ aspect-ratio: 16 / 9;
271
+ }
272
+
273
+ .ox-tweet--full .ox-tweet__media[data-count="3"],
274
+ .ox-tweet--full .ox-tweet__media[data-count="4"] {
275
+ grid-template-rows: 1fr 1fr;
276
+ }
277
+
278
+ .ox-tweet--full .ox-tweet__media[data-count="3"] > :first-child {
279
+ grid-row: span 2;
280
+ }
281
+
282
+ .ox-tweet--full .ox-tweet__media-item {
283
+ width: 100%;
284
+ height: auto;
285
+ border: 0;
286
+ border-radius: 0;
287
+ }
288
+
289
+ .ox-tweet--full .ox-tweet__media[data-count="2"] .ox-tweet__media-item,
290
+ .ox-tweet--full .ox-tweet__media[data-count="3"] .ox-tweet__media-item,
291
+ .ox-tweet--full .ox-tweet__media[data-count="4"] .ox-tweet__media-item {
292
+ height: 100%;
293
+ object-fit: cover;
294
+ }
295
+
296
+ .ox-tweet--full .ox-tweet__media-fallback {
297
+ position: relative;
298
+ }
299
+
300
+ .ox-tweet--full .ox-tweet__watch {
301
+ margin-top: 0.375rem;
302
+ font-size: 0.8125rem;
303
+ }
304
+
305
+ .ox-tweet--full .ox-tweet__quote {
306
+ margin: 0.75rem 0 0;
307
+ padding: 0.75rem;
308
+ overflow: hidden;
309
+ border: var(--ox-tweet-border);
310
+ border-radius: 12px;
311
+ }
312
+
313
+ .ox-tweet--full .ox-tweet__quote-header {
314
+ margin: 0;
315
+ }
316
+
317
+ .ox-tweet--full .ox-tweet__quote .ox-tweet__avatar {
318
+ width: 20px;
319
+ height: 20px;
320
+ }
321
+
322
+ .ox-tweet--full .ox-tweet__quote-body {
323
+ margin: 0.25rem 0 0;
324
+ font-size: var(--ox-tweet-quoted-body-font-size);
325
+ line-height: 1.25rem;
326
+ }
327
+
328
+ .ox-tweet--full .ox-tweet__quote .ox-tweet__media {
329
+ margin-top: 0.75rem;
330
+ }
331
+
332
+ .ox-tweet--full .ox-tweet__info,
333
+ .ox-tweet--full .ox-tweet__metrics,
334
+ .ox-tweet--full .ox-tweet__actions {
335
+ display: flex;
336
+ align-items: center;
337
+ margin-top: 0.125rem;
338
+ overflow: hidden;
339
+ color: var(--ox-tweet-font-color-secondary);
340
+ white-space: nowrap;
341
+ text-overflow: ellipsis;
342
+ }
343
+
344
+ .ox-tweet--full .ox-tweet__actions {
345
+ padding-top: 0.25rem;
346
+ margin-top: 0.25rem;
347
+ border-top: var(--ox-tweet-border);
348
+ }
349
+
350
+ .ox-tweet--full .ox-tweet__metrics {
351
+ gap: 0.75rem;
352
+ font-size: var(--ox-tweet-actions-font-size);
353
+ }
354
+
355
+ .ox-tweet--full .ox-tweet__permalink,
356
+ .ox-tweet--full .ox-tweet__info-help,
357
+ .ox-tweet--full .ox-tweet__action,
358
+ .ox-tweet--full .ox-tweet__replies-link {
359
+ color: inherit;
360
+ text-decoration: none;
361
+ }
362
+
363
+ .ox-tweet--full .ox-tweet__permalink {
364
+ font-size: var(--ox-tweet-info-font-size);
365
+ line-height: 1.25rem;
366
+ }
367
+
368
+ .ox-tweet--full .ox-tweet__permalink:hover {
369
+ text-decoration: underline;
370
+ }
371
+
372
+ .ox-tweet--full .ox-tweet__info-help {
373
+ display: flex;
374
+ align-items: center;
375
+ justify-content: center;
376
+ width: 2em;
377
+ height: 2em;
378
+ margin-left: auto;
379
+ border-radius: 9999px;
380
+ }
381
+
382
+ .ox-tweet--full .ox-tweet__action {
383
+ display: flex;
384
+ align-items: center;
385
+ margin-right: 1.25rem;
386
+ font-size: var(--ox-tweet-actions-font-size);
387
+ font-weight: 700;
388
+ line-height: 1rem;
389
+ }
390
+
391
+ .ox-tweet--full .ox-tweet__action .ox-tweet__icon {
392
+ margin-right: 0.25rem;
393
+ }
394
+
395
+ .ox-tweet--full .ox-tweet__action--like:hover {
396
+ color: var(--ox-tweet-color-red);
397
+ }
398
+
399
+ .ox-tweet--full .ox-tweet__action--reply:hover {
400
+ color: var(--ox-tweet-color-blue-text);
401
+ }
402
+
403
+ .ox-tweet--full .ox-tweet__action--copy:hover,
404
+ .ox-tweet--full .ox-tweet__action--copy[data-ox-tweet-copied] {
405
+ color: var(--ox-tweet-color-green);
406
+ }
407
+
408
+ .ox-tweet--full .ox-tweet__copied-text {
409
+ display: none;
410
+ }
411
+
412
+ .ox-tweet--full .ox-tweet__action--copy[data-ox-tweet-copied] .ox-tweet__copy-text {
413
+ display: none;
414
+ }
415
+
416
+ .ox-tweet--full .ox-tweet__action--copy[data-ox-tweet-copied] .ox-tweet__copied-text {
417
+ display: inline;
418
+ }
419
+
420
+ .ox-tweet--full .ox-tweet__replies {
421
+ padding: 0.25rem 0;
422
+ margin: 0.5rem 0 0;
423
+ }
424
+
425
+ .ox-tweet--full .ox-tweet__replies-link {
426
+ box-sizing: border-box;
427
+ display: flex;
428
+ align-items: center;
429
+ justify-content: center;
430
+ width: 100%;
431
+ min-height: 32px;
432
+ padding: 0 1rem;
433
+ font-size: 0.875rem;
434
+ font-weight: 700;
435
+ color: var(--ox-tweet-color-blue-text);
436
+ border: var(--ox-tweet-border);
437
+ border-radius: 9999px;
438
+ }
439
+
440
+ .ox-tweet--full .ox-tweet__replies-link:hover {
441
+ background-color: var(--ox-tweet-color-blue-hover);
442
+ }
443
+
444
+ @media (max-width: 400px) {
445
+ .ox-tweet--full {
446
+ padding: 0.625rem 0.75rem;
447
+ }
448
+
449
+ .ox-tweet--full .ox-tweet__follow,
450
+ .ox-tweet--full .ox-tweet__sep {
451
+ display: none;
452
+ }
453
+ }