Skip to content

Commit c028886

Browse files
authored
tweak contents styles (#264)
1 parent b12da98 commit c028886

File tree

3 files changed

+17
-24
lines changed

3 files changed

+17
-24
lines changed

apps/svelte.dev/src/routes/docs/[...path]/OnThisPage.svelte

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<aside class="on-this-page">
3838
<label>
3939
<input type="checkbox" aria-label="Toggle 'on this page' menu" />
40-
On this page
40+
<h3>On this page</h3>
4141
</label>
4242

4343
<nav>
@@ -78,12 +78,6 @@
7878
}
7979
}
8080
81-
label {
82-
font-family: var(--sk-font-ui);
83-
font-size: var(--sk-font-size-ui-small);
84-
display: block;
85-
}
86-
8781
@media (max-width: 1199px) {
8882
margin: 4rem 0;
8983
@@ -119,6 +113,14 @@
119113
rotate: -90deg;
120114
transition: rotate 0.2s;
121115
}
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+
}
122124
}
123125
124126
label:has(:checked) {
@@ -168,6 +170,10 @@
168170
&::before {
169171
content: none !important;
170172
}
173+
174+
h3 {
175+
margin: 0 0 0.3rem 0;
176+
}
171177
}
172178
173179
nav {

packages/site-kit/src/lib/docs/DocsContents.svelte

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
<ul class="sidebar">
3333
{#each contents ?? [] as section}
3434
<li>
35-
<span class="section">
35+
<h3>
3636
{section.metadata.title}
37-
</span>
37+
</h3>
3838

3939
<ul>
4040
{#each section.children as { metadata, slug }}
@@ -90,12 +90,8 @@
9090
user-select: none;
9191
}
9292
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;
9995
}
10096
10197
.page {

packages/site-kit/src/lib/styles/base.css

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,6 @@ table :where(code, span) {
190190
}
191191

192192
/* 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-
202193
/* visually hidden, but accessible to assistive tech */
203194
.visually-hidden {
204195
border: 0;

0 commit comments

Comments
 (0)