diff options
author | Krytarik Raido <krytarik@gmail.com> | 2021-03-21 00:13:04 +0100 |
---|---|---|
committer | Krytarik Raido <krytarik@gmail.com> | 2021-03-21 00:13:04 +0100 |
commit | 8736b9106aad22eee247501ce5d90b1ef2a7fb59 (patch) | |
tree | d177a6c253a615b6cc5202bd6868572089d70635 | |
parent | 6da1fb12380db7ae1cd1597750a623cc658edb1b (diff) | |
download | cgit-assets-8736b9106aad22eee247501ce5d90b1ef2a7fb59.tar.bz2 cgit-assets-8736b9106aad22eee247501ce5d90b1ef2a7fb59.tar.xz cgit-assets-8736b9106aad22eee247501ce5d90b1ef2a7fb59.tar.zst |
Improve ReST theming.
-rw-r--r-- | custom.css.in | 27 | ||||
-rw-r--r-- | dark.css | 5 |
2 files changed, 32 insertions, 0 deletions
diff --git a/custom.css.in b/custom.css.in index 88df7a7..5156978 100644 --- a/custom.css.in +++ b/custom.css.in @@ -1,5 +1,9 @@ +/*** Default theme ***/ + m4_include(/usr/share/cgit/cgit.css) +/*** Libravatar ***/ + div#cgit span.libravatar img.onhover { display: none; border: 1px solid gray; @@ -28,6 +32,29 @@ div#cgit span.libravatar:hover > img.onhover { box-shadow: 2px 2px 7px rgba(100,100,100,0.75); } +/*** ReST ***/ + +div#summary h1 a.toc-backref, div#summary h2 a.toc-backref, div#summary h3 a.toc-backref, +div#summary h4 a.toc-backref, div#summary h5 a.toc-backref, div#summary h6 a.toc-backref { + color: #000 !important; +} + +div#summary div.sidebar { background-color: #f8f8f8 !important } +div#summary pre.code, div#summary code { background-color: #f8f8f8 !important } +div#summary pre.code .comment, div#summary code .comment { color: #888 !important } +div#summary pre.code .keyword, div#summary code .keyword { color: #080 !important } +div#summary pre.code .literal.string, div#summary code .literal.string { + color: #d20 !important; background-color: #fff0f0 !important } +div#summary pre.code .name.builtin, div#summary code .name.builtin { color: #00d !important } +div#summary pre.code .deleted, div#summary code .deleted { background-color: #fdd !important } +div#summary pre.code .inserted, div#summary code .inserted { background-color: #dfd !important } + +/*** Syntax highlighting ***/ + +.highlight .no, .highlight .nb, .highlight .bp { color: #00d !important } + +/*** Dark theme ***/ + @media (prefers-color-scheme: dark) { m4_include(dark.css) } @@ -154,6 +154,11 @@ div#cgit span.libravatar img.inline { /*** ReST ***/ +div#summary h1 a.toc-backref, div#summary h2 a.toc-backref, div#summary h3 a.toc-backref, +div#summary h4 a.toc-backref, div#summary h5 a.toc-backref, div#summary h6 a.toc-backref { + color: rgb(230, 230, 230) !important; +} + div#summary div.sidebar { background-color: rgb(52, 52, 52) !important } div#summary pre.code, div#summary code { background-color: rgb(52, 52, 52) !important } div#summary pre.code .comment, div#summary code .comment { color: #888 !important } |