Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions apps/svelte.dev/src/routes/docs/[...path]/OnThisPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<aside class="on-this-page">
<label>
<input type="checkbox" aria-label="Toggle 'on this page' menu" />
On this page
<h3>On this page</h3>
</label>

<nav>
Expand Down Expand Up @@ -78,12 +78,6 @@
}
}

label {
font-family: var(--sk-font-ui);
font-size: var(--sk-font-size-ui-small);
display: block;
}

@media (max-width: 1199px) {
margin: 4rem 0;

Expand Down Expand Up @@ -119,6 +113,14 @@
rotate: -90deg;
transition: rotate 0.2s;
}

h3 {
font-family: var(--sk-font-ui);
font-size: var(--sk-font-size-ui-small);
color: var(--sk-text-4);
margin: 0;
display: block;
}
}

label:has(:checked) {
Expand Down Expand Up @@ -168,6 +170,10 @@
&::before {
content: none !important;
}

h3 {
margin: 0 0 0.3rem 0;
}
}

nav {
Expand Down
12 changes: 4 additions & 8 deletions packages/site-kit/src/lib/docs/DocsContents.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@
<ul class="sidebar">
{#each contents ?? [] as section}
<li>
<span class="section">
<h3>
{section.metadata.title}
</span>
</h3>

<ul>
{#each section.children as { metadata, slug }}
Expand Down Expand Up @@ -90,12 +90,8 @@
user-select: none;
}

.section {
display: block;
padding-bottom: 0.8rem;
font-size: var(--sk-font-size-h3);
font-family: var(--sk-font-heading);
color: var(--sk-text-1);
h3 {
margin: 0 0 0.3rem 0;
}

.page {
Expand Down
9 changes: 0 additions & 9 deletions packages/site-kit/src/lib/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -190,15 +190,6 @@ table :where(code, span) {
}

/* helper styles -------------------------- */
/* TODO this shoudl be moved */
figcaption,
.post aside {
/* max-width: none;
margin: 0 auto;
padding: 1.6rem 0 0 0.8rem;
font: 1.2rem/1.6 var(--sk-font-mono); */
}

/* visually hidden, but accessible to assistive tech */
.visually-hidden {
border: 0;
Expand Down
Loading