diff options
author | Thedro Neely <thedroneely@gmail.com> | 2021-02-12 02:14:24 -0500 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2021-11-16 22:16:52 -0500 |
commit | 162612d5a5e4492c38aee2fb87159203f7f71a06 (patch) | |
tree | 9da80cddfb71f8290819aa51701297d2a424e3f6 /filters/html-converters/md2html | |
parent | 5258c297ba6fb604ae1415fbc19a3fe42457e49e (diff) | |
download | cgit-162612d5a5e4492c38aee2fb87159203f7f71a06.tar.gz cgit-162612d5a5e4492c38aee2fb87159203f7f71a06.tar.bz2 cgit-162612d5a5e4492c38aee2fb87159203f7f71a06.zip |
css: custom
Add custom image and favicon. Slightly modernize interface with custom CSS
style sheet. Adjust markdown filter. Highlight line number #id in code preview.
Diffstat (limited to 'filters/html-converters/md2html')
-rwxr-xr-x | filters/html-converters/md2html | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/filters/html-converters/md2html b/filters/html-converters/md2html index 59f43a8..fbe7efa 100755 --- a/filters/html-converters/md2html +++ b/filters/html-converters/md2html @@ -66,7 +66,6 @@ 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; color: #000; } .markdown-body h3 { @@ -269,13 +268,9 @@ 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; font-size: 13px; line-height: 19px; overflow: auto; - padding: 6px 10px; - border-radius: 3px; } .markdown-body pre code, .markdown-body pre tt { margin: 0; @@ -286,7 +281,7 @@ div#cgit .markdown-body h1 a.toclink, div#cgit .markdown-body h2 a.toclink, div# ''') sys.stdout.write(HtmlFormatter(style='pastie').get_style_defs('.highlight')) sys.stdout.write(''' -</style> +</style> ''') sys.stdout.write("<div class='markdown-body'>") sys.stdout.flush() |