From f74f45dd11feb4ad76d9d7fffa8e1947a8874972 Mon Sep 17 00:00:00 2001 From: Stan Lo Date: Sat, 12 Oct 2024 22:01:08 +0100 Subject: [PATCH] Fix --- .../generator/template/darkfish/css/rdoc.css | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/rdoc/generator/template/darkfish/css/rdoc.css b/lib/rdoc/generator/template/darkfish/css/rdoc.css index 51d938aec2..deec9eac66 100644 --- a/lib/rdoc/generator/template/darkfish/css/rdoc.css +++ b/lib/rdoc/generator/template/darkfish/css/rdoc.css @@ -28,6 +28,8 @@ --code-text-color: #505050; /* Medium grey for code text */ --scrollbar-thumb-hover-background: #505050; /* Hover color for scrollbar thumb */ --source-code-toggle-color: #c83045; + --table-header-background-color: #eceaed; + --table-td-background-color: #f5f4f6; /* Font family variables */ --font-primary: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif; @@ -39,8 +41,8 @@ body { background: var(--background-color); font-family: var(--font-primary); - color: var(--text-color); font-weight: 400; + color: var(--text-color); line-height: 1.6; /* Layout */ @@ -121,12 +123,11 @@ pre { font-size: 15px; line-height: 1.5; margin: 1em 0; - color: var(--code-text-color); } code { background-color: var(--code-block-background-color); - padding: 0.2em 0.4em; + padding: 0.1em 0.3em; border-radius: 3px; font-size: 85%; } @@ -144,11 +145,11 @@ table tr th, table tr td { } table tr th { - color: var(--text-color); + background-color: var(--table-header-background-color); } table tr:nth-child(even) td { - background-color: var(--code-block-background-color); + background-color: var(--table-td-background-color); } /* 7. Navigation and Sidebar */ @@ -175,7 +176,6 @@ nav[hidden] { nav footer { padding: 1em; border-top: 1px solid var(--nav-border-color); - color: var(--text-color); } nav .nav-section { @@ -354,7 +354,7 @@ main blockquote { /* Lists */ main li > p { - margin-bottom: 0.5em; + margin: 0.5em; } /* Definition Lists */ @@ -448,6 +448,7 @@ main header h3 { } /* Syntax Highlighting - Gruvbox Light Scheme */ + .ruby-constant { color: #AF3A03; } /* Dark Orange */ .ruby-keyword { color: #9D0006; } /* Dark Red */ .ruby-ivar { color: #B57614; } /* Brown */ @@ -521,7 +522,6 @@ main .method-heading { font-family: var(--font-code); font-size: 110%; font-weight: bold; - color: var(--primary-color); } main .method-heading::after { @@ -647,7 +647,7 @@ main .attribute-access-type { } } -/* Scrollbar Styling (Optional) */ +/* Scrollbar Styling */ ::-webkit-scrollbar { width: 8px; }