starlight-theme-apple 0.1.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/CHANGELOG.md +101 -0
- package/README.md +15 -0
- package/components/PageTitle.astro +24 -0
- package/index.ts +49 -0
- package/package.json +43 -0
- package/styles/base.css +104 -0
- package/styles/code.css +77 -0
- package/styles/content.css +333 -0
- package/styles/controls.css +180 -0
- package/styles/header.css +112 -0
- package/styles/responsive.css +95 -0
- package/styles/search.css +78 -0
- package/styles/sidebar.css +87 -0
- package/styles/toc.css +70 -0
- package/styles/tokens.css +96 -0
- package/styles.css +12 -0
|
@@ -0,0 +1,333 @@
|
|
|
1
|
+
.main-pane main {
|
|
2
|
+
padding-bottom: 4rem;
|
|
3
|
+
}
|
|
4
|
+
.content-panel:first-of-type .sl-container {
|
|
5
|
+
padding-top: clamp(2.5rem, 6vw, 5rem);
|
|
6
|
+
}
|
|
7
|
+
.apple-breadcrumbs {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-wrap: wrap;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: 0.38rem;
|
|
12
|
+
margin-bottom: 0.85rem;
|
|
13
|
+
color: var(--apple-tertiary-foreground);
|
|
14
|
+
font-size: 0.8125rem;
|
|
15
|
+
line-height: 1.3;
|
|
16
|
+
}
|
|
17
|
+
.apple-breadcrumbs a {
|
|
18
|
+
color: var(--apple-secondary-foreground);
|
|
19
|
+
text-decoration: none;
|
|
20
|
+
}
|
|
21
|
+
.apple-breadcrumbs a:hover {
|
|
22
|
+
color: var(--apple-link);
|
|
23
|
+
}
|
|
24
|
+
.apple-breadcrumbs span {
|
|
25
|
+
color: var(--apple-tertiary-foreground);
|
|
26
|
+
}
|
|
27
|
+
.content-panel h1 {
|
|
28
|
+
margin: 0;
|
|
29
|
+
color: var(--apple-foreground);
|
|
30
|
+
font-weight: 700;
|
|
31
|
+
letter-spacing: -0.035em;
|
|
32
|
+
font-size: 2.5rem;
|
|
33
|
+
line-height: 2.75rem;
|
|
34
|
+
}
|
|
35
|
+
.content-panel
|
|
36
|
+
.sl-container
|
|
37
|
+
> p:first-of-type:not(:where(.sl-markdown-content *)) {
|
|
38
|
+
max-width: 42rem;
|
|
39
|
+
margin-top: 1rem;
|
|
40
|
+
color: var(--apple-secondary-foreground);
|
|
41
|
+
font-size: clamp(1.05rem, 2vw, 1.2rem);
|
|
42
|
+
line-height: 1.45;
|
|
43
|
+
}
|
|
44
|
+
.meta {
|
|
45
|
+
align-items: center;
|
|
46
|
+
flex-direction: row-reverse;
|
|
47
|
+
justify-content: flex-start;
|
|
48
|
+
gap: 0.5rem;
|
|
49
|
+
margin-top: 1.2rem;
|
|
50
|
+
color: var(--apple-secondary-foreground);
|
|
51
|
+
font-size: 0.8rem;
|
|
52
|
+
}
|
|
53
|
+
.meta a {
|
|
54
|
+
display: inline-flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
min-height: 2rem;
|
|
57
|
+
padding: 0.3rem 0.55rem;
|
|
58
|
+
border: 1px solid transparent;
|
|
59
|
+
border-radius: var(--apple-radius-sm);
|
|
60
|
+
color: var(--apple-link);
|
|
61
|
+
text-decoration: none;
|
|
62
|
+
}
|
|
63
|
+
.meta a:is(:hover, :focus-visible) {
|
|
64
|
+
border-color: var(--apple-border);
|
|
65
|
+
background: var(--apple-selection);
|
|
66
|
+
color: var(--apple-link-hover);
|
|
67
|
+
}
|
|
68
|
+
.sl-markdown-content {
|
|
69
|
+
color: var(--apple-foreground);
|
|
70
|
+
font-size: 1.0625rem;
|
|
71
|
+
line-height: 1.5625rem;
|
|
72
|
+
}
|
|
73
|
+
.sl-markdown-content > :first-child {
|
|
74
|
+
margin-top: 0;
|
|
75
|
+
}
|
|
76
|
+
.sl-markdown-content > :last-child {
|
|
77
|
+
margin-bottom: 0;
|
|
78
|
+
}
|
|
79
|
+
.sl-markdown-content :is(p, li, blockquote):not(:where(.not-content *)) {
|
|
80
|
+
max-width: 70ch;
|
|
81
|
+
}
|
|
82
|
+
.sl-markdown-content .sl-heading-wrapper.level-h2 {
|
|
83
|
+
margin-top: 3.25rem;
|
|
84
|
+
padding-top: 1.5rem;
|
|
85
|
+
border-top: 1px solid var(--apple-border-subtle);
|
|
86
|
+
}
|
|
87
|
+
.sl-markdown-content h2:not(:where(.not-content *)) {
|
|
88
|
+
margin-top: 0;
|
|
89
|
+
padding-top: 0;
|
|
90
|
+
border-top: 0;
|
|
91
|
+
color: var(--apple-foreground);
|
|
92
|
+
font-weight: 650;
|
|
93
|
+
letter-spacing: -0.025em;
|
|
94
|
+
font-size: 2rem;
|
|
95
|
+
line-height: 2.25rem;
|
|
96
|
+
}
|
|
97
|
+
.sl-markdown-content h3:not(:where(.not-content *)) {
|
|
98
|
+
margin-top: 2.3rem;
|
|
99
|
+
color: var(--apple-foreground);
|
|
100
|
+
font-weight: 650;
|
|
101
|
+
letter-spacing: -0.015em;
|
|
102
|
+
font-size: 1.75rem;
|
|
103
|
+
line-height: 2rem;
|
|
104
|
+
}
|
|
105
|
+
.sl-markdown-content .sl-heading-wrapper.level-h3 {
|
|
106
|
+
margin-top: 2.3rem;
|
|
107
|
+
}
|
|
108
|
+
.sl-markdown-content .sl-heading-wrapper.level-h3 h3 {
|
|
109
|
+
margin-top: 0;
|
|
110
|
+
}
|
|
111
|
+
.sl-markdown-content h4:not(:where(.not-content *)) {
|
|
112
|
+
margin-top: 1.9rem;
|
|
113
|
+
color: var(--apple-foreground);
|
|
114
|
+
font-weight: 600;
|
|
115
|
+
font-size: 1.5rem;
|
|
116
|
+
line-height: 1.75rem;
|
|
117
|
+
}
|
|
118
|
+
.sl-markdown-content .sl-heading-wrapper.level-h4 {
|
|
119
|
+
margin-top: 1.9rem;
|
|
120
|
+
}
|
|
121
|
+
.sl-markdown-content .sl-heading-wrapper.level-h4 h4 {
|
|
122
|
+
margin-top: 0;
|
|
123
|
+
}
|
|
124
|
+
.sl-markdown-content a:not(:where(.not-content *)) {
|
|
125
|
+
color: var(--apple-link);
|
|
126
|
+
text-decoration-thickness: 1px;
|
|
127
|
+
text-underline-offset: 0.16em;
|
|
128
|
+
}
|
|
129
|
+
.sl-markdown-content a:hover:not(:where(.not-content *)) {
|
|
130
|
+
color: var(--apple-link-hover);
|
|
131
|
+
}
|
|
132
|
+
.sl-markdown-content hr:not(:where(.not-content *)) {
|
|
133
|
+
border-color: var(--apple-border-subtle);
|
|
134
|
+
}
|
|
135
|
+
.sl-markdown-content blockquote:not(:where(.not-content *)) {
|
|
136
|
+
margin-inline: 0;
|
|
137
|
+
padding: 0.15rem 0 0.15rem 1.25rem;
|
|
138
|
+
border-inline-start: 3px solid var(--apple-border);
|
|
139
|
+
color: var(--apple-secondary-foreground);
|
|
140
|
+
}
|
|
141
|
+
.sl-markdown-content table:not(:where(.not-content *)) {
|
|
142
|
+
display: table;
|
|
143
|
+
width: 100%;
|
|
144
|
+
border-collapse: collapse;
|
|
145
|
+
font-size: 0.9rem;
|
|
146
|
+
}
|
|
147
|
+
.sl-markdown-content :is(th, td):not(:where(.not-content *)) {
|
|
148
|
+
padding: 0.7rem 0.8rem;
|
|
149
|
+
border: 1px solid var(--apple-border);
|
|
150
|
+
text-align: start;
|
|
151
|
+
}
|
|
152
|
+
.sl-markdown-content th:not(:where(.not-content *)) {
|
|
153
|
+
background: var(--apple-code-background);
|
|
154
|
+
color: var(--apple-foreground);
|
|
155
|
+
font-weight: 600;
|
|
156
|
+
}
|
|
157
|
+
.sl-markdown-content details:not(:where(.not-content *)) {
|
|
158
|
+
border-inline-start: 1px solid var(--apple-border);
|
|
159
|
+
transition: border-color var(--apple-transition);
|
|
160
|
+
}
|
|
161
|
+
.sl-markdown-content details:hover:not(:where(.not-content *)),
|
|
162
|
+
.sl-markdown-content details:focus-within:not(:where(.not-content *)) {
|
|
163
|
+
border-inline-start-color: var(--apple-link);
|
|
164
|
+
}
|
|
165
|
+
.sl-markdown-content details > summary:not(:where(.not-content *)) {
|
|
166
|
+
color: var(--apple-foreground);
|
|
167
|
+
}
|
|
168
|
+
.sl-markdown-content .card {
|
|
169
|
+
border: 1px solid var(--apple-border-subtle);
|
|
170
|
+
border-radius: var(--apple-radius);
|
|
171
|
+
background: var(--apple-surface-raised);
|
|
172
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
|
173
|
+
padding: 1.25rem;
|
|
174
|
+
}
|
|
175
|
+
.sl-markdown-content .card-grid {
|
|
176
|
+
gap: 1rem;
|
|
177
|
+
}
|
|
178
|
+
.sl-markdown-content .card-grid.stagger {
|
|
179
|
+
--stagger-height: 2.5rem;
|
|
180
|
+
}
|
|
181
|
+
.sl-markdown-content .card .title,
|
|
182
|
+
.sl-markdown-content .sl-link-card .title {
|
|
183
|
+
color: var(--apple-foreground);
|
|
184
|
+
font-size: 1rem;
|
|
185
|
+
font-weight: 600;
|
|
186
|
+
}
|
|
187
|
+
.sl-markdown-content .card .title .icon {
|
|
188
|
+
color: var(--apple-link);
|
|
189
|
+
font-size: 1.625rem;
|
|
190
|
+
}
|
|
191
|
+
.sl-markdown-content .sl-link-card {
|
|
192
|
+
border-color: var(--apple-border-subtle);
|
|
193
|
+
border-radius: var(--apple-radius);
|
|
194
|
+
background: var(--apple-surface-raised);
|
|
195
|
+
box-shadow: none;
|
|
196
|
+
transition:
|
|
197
|
+
color var(--apple-transition),
|
|
198
|
+
background-color var(--apple-transition),
|
|
199
|
+
border-color var(--apple-transition),
|
|
200
|
+
transform 80ms ease;
|
|
201
|
+
}
|
|
202
|
+
.sl-markdown-content .sl-link-card:is(:hover, :focus-visible) {
|
|
203
|
+
border-color: color-mix(in srgb, var(--apple-link) 55%, var(--apple-border));
|
|
204
|
+
background: var(--apple-selection);
|
|
205
|
+
}
|
|
206
|
+
.sl-markdown-content .sl-link-card:active {
|
|
207
|
+
border-color: var(--apple-link);
|
|
208
|
+
background: var(--apple-pressed);
|
|
209
|
+
transform: scale(0.985);
|
|
210
|
+
}
|
|
211
|
+
.sl-markdown-content .sl-link-card .description {
|
|
212
|
+
color: var(--apple-secondary-foreground);
|
|
213
|
+
}
|
|
214
|
+
.sl-markdown-content .sl-link-card:is(:hover, :focus-visible) .description {
|
|
215
|
+
color: var(--apple-foreground);
|
|
216
|
+
}
|
|
217
|
+
.sl-markdown-content .sl-link-card .icon {
|
|
218
|
+
color: var(--apple-secondary-foreground);
|
|
219
|
+
}
|
|
220
|
+
.sl-markdown-content .sl-link-card:is(:hover, :focus-visible) .icon {
|
|
221
|
+
color: var(--apple-link);
|
|
222
|
+
}
|
|
223
|
+
.starlight-aside {
|
|
224
|
+
--sl-color-asides-border: var(--apple-border);
|
|
225
|
+
margin-block: 1.5rem;
|
|
226
|
+
padding: 1rem 1.15rem;
|
|
227
|
+
border: 0;
|
|
228
|
+
border-inline-start: 4px solid var(--apple-note);
|
|
229
|
+
border-radius: 0 var(--apple-radius-sm) var(--apple-radius-sm) 0;
|
|
230
|
+
background: var(--apple-code-background);
|
|
231
|
+
color: var(--apple-foreground);
|
|
232
|
+
}
|
|
233
|
+
.starlight-aside--caution {
|
|
234
|
+
border-inline-start-color: var(--apple-warning);
|
|
235
|
+
}
|
|
236
|
+
.starlight-aside--danger {
|
|
237
|
+
border-inline-start-color: var(--apple-danger);
|
|
238
|
+
}
|
|
239
|
+
.starlight-aside--tip {
|
|
240
|
+
border-inline-start-color: var(--apple-success);
|
|
241
|
+
}
|
|
242
|
+
.starlight-aside__title {
|
|
243
|
+
color: var(--apple-foreground);
|
|
244
|
+
font-size: 1.0625rem;
|
|
245
|
+
line-height: 1.625rem;
|
|
246
|
+
font-weight: 650;
|
|
247
|
+
letter-spacing: 0.01em;
|
|
248
|
+
}
|
|
249
|
+
.starlight-aside__title + * {
|
|
250
|
+
margin-top: 0.5rem;
|
|
251
|
+
}
|
|
252
|
+
.starlight-aside tr:nth-child(even) {
|
|
253
|
+
background: color-mix(
|
|
254
|
+
in srgb,
|
|
255
|
+
var(--sl-color-asides-border) 18%,
|
|
256
|
+
transparent
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
.content-panel:first-of-type p.sl-flex:not(:where(.sl-markdown-content *)) {
|
|
260
|
+
align-items: flex-start;
|
|
261
|
+
gap: 0.75rem;
|
|
262
|
+
padding: 0.875rem 1rem;
|
|
263
|
+
border: 1px solid var(--apple-border-subtle);
|
|
264
|
+
border-radius: var(--apple-radius-sm);
|
|
265
|
+
background: var(--apple-code-background);
|
|
266
|
+
}
|
|
267
|
+
.content-panel:first-of-type p.sl-flex:not(:where(.sl-markdown-content *)) svg {
|
|
268
|
+
flex-shrink: 0;
|
|
269
|
+
}
|
|
270
|
+
.sl-steps > li {
|
|
271
|
+
padding-bottom: 0.5rem;
|
|
272
|
+
padding-inline-start: 2.75rem !important;
|
|
273
|
+
}
|
|
274
|
+
.sl-steps > li + li {
|
|
275
|
+
margin-top: 0;
|
|
276
|
+
}
|
|
277
|
+
.sl-steps > li:last-of-type::after {
|
|
278
|
+
--guide-width: 1px;
|
|
279
|
+
bottom: var(--bullet-margin);
|
|
280
|
+
width: var(--guide-width);
|
|
281
|
+
background: linear-gradient(
|
|
282
|
+
to bottom,
|
|
283
|
+
var(--apple-border-subtle),
|
|
284
|
+
var(--apple-background) 85%
|
|
285
|
+
);
|
|
286
|
+
content: "";
|
|
287
|
+
position: absolute;
|
|
288
|
+
inset-block-start: calc(var(--bullet-size) + var(--bullet-margin));
|
|
289
|
+
inset-inline-start: calc((var(--bullet-size) - var(--guide-width)) / 2);
|
|
290
|
+
}
|
|
291
|
+
.pagination-links {
|
|
292
|
+
gap: 1.5rem;
|
|
293
|
+
padding-top: 2rem;
|
|
294
|
+
border-top: 1px solid var(--apple-border-subtle);
|
|
295
|
+
}
|
|
296
|
+
.pagination-links > a {
|
|
297
|
+
align-items: flex-start;
|
|
298
|
+
min-height: 3.5rem;
|
|
299
|
+
padding: 0.65rem 0.75rem;
|
|
300
|
+
border-radius: var(--apple-radius-sm);
|
|
301
|
+
border: 0;
|
|
302
|
+
box-shadow: none;
|
|
303
|
+
color: var(--apple-link);
|
|
304
|
+
}
|
|
305
|
+
.pagination-links > a:hover {
|
|
306
|
+
background: var(--apple-selection);
|
|
307
|
+
color: var(--apple-link-hover);
|
|
308
|
+
}
|
|
309
|
+
.pagination-links > a:active {
|
|
310
|
+
background: var(--apple-pressed);
|
|
311
|
+
}
|
|
312
|
+
.pagination-links > a > span {
|
|
313
|
+
color: var(--apple-secondary-foreground);
|
|
314
|
+
font-size: 0.75rem;
|
|
315
|
+
}
|
|
316
|
+
.pagination-links .link-title {
|
|
317
|
+
color: inherit;
|
|
318
|
+
font-size: 0.95rem;
|
|
319
|
+
font-weight: 500;
|
|
320
|
+
}
|
|
321
|
+
.pagination-links > a > svg {
|
|
322
|
+
margin-top: 0.2rem;
|
|
323
|
+
}
|
|
324
|
+
.sl-markdown-content starlight-tabs ul[role="tablist"] {
|
|
325
|
+
border-bottom: 1px solid var(--apple-border);
|
|
326
|
+
}
|
|
327
|
+
.sl-markdown-content starlight-tabs a[role="tab"] {
|
|
328
|
+
color: var(--apple-secondary-foreground);
|
|
329
|
+
}
|
|
330
|
+
.sl-markdown-content starlight-tabs a[role="tab"][aria-selected="true"] {
|
|
331
|
+
border-color: var(--apple-link);
|
|
332
|
+
color: var(--apple-link);
|
|
333
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
.sl-markdown-content .sl-link-button {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
gap: 0.4rem;
|
|
6
|
+
min-height: 2.25rem;
|
|
7
|
+
margin-block: 0.25rem;
|
|
8
|
+
padding: 0.45rem 0.875rem;
|
|
9
|
+
border: 1px solid transparent;
|
|
10
|
+
border-radius: var(--apple-radius-sm);
|
|
11
|
+
box-shadow: none;
|
|
12
|
+
font-size: 0.875rem;
|
|
13
|
+
font-weight: 600;
|
|
14
|
+
line-height: 1.25rem;
|
|
15
|
+
text-decoration: none;
|
|
16
|
+
vertical-align: middle;
|
|
17
|
+
}
|
|
18
|
+
.sl-markdown-content .sl-link-button + .sl-link-button {
|
|
19
|
+
margin-inline-start: 0.5rem;
|
|
20
|
+
}
|
|
21
|
+
.sl-markdown-content .sl-link-button.primary {
|
|
22
|
+
border-color: var(--apple-link);
|
|
23
|
+
background: var(--apple-link);
|
|
24
|
+
color: var(--apple-control-primary-text);
|
|
25
|
+
}
|
|
26
|
+
.sl-markdown-content .sl-link-button.primary:hover {
|
|
27
|
+
border-color: var(--apple-link-hover);
|
|
28
|
+
background: var(--apple-link-hover);
|
|
29
|
+
color: var(--apple-control-primary-text);
|
|
30
|
+
}
|
|
31
|
+
.sl-markdown-content .sl-link-button.secondary {
|
|
32
|
+
border-color: var(--apple-border);
|
|
33
|
+
background: var(--apple-surface-raised);
|
|
34
|
+
color: var(--apple-foreground);
|
|
35
|
+
}
|
|
36
|
+
.sl-markdown-content .sl-link-button.secondary:hover {
|
|
37
|
+
border-color: var(--apple-link);
|
|
38
|
+
background: var(--apple-selection);
|
|
39
|
+
color: var(--apple-link);
|
|
40
|
+
}
|
|
41
|
+
.sl-markdown-content .sl-link-button.minimal {
|
|
42
|
+
background: transparent;
|
|
43
|
+
color: var(--apple-link);
|
|
44
|
+
}
|
|
45
|
+
.sl-markdown-content .sl-link-button.minimal:hover {
|
|
46
|
+
background: var(--apple-selection);
|
|
47
|
+
color: var(--apple-link-hover);
|
|
48
|
+
}
|
|
49
|
+
.sl-markdown-content .sl-link-button:active {
|
|
50
|
+
background: var(--apple-pressed);
|
|
51
|
+
transform: scale(0.98);
|
|
52
|
+
}
|
|
53
|
+
.sl-markdown-content .sl-link-button[aria-disabled="true"] {
|
|
54
|
+
pointer-events: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.hero .sl-link-button {
|
|
58
|
+
display: inline-flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
gap: 0.4rem;
|
|
62
|
+
min-height: 2.5rem;
|
|
63
|
+
padding: 0.55rem 1rem;
|
|
64
|
+
border: 1px solid transparent;
|
|
65
|
+
border-radius: var(--apple-radius-sm);
|
|
66
|
+
box-shadow: none;
|
|
67
|
+
font-size: 0.875rem;
|
|
68
|
+
font-weight: 600;
|
|
69
|
+
line-height: 1.25rem;
|
|
70
|
+
text-decoration: none;
|
|
71
|
+
}
|
|
72
|
+
.hero .sl-link-button svg,
|
|
73
|
+
.sl-markdown-content .sl-link-button svg {
|
|
74
|
+
flex-shrink: 0;
|
|
75
|
+
font-size: 1.125rem;
|
|
76
|
+
}
|
|
77
|
+
.hero .sl-link-button.primary {
|
|
78
|
+
border-color: var(--apple-link);
|
|
79
|
+
background: var(--apple-link);
|
|
80
|
+
color: var(--apple-control-primary-text);
|
|
81
|
+
}
|
|
82
|
+
.hero .sl-link-button.primary:is(:hover, :focus-visible) {
|
|
83
|
+
border-color: var(--apple-link-hover);
|
|
84
|
+
background: var(--apple-link-hover);
|
|
85
|
+
color: var(--apple-control-primary-text);
|
|
86
|
+
}
|
|
87
|
+
.hero .sl-link-button.secondary {
|
|
88
|
+
border-color: var(--apple-border);
|
|
89
|
+
background: var(--apple-surface-raised);
|
|
90
|
+
color: var(--apple-foreground);
|
|
91
|
+
}
|
|
92
|
+
.hero .sl-link-button.secondary:is(:hover, :focus-visible) {
|
|
93
|
+
border-color: var(--apple-link);
|
|
94
|
+
background: var(--apple-selection);
|
|
95
|
+
color: var(--apple-link);
|
|
96
|
+
}
|
|
97
|
+
.hero .sl-link-button.minimal {
|
|
98
|
+
background: transparent;
|
|
99
|
+
color: var(--apple-link);
|
|
100
|
+
}
|
|
101
|
+
.hero .sl-link-button.minimal:is(:hover, :focus-visible) {
|
|
102
|
+
background: var(--apple-selection);
|
|
103
|
+
color: var(--apple-link-hover);
|
|
104
|
+
}
|
|
105
|
+
.hero .sl-link-button:active {
|
|
106
|
+
background: var(--apple-pressed);
|
|
107
|
+
transform: scale(0.98);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.sl-markdown-content starlight-tabs {
|
|
111
|
+
display: block;
|
|
112
|
+
margin-block: 1.5rem;
|
|
113
|
+
}
|
|
114
|
+
.sl-markdown-content starlight-tabs .tablist-wrapper {
|
|
115
|
+
margin-bottom: 0;
|
|
116
|
+
}
|
|
117
|
+
.sl-markdown-content starlight-tabs ul[role="tablist"] {
|
|
118
|
+
gap: 0.25rem;
|
|
119
|
+
margin: 0;
|
|
120
|
+
padding-inline: 0;
|
|
121
|
+
}
|
|
122
|
+
.sl-markdown-content starlight-tabs a[role="tab"] {
|
|
123
|
+
display: inline-flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
gap: 0.4rem;
|
|
126
|
+
min-height: 2.5rem;
|
|
127
|
+
padding: 0.5rem 0.75rem;
|
|
128
|
+
border-bottom: 2px solid transparent;
|
|
129
|
+
font-size: 0.875rem;
|
|
130
|
+
font-weight: 500;
|
|
131
|
+
line-height: 1.25rem;
|
|
132
|
+
text-decoration: none;
|
|
133
|
+
}
|
|
134
|
+
.sl-markdown-content starlight-tabs a[role="tab"]:hover {
|
|
135
|
+
background: var(--apple-selection);
|
|
136
|
+
color: var(--apple-link);
|
|
137
|
+
}
|
|
138
|
+
.sl-markdown-content starlight-tabs a[role="tab"]:active {
|
|
139
|
+
background: var(--apple-pressed);
|
|
140
|
+
}
|
|
141
|
+
.sl-markdown-content starlight-tabs a[role="tab"][aria-selected="true"] {
|
|
142
|
+
border-bottom-color: var(--apple-link);
|
|
143
|
+
color: var(--apple-link);
|
|
144
|
+
font-weight: 600;
|
|
145
|
+
}
|
|
146
|
+
.sl-markdown-content starlight-tabs [role="tabpanel"] {
|
|
147
|
+
padding-top: 1rem;
|
|
148
|
+
}
|
|
149
|
+
.sl-markdown-content starlight-tabs [role="tabpanel"] > :first-child {
|
|
150
|
+
margin-top: 0;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.sl-markdown-content .sl-badge {
|
|
154
|
+
display: inline-flex;
|
|
155
|
+
align-items: center;
|
|
156
|
+
min-height: 1.375rem;
|
|
157
|
+
padding-inline: 0.5rem;
|
|
158
|
+
border: 1px solid currentColor;
|
|
159
|
+
border-radius: 999px;
|
|
160
|
+
font-weight: 600;
|
|
161
|
+
line-height: 1.2;
|
|
162
|
+
vertical-align: 0.08em;
|
|
163
|
+
}
|
|
164
|
+
.sl-markdown-content .sl-badge + .sl-badge {
|
|
165
|
+
margin-inline-start: 0.25rem;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.sl-markdown-content
|
|
169
|
+
:is(input, select, textarea, button):not(:where(.not-content *)) {
|
|
170
|
+
min-height: 2.25rem;
|
|
171
|
+
border: 1px solid var(--apple-border);
|
|
172
|
+
border-radius: var(--apple-radius-sm);
|
|
173
|
+
background: var(--apple-surface-raised);
|
|
174
|
+
color: var(--apple-foreground);
|
|
175
|
+
font: inherit;
|
|
176
|
+
}
|
|
177
|
+
.sl-markdown-content :is(input, select, textarea):focus {
|
|
178
|
+
border-color: var(--apple-link);
|
|
179
|
+
box-shadow: 0 0 0 3px var(--apple-selection);
|
|
180
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
header.header {
|
|
2
|
+
height: var(--apple-header-height);
|
|
3
|
+
border-bottom: 1px solid var(--apple-border-subtle);
|
|
4
|
+
background: var(--apple-header-background);
|
|
5
|
+
color: var(--apple-foreground);
|
|
6
|
+
-webkit-backdrop-filter: saturate(180%) blur(20px);
|
|
7
|
+
backdrop-filter: saturate(180%) blur(20px);
|
|
8
|
+
}
|
|
9
|
+
header.header > .header {
|
|
10
|
+
height: 100%;
|
|
11
|
+
padding-inline: clamp(1rem, 2.4vw, 2rem);
|
|
12
|
+
}
|
|
13
|
+
.site-title {
|
|
14
|
+
min-width: 0;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
color: var(--apple-foreground);
|
|
17
|
+
font-size: 1.05rem;
|
|
18
|
+
font-weight: 600;
|
|
19
|
+
letter-spacing: -0.015em;
|
|
20
|
+
text-overflow: ellipsis;
|
|
21
|
+
white-space: nowrap;
|
|
22
|
+
}
|
|
23
|
+
.site-title:hover {
|
|
24
|
+
color: var(--apple-link);
|
|
25
|
+
}
|
|
26
|
+
.right-group {
|
|
27
|
+
align-items: center;
|
|
28
|
+
gap: 0.35rem;
|
|
29
|
+
}
|
|
30
|
+
.social-icons {
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: 0.2rem;
|
|
33
|
+
}
|
|
34
|
+
.social-icons::after {
|
|
35
|
+
display: none;
|
|
36
|
+
}
|
|
37
|
+
.social-icons a,
|
|
38
|
+
starlight-theme-select,
|
|
39
|
+
starlight-lang-select {
|
|
40
|
+
display: inline-flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
min-width: 2.25rem;
|
|
44
|
+
min-height: 2.25rem;
|
|
45
|
+
border-radius: var(--apple-radius-sm);
|
|
46
|
+
color: var(--apple-secondary-foreground);
|
|
47
|
+
}
|
|
48
|
+
.social-icons a {
|
|
49
|
+
width: 2.25rem;
|
|
50
|
+
height: 2.25rem;
|
|
51
|
+
margin: 0;
|
|
52
|
+
padding: 0.5rem;
|
|
53
|
+
}
|
|
54
|
+
:is(starlight-theme-select, starlight-lang-select) {
|
|
55
|
+
align-self: center;
|
|
56
|
+
height: 2.25rem;
|
|
57
|
+
}
|
|
58
|
+
:is(starlight-theme-select, starlight-lang-select) > label {
|
|
59
|
+
height: 100%;
|
|
60
|
+
}
|
|
61
|
+
:is(starlight-theme-select, starlight-lang-select) > label > select {
|
|
62
|
+
height: 2.25rem;
|
|
63
|
+
margin-block: 0;
|
|
64
|
+
padding-block: 0;
|
|
65
|
+
line-height: 2.25rem;
|
|
66
|
+
}
|
|
67
|
+
.social-icons a:hover,
|
|
68
|
+
starlight-theme-select:hover,
|
|
69
|
+
starlight-lang-select:hover {
|
|
70
|
+
background: var(--apple-selection);
|
|
71
|
+
color: var(--apple-link);
|
|
72
|
+
}
|
|
73
|
+
.social-icons a:active,
|
|
74
|
+
starlight-theme-select:active,
|
|
75
|
+
starlight-lang-select:active {
|
|
76
|
+
background: var(--apple-pressed);
|
|
77
|
+
}
|
|
78
|
+
starlight-menu-button button {
|
|
79
|
+
display: inline-grid;
|
|
80
|
+
place-items: center;
|
|
81
|
+
width: var(--sl-menu-button-size);
|
|
82
|
+
height: var(--sl-menu-button-size);
|
|
83
|
+
border: 0;
|
|
84
|
+
background: transparent;
|
|
85
|
+
box-shadow: none;
|
|
86
|
+
color: var(--apple-foreground);
|
|
87
|
+
}
|
|
88
|
+
starlight-menu-button button:hover {
|
|
89
|
+
background: var(--apple-selection);
|
|
90
|
+
color: var(--apple-link);
|
|
91
|
+
}
|
|
92
|
+
starlight-menu-button[aria-expanded="true"] button,
|
|
93
|
+
starlight-menu-button button:active {
|
|
94
|
+
background: var(--apple-pressed);
|
|
95
|
+
color: var(--apple-link);
|
|
96
|
+
}
|
|
97
|
+
@media (min-width: 50rem) {
|
|
98
|
+
header.header > .header > div.sl-flex:has(site-search) {
|
|
99
|
+
justify-self: end;
|
|
100
|
+
min-width: 15rem;
|
|
101
|
+
}
|
|
102
|
+
:is(starlight-theme-select, starlight-lang-select) {
|
|
103
|
+
padding-inline-start: 0.35rem;
|
|
104
|
+
border: 1px solid transparent;
|
|
105
|
+
}
|
|
106
|
+
:is(starlight-theme-select, starlight-lang-select):hover {
|
|
107
|
+
border-color: var(--apple-border-subtle);
|
|
108
|
+
}
|
|
109
|
+
:is(starlight-theme-select, starlight-lang-select) > label > select {
|
|
110
|
+
min-height: 2.25rem;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
@media (min-width: 50rem) {
|
|
2
|
+
:root {
|
|
3
|
+
--sl-sidebar-pad-x: 0.75rem;
|
|
4
|
+
}
|
|
5
|
+
.sidebar-pane {
|
|
6
|
+
top: var(--apple-header-height);
|
|
7
|
+
height: calc(100vh - var(--apple-header-height));
|
|
8
|
+
}
|
|
9
|
+
starlight-menu-button {
|
|
10
|
+
display: none !important;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
@media (min-width: 72rem) {
|
|
14
|
+
:root {
|
|
15
|
+
--sl-mobile-toc-height: 0rem;
|
|
16
|
+
}
|
|
17
|
+
.main-frame {
|
|
18
|
+
grid-template-columns: var(--apple-sidebar-width) minmax(0, 1fr) var(
|
|
19
|
+
--apple-toc-width
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
.main-pane main {
|
|
23
|
+
margin-inline: auto;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
@media (min-width: 90rem) {
|
|
27
|
+
:root {
|
|
28
|
+
--apple-sidebar-width: 18.5rem;
|
|
29
|
+
--apple-toc-width: 13rem;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
@media (max-width: 71.99rem) {
|
|
33
|
+
.content-panel:first-of-type .sl-container {
|
|
34
|
+
padding-top: clamp(2rem, 5vw, 3.5rem);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
@media (max-width: 49.99rem) {
|
|
38
|
+
.sidebar-pane {
|
|
39
|
+
background: var(--apple-sidebar-background);
|
|
40
|
+
}
|
|
41
|
+
.sidebar-content {
|
|
42
|
+
padding: 1rem;
|
|
43
|
+
}
|
|
44
|
+
.mobile-preferences {
|
|
45
|
+
align-items: center;
|
|
46
|
+
min-height: 3.75rem;
|
|
47
|
+
padding-block: 0.75rem;
|
|
48
|
+
}
|
|
49
|
+
.mobile-preferences .social-icons {
|
|
50
|
+
align-items: center;
|
|
51
|
+
height: 2.25rem;
|
|
52
|
+
margin-inline-end: 0;
|
|
53
|
+
padding-block: 0;
|
|
54
|
+
}
|
|
55
|
+
.mobile-preferences :is(starlight-theme-select, starlight-lang-select) {
|
|
56
|
+
margin-block: 0;
|
|
57
|
+
}
|
|
58
|
+
.content-panel:first-of-type .sl-container {
|
|
59
|
+
padding-top: 2rem;
|
|
60
|
+
}
|
|
61
|
+
.sl-markdown-content h2:not(:where(.not-content *)) {
|
|
62
|
+
margin-top: 0;
|
|
63
|
+
}
|
|
64
|
+
.sl-markdown-content .sl-heading-wrapper.level-h2 {
|
|
65
|
+
margin-top: 2.6rem;
|
|
66
|
+
}
|
|
67
|
+
.pagination-links {
|
|
68
|
+
grid-template-columns: 1fr;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
@media (max-width: 30rem) {
|
|
72
|
+
:root {
|
|
73
|
+
--sl-content-pad-x: 1.15rem;
|
|
74
|
+
}
|
|
75
|
+
header.header > .header {
|
|
76
|
+
padding-inline: 0.75rem;
|
|
77
|
+
}
|
|
78
|
+
.content-panel h1 {
|
|
79
|
+
font-size: 1.75rem;
|
|
80
|
+
line-height: 2rem;
|
|
81
|
+
}
|
|
82
|
+
.sl-markdown-content {
|
|
83
|
+
font-size: 1.0625rem;
|
|
84
|
+
}
|
|
85
|
+
.sl-markdown-content table:not(:where(.not-content *)) {
|
|
86
|
+
display: block;
|
|
87
|
+
overflow-x: auto;
|
|
88
|
+
}
|
|
89
|
+
.sl-markdown-content .sl-link-button {
|
|
90
|
+
width: 100%;
|
|
91
|
+
}
|
|
92
|
+
.sl-markdown-content .sl-link-button + .sl-link-button {
|
|
93
|
+
margin-inline-start: 0;
|
|
94
|
+
}
|
|
95
|
+
}
|