From 366fd9642f7b03de08796b39b5a10a55d5acabe3 Mon Sep 17 00:00:00 2001 From: James Reid-Smith Date: Sun, 15 Dec 2024 08:36:35 -0500 Subject: [PATCH] [ruby/rdoc] Hide hamburger on desktop (https://github.com/ruby/rdoc/pull/1237) * Clean up the duplicate definitions and unnecessary print styling * Hides the navigation toggle when there's enough room to always display the navigation * Update lib/rdoc/generator/template/darkfish/css/rdoc.css --------- https://github.com/ruby/rdoc/commit/c6193bf1e2 Co-authored-by: Stan Lo --- .../generator/template/darkfish/css/rdoc.css | 26 ++++++------------- 1 file changed, 8 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..ed9b3e9c3b 100644 --- a/lib/rdoc/generator/template/darkfish/css/rdoc.css +++ b/lib/rdoc/generator/template/darkfish/css/rdoc.css @@ -292,6 +292,14 @@ main { main { margin-left: var(--sidebar-width); } + + .table-of-contents main { + margin-left: 20em; + } + + #navigation-toggle { + display: none; + } } main h1[class] { @@ -311,12 +319,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 +516,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;