Skip to content

Commit c6193bf

Browse files
sunblazest0012
andauthored
Hide hamburger on desktop (#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 --------- Co-authored-by: Stan Lo <[email protected]>
1 parent 1794e59 commit c6193bf

File tree

1 file changed

+8
-18
lines changed
  • lib/rdoc/generator/template/darkfish/css

1 file changed

+8
-18
lines changed

lib/rdoc/generator/template/darkfish/css/rdoc.css

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,14 @@ main {
292292
main {
293293
margin-left: var(--sidebar-width);
294294
}
295+
296+
.table-of-contents main {
297+
margin-left: 20em;
298+
}
299+
300+
#navigation-toggle {
301+
display: none;
302+
}
295303
}
296304

297305
main h1[class] {
@@ -311,12 +319,6 @@ main h6 {
311319
color: var(--highlight-color);
312320
}
313321

314-
@media (min-width: 1024px) {
315-
.table-of-contents main {
316-
margin-left: 20em;
317-
}
318-
}
319-
320322
/* Search */
321323
#search-section {
322324
padding: 1em;
@@ -514,18 +516,6 @@ main header h3 {
514516
.hide { display: none !important; }
515517
.initially-hidden { display: none; }
516518

517-
/* Media Queries */
518-
@media (min-width: 1024px) {
519-
/* Styles for larger screens */
520-
.table-of-contents main {
521-
margin-left: 20em;
522-
}
523-
}
524-
525-
@media print {
526-
/* Print-specific styles */
527-
}
528-
529519
/* Table of Contents */
530520
.table-of-contents ul {
531521
margin: 1em;

0 commit comments

Comments
 (0)