diff options
| -rw-r--r-- | cgit.css | 7 | ||||
| -rwxr-xr-x | filters/html-converters/md2html | 16 | ||||
| -rw-r--r-- | ui-shared.c | 2 |
3 files changed, 14 insertions, 11 deletions
@@ -623,7 +623,8 @@ div#cgit .right { div#cgit table.list td.reposection { font-style: italic; color: #299; - padding-top: 1rem; + padding-top: 1em; + padding-bottom: 0.5em; background-color: #222; } @@ -718,7 +719,7 @@ div#cgit div.footer a:hover { } div#cgit a.branch-deco { - color: #000; + color: #eee; margin: 0px 0.5em; padding: 0px 0.3em; border: solid 1px #007700; @@ -753,7 +754,7 @@ div#cgit a.remote-deco { } div#cgit a.deco { - color: #000; + color: #eee; margin: 0px 0.5em; padding: 0px 0.25em; border: solid 1px #AA0000; diff --git a/filters/html-converters/md2html b/filters/html-converters/md2html index 59f43a8..fd0c09d 100755 --- a/filters/html-converters/md2html +++ b/filters/html-converters/md2html @@ -55,7 +55,7 @@ sys.stdout.write(''' display: inline-block; } 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: black; + color: #eee; } .markdown-body h1 tt, .markdown-body h1 code, .markdown-body h2 tt, .markdown-body h2 code, .markdown-body h3 tt, .markdown-body h3 code, .markdown-body h4 tt, .markdown-body h4 code, .markdown-body h5 tt, .markdown-body h5 code, .markdown-body h6 tt, .markdown-body h6 code { font-size: inherit; @@ -66,7 +66,7 @@ div#cgit .markdown-body h1 a.toclink, div#cgit .markdown-body h2 a.toclink, div# } .markdown-body h2 { font-size: 24px; - border-bottom: 1px solid #ccc; + border-bottom: 1px solid #666; color: #000; } .markdown-body h3 { @@ -254,8 +254,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 #666; + background-color: #111; border-radius: 3px; } .markdown-body code { @@ -269,8 +269,8 @@ 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: #222; + border: 1px solid #666; font-size: 13px; line-height: 19px; overflow: auto; @@ -283,8 +283,10 @@ div#cgit .markdown-body h1 a.toclink, div#cgit .markdown-body h2 a.toclink, div# background-color: transparent; border: none; } +.highlight { +} ''') -sys.stdout.write(HtmlFormatter(style='pastie').get_style_defs('.highlight')) +sys.stdout.write(HtmlFormatter(style='one-dark',nobackground=True).get_style_defs('.highlight')) sys.stdout.write(''' </style> ''') diff --git a/ui-shared.c b/ui-shared.c index df52a9b..532d052 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -1040,7 +1040,7 @@ static void print_header(void) html("<td class='main'>"); if (ctx.repo) { cgit_index_link("index", NULL, NULL, NULL, NULL, 0, 1); - html(" : "); + html(" > "); cgit_summary_link(ctx.repo->name, NULL, NULL, NULL); if (ctx.env.authenticated) { html("</td><td class='form'>"); |