diff options
| author | saturneric <[email protected]> | 2025-11-09 02:52:42 +0000 |
|---|---|---|
| committer | saturneric <[email protected]> | 2025-11-09 02:52:42 +0000 |
| commit | 7f5c1e05a496d3dcfbcb765bdfe04e01c4226d4c (patch) | |
| tree | d5acd7990a7df7c38dc97b472d4405264739f1f6 | |
| parent | docs(config): update site title and readme path (diff) | |
| download | cgit-7f5c1e05a496d3dcfbcb765bdfe04e01c4226d4c.tar.gz cgit-7f5c1e05a496d3dcfbcb765bdfe04e01c4226d4c.zip | |
style(markdown): update code block for dark theme
* Switch code block and table row backgrounds to dark colors for
improved readability in dark-themed interfaces.
* Adjust border colors, text color, padding, border-radius, and
font settings to better match dark mode aesthetics.
* Enhance consistency and accessibility of markdown styling.
| -rwxr-xr-x | filters/html-converters/md2html | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/filters/html-converters/md2html b/filters/html-converters/md2html index 64ed75a..5cfcdcb 100755 --- a/filters/html-converters/md2html +++ b/filters/html-converters/md2html @@ -172,7 +172,7 @@ div#cgit .markdown-body h1 a.toclink, div#cgit .markdown-body h2 a.toclink, div# background-color: #fff; } .markdown-body table tr:nth-child(2n) { - background-color: #f8f8f8; + background-color: #1e1e1e; } .markdown-body img { max-width: 100%; @@ -256,8 +256,8 @@ div#cgit .markdown-body h1 a.toclink, div#cgit .markdown-body h2 a.toclink, div# .markdown-body code, .markdown-body tt { margin: 0 2px; padding: 0px 5px; - border: 1px solid #eaeaea; - background-color: #f8f8f8; + border: 1px solid #444; + background-color: #1e1e1e; border-radius: 3px; } .markdown-body code { @@ -271,13 +271,15 @@ div#cgit .markdown-body h1 a.toclink, div#cgit .markdown-body h2 a.toclink, div# background: transparent; } .markdown-body .highlight pre, .markdown-body pre { - background-color: #f8f8f8; - border: 1px solid #ccc; + background-color: #1e1e1e; + border: 1px solid #444; font-size: 13px; - line-height: 19px; + line-height: 1.5; + color: #dcdcdc; overflow: auto; - padding: 6px 10px; - border-radius: 3px; + padding: 8px 12px; + border-radius: 4px; + font-family: "Source Code Pro", monospace; } .markdown-body pre code, .markdown-body pre tt { margin: 0; |
