Skip to content

Commit c2c0c19

Browse files
sunblazest0012
authored andcommitted
Clean up the duplicate definitions and unnecessary print styling
1 parent 1794e59 commit c2c0c19

File tree

1 file changed

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

1 file changed

+4
-18
lines changed

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

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,10 @@ main {
292292
main {
293293
margin-left: var(--sidebar-width);
294294
}
295+
296+
.table-of-contents main {
297+
margin-left: 20em;
298+
}
295299
}
296300

297301
main h1[class] {
@@ -311,12 +315,6 @@ main h6 {
311315
color: var(--highlight-color);
312316
}
313317

314-
@media (min-width: 1024px) {
315-
.table-of-contents main {
316-
margin-left: 20em;
317-
}
318-
}
319-
320318
/* Search */
321319
#search-section {
322320
padding: 1em;
@@ -514,18 +512,6 @@ main header h3 {
514512
.hide { display: none !important; }
515513
.initially-hidden { display: none; }
516514

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-
529515
/* Table of Contents */
530516
.table-of-contents ul {
531517
margin: 1em;

0 commit comments

Comments
 (0)