diff --git a/src/css/custom.css b/src/css/custom.css index 7745764a2f..cb229d8a52 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -345,20 +345,20 @@ input[type="radio"]:checked::before { color: var(--ifm-color-gray-900); } -.table-of-contents { +.theme-doc-toc-desktop > .table-of-contents { padding-left: 0; } -.table-of-contents li { +.theme-doc-toc-desktop > .table-of-contents > li { margin-left: 0; padding-left: 12px; } -li:has(a.table-of-contents__link--active) { +.theme-doc-toc-desktop > .table-of-contents > li:has(a.table-of-contents__link--active) { border-left: 2px solid #fdea2e; } -li li:has(a.table-of-contents__link--active) { +.theme-doc-toc-desktop > .table-of-contents > li > li:has(a.table-of-contents__link--active) { border-left: none; }