From c2c0c1930863a0e362f4d26a2430f1b119dc9e2f Mon Sep 17 00:00:00 2001 From: James Reid-Smith Date: Fri, 13 Dec 2024 13:29:59 -0500 Subject: [PATCH 1/3] Clean up the duplicate definitions and unnecessary print styling --- .../generator/template/darkfish/css/rdoc.css | 22 ++++--------------- 1 file changed, 4 insertions(+), 18 deletions(-) diff --git a/lib/rdoc/generator/template/darkfish/css/rdoc.css b/lib/rdoc/generator/template/darkfish/css/rdoc.css index 69b1d08577..7124bc950b 100644 --- a/lib/rdoc/generator/template/darkfish/css/rdoc.css +++ b/lib/rdoc/generator/template/darkfish/css/rdoc.css @@ -292,6 +292,10 @@ main { main { margin-left: var(--sidebar-width); } + + .table-of-contents main { + margin-left: 20em; + } } main h1[class] { @@ -311,12 +315,6 @@ main h6 { color: var(--highlight-color); } -@media (min-width: 1024px) { - .table-of-contents main { - margin-left: 20em; - } -} - /* Search */ #search-section { padding: 1em; @@ -514,18 +512,6 @@ main header h3 { .hide { display: none !important; } .initially-hidden { display: none; } -/* Media Queries */ -@media (min-width: 1024px) { - /* Styles for larger screens */ - .table-of-contents main { - margin-left: 20em; - } -} - -@media print { - /* Print-specific styles */ -} - /* Table of Contents */ .table-of-contents ul { margin: 1em; From de48f06e10b8aa7af77c80c8c6636df2d054b987 Mon Sep 17 00:00:00 2001 From: James Reid-Smith Date: Fri, 13 Dec 2024 13:37:30 -0500 Subject: [PATCH 2/3] Hides the navigation toggle when there's enough room to always display the navigation --- lib/rdoc/generator/template/darkfish/css/rdoc.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/rdoc/generator/template/darkfish/css/rdoc.css b/lib/rdoc/generator/template/darkfish/css/rdoc.css index 7124bc950b..1a78e7645f 100644 --- a/lib/rdoc/generator/template/darkfish/css/rdoc.css +++ b/lib/rdoc/generator/template/darkfish/css/rdoc.css @@ -296,6 +296,10 @@ main { .table-of-contents main { margin-left: 20em; } + + #navigation-toggle { + display: none !important; + } } main h1[class] { From 9320ca06490aeb690f6a555307e86c0aace9e1ed Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Sun, 15 Dec 2024 13:26:19 +0000 Subject: [PATCH 3/3] Update lib/rdoc/generator/template/darkfish/css/rdoc.css --- lib/rdoc/generator/template/darkfish/css/rdoc.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rdoc/generator/template/darkfish/css/rdoc.css b/lib/rdoc/generator/template/darkfish/css/rdoc.css index 1a78e7645f..ed9b3e9c3b 100644 --- a/lib/rdoc/generator/template/darkfish/css/rdoc.css +++ b/lib/rdoc/generator/template/darkfish/css/rdoc.css @@ -298,7 +298,7 @@ main { } #navigation-toggle { - display: none !important; + display: none; } }