From 488ad8702cc09a8a26142cc10f76da52523b1915 Mon Sep 17 00:00:00 2001 From: Carlo Revelli Date: Tue, 30 Nov 2021 11:15:12 -0800 Subject: [PATCH] docs-css --- doc/_static/css/dark.css | 14 ++++++++++---- doc/_static/css/index.css | 5 +++++ doc/_static/javascript/index.js | 3 ++- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/doc/_static/css/dark.css b/doc/_static/css/dark.css index a240c983ab4fd..1162bf103719d 100644 --- a/doc/_static/css/dark.css +++ b/doc/_static/css/dark.css @@ -32,6 +32,12 @@ html[data-theme='dark'] .wy-nav-content-wrap { background-color: var(--dark-outer) !important; } +html[data-theme='dark'] ul > .toctree-l1.current > a { + background: var(--dark-body)!important; + border-color: var(--dark-hover)!important; + color: var(--dark-text); +} + html[data-theme='dark'] ul > .toctree-l1.current > ul > .toctree-l2 { background: var(--dark-hover) !important; } @@ -73,13 +79,13 @@ html[data-theme='dark'] .theme-switcher { border-radius: 50%; position: relative; border: none; - background-color: #fcfcfc; - font-size: 15px; + background-color: inherit; + font-size: 20px; color: #404040; transition: all 0.3s ease-in-out; display: inline-block; - width: 20px; - height: 20px; + width: 25px; + height: 25px; cursor: pointer; } diff --git a/doc/_static/css/index.css b/doc/_static/css/index.css index 37a95a5c62488..9efbdeb4ffb2b 100644 --- a/doc/_static/css/index.css +++ b/doc/_static/css/index.css @@ -27,6 +27,10 @@ ul.current { background: #343131; } +.wy-menu .toctree-l1 > a { + "border: 0!important; +} + ul > .toctree-l1.current > ul > .toctree-l2 { background: #edf0f2; } @@ -119,6 +123,7 @@ a:visited:not(.icon) { .wy-side-scroll { scrollbar-width: none; -ms-overflow-style: none; + overscroll-behavior: contain; } td:first-child { diff --git a/doc/_static/javascript/index.js b/doc/_static/javascript/index.js index c0514aafd812e..9eafc12d50a79 100644 --- a/doc/_static/javascript/index.js +++ b/doc/_static/javascript/index.js @@ -33,7 +33,8 @@ window.addEventListener ('load', function () { $faqlinks = $('a.reference.internal[href^="FAQ.html#"]') } $faqlinks.each (function () { - this.innerText = this.innerText.split ('?')[0] + '?'; + // this.remove () + this.parentNode.parentNode.remove () }); // set the height values for the sticky css property const $linkGroups = $links.parents ('ul');