starlight-theme-apple 0.5.0 → 0.6.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/package.json +1 -1
- package/styles/base.css +5 -5
- package/styles/content.css +86 -14
- package/styles/controls.css +5 -1
- package/styles/tokens.css +2 -0
package/package.json
CHANGED
package/styles/base.css
CHANGED
|
@@ -63,12 +63,12 @@ select:disabled {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
.sl-banner {
|
|
66
|
-
|
|
66
|
+
width: 100%;
|
|
67
|
+
max-width: none;
|
|
67
68
|
margin-block: 2rem 1rem;
|
|
68
|
-
margin-inline:
|
|
69
|
-
padding: 0.875rem
|
|
70
|
-
border: 1px solid var(--apple-border);
|
|
71
|
-
border-radius: 0.75rem;
|
|
69
|
+
margin-inline: 0;
|
|
70
|
+
padding: 0.875rem var(--sl-content-pad-x);
|
|
71
|
+
border-block: 1px solid var(--apple-border);
|
|
72
72
|
background: var(--apple-aside-background);
|
|
73
73
|
box-shadow: none;
|
|
74
74
|
color: var(--apple-foreground);
|
package/styles/content.css
CHANGED
|
@@ -237,40 +237,112 @@
|
|
|
237
237
|
.sl-markdown-content .card,
|
|
238
238
|
.sl-markdown-content .sl-link-card {
|
|
239
239
|
border: 1px solid var(--apple-hairline);
|
|
240
|
-
border-radius: 0.
|
|
241
|
-
background: var(--apple-
|
|
242
|
-
box-shadow:
|
|
240
|
+
border-radius: 0.875rem;
|
|
241
|
+
background: var(--apple-card-background);
|
|
242
|
+
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
|
|
243
243
|
}
|
|
244
244
|
.sl-markdown-content .card {
|
|
245
|
+
min-height: 100%;
|
|
245
246
|
padding: 1.25rem;
|
|
247
|
+
gap: 0.75rem;
|
|
248
|
+
}
|
|
249
|
+
.sl-markdown-content .card .title {
|
|
250
|
+
align-items: center;
|
|
251
|
+
gap: 0.75rem;
|
|
252
|
+
margin: 0;
|
|
253
|
+
color: var(--apple-foreground);
|
|
254
|
+
font-size: 1.0625rem;
|
|
255
|
+
font-weight: 600;
|
|
256
|
+
line-height: 1.375rem;
|
|
257
|
+
}
|
|
258
|
+
.sl-markdown-content .card .body {
|
|
259
|
+
margin: 0;
|
|
260
|
+
color: var(--apple-secondary-foreground);
|
|
261
|
+
font-size: 0.9375rem;
|
|
262
|
+
line-height: 1.5rem;
|
|
263
|
+
}
|
|
264
|
+
.sl-markdown-content .card .body > :first-child {
|
|
265
|
+
margin-top: 0;
|
|
266
|
+
}
|
|
267
|
+
.sl-markdown-content .card .body > :last-child {
|
|
268
|
+
margin-bottom: 0;
|
|
246
269
|
}
|
|
247
270
|
.sl-markdown-content .card-grid {
|
|
271
|
+
align-items: stretch;
|
|
248
272
|
gap: 1rem;
|
|
249
273
|
}
|
|
250
274
|
.sl-markdown-content .card-grid.stagger {
|
|
251
|
-
--stagger-height:
|
|
275
|
+
--stagger-height: 1.5rem;
|
|
276
|
+
}
|
|
277
|
+
.sl-markdown-content .card .title .icon {
|
|
278
|
+
box-sizing: border-box;
|
|
279
|
+
flex: 0 0 2rem;
|
|
280
|
+
width: 2rem;
|
|
281
|
+
height: 2rem;
|
|
282
|
+
padding: 0.4375rem;
|
|
283
|
+
border: 1px solid var(--apple-hairline);
|
|
284
|
+
border-radius: 0.625rem;
|
|
285
|
+
background: var(--apple-hover-surface);
|
|
286
|
+
color: var(--apple-link);
|
|
287
|
+
font-size: 1.125rem;
|
|
288
|
+
}
|
|
289
|
+
.sl-markdown-content .sl-link-card {
|
|
290
|
+
min-height: 100%;
|
|
291
|
+
transition:
|
|
292
|
+
transform var(--apple-transition),
|
|
293
|
+
border-color var(--apple-transition),
|
|
294
|
+
background-color var(--apple-transition),
|
|
295
|
+
box-shadow var(--apple-transition);
|
|
296
|
+
}
|
|
297
|
+
.sl-markdown-content .sl-link-card:is(:hover, :focus-within) {
|
|
298
|
+
border-color: var(--apple-link);
|
|
299
|
+
background: var(--apple-hover-surface);
|
|
300
|
+
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
|
|
301
|
+
transform: translateY(-1px);
|
|
302
|
+
text-decoration: none;
|
|
252
303
|
}
|
|
253
|
-
.sl-markdown-content .card .title,
|
|
254
304
|
.sl-markdown-content .sl-link-card .title {
|
|
255
305
|
color: var(--apple-foreground);
|
|
256
306
|
font-size: 1rem;
|
|
257
307
|
font-weight: 600;
|
|
308
|
+
line-height: 1.375rem;
|
|
258
309
|
}
|
|
259
|
-
.sl-markdown-content .card .title
|
|
310
|
+
.sl-markdown-content .sl-link-card:hover .title,
|
|
311
|
+
.sl-markdown-content .sl-link-card:focus-within .title {
|
|
260
312
|
color: var(--apple-link);
|
|
261
|
-
font-size: 1.5rem;
|
|
262
|
-
}
|
|
263
|
-
.sl-markdown-content .sl-link-card:is(:hover, :focus-visible) {
|
|
264
|
-
border-color: var(--apple-border);
|
|
265
|
-
background: var(--apple-hover-surface);
|
|
266
|
-
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
|
|
267
|
-
text-decoration: none;
|
|
268
313
|
}
|
|
269
314
|
.sl-markdown-content .sl-link-card .description {
|
|
270
315
|
color: var(--apple-secondary-foreground);
|
|
316
|
+
font-size: 0.9375rem;
|
|
317
|
+
line-height: 1.4375rem;
|
|
271
318
|
}
|
|
272
319
|
.sl-markdown-content .sl-link-card .icon {
|
|
273
|
-
|
|
320
|
+
align-self: start;
|
|
321
|
+
margin-top: 0.125rem;
|
|
322
|
+
color: var(--apple-link);
|
|
323
|
+
transition: transform var(--apple-transition);
|
|
324
|
+
}
|
|
325
|
+
.sl-markdown-content .sl-link-card:hover .icon,
|
|
326
|
+
.sl-markdown-content .sl-link-card:focus-within .icon {
|
|
327
|
+
transform: translateX(0.125rem);
|
|
328
|
+
}
|
|
329
|
+
.sl-markdown-content .sl-link-card a:focus-visible {
|
|
330
|
+
outline: 0;
|
|
331
|
+
}
|
|
332
|
+
.sl-markdown-content .sl-link-card:focus-within {
|
|
333
|
+
outline: 3px solid var(--apple-focus);
|
|
334
|
+
outline-offset: 2px;
|
|
335
|
+
}
|
|
336
|
+
@media (prefers-reduced-motion: reduce) {
|
|
337
|
+
.sl-markdown-content .sl-link-card,
|
|
338
|
+
.sl-markdown-content .sl-link-card .icon {
|
|
339
|
+
transition: none;
|
|
340
|
+
}
|
|
341
|
+
.sl-markdown-content .sl-link-card:is(:hover, :focus-within),
|
|
342
|
+
.sl-markdown-content .sl-link-card:hover .icon,
|
|
343
|
+
.sl-markdown-content .sl-link-card:focus-within .icon {
|
|
344
|
+
transform: none;
|
|
345
|
+
}
|
|
274
346
|
}
|
|
275
347
|
|
|
276
348
|
.starlight-aside {
|
package/styles/controls.css
CHANGED
|
@@ -128,7 +128,8 @@
|
|
|
128
128
|
padding-inline: 0.5rem;
|
|
129
129
|
border: 0;
|
|
130
130
|
border-radius: 999px;
|
|
131
|
-
background: color-
|
|
131
|
+
background: var(--sl-color-bg-badge);
|
|
132
|
+
color: var(--sl-color-text-badge);
|
|
132
133
|
font-weight: 600;
|
|
133
134
|
line-height: 1.2;
|
|
134
135
|
vertical-align: 0.08em;
|
|
@@ -144,6 +145,9 @@
|
|
|
144
145
|
font-size: 0.6875rem;
|
|
145
146
|
line-height: 1;
|
|
146
147
|
}
|
|
148
|
+
.sidebar-content a[aria-current="page"] > .sl-badge {
|
|
149
|
+
color: inherit;
|
|
150
|
+
}
|
|
147
151
|
|
|
148
152
|
.sl-markdown-content :is(input, select, textarea):not(:where(.not-content *)) {
|
|
149
153
|
min-height: 2.25rem;
|
package/styles/tokens.css
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
--apple-background: #111;
|
|
4
4
|
--apple-navigator-background: #161616;
|
|
5
5
|
--apple-secondary-background: #1c1c1e;
|
|
6
|
+
--apple-card-background: #1c1c1e;
|
|
6
7
|
--apple-surface: #2a2a2a;
|
|
7
8
|
--apple-hover-surface: rgba(0, 153, 255, 0.08);
|
|
8
9
|
--apple-active-surface: rgba(255, 255, 255, 0.1);
|
|
@@ -79,6 +80,7 @@
|
|
|
79
80
|
--apple-background: #fff;
|
|
80
81
|
--apple-navigator-background: #f7f7f7;
|
|
81
82
|
--apple-secondary-background: #fff;
|
|
83
|
+
--apple-card-background: #f5f5f7;
|
|
82
84
|
--apple-surface: #f0f0f0;
|
|
83
85
|
--apple-hover-surface: rgba(51, 102, 255, 0.05);
|
|
84
86
|
--apple-active-surface: rgba(0, 0, 0, 0.06);
|