The old Pelican theme I used to use for mcol.xyz
git clone https://mcol.xyz/code/rice-theme
Log | Files | Refs | README

commit 3b360d9b4809f93b22ea7a7610b898bdd384a702
parent 030bc14dc261771963faf64aab672d24e485bb11
Author: mcol <mcol@posteo.net>
Date:   Sun,  2 Aug 2020 17:58:43 +0100

Clean up some cgit styling

Diffstat:
Mstatic/css/main.css | 124++++++++++++++++++++-----------------------------------------------------------
1 file changed, 31 insertions(+), 93 deletions(-)

diff --git a/static/css/main.css b/static/css/main.css @@ -18,11 +18,14 @@ --c4: #8f4ff0; /* blue */ --c5: var(--trim); /* purple */ --c6: var(--text2); /* cyan */ + + /* fonts */ + --mono: "Lucida Console", Monaco, monospace; } @viewport { - width:device-width; - zoom:1.0; + width: device-width; + zoom: 1.0; } @font-face { @@ -42,7 +45,7 @@ body { } .win { - font-family: "Lucida Console", Monaco, monospace; + font-family: var(--mono); color: var(--trim); width: 428px; height: 238px; @@ -198,7 +201,7 @@ h1 a:hover { } .art-info { - font-family: "Lucida Console", Monaco, monospace; + font-family: var(--mono); line-height: 0.8em; margin: 30px 0; } @@ -229,14 +232,14 @@ table { border-collapse: collapse; } -img { +#page img { max-width: 100%; margin: 0 auto; display: block; } .cats { - font-family: "Lucida Console", Monaco, monospace; + font-family: var(--mono); } @@ -308,6 +311,7 @@ img { } #cgit table#header td.sub { + font-family: var(--mono); color: #777; border-top: solid 1px #ccc; padding-left: 10px; @@ -315,7 +319,6 @@ img { #cgit table.tabs { border-bottom: solid 3px #ccc; - border-collapse: collapse; margin-top: 2em; margin-bottom: 0px; width: 100%; @@ -358,14 +361,12 @@ img { } #cgit div.path { - margin: 0px; padding: 5px 2em 2px 2em; color: #000; background-color: #eee; } #cgit div.content { - margin: 0px; padding: 2em; border-bottom: solid 3px #ccc; } @@ -374,52 +375,30 @@ img { #cgit table.list { width: 100%; border: none; - border-collapse: collapse; -} - -#cgit table.list tr { - background: var(--bg); } +#cgit table.list tr:hover, #cgit table.list tr.logheader { background: #eee; } + +#cgit table.list tr.nohover-highlight:hover:nth-child(even), #cgit table.list tr:nth-child(even) { background: #f7f7f7; } +#cgit table.list tr.nohover-highlight:hover:nth-child(odd), +#cgit table.list tr.nohover, +#cgit table.list tr, #cgit table.list tr:nth-child(odd) { background: var(--bg); } -#cgit table.list tr:hover { - background: #eee; -} - -#cgit table.list tr.nohover { - background: var(--bg); -} - -#cgit table.list tr.nohover:hover { -} - -#cgit table.list tr.nohover-highlight:hover:nth-child(even) { - background: #f7f7f7; -} - -#cgit table.list tr.nohover-highlight:hover:nth-child(odd) { - background: var(--bg); -} - #cgit table.list th { font-weight: bold; - /* color: #888; - border-top: dashed 1px #888; - border-bottom: dashed 1px #888; - */ -padding: 0.1em 0.5em 0.05em 0.5em; -vertical-align: baseline; + padding: 0.1em 0.5em 0.05em 0.5em; + vertical-align: baseline; } #cgit table.list td { @@ -427,37 +406,8 @@ vertical-align: baseline; padding: 0.1em 0.5em 0.1em 0.5em; } -#cgit table.list td.commitgraph { - font-family: "Lucida Console", Monaco, monospace; - white-space: pre; -} - -#cgit table.list td.commitgraph .column1 { - color: #a00; -} - -#cgit table.list td.commitgraph .column2 { - color: #0a0; -} - -#cgit table.list td.commitgraph .column3 { - color: #aa0; -} - -#cgit table.list td.commitgraph .column4 { - color: #00a; -} - -#cgit table.list td.commitgraph .column5 { - color: #a0a; -} - -#cgit table.list td.commitgraph .column6 { - color: #0aa; -} - #cgit table.list td.logmsg { - font-family: "Lucida Console", Monaco, monospace; + font-family: var(--mono); white-space: pre; padding: 0 0.5em; } @@ -477,10 +427,6 @@ vertical-align: baseline; color: var(--bg); } -#cgit img { - border: none; -} - #cgit input#switch-btn { margin: 2px 0px 0px 0px; } @@ -508,7 +454,6 @@ vertical-align: baseline; #cgit table#downloads { float: right; - border-collapse: collapse; border: solid 1px #777; margin-left: 0.5em; margin-bottom: 0.5em; @@ -529,17 +474,17 @@ vertical-align: baseline; } #cgit a.ls-blob, #cgit a.ls-dir, #cgit .ls-mod { - font-family: "Lucida Console", Monaco, monospace; + font-family: var(--mono); } #cgit td.ls-size { text-align: right; - font-family: "Lucida Console", Monaco, monospace; + font-family: var(--mono); width: 10em; } #cgit td.ls-mode { - font-family: "Lucida Console", Monaco, monospace; + font-family: var(--mono); width: 10em; } @@ -617,14 +562,14 @@ vertical-align: baseline; } #cgit table.bin-blob th { - font-family: "Lucida Console", Monaco, monospace; + font-family: var(--mono); white-space: pre; border: solid 1px #777; padding: 0.5em 1em; } #cgit table.bin-blob td { - font-family: "Lucida Console", Monaco, monospace; + font-family: var(--mono); white-space: pre; border-left: solid 1px #777; padding: 0em 1em; @@ -635,7 +580,6 @@ vertical-align: baseline; } #cgit table.commit-info { - border-collapse: collapse; margin-top: 1.5em; } @@ -645,7 +589,6 @@ vertical-align: baseline; } #cgit div.cgit-panel table { - border-collapse: collapse; border: solid 1px #aaa; background-color: #eee; } @@ -687,7 +630,7 @@ vertical-align: baseline; #cgit div.commit-msg { white-space: pre; - font-family: "Lucida Console", Monaco, monospace; + font-family: var(--mono); } #cgit div.notes-header { @@ -697,7 +640,7 @@ vertical-align: baseline; #cgit div.notes { white-space: pre; - font-family: "Lucida Console", Monaco, monospace; + font-family: var(--mono); border: solid 1px #ee9; background-color: #ffd; padding: 0.3em 2em 0.3em 1em; @@ -714,7 +657,6 @@ vertical-align: baseline; } #cgit table.diffstat { - border-collapse: collapse; border: solid 1px #aaa; background-color: #eee; } @@ -784,7 +726,7 @@ vertical-align: baseline; } #cgit table.diff td { - font-family: "Lucida Console", Monaco, monospace; + font-family: var(--mono); white-space: pre; } @@ -807,7 +749,7 @@ vertical-align: baseline; } #cgit .sha1 { - font-family: "Lucida Console", Monaco, monospace; + font-family: var(--mono); font-size: 90%; } @@ -947,7 +889,6 @@ vertical-align: baseline; #cgit table.stats { border: solid 1px black; - border-collapse: collapse; } #cgit table.stats th { @@ -969,9 +910,7 @@ vertical-align: baseline; } #cgit table.stats td.sum { - color: #c00; font-weight: bold; - /* background-color: #eee; */ } #cgit table.stats td.left { @@ -979,7 +918,6 @@ vertical-align: baseline; } #cgit table.vgraph { - border-collapse: separate; border: solid 1px black; height: 200px; } @@ -1028,7 +966,7 @@ vertical-align: baseline; #cgit table.ssdiff td { font-size: 75%; - font-family: "Lucida Console", Monaco, monospace; + font-family: var(--mono); white-space: pre; padding: 1px 4px 1px 4px; border-left: solid 1px #aaa; @@ -1151,8 +1089,8 @@ vertical-align: baseline; border-right: 2px solid var(--trim); } -code { - font-family: "Lucida Console", Monaco, monospace; +#page code { + font-family: var(--mono); font-size: 0.85em; background-color: var(--trim); color: var(--bg);