File tree Expand file tree Collapse file tree 3 files changed +17
-24
lines changed
apps/svelte.dev/src/routes/docs/[...path]
packages/site-kit/src/lib Expand file tree Collapse file tree 3 files changed +17
-24
lines changed Original file line number Diff line number Diff line change 37
37
<aside class =" on-this-page" >
38
38
<label >
39
39
<input type =" checkbox" aria-label =" Toggle 'on this page' menu" />
40
- On this page
40
+ < h3 > On this page</ h3 >
41
41
</label >
42
42
43
43
<nav >
78
78
}
79
79
}
80
80
81
- label {
82
- font-family : var (--sk-font-ui );
83
- font-size : var (--sk-font-size-ui-small );
84
- display : block ;
85
- }
86
-
87
81
@media (max-width : 1199px ) {
88
82
margin: 4rem 0;
89
83
119
113
rotate : -90deg ;
120
114
transition : rotate 0.2s ;
121
115
}
116
+
117
+ h3 {
118
+ font-family : var (--sk-font-ui );
119
+ font-size : var (--sk-font-size-ui-small );
120
+ color : var (--sk-text-4 );
121
+ margin : 0 ;
122
+ display : block ;
123
+ }
122
124
}
123
125
124
126
label :has (:checked ) {
168
170
&::before {
169
171
content : none !important ;
170
172
}
173
+
174
+ h3 {
175
+ margin : 0 0 0.3rem 0 ;
176
+ }
171
177
}
172
178
173
179
nav {
Original file line number Diff line number Diff line change 32
32
<ul class =" sidebar" >
33
33
{#each contents ?? [] as section }
34
34
<li >
35
- <span class = " section " >
35
+ <h3 >
36
36
{section .metadata .title }
37
- </span >
37
+ </h3 >
38
38
39
39
<ul >
40
40
{#each section .children as { metadata, slug }}
90
90
user-select : none ;
91
91
}
92
92
93
- .section {
94
- display : block ;
95
- padding-bottom : 0.8rem ;
96
- font-size : var (--sk-font-size-h3 );
97
- font-family : var (--sk-font-heading );
98
- color : var (--sk-text-1 );
93
+ h3 {
94
+ margin : 0 0 0.3rem 0 ;
99
95
}
100
96
101
97
.page {
Original file line number Diff line number Diff line change @@ -190,15 +190,6 @@ table :where(code, span) {
190
190
}
191
191
192
192
/* helper styles -------------------------- */
193
- /* TODO this shoudl be moved */
194
- figcaption ,
195
- .post aside {
196
- /* max-width: none;
197
- margin: 0 auto;
198
- padding: 1.6rem 0 0 0.8rem;
199
- font: 1.2rem/1.6 var(--sk-font-mono); */
200
- }
201
-
202
193
/* visually hidden, but accessible to assistive tech */
203
194
.visually-hidden {
204
195
border : 0 ;
You can’t perform that action at this time.
0 commit comments