Skip to content

Commit 5bbdee7

Browse files
committed
Give source code blocks a different background color
1 parent ae94708 commit 5bbdee7

File tree

1 file changed

+5
-0
lines changed
  • lib/rdoc/generator/template/darkfish/css

1 file changed

+5
-0
lines changed

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

+5
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
--link-hover-color: #25a28a; /* A slightly brighter teal-green */
2323
--border-color: #e0e0e0;
2424
--sidebar-text-color: #2c3e50; /* Dark blue-gray for contrast */
25+
--source-code-background-color: #ebead5;
2526

2627
/* Font family variables */
2728
--font-primary: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
@@ -596,6 +597,10 @@ main .method-source-code {
596597
transition-timing-function: ease-in-out;
597598
}
598599

600+
main .method-source-code pre {
601+
background: var(--source-code-background-color);
602+
}
603+
599604
main .method-source-code.active-menu {
600605
visibility: visible;
601606
max-height: 100vh;

0 commit comments

Comments
 (0)