From 59560f00eff465eff919a7eefd9b0e49ede80174 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Fri, 26 Feb 2021 23:55:37 +0100 Subject: Better formatting for markdown readmes The formatter unforuntately generates its own inline css; for now just overwrite it using ~!important~ whenever needed. Eventually figure out a better solution ... --- cgit.css | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/cgit.css b/cgit.css index 8cf4235..f02c155 100644 --- a/cgit.css +++ b/cgit.css @@ -1,3 +1,13 @@ +/* markdown stuff which overwrites the inline css generated by the parser (for now) */ + +.markdown-body pre > code { + white-space: pre; + color: black; +} + +div#cgit .markdown-body h1 a.toclink, div#cgit .markdown-body h2 a.toclink, div#cgit .markdown-body h3 a.toclink, div#cgit .markdown-body h4 a.toclink, div#cgit .markdown-body h5 a.toclink, div#cgit .markdown-body h6 a.toclink { + color: aqua !important; +} body { @@ -6,6 +16,8 @@ body { background-color: black; } + + div#cgit { padding: 0em; margin: 0em; @@ -14,8 +26,11 @@ div#cgit { color: white; /*! background: white; */ padding: 4px; + margin-top: 1em; } + + div#cgit a { color: white; text-decoration: none; @@ -28,8 +43,6 @@ div#cgit a:hover { div#cgit table { border-collapse: collapse; border: none; - border: none; - border: none; } div#cgit table#header { @@ -913,3 +926,4 @@ div#cgit table.ssdiff td.space div { + -- cgit v1.2.3