From a95a9caab8ec42a90a05c216842831fa28f631eb Mon Sep 17 00:00:00 2001 From: Mehul Mathur Date: Mon, 7 Oct 2024 20:21:36 +0000 Subject: [PATCH] chore: make styles desktop specific --- src/css/custom.css | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }