[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 <stan001212@gmail.com>
This commit is contained in:
James Reid-Smith 2024-12-15 08:36:35 -05:00 committed by git
parent f9dc41b6a9
commit 366fd9642f

View File

@ -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;