starlight-theme-apple 0.1.0 → 0.3.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.
@@ -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,106 +13,65 @@
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
- .hero .sl-link-button.primary {
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-link-button.primary:is(:hover, :focus-visible) {
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: var(--apple-surface-raised);
44
+ background: transparent;
90
45
  color: var(--apple-foreground);
91
46
  }
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);
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-link-button.minimal:is(:hover, :focus-visible) {
102
- background: var(--apple-selection);
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 {
111
65
  display: block;
112
66
  margin-block: 1.5rem;
67
+ border: 1px solid var(--apple-hairline);
68
+ border-radius: 0.75rem;
69
+ background: var(--apple-secondary-background);
113
70
  }
114
71
  .sl-markdown-content starlight-tabs .tablist-wrapper {
115
72
  margin-bottom: 0;
73
+ padding-inline: 0.5rem;
74
+ border-bottom: 1px solid var(--apple-hairline);
116
75
  }
117
76
  .sl-markdown-content starlight-tabs ul[role="tablist"] {
118
77
  gap: 0.25rem;
@@ -122,59 +81,65 @@
122
81
  .sl-markdown-content starlight-tabs a[role="tab"] {
123
82
  display: inline-flex;
124
83
  align-items: center;
125
- gap: 0.4rem;
126
84
  min-height: 2.5rem;
127
85
  padding: 0.5rem 0.75rem;
128
86
  border-bottom: 2px solid transparent;
87
+ border-radius: var(--apple-radius-sm) var(--apple-radius-sm) 0 0;
129
88
  font-size: 0.875rem;
130
89
  font-weight: 500;
131
90
  line-height: 1.25rem;
132
91
  text-decoration: none;
133
92
  }
134
93
  .sl-markdown-content starlight-tabs a[role="tab"]:hover {
135
- background: var(--apple-selection);
94
+ background: var(--apple-hover-surface);
136
95
  color: var(--apple-link);
137
96
  }
138
- .sl-markdown-content starlight-tabs a[role="tab"]:active {
139
- background: var(--apple-pressed);
140
- }
141
97
  .sl-markdown-content starlight-tabs a[role="tab"][aria-selected="true"] {
142
98
  border-bottom-color: var(--apple-link);
143
99
  color: var(--apple-link);
144
100
  font-weight: 600;
145
101
  }
146
102
  .sl-markdown-content starlight-tabs [role="tabpanel"] {
147
- padding-top: 1rem;
103
+ padding: 1rem;
148
104
  }
149
105
  .sl-markdown-content starlight-tabs [role="tabpanel"] > :first-child {
150
106
  margin-top: 0;
151
107
  }
152
108
 
153
- .sl-markdown-content .sl-badge {
109
+ .sl-badge {
154
110
  display: inline-flex;
155
111
  align-items: center;
156
112
  min-height: 1.375rem;
157
113
  padding-inline: 0.5rem;
158
- border: 1px solid currentColor;
114
+ border: 0;
159
115
  border-radius: 999px;
116
+ background: color-mix(in srgb, currentColor 14%, transparent);
160
117
  font-weight: 600;
161
118
  line-height: 1.2;
162
119
  vertical-align: 0.08em;
163
120
  }
164
- .sl-markdown-content .sl-badge + .sl-badge {
121
+ .sl-badge + .sl-badge {
165
122
  margin-inline-start: 0.25rem;
166
123
  }
167
124
 
125
+ .sidebar-content .sl-badge {
126
+ min-height: 1.125rem;
127
+ margin-inline-start: 0.375rem;
128
+ padding-inline: 0.4rem;
129
+ font-size: 0.6875rem;
130
+ line-height: 1;
131
+ }
132
+
168
133
  .sl-markdown-content
169
134
  :is(input, select, textarea, button):not(:where(.not-content *)) {
170
135
  min-height: 2.25rem;
171
136
  border: 1px solid var(--apple-border);
172
137
  border-radius: var(--apple-radius-sm);
173
- background: var(--apple-surface-raised);
138
+ background: var(--apple-secondary-background);
174
139
  color: var(--apple-foreground);
175
140
  font: inherit;
176
141
  }
177
142
  .sl-markdown-content :is(input, select, textarea):focus {
178
143
  border-color: var(--apple-link);
179
- box-shadow: 0 0 0 3px var(--apple-selection);
144
+ box-shadow: 0 0 0 3px var(--apple-focus);
180
145
  }
package/styles/header.css CHANGED
@@ -1,39 +1,42 @@
1
1
  header.header {
2
2
  height: var(--apple-header-height);
3
- border-bottom: 1px solid var(--apple-border-subtle);
3
+ border-bottom: 1px solid var(--apple-hairline);
4
4
  background: var(--apple-header-background);
5
5
  color: var(--apple-foreground);
6
6
  -webkit-backdrop-filter: saturate(180%) blur(20px);
7
7
  backdrop-filter: saturate(180%) blur(20px);
8
8
  }
9
+
9
10
  header.header > .header {
10
11
  height: 100%;
11
12
  padding-inline: clamp(1rem, 2.4vw, 2rem);
12
13
  }
14
+
13
15
  .site-title {
14
16
  min-width: 0;
15
17
  overflow: hidden;
16
18
  color: var(--apple-foreground);
17
- font-size: 1.05rem;
19
+ font-size: 1.1875rem;
18
20
  font-weight: 600;
21
+ line-height: 1.6875rem;
19
22
  letter-spacing: -0.015em;
20
23
  text-overflow: ellipsis;
21
24
  white-space: nowrap;
22
25
  }
23
26
  .site-title:hover {
24
- color: var(--apple-link);
25
- }
26
- .right-group {
27
- align-items: center;
28
- gap: 0.35rem;
27
+ color: var(--apple-foreground);
28
+ opacity: 0.72;
29
29
  }
30
+
31
+ .right-group,
30
32
  .social-icons {
31
33
  align-items: center;
32
- gap: 0.2rem;
34
+ gap: 0.25rem;
33
35
  }
34
36
  .social-icons::after {
35
37
  display: none;
36
38
  }
39
+
37
40
  .social-icons a,
38
41
  starlight-theme-select,
39
42
  starlight-lang-select {
@@ -58,55 +61,46 @@ starlight-lang-select {
58
61
  :is(starlight-theme-select, starlight-lang-select) > label {
59
62
  height: 100%;
60
63
  }
61
- :is(starlight-theme-select, starlight-lang-select) > label > select {
64
+ :is(starlight-theme-select, starlight-lang-select) select {
62
65
  height: 2.25rem;
63
66
  margin-block: 0;
64
67
  padding-block: 0;
65
68
  line-height: 2.25rem;
66
69
  }
70
+
67
71
  .social-icons a:hover,
68
72
  starlight-theme-select:hover,
69
73
  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);
74
+ background: var(--apple-active-surface);
75
+ color: var(--apple-foreground);
77
76
  }
78
- starlight-menu-button button {
77
+
78
+ .sidebar :is(.sl-menu-button, button[aria-controls="starlight__sidebar"]) {
79
79
  display: inline-grid;
80
80
  place-items: center;
81
81
  width: var(--sl-menu-button-size);
82
82
  height: var(--sl-menu-button-size);
83
83
  border: 0;
84
+ border-radius: var(--apple-radius-sm);
84
85
  background: transparent;
85
86
  box-shadow: none;
86
87
  color: var(--apple-foreground);
87
88
  }
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);
89
+ .sidebar
90
+ :is(.sl-menu-button, button[aria-controls="starlight__sidebar"]):is(
91
+ :hover,
92
+ :active
93
+ ) {
94
+ background: var(--apple-active-surface);
95
+ color: var(--apple-foreground);
96
96
  }
97
+
97
98
  @media (min-width: 50rem) {
98
- header.header > .header > div.sl-flex:has(site-search) {
99
+ header.header site-search {
99
100
  justify-self: end;
100
101
  min-width: 15rem;
101
102
  }
102
103
  :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;
104
+ padding-inline-start: 0.25rem;
111
105
  }
112
106
  }
@@ -6,7 +6,7 @@
6
6
  top: var(--apple-header-height);
7
7
  height: calc(100vh - var(--apple-header-height));
8
8
  }
9
- starlight-menu-button {
9
+ .sidebar :is(.sl-menu-button, button[aria-controls="starlight__sidebar"]) {
10
10
  display: none !important;
11
11
  }
12
12
  }
@@ -23,28 +23,42 @@
23
23
  margin-inline: auto;
24
24
  }
25
25
  }
26
- @media (min-width: 90rem) {
27
- :root {
28
- --apple-sidebar-width: 18.5rem;
29
- --apple-toc-width: 13rem;
30
- }
31
- }
32
26
  @media (max-width: 71.99rem) {
33
27
  .content-panel:first-of-type .sl-container {
34
28
  padding-top: clamp(2rem, 5vw, 3.5rem);
35
29
  }
30
+ .content-panel h1 {
31
+ font-size: 2.5rem;
32
+ line-height: 2.75rem;
33
+ }
34
+ .sl-markdown-content h2:not(:where(.not-content *)) {
35
+ font-size: 1.75rem;
36
+ line-height: 2.25rem;
37
+ }
38
+ .sl-markdown-content h3:not(:where(.not-content *)) {
39
+ font-size: 1.5rem;
40
+ line-height: 1.75rem;
41
+ }
42
+ .sl-markdown-content h4:not(:where(.not-content *)) {
43
+ font-size: 1.3125rem;
44
+ line-height: 1.5625rem;
45
+ }
36
46
  }
37
47
  @media (max-width: 49.99rem) {
48
+ :root {
49
+ --apple-header-height: 3rem;
50
+ --sl-mobile-toc-height: 3rem;
51
+ }
38
52
  .sidebar-pane {
39
- background: var(--apple-sidebar-background);
53
+ background: var(--apple-navigator-background);
40
54
  }
41
55
  .sidebar-content {
42
56
  padding: 1rem;
43
57
  }
44
58
  .mobile-preferences {
45
59
  align-items: center;
46
- min-height: 3.75rem;
47
- padding-block: 0.75rem;
60
+ min-height: 3.5rem;
61
+ padding-block: 0.625rem;
48
62
  }
49
63
  .mobile-preferences .social-icons {
50
64
  align-items: center;
@@ -58,29 +72,57 @@
58
72
  .content-panel:first-of-type .sl-container {
59
73
  padding-top: 2rem;
60
74
  }
61
- .sl-markdown-content h2:not(:where(.not-content *)) {
62
- margin-top: 0;
75
+ .content-panel h1 {
76
+ font-size: 2rem;
77
+ line-height: 2.25rem;
78
+ }
79
+ .content-panel
80
+ .sl-container
81
+ > p:first-of-type:not(:where(.sl-markdown-content *)) {
82
+ font-size: 1.1875rem;
83
+ line-height: 1.6875rem;
63
84
  }
64
85
  .sl-markdown-content .sl-heading-wrapper.level-h2 {
65
- margin-top: 2.6rem;
86
+ margin-top: 2.25rem;
87
+ }
88
+ .sl-markdown-content h2:not(:where(.not-content *)) {
89
+ font-size: 1.5rem;
90
+ line-height: 2rem;
91
+ }
92
+ .sl-markdown-content h3:not(:where(.not-content *)) {
93
+ font-size: 1.3125rem;
94
+ line-height: 1.5625rem;
95
+ }
96
+ .sl-markdown-content h4:not(:where(.not-content *)) {
97
+ font-size: 1.1875rem;
98
+ line-height: 1.4375rem;
66
99
  }
67
100
  .pagination-links {
68
101
  grid-template-columns: 1fr;
102
+ gap: 1rem;
103
+ }
104
+ .hero {
105
+ gap: 2.5rem;
106
+ padding-block: 3.5rem;
107
+ }
108
+ .hero > img {
109
+ flex-basis: min(70%, 16rem);
110
+ width: min(70%, 16rem);
111
+ }
112
+ .hero .actions {
113
+ gap: 0.625rem;
69
114
  }
70
115
  }
71
116
  @media (max-width: 30rem) {
72
117
  :root {
73
- --sl-content-pad-x: 1.15rem;
118
+ --sl-content-pad-x: 1.25rem;
74
119
  }
75
120
  header.header > .header {
76
121
  padding-inline: 0.75rem;
77
122
  }
78
- .content-panel h1 {
79
- font-size: 1.75rem;
80
- line-height: 2rem;
81
- }
82
- .sl-markdown-content {
123
+ .site-title {
83
124
  font-size: 1.0625rem;
125
+ line-height: 1.25rem;
84
126
  }
85
127
  .sl-markdown-content table:not(:where(.not-content *)) {
86
128
  display: block;
@@ -92,4 +134,13 @@
92
134
  .sl-markdown-content .sl-link-button + .sl-link-button {
93
135
  margin-inline-start: 0;
94
136
  }
137
+ .hero .actions .sl-link-button {
138
+ width: 100%;
139
+ }
140
+ }
141
+
142
+ @media (hover: none) {
143
+ .sl-heading-wrapper .sl-anchor-link {
144
+ opacity: 1;
145
+ }
95
146
  }
package/styles/search.css CHANGED
@@ -1,38 +1,33 @@
1
1
  site-search > button {
2
2
  min-height: 2rem;
3
- border: 1px solid var(--apple-border-subtle);
4
- border-radius: var(--apple-radius);
5
- background: var(--apple-surface);
3
+ border: 1px solid var(--apple-hairline);
4
+ border-radius: var(--apple-radius-sm);
5
+ background: transparent;
6
6
  color: var(--apple-secondary-foreground);
7
7
  box-shadow: none;
8
8
  font-size: 0.8125rem;
9
9
  }
10
- site-search > button:hover {
11
- border-color: var(--apple-border);
12
- background: var(--apple-selection);
13
- color: var(--apple-foreground);
14
- }
15
- site-search > button:active,
10
+ site-search > button:is(:hover, :active),
16
11
  site-search > button[aria-expanded="true"] {
17
- border-color: var(--apple-link);
18
- background: var(--apple-pressed);
12
+ border-color: var(--apple-border);
13
+ background: var(--apple-active-surface);
19
14
  color: var(--apple-foreground);
20
15
  }
21
16
  site-search dialog {
22
17
  border: 1px solid var(--apple-border);
23
- border-radius: 0.75rem;
24
- background: var(--apple-surface-raised);
25
- box-shadow: 0 16px 50px rgba(0, 0, 0, 0.18);
18
+ border-radius: var(--apple-radius-sm);
19
+ background: var(--apple-secondary-background);
20
+ box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
26
21
  }
27
22
  site-search dialog::backdrop {
28
- background: rgba(0, 0, 0, 0.34);
23
+ background: rgba(0, 0, 0, 0.3);
29
24
  -webkit-backdrop-filter: blur(4px);
30
25
  backdrop-filter: blur(4px);
31
26
  }
32
27
  site-search input {
33
28
  min-height: 2.75rem;
34
29
  border-color: var(--apple-border);
35
- border-radius: var(--apple-radius);
30
+ border-radius: var(--apple-radius-sm);
36
31
  background: var(--apple-code-background);
37
32
  color: var(--apple-foreground);
38
33
  }
@@ -46,26 +41,20 @@ site-search [data-close-modal] {
46
41
  border-radius: var(--apple-radius-sm);
47
42
  }
48
43
  site-search [data-close-modal]:hover {
49
- background: var(--apple-selection);
50
- }
51
- site-search [data-close-modal]:active {
52
- background: var(--apple-pressed);
44
+ background: var(--apple-active-surface);
53
45
  }
54
46
  site-search input:focus {
55
47
  border-color: var(--apple-link);
56
- box-shadow: 0 0 0 3px var(--apple-selection);
48
+ box-shadow: 0 0 0 3px var(--apple-focus);
57
49
  outline: 0;
58
50
  }
59
51
  .pagefind-ui__result {
60
- border-color: var(--apple-border-subtle) !important;
61
- border-radius: var(--apple-radius-sm);
62
- transition:
63
- background-color var(--apple-transition),
64
- border-color var(--apple-transition);
52
+ border-color: var(--apple-hairline) !important;
53
+ border-radius: 0;
54
+ transition: background-color var(--apple-transition);
65
55
  }
66
56
  .pagefind-ui__result:is(:hover, :focus-within) {
67
- border-color: var(--apple-border) !important;
68
- background: var(--apple-selection);
57
+ background: var(--apple-hover-surface);
69
58
  }
70
59
  .pagefind-ui__result-link {
71
60
  color: var(--apple-foreground) !important;
@@ -1,61 +1,65 @@
1
1
  .sidebar-pane {
2
- border-inline-end: 1px solid var(--apple-border-subtle);
3
- background: var(--apple-sidebar-background);
2
+ border-inline-end: 1px solid var(--apple-hairline);
3
+ background: var(--apple-navigator-background);
4
4
  }
5
+
5
6
  .sidebar-content {
6
7
  padding-top: 1rem;
7
8
  scrollbar-color: var(--apple-border) transparent;
8
9
  }
10
+
9
11
  .sidebar-content .top-level {
10
12
  display: flex;
11
13
  flex-direction: column;
12
- gap: 0.1rem;
14
+ gap: 0.75rem;
13
15
  }
14
16
  .sidebar-content .top-level > li {
15
17
  margin-block: 0;
16
18
  }
17
- .sidebar-content .top-level > li + li:has(details) {
18
- margin-top: 1.05rem;
19
- padding-top: 1rem;
20
- border-top: 1px solid var(--apple-border-subtle);
21
- }
19
+
22
20
  .sidebar-content summary {
23
- min-height: 2rem;
24
- padding: 0.34375rem 0.55rem;
25
- color: var(--apple-foreground);
21
+ min-height: var(--apple-row-height);
22
+ padding: 0.34375rem 0.5rem;
23
+ border-radius: var(--apple-radius-sm);
24
+ color: var(--apple-tertiary-foreground);
26
25
  font-size: 0.875rem;
27
26
  font-weight: 600;
27
+ line-height: 1.3125rem;
28
28
  letter-spacing: -0.005em;
29
29
  }
30
30
  .sidebar-content .large,
31
31
  .sidebar-content a.large {
32
- padding-inline: 0.55rem;
33
- font-size: 0.875rem;
34
- }
35
- .sidebar-content summary:hover,
36
- .sidebar-content summary:focus-visible {
37
- background: var(--apple-selection);
38
- color: var(--apple-link);
32
+ color: inherit;
33
+ font-size: inherit;
34
+ font-weight: inherit;
39
35
  }
40
- .sidebar-content details[open] > summary {
41
- color: var(--apple-foreground);
36
+ .sidebar-content summary:is(:hover, :focus-visible) {
37
+ background: var(--apple-hover-surface);
38
+ color: var(--apple-secondary-foreground);
42
39
  }
43
40
  .sidebar-content .caret {
41
+ width: 1rem;
44
42
  color: var(--apple-tertiary-foreground);
43
+ opacity: 0.8;
45
44
  }
45
+
46
46
  .sidebar-content ul ul {
47
- margin-inline-start: 0.55rem;
48
- padding-inline-start: 0.55rem;
49
- border-inline-start: 1px solid var(--apple-border-subtle);
47
+ margin-inline-start: 0.75rem;
48
+ padding-inline-start: 0.5rem;
49
+ border-inline-start: 0;
50
+ }
51
+ .sidebar-content ul ul li {
52
+ border-inline-start: 0;
50
53
  }
51
54
  .sidebar-content li {
52
55
  border: 0;
53
56
  padding: 0;
54
57
  }
58
+
55
59
  .sidebar-content a {
56
- min-height: 2rem;
57
- margin-block: 1px;
58
- padding: 0.34375rem 0.55rem;
60
+ min-height: var(--apple-row-height);
61
+ margin-block: 0;
62
+ padding: 0.34375rem 0.5rem;
59
63
  border-radius: var(--apple-radius-sm);
60
64
  color: var(--apple-secondary-foreground);
61
65
  font-size: 0.875rem;
@@ -63,25 +67,19 @@
63
67
  line-height: 1.3125rem;
64
68
  text-decoration: none;
65
69
  }
66
- .sidebar-content a:hover {
67
- background: var(--apple-selection);
68
- color: var(--apple-link);
69
- }
70
- .sidebar-content a:active {
71
- background: var(--apple-pressed);
70
+ .sidebar-content a:is(:hover, :focus-visible) {
71
+ background: var(--apple-hover-surface);
72
+ color: var(--apple-secondary-foreground);
72
73
  }
73
74
  .sidebar-content a:focus-visible {
74
- background: var(--apple-selection);
75
- color: var(--apple-link);
76
75
  outline-offset: -2px;
77
76
  }
78
77
  .sidebar-content a[aria-current="page"] {
79
- background: var(--apple-surface);
78
+ background: var(--apple-active-surface);
80
79
  color: var(--apple-foreground);
81
- font-weight: 600;
80
+ font-weight: 500;
82
81
  }
83
- .sidebar-content a[aria-current="page"]:hover,
84
- .sidebar-content a[aria-current="page"]:focus-visible {
85
- background: var(--apple-pressed);
82
+ .sidebar-content a[aria-current="page"]:is(:hover, :focus-visible) {
83
+ background: var(--apple-active-surface);
86
84
  color: var(--apple-foreground);
87
85
  }