Skip to content

Commit 51e56e1

Browse files
committed
Tweak sidebar separators
1 parent 821c36f commit 51e56e1

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

src/css/custom.css

+12-4
Original file line numberDiff line numberDiff line change
@@ -306,18 +306,26 @@ p {
306306
}
307307

308308
.menu > .menu__list > .menu__list-item {
309+
position: relative;
309310
padding-top: 0.5rem;
310-
padding-bottom: 0.5rem;
311+
padding-bottom: 1rem;
311312
}
312313

313-
.menu > .menu__list > .menu__list-item:not(:last-child) {
314-
border-bottom: 1px solid var(--ifm-toc-border-color);
314+
.menu > .menu__list > .menu__list-item:not(:last-child)::after {
315+
content: '';
316+
display: block;
317+
position: absolute;
318+
bottom: 0;
319+
left: 0.5rem;
320+
width: calc(100% - 1.5rem);
321+
height: 1px;
322+
background-color: var(--ifm-toc-border-color);
315323
}
316324

317325
@media (min-width: 85rem) {
318326
.menu > .menu__list > .menu__list-item {
319327
padding-top: 1.5rem;
320-
padding-bottom: 1.5rem;
328+
padding-bottom: 1.75rem;
321329
}
322330
}
323331

0 commit comments

Comments
 (0)