From 51e56e17e6ee7d0939b78d0eac47dac6092b51ee Mon Sep 17 00:00:00 2001 From: Satyajit Sahoo Date: Fri, 9 Aug 2024 00:06:16 +0200 Subject: [PATCH] Tweak sidebar separators --- src/css/custom.css | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/css/custom.css b/src/css/custom.css index 15a602ce5b..c34cfc9805 100755 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -306,18 +306,26 @@ p { } .menu > .menu__list > .menu__list-item { + position: relative; padding-top: 0.5rem; - padding-bottom: 0.5rem; + padding-bottom: 1rem; } -.menu > .menu__list > .menu__list-item:not(:last-child) { - border-bottom: 1px solid var(--ifm-toc-border-color); +.menu > .menu__list > .menu__list-item:not(:last-child)::after { + content: ''; + display: block; + position: absolute; + bottom: 0; + left: 0.5rem; + width: calc(100% - 1.5rem); + height: 1px; + background-color: var(--ifm-toc-border-color); } @media (min-width: 85rem) { .menu > .menu__list > .menu__list-item { padding-top: 1.5rem; - padding-bottom: 1.5rem; + padding-bottom: 1.75rem; } }