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