Skip to content

Commit 2f4f2e8

Browse files
committed
Cleanup rdoc.css
1 parent 930e834 commit 2f4f2e8

File tree

1 file changed

+15
-16
lines changed
  • lib/rdoc/generator/template/darkfish/css

1 file changed

+15
-16
lines changed

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

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
--border-color: #e0e0e0;
2424
--sidebar-text-color: #2c3e50; /* Dark blue-gray for contrast */
2525
--source-code-background-color: #e8f0eb;
26+
--search-section-background-color: #e8e8e8;
27+
--nav-border-color: #aaa;
2628

2729
/* Font family variables */
2830
--font-primary: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
@@ -160,7 +162,7 @@ nav[hidden] {
160162

161163
nav footer {
162164
padding: 1em;
163-
border-top: 1px solid #ccc;
165+
border-top: 1px solid var(--nav-border-color);
164166
}
165167

166168
nav .nav-section {
@@ -365,7 +367,7 @@ main h6 {
365367
.ruby-string { color: #22863a; } /* Green for strings */
366368

367369
code {
368-
background-color: #f0f4f8; /* Match pre background */
370+
background-color: var(--code-block-background-color);
369371
padding: 0.2em 0.4em;
370372
border-radius: 3px;
371373
font-size: 85%;
@@ -412,7 +414,7 @@ em {
412414
}
413415

414416
main {
415-
color: #333;
417+
color: var(--text-color);
416418
}
417419

418420
main > h1:first-child,
@@ -484,13 +486,13 @@ main pre {
484486

485487
main hr {
486488
margin: 1.5em 1em;
487-
border: 2px solid #ddd;
489+
border: 2px solid var(--border-color);
488490
}
489491

490492
main blockquote {
491493
margin: 0 2em 1.2em 1.2em;
492494
padding-left: 0.5em;
493-
border-left: 2px solid #ddd;
495+
border-left: 2px solid var(--border-color);
494496
}
495497

496498
main ol,
@@ -520,20 +522,23 @@ main dd {
520522
main header h2 {
521523
margin-top: 2em;
522524
border-width: 0;
523-
border-top: 4px solid #bbb;
525+
border-top: 4px solid var(--border-color);
524526
font-size: 130%;
525527
}
526528

527529
main header h3 {
528530
margin: 2em 0 1.5em;
529531
border-width: 0;
530-
border-top: 3px solid #bbb;
532+
border-top: 3px solid var(--border-color);
531533
font-size: 120%;
532534
}
533535

534536
.documentation-section-title {
535537
position: relative;
536538
}
539+
540+
/* This is the little arrow that appears when you hover over a section title */
541+
/* Probably rarely used and can be removed if desired */
537542
.documentation-section-title .section-click-top {
538543
position: absolute;
539544
top: 6px;
@@ -570,6 +575,7 @@ main header h3 {
570575
color: #666;
571576
}
572577

578+
/* Not sure what this is for */
573579
.documentation-section h2 {
574580
position: relative;
575581
}
@@ -655,10 +661,6 @@ main .method-controls {
655661
cursor: pointer;
656662
}
657663

658-
main .method-alias .method-heading {
659-
color: #666;
660-
}
661-
662664
main .method-description,
663665
main .aliases {
664666
margin-top: 0.75em;
@@ -688,9 +690,6 @@ main #attribute-method-details .method-detail:hover {
688690
main .attribute-access-type {
689691
text-transform: uppercase;
690692
}
691-
/* @end */
692-
693-
/* @end */
694693

695694
/* @group search results */
696695
#search-results {
@@ -704,13 +703,13 @@ main .attribute-access-type {
704703
}
705704

706705
#search-results .search-selected {
707-
background: #e8e8e8;
706+
background: var(--search-section-background-color);
708707
border-bottom: 1px solid transparent;
709708
}
710709

711710
#search-results li {
712711
list-style: none;
713-
border-bottom: 1px solid #aaa;
712+
border-bottom: 1px solid var(--nav-border-color);
714713
margin-bottom: 0.5em;
715714
}
716715

0 commit comments

Comments
 (0)