starlight-theme-apple 0.3.0 → 0.4.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/code.css +25 -2
- package/styles/responsive.css +6 -4
- package/styles/search.css +22 -1
package/package.json
CHANGED
package/styles/code.css
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.expressive-code {
|
|
12
|
-
--ec-brdRad:
|
|
12
|
+
--ec-brdRad: 0.75rem;
|
|
13
13
|
--ec-brdWd: 1px;
|
|
14
14
|
margin-block: 1.5rem;
|
|
15
15
|
}
|
|
@@ -37,10 +37,33 @@
|
|
|
37
37
|
}
|
|
38
38
|
.expressive-code .copy button {
|
|
39
39
|
border-color: var(--apple-hairline) !important;
|
|
40
|
-
border-radius:
|
|
40
|
+
border-radius: 0.5rem !important;
|
|
41
41
|
background: var(--apple-secondary-background) !important;
|
|
42
42
|
color: var(--apple-secondary-foreground) !important;
|
|
43
43
|
}
|
|
44
|
+
|
|
45
|
+
.sl-markdown-content kbd:not(:where(.not-content *)) {
|
|
46
|
+
display: inline-flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
min-height: 1.5rem;
|
|
49
|
+
padding-inline: 0.4rem;
|
|
50
|
+
border: 1px solid var(--apple-border);
|
|
51
|
+
border-bottom-width: 2px;
|
|
52
|
+
border-radius: 0.35rem;
|
|
53
|
+
background: var(--apple-secondary-background);
|
|
54
|
+
color: var(--apple-secondary-foreground);
|
|
55
|
+
font-family: var(--apple-font-sans);
|
|
56
|
+
font-size: 0.8125rem;
|
|
57
|
+
line-height: 1;
|
|
58
|
+
vertical-align: 0.08em;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.sl-markdown-content mark:not(:where(.not-content *)) {
|
|
62
|
+
padding-inline: 0.15em;
|
|
63
|
+
border-radius: 0.2em;
|
|
64
|
+
background: color-mix(in srgb, var(--apple-warning) 28%, transparent);
|
|
65
|
+
color: var(--apple-foreground);
|
|
66
|
+
}
|
|
44
67
|
.expressive-code .copy button:is(:hover, :focus-visible) {
|
|
45
68
|
border-color: var(--apple-border) !important;
|
|
46
69
|
background: var(--apple-active-surface) !important;
|
package/styles/responsive.css
CHANGED
|
@@ -112,6 +112,12 @@
|
|
|
112
112
|
.hero .actions {
|
|
113
113
|
gap: 0.625rem;
|
|
114
114
|
}
|
|
115
|
+
.sl-markdown-content table:not(:where(.not-content *)) {
|
|
116
|
+
display: block;
|
|
117
|
+
max-width: 100%;
|
|
118
|
+
overflow-x: auto;
|
|
119
|
+
overscroll-behavior-inline: contain;
|
|
120
|
+
}
|
|
115
121
|
}
|
|
116
122
|
@media (max-width: 30rem) {
|
|
117
123
|
:root {
|
|
@@ -124,10 +130,6 @@
|
|
|
124
130
|
font-size: 1.0625rem;
|
|
125
131
|
line-height: 1.25rem;
|
|
126
132
|
}
|
|
127
|
-
.sl-markdown-content table:not(:where(.not-content *)) {
|
|
128
|
-
display: block;
|
|
129
|
-
overflow-x: auto;
|
|
130
|
-
}
|
|
131
133
|
.sl-markdown-content .sl-link-button {
|
|
132
134
|
width: 100%;
|
|
133
135
|
}
|
package/styles/search.css
CHANGED
|
@@ -15,10 +15,27 @@ site-search > button[aria-expanded="true"] {
|
|
|
15
15
|
}
|
|
16
16
|
site-search dialog {
|
|
17
17
|
border: 1px solid var(--apple-border);
|
|
18
|
-
border-radius:
|
|
18
|
+
border-radius: 0.75rem;
|
|
19
19
|
background: var(--apple-secondary-background);
|
|
20
20
|
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
|
|
21
21
|
}
|
|
22
|
+
site-search > button kbd {
|
|
23
|
+
gap: 0.2rem;
|
|
24
|
+
border: 0;
|
|
25
|
+
background: transparent;
|
|
26
|
+
color: var(--apple-tertiary-foreground);
|
|
27
|
+
font-family: var(--apple-font-sans);
|
|
28
|
+
font-size: 0.6875rem;
|
|
29
|
+
}
|
|
30
|
+
site-search > button kbd kbd {
|
|
31
|
+
min-width: 1.25rem;
|
|
32
|
+
padding: 0.125rem 0.25rem;
|
|
33
|
+
border: 1px solid var(--apple-hairline);
|
|
34
|
+
border-radius: 0.25rem;
|
|
35
|
+
background: var(--apple-secondary-background);
|
|
36
|
+
line-height: 1rem;
|
|
37
|
+
text-align: center;
|
|
38
|
+
}
|
|
22
39
|
site-search dialog::backdrop {
|
|
23
40
|
background: rgba(0, 0, 0, 0.3);
|
|
24
41
|
-webkit-backdrop-filter: blur(4px);
|
|
@@ -65,3 +82,7 @@ site-search input:focus {
|
|
|
65
82
|
.pagefind-ui__result-excerpt {
|
|
66
83
|
color: var(--apple-secondary-foreground) !important;
|
|
67
84
|
}
|
|
85
|
+
.pagefind-ui__message,
|
|
86
|
+
.pagefind-ui__result-nested {
|
|
87
|
+
color: var(--apple-tertiary-foreground) !important;
|
|
88
|
+
}
|