Skip to content

Commit 25f791b

Browse files
authored
cleaner sidebar (#94)
1 parent e773f0f commit 25f791b

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

apps/svelte.dev/src/routes/docs/[...path]/+layout.svelte

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,6 @@
7575
overflow: hidden;
7676
}
7777
78-
.toc-container::before {
79-
content: '';
80-
position: fixed;
81-
width: 0;
82-
height: 100%;
83-
top: 0;
84-
left: calc(var(--sidebar-width) - 1px);
85-
border-right: 1px solid var(--sk-back-5);
86-
}
87-
8878
.page {
8979
padding-left: calc(var(--sidebar-width) + var(--sk-page-padding-side));
9080
}

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -150,18 +150,19 @@
150150
}
151151
152152
.active::after {
153-
--size: 1rem;
153+
--size: 1.8rem;
154154
content: '';
155155
position: absolute;
156156
width: var(--size);
157157
height: var(--size);
158-
top: -0.1rem;
158+
top: calc(0.8rem - var(--size) * 0.5);
159159
right: calc(-0.5 * var(--size));
160160
background-color: var(--sk-back-1);
161-
border-left: 1px solid var(--sk-back-5);
162-
border-bottom: 1px solid var(--sk-back-5);
163-
transform: translateY(0.2rem) rotate(45deg);
164161
z-index: 2;
162+
position: absolute;
163+
rotate: 45deg;
164+
/** needed to synchronise with transition on `*` in `base.css` */
165+
transition: background-color 0.5s var(--quint-out);
165166
}
166167
}
167168
</style>

0 commit comments

Comments
 (0)