diff options
author | James Reid-Smith <[email protected]> | 2024-12-15 08:36:35 -0500 |
---|---|---|
committer | git <[email protected]> | 2024-12-15 13:36:38 +0000 |
commit | 366fd9642f7b03de08796b39b5a10a55d5acabe3 (patch) | |
tree | 49836379c804f184223594a790c4cbdc0d53314b /lib/rdoc | |
parent | f9dc41b6a961f27bc3151cdef3674911e0b564e7 (diff) |
[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 <[email protected]>
Diffstat (limited to 'lib/rdoc')
-rw-r--r-- | lib/rdoc/generator/template/darkfish/css/rdoc.css | 26 |
1 files 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; |