Skip to content

Commit

Permalink
Give source code blocks a different background color
Browse files Browse the repository at this point in the history
  • Loading branch information
st0012 committed Oct 3, 2024
1 parent ae94708 commit 5bbdee7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/rdoc/generator/template/darkfish/css/rdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
--link-hover-color: #25a28a; /* A slightly brighter teal-green */
--border-color: #e0e0e0;
--sidebar-text-color: #2c3e50; /* Dark blue-gray for contrast */
--source-code-background-color: #ebead5;

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

main .method-source-code pre {
background: var(--source-code-background-color);
}

main .method-source-code.active-menu {
visibility: visible;
max-height: 100vh;
Expand Down

0 comments on commit 5bbdee7

Please sign in to comment.