From ecd1260017d23128f7b37289be901e0fbb888992 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Fri, 29 Oct 2021 08:07:01 +0000 Subject: Lowercase everything, Rosé Pine, click to copy And probably other little things I forgot about --- cgit.css | 861 ++++++++++++++++++++--------------------- filters/syntax-highlighting.py | 2 +- ui-diff.c | 2 +- ui-log.c | 14 +- ui-refs.c | 16 +- ui-repolist.c | 10 +- ui-shared.c | 2 +- ui-stats.c | 12 +- ui-summary.c | 12 +- ui-tree.c | 8 +- 10 files changed, 455 insertions(+), 484 deletions(-) diff --git a/cgit.css b/cgit.css index dfa144d..ddedb24 100644 --- a/cgit.css +++ b/cgit.css @@ -1,895 +1,862 @@ +:root { + --fg: #191724; + --fg-light: #555169; + --bg: #eee9e6; + --bg-light: #9893a5; + --cyan: #56949f; + --pink: #d7827e; + --gold: #ea9d34; + --pine: #286983; + --base: #faf4ed; + --rose: #ebbcba; + --subtle: #6e6a86 +} + +::selection { + color: var(--fg); + background: var(--cyan) +} + div#cgit { - padding: 0em; - margin: 0em; - font-family: sans-serif; - font-size: 10pt; - color: #333; - background: white; - padding: 4px; + margin: 2em; + font-family: sans-serif; + font-size: 10pt } div#cgit a { - color: blue; - text-decoration: none; + color: var(--pink); + text-decoration: none } -div#cgit a:hover { - text-decoration: underline; +div#cgit a:hover,div#cgit div.footer a:hover { + text-decoration: underline } div#cgit table { - border-collapse: collapse; + border-collapse: collapse } div#cgit table#header { - width: 100%; - margin-bottom: 1em; + width: 100%; + margin-bottom: 1em } div#cgit table#header td.logo { - width: 96px; - vertical-align: top; + width: 96px; + vertical-align: top } div#cgit table#header td.main { - font-size: 250%; - padding-left: 10px; - white-space: nowrap; + font-size: 2.5em; + padding-left: 10px; + white-space: nowrap +} + +div#cgit table#header td.main::after { + content: ''; + display: inline-block; + width: 100%; + height: 100%; + border-bottom: 12px ridge var(--rose); + margin-left: 1em } -div#cgit table#header td.main a { - color: #000; +div#cgit,div#cgit table#header td.main a,div#cgit table.blob td.linenumbers a:hover,div#cgit table.ssdiff td.lineno a:hover { + color: var(--fg) } div#cgit table#header td.form { - text-align: right; - vertical-align: bottom; - padding-right: 1em; - padding-bottom: 2px; - white-space: nowrap; + text-align: right; + vertical-align: bottom; + padding-right: 1em; + padding-bottom: 2px; + white-space: nowrap } -div#cgit table#header td.form form, -div#cgit table#header td.form input, -div#cgit table#header td.form select { - font-size: 90%; +div#cgit table#header td.form form,div#cgit table#header td.form input,div#cgit table#header td.form select,div#cgit table.tabs td.form input,div#cgit table.tabs td.form select { + font-size: 90% } div#cgit table#header td.sub { - color: #777; - border-top: solid 1px #ccc; - padding-left: 10px; + color: var(--fg-light); + padding-left: 10px } div#cgit table.tabs { - border-bottom: solid 3px #ccc; - border-collapse: collapse; - margin-top: 2em; - margin-bottom: 0px; - width: 100%; + border: 0; + margin-top: 2em; + margin-bottom: 2em; + width: 100% } div#cgit table.tabs td { - padding: 0px 1em; - vertical-align: bottom; + padding: 0 1em; + vertical-align: bottom } div#cgit table.tabs td a { - padding: 2px 0.75em; - color: #777; - font-size: 110%; + padding: .75em; + color: var(--fg-light); + font-size: 110% +} + +div#cgit table.tabs td a:hover { + color: var(--fg); + text-decoration: none; + border-bottom: 2px solid var(--fg-light) } div#cgit table.tabs td a.active { - color: #000; - background-color: #ccc; + color: var(--gold) } -div#cgit table.tabs a[href^="http://"]:after, div#cgit table.tabs a[href^="https://"]:after { - content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfgAhcJDQY+gm2TAAAAHWlUWHRDb21tZW50AAAAAABDcmVhdGVkIHdpdGggR0lNUGQuZQcAAABbSURBVAhbY2BABs4MU4CwhYHBh2Erww4wrGFQZHjI8B8IgUIscJWyDHcggltQhI4zGDCcRwhChPggHIggP1QoAVmQkSETrGoHsiAEsACtBYN0oDAMbgU6EBcAAL2eHUt4XUU4AAAAAElFTkSuQmCC); - opacity: 0.5; - margin: 0 0 0 5px; +div#cgit table.tabs a[href^="http://"]:after,div#cgit table.tabs a[href^="https://"]:after { + content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfgAhcJDQY+gm2TAAAAHWlUWHRDb21tZW50AAAAAABDcmVhdGVkIHdpdGggR0lNUGQuZQcAAABbSURBVAhbY2BABs4MU4CwhYHBh2Erww4wrGFQZHjI8B8IgUIscJWyDHcggltQhI4zGDCcRwhChPggHIggP1QoAVmQkSETrGoHsiAEsACtBYN0oDAMbgU6EBcAAL2eHUt4XUU4AAAAAElFTkSuQmCC); + opacity: .5; + margin: 0 0 0 5px } div#cgit table.tabs td.form { - text-align: right; + text-align: right } div#cgit table.tabs td.form form { - padding-bottom: 2px; - font-size: 90%; - white-space: nowrap; -} - -div#cgit table.tabs td.form input, -div#cgit table.tabs td.form select { - font-size: 90%; + padding-bottom: 2px; + font-size: 90%; + white-space: nowrap } div#cgit div.path { - margin: 0px; - padding: 5px 2em 2px 2em; - color: #000; - background-color: #eee; + margin: 0; + padding: 5px 2em 2px; + color: #000; + background-color: #eee } div#cgit div.content { - margin: 0px; - padding: 2em; - border-bottom: solid 3px #ccc; + margin: 0; + padding: 2em } - div#cgit table.list { - width: 100%; - border: none; - border-collapse: collapse; + width: 100%; + border: 0; + border-collapse: collapse } -div#cgit table.list tr { - background: white; +div#cgit,div#cgit table.list tr { + background: #fff } div#cgit table.list tr.logheader { - background: #eee; + background: #eee } div#cgit table.list tr:nth-child(even) { - background: #f7f7f7; -} - -div#cgit table.list tr:nth-child(odd) { - background: white; -} - -div#cgit table.list tr:hover { - background: #eee; -} - -div#cgit table.list tr.nohover { - background: white; -} - -div#cgit table.list tr.nohover:hover { - background: white; + background: #white } -div#cgit table.list tr.nohover-highlight:hover:nth-child(even) { - background: #f7f7f7; +div#cgit table.list tr.nohover-highlight:hover:nth-child(even),div#cgit table.list tr.nohover-highlight:hover:nth-child(odd),div#cgit table.list tr:nth-child(odd) { + background: #fff } -div#cgit table.list tr.nohover-highlight:hover:nth-child(odd) { - background: white; +div#cgit table.list tr.nohover,div#cgit table.list tr.nohover:hover { + background: #fff } div#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; + font-weight: 700; + color: var(--fg); + padding: .1em .5em .05em; + vertical-align: baseline } div#cgit table.list td { - border: none; - padding: 0.1em 0.5em 0.1em 0.5em; + border: 0; + padding: .5em .5em .1em } div#cgit table.list td.commitgraph { - font-family: monospace; - white-space: pre; -} - -div#cgit table.list td.commitgraph .column1 { - color: #a00; -} - -div#cgit table.list td.commitgraph .column2 { - color: #0a0; -} - -div#cgit table.list td.commitgraph .column3 { - color: #aa0; -} - -div#cgit table.list td.commitgraph .column4 { - color: #00a; + font-family: monospace; + white-space: pre; + color: var(--fg) } -div#cgit table.list td.commitgraph .column5 { - color: #a0a; -} - -div#cgit table.list td.commitgraph .column6 { - color: #0aa; +div#cgit table.list td a,div#cgit table.list td span.hint,div#cgit table.list td.commitgraph .column1,div#cgit table.list td.commitgraph .column2,div#cgit table.list td.commitgraph .column3,div#cgit table.list td.commitgraph .column4,div#cgit table.list td.commitgraph .column5,div#cgit table.list td.commitgraph .column6 { + color: var(--fg-light) } div#cgit table.list td.logsubject { - font-family: monospace; - font-weight: bold; + font-family: monospace; + font-weight: 700 } div#cgit table.list td.logmsg { - font-family: monospace; - white-space: pre; - padding: 0 0.5em; -} - -div#cgit table.list td a { - color: black; + font-family: monospace; + white-space: pre; + padding: 0 .5em } div#cgit table.list td a.ls-dir { - font-weight: bold; - color: #00f; + font-weight: 700; + color: var(--cyan) } div#cgit table.list td a:hover { - color: #00f; + text-decoration: none; + background: var(--bg) } div#cgit img { - border: none; + border: 0; + scale: 80% } div#cgit input#switch-btn { - margin: 2px 0px 0px 0px; + margin: 2px 0 0 } div#cgit td#sidebar input.txt { - width: 100%; - margin: 2px 0px 0px 0px; + width: 100%; + margin: 2px 0 0 +} + +div#cgit input[type=search],div#cgit input[type=submit] { + border: 1px solid var(--pine); + font-family: monospace; + background-color: var(--bg); + padding: .25em 1em +} + +div#cgit select { + border: 1px solid var(--pine); + background-color: var(--rose); + padding: .25em 1em } div#cgit table#grid { - margin: 0px; + margin: 0 } div#cgit td#content { - vertical-align: top; - padding: 1em 2em 1em 1em; - border: none; + vertical-align: top; + padding: 1em 2em 1em 1em; + border: 0 } div#cgit div#summary { - vertical-align: top; - margin-bottom: 1em; + vertical-align: top; + margin-bottom: 1em } div#cgit table#downloads { - float: right; - border-collapse: collapse; - border: solid 1px #777; - margin-left: 0.5em; - margin-bottom: 0.5em; + float: right; + border-collapse: collapse; + border: solid 1px #777; + margin-left: .5em; + margin-bottom: .5em } div#cgit table#downloads th { - background-color: #ccc; + background-color: #ccc } div#cgit div#blob { - border: solid 1px black; + border: solid 1px #000 } div#cgit div.error { - color: red; - font-weight: bold; - margin: 1em 2em; + color: red; + font-weight: 700; + margin: 1em 2em } -div#cgit a.ls-blob, div#cgit a.ls-dir, div#cgit .ls-mod { - font-family: monospace; +div#cgit .ls-mod,div#cgit a.ls-blob,div#cgit a.ls-dir,div#cgit select { + font-family: monospace } div#cgit td.ls-size { - text-align: right; - font-family: monospace; - width: 10em; + text-align: right } -div#cgit td.ls-mode { - font-family: monospace; - width: 10em; +div#cgit td.ls-mode,div#cgit td.ls-size { + font-family: monospace; + width: 10em } div#cgit table.blob { - margin-top: 0.5em; - border-top: solid 1px black; + margin-top: .5em; + border-top: solid 1px #000 } -div#cgit table.blob td.hashes, -div#cgit table.blob td.lines { - margin: 0; padding: 0 0 0 0.5em; - vertical-align: top; - color: black; +div#cgit table.blob td.hashes,div#cgit table.blob td.lines { + margin: 0; + padding: 0 0 0 .5em; + vertical-align: top; + color: #000 } div#cgit table.blob td.linenumbers { - margin: 0; padding: 0 0.5em 0 0.5em; - vertical-align: top; - text-align: right; - border-right: 1px solid gray; + margin: 0; + padding: 0 .5em; + vertical-align: top; + text-align: right; + border-right: 1px solid var(--bg) } div#cgit table.blob pre { - padding: 0; margin: 0; -} - -div#cgit table.blob td.linenumbers a, -div#cgit table.ssdiff td.lineno a { - color: gray; - text-align: right; - text-decoration: none; + padding: 0; + margin: 0 } -div#cgit table.blob td.linenumbers a:hover, -div#cgit table.ssdiff td.lineno a:hover { - color: black; +div#cgit table.blob td.linenumbers a,div#cgit table.ssdiff td.lineno a { + color: #888; + text-align: right; + text-decoration: none } -div#cgit table.blame td.hashes, -div#cgit table.blame td.lines, -div#cgit table.blame td.linenumbers { - padding: 0; +div#cgit table.blame td.hashes,div#cgit table.blame td.linenumbers,div#cgit table.blame td.lines { + padding: 0 } -div#cgit table.blame td.hashes div.alt, -div#cgit table.blame td.lines div.alt { - padding: 0 0.5em 0 0.5em; +div#cgit table.blame td.hashes div.alt,div#cgit table.blame td.lines div.alt { + padding: 0 .5em } div#cgit table.blame td.linenumbers div.alt { - padding: 0 0.5em 0 0; + padding: 0 .5em 0 0 } div#cgit table.blame div.alt:nth-child(even) { - background: #eee; + background: #eee } div#cgit table.blame div.alt:nth-child(odd) { - background: white; + background: #fff } -div#cgit table.blame td.lines > div { - position: relative; +div#cgit table.blame td.lines>div { + position: relative } -div#cgit table.blame td.lines > div > pre { - padding: 0 0 0 0.5em; - position: absolute; - top: 0; +div#cgit table.blame td.lines>div>pre { + padding: 0 0 0 .5em; + position: absolute; + top: 0 } div#cgit table.bin-blob { - margin-top: 0.5em; - border: solid 1px black; + margin-top: .5em; + border: solid 1px #000 } div#cgit table.bin-blob th { - font-family: monospace; - white-space: pre; - border: solid 1px #777; - padding: 0.5em 1em; + font-family: monospace; + white-space: pre; + border: solid 1px #777; + padding: .5em 1em } div#cgit table.bin-blob td { - font-family: monospace; - white-space: pre; - border-left: solid 1px #777; - padding: 0em 1em; + font-family: monospace; + white-space: pre; + border-left: solid 1px #777; + padding: 0 1em } div#cgit table.nowrap td { - white-space: nowrap; + white-space: nowrap } div#cgit table.commit-info { - border-collapse: collapse; - margin-top: 1.5em; + border-collapse: collapse; + margin-top: 1.5em } div#cgit div.cgit-panel { - float: right; - margin-top: 1.5em; + float: right; + margin-top: 1.5em } -div#cgit div.cgit-panel table { - border-collapse: collapse; - border: solid 1px #aaa; - background-color: #eee; +div#cgit div.cgit-panel table,div#cgit table.diffstat { + border-collapse: collapse; + border: solid 1px #aaa; + background-color: #eee } div#cgit div.cgit-panel th { - text-align: center; + text-align: center } div#cgit div.cgit-panel td { - padding: 0.25em 0.5em; + padding: .25em .5em } div#cgit div.cgit-panel td.label { - padding-right: 0.5em; + padding-right: .5em } div#cgit div.cgit-panel td.ctrl { - padding-left: 0.5em; + padding-left: .5em } div#cgit table.commit-info th { - text-align: left; - font-weight: normal; - padding: 0.1em 1em 0.1em 0.1em; - vertical-align: top; + text-align: left; + vertical-align: top } -div#cgit table.commit-info td { - font-weight: normal; - padding: 0.1em 1em 0.1em 0.1em; +div#cgit table.commit-info td,div#cgit table.commit-info th,div#cgit table.diffstat th { + font-weight: 400; + padding: .1em 1em .1em .1em } div#cgit div.commit-subject { - font-weight: bold; - font-size: 125%; - margin: 1.5em 0em 0.5em 0em; - padding: 0em; + font-weight: 700; + font-size: 125%; + margin: 1.5em 0 .5em; + padding: 0 } div#cgit div.commit-msg { - white-space: pre; - font-family: monospace; + white-space: pre; + font-family: monospace } div#cgit div.notes-header { - font-weight: bold; - padding-top: 1.5em; + font-weight: 700; + padding-top: 1.5em } div#cgit div.notes { - white-space: pre; - font-family: monospace; - border: solid 1px #ee9; - background-color: #ffd; - padding: 0.3em 2em 0.3em 1em; - float: left; + white-space: pre; + font-family: monospace; + border: solid 1px #ee9; + background-color: #ffd; + padding: .3em 2em .3em 1em; + float: left } div#cgit div.notes-footer { - clear: left; + clear: left } div#cgit div.diffstat-header { - font-weight: bold; - padding-top: 1.5em; -} - -div#cgit table.diffstat { - border-collapse: collapse; - border: solid 1px #aaa; - background-color: #eee; + font-weight: 700; + padding-top: 1.5em } div#cgit table.diffstat th { - font-weight: normal; - text-align: left; - text-decoration: underline; - padding: 0.1em 1em 0.1em 0.1em; - font-size: 100%; + text-align: left; + text-decoration: underline; + font-size: 100% } div#cgit table.diffstat td { - padding: 0.2em 0.2em 0.1em 0.1em; - font-size: 100%; - border: none; + padding: .2em .2em .1em .1em; + font-size: 100%; + border: 0 } div#cgit table.diffstat td.mode { - white-space: nowrap; + font: monospace; + white-space: nowrap } div#cgit table.diffstat td span.modechange { - padding-left: 1em; - color: red; + padding-left: 1em; + color: red } div#cgit table.diffstat td.add a { - color: green; + color: green } div#cgit table.diffstat td.del a { - color: red; + color: red } div#cgit table.diffstat td.upd a { - color: blue; + color: var(--pine) } div#cgit table.diffstat td.graph { - width: 500px; - vertical-align: middle; + width: 500px; + vertical-align: middle } div#cgit table.diffstat td.graph table { - border: none; + border: 0 } div#cgit table.diffstat td.graph td { - padding: 0px; - border: 0px; - height: 7pt; + padding: 0; + border: 0; + height: 7pt } div#cgit table.diffstat td.graph td.add { - background-color: #5c5; + background-color: #5c5 } div#cgit table.diffstat td.graph td.rem { - background-color: #c55; + background-color: #c55 } div#cgit div.diffstat-summary { - color: #888; - padding-top: 0.5em; + color: #888; + padding-top: .5em } div#cgit table.diff { - width: 100%; + width: 100% } div#cgit table.diff td { - font-family: monospace; - white-space: pre; + font-family: monospace; + white-space: pre } div#cgit table.diff td div.head { - font-weight: bold; - margin-top: 1em; - color: black; + font-weight: 700; + margin-top: 1em; + color: #000 } div#cgit table.diff td div.hunk { - color: #009; + color: #009 } div#cgit table.diff td div.add { - color: green; + color: green } div#cgit table.diff td div.del { - color: red; + color: red } div#cgit .oid { - font-family: monospace; - font-size: 90%; + font-family: monospace; + font-size: 90% } div#cgit .left { - text-align: left; + text-align: left } div#cgit .right { - text-align: right; + text-align: right } div#cgit table.list td.reposection { - font-style: italic; - color: #888; + padding-top: .5rem; + color: var(--subtle) +} + +div#cgit table.list td.reposection::after { + content: " / "; + font-style: italic; + color: var(--fg-light) } div#cgit a.button { - font-size: 80%; - padding: 0em 0.5em; + font-size: 80%; + padding: 0 .5em } div#cgit a.primary { - font-size: 100%; + font-size: 100% } div#cgit a.secondary { - font-size: 90%; + font-size: 90% } -div#cgit td.toplevel-repo { - +div#cgit table.list td.sublevel-repo a:hover::after,div#cgit table.list td.toplevel-repo a:hover::after { + content: " / "; + font-style: italic; + color: var(--fg-light); + position: absolute; + padding-left: .25em } div#cgit table.list td.sublevel-repo { - padding-left: 1.5em; + padding-left: 1.5em +} + +div#cgit table.list td.sublevel-repo a:hover::after { + color: var(--rose) } div#cgit ul.pager { - list-style-type: none; - text-align: center; - margin: 1em 0em 0em 0em; - padding: 0; + list-style-type: none; + text-align: center; + margin: 1em 0 0; + padding: 0 } div#cgit ul.pager li { - display: inline-block; - margin: 0.25em 0.5em; + display: inline-block; + margin: .25em .5em } div#cgit ul.pager a { - color: #777; + color: #777 } div#cgit ul.pager .current { - font-weight: bold; + font-weight: 700 } div#cgit span.age-mins { - font-weight: bold; - color: #080; + font-weight: 700; + color: #080 } div#cgit span.age-hours { - color: #080; + color: #080 } div#cgit span.age-days { - color: #040; + color: #040 } div#cgit span.age-weeks { - color: #444; + color: #444 } div#cgit span.age-months { - color: #888; + color: #888 } div#cgit span.age-years { - color: #bbb; + color: #bbb } div#cgit span.insertions { - color: #080; + color: #080 } div#cgit span.deletions { - color: #800; + color: #800 } div#cgit div.footer { - margin-top: 0.5em; - text-align: center; - font-size: 80%; - color: #ccc; + margin-top: .5em; + text-align: center; + font-size: 80%; + color: #ccc } div#cgit div.footer a { - color: #ccc; - text-decoration: none; -} - -div#cgit div.footer a:hover { - text-decoration: underline; + color: #ccc; + text-decoration: none } div#cgit a.branch-deco { - color: #000; - margin: 0px 0.5em; - padding: 0px 0.25em; - background-color: #88ff88; - border: solid 1px #007700; + color: #000; + margin: 0 .5em; + padding: 0 .25em; + background-color: #8f8; + border: solid 1px #070 } div#cgit a.tag-deco { - color: #000; - margin: 0px 0.5em; - padding: 0px 0.25em; - background-color: #ffff88; - border: solid 1px #777700; + color: var(--cyan)!important; + margin: 0 .5em; + padding: 0 .25em; + font-weight: 700 } div#cgit a.tag-annotated-deco { - color: #000; - margin: 0px 0.5em; - padding: 0px 0.25em; - background-color: #ffcc88; - border: solid 1px #777700; + font-weight: 700 +} + +div#cgit a.deco,div#cgit a.remote-deco,div#cgit a.tag-annotated-deco { + color: var(--cyan)!important; + margin: 0 .5em; + padding: 0 .25em } div#cgit a.remote-deco { - color: #000; - margin: 0px 0.5em; - padding: 0px 0.25em; - background-color: #ccccff; - border: solid 1px #000077; + background-color: #ccf; + border: solid 1px #007 } div#cgit a.deco { - color: #000; - margin: 0px 0.5em; - padding: 0px 0.25em; - background-color: #ff8888; - border: solid 1px #770000; + font-weight: 700 } -div#cgit div.commit-subject a.branch-deco, -div#cgit div.commit-subject a.tag-deco, -div#cgit div.commit-subject a.tag-annotated-deco, -div#cgit div.commit-subject a.remote-deco, -div#cgit div.commit-subject a.deco { - margin-left: 1em; - font-size: 75%; +div#cgit div.commit-subject a.branch-deco,div#cgit div.commit-subject a.deco,div#cgit div.commit-subject a.remote-deco,div#cgit div.commit-subject a.tag-annotated-deco,div#cgit div.commit-subject a.tag-deco { + margin-left: 1em; + font-size: 75% } div#cgit table.stats { - border: solid 1px black; - border-collapse: collapse; + border: solid 1px #000; + border-collapse: collapse } div#cgit table.stats th { - text-align: left; - padding: 1px 0.5em; - background-color: #eee; - border: solid 1px black; + text-align: left; + padding: 1px .5em; + background-color: #eee; + border: solid 1px #000 } div#cgit table.stats td { - text-align: right; - padding: 1px 0.5em; - border: solid 1px black; + text-align: right; + padding: 1px .5em; + border: solid 1px #000 } div#cgit table.stats td.total { - font-weight: bold; - text-align: left; + font-weight: 700; + text-align: left } div#cgit table.stats td.sum { - color: #c00; - font-weight: bold; -/* background-color: #eee; */ + color: #c00; + font-weight: 700 } div#cgit table.stats td.left { - text-align: left; + text-align: left } div#cgit table.vgraph { - border-collapse: separate; - border: solid 1px black; - height: 200px; + border-collapse: separate; + border: solid 1px #000; + height: 200px } -div#cgit table.vgraph th { - background-color: #eee; - font-weight: bold; - border: solid 1px white; - padding: 1px 0.5em; +div#cgit table.hgraph th,div#cgit table.vgraph th { + background-color: #eee; + font-weight: 700; + border: solid 1px #fff; + padding: 1px .5em } div#cgit table.vgraph td { - vertical-align: bottom; - padding: 0px 10px; + vertical-align: bottom; + padding: 0 10px } div#cgit table.vgraph div.bar { - background-color: #eee; + background-color: #eee } div#cgit table.hgraph { - border: solid 1px black; - width: 800px; + border: solid 1px #000; + width: 800px } div#cgit table.hgraph th { - background-color: #eee; - font-weight: bold; - border: solid 1px black; - padding: 1px 0.5em; + border: solid 1px #000 } div#cgit table.hgraph td { - vertical-align: middle; - padding: 2px 2px; + vertical-align: middle; + padding: 2px } div#cgit table.hgraph div.bar { - background-color: #eee; - height: 1em; + background-color: #eee; + height: 1em } div#cgit table.ssdiff { - width: 100%; + width: 100% } div#cgit table.ssdiff td { - font-size: 75%; - font-family: monospace; - white-space: pre; - padding: 1px 4px 1px 4px; - border-left: solid 1px #aaa; - border-right: solid 1px #aaa; + font-size: 75%; + font-family: monospace; + white-space: pre; + padding: 1px 4px; + border-left: solid 1px #aaa; + border-right: solid 1px #aaa } div#cgit table.ssdiff td.add { - color: black; - background: #cfc; - min-width: 50%; + color: #000; + background: #cfc; + min-width: 50% } div#cgit table.ssdiff td.add_dark { - color: black; - background: #aca; - min-width: 50%; + color: #000; + background: #aca; + min-width: 50% } div#cgit table.ssdiff span.add { - background: #cfc; - font-weight: bold; + background: #cfc; + font-weight: 700 } div#cgit table.ssdiff td.del { - color: black; - background: #fcc; - min-width: 50%; + color: #000; + background: #fcc; + min-width: 50% } div#cgit table.ssdiff td.del_dark { - color: black; - background: #caa; - min-width: 50%; + color: #000; + background: #caa; + min-width: 50% } div#cgit table.ssdiff span.del { - background: #fcc; - font-weight: bold; + background: #fcc; + font-weight: 700 } div#cgit table.ssdiff td.changed { - color: black; - background: #ffc; - min-width: 50%; + color: #000; + background: #ffc; + min-width: 50% } div#cgit table.ssdiff td.changed_dark { - color: black; - background: #cca; - min-width: 50%; + color: #000; + background: #cca; + min-width: 50% } div#cgit table.ssdiff td.lineno { - color: black; - background: #eee; - text-align: right; - width: 3em; - min-width: 3em; + color: #000; + background: #eee; + text-align: right; + width: 3em; + min-width: 3em } div#cgit table.ssdiff td.hunk { - color: black; - background: #ccf; - border-top: solid 1px #aaa; - border-bottom: solid 1px #aaa; + color: #000; + background: var(--bg-light) } -div#cgit table.ssdiff td.head { - border-top: solid 1px #aaa; - border-bottom: solid 1px #aaa; +div#cgit table.ssdiff td.head,div#cgit table.ssdiff td.hunk { + border-top: solid 1px #aaa; + border-bottom: solid 1px #aaa } div#cgit table.ssdiff td.head div.head { - font-weight: bold; - color: black; + font-weight: 700; + color: #000 } div#cgit table.ssdiff td.foot { - border-top: solid 1px #aaa; - border-left: none; - border-right: none; - border-bottom: none; + border-top: solid 1px #aaa; + border-left: none; + border-right: none; + border-bottom: none } div#cgit table.ssdiff td.space { - border: none; + border: 0 } div#cgit table.ssdiff td.space div { - min-height: 3em; + min-height: 3em } diff --git a/filters/syntax-highlighting.py b/filters/syntax-highlighting.py index b877644..078dca5 100755 --- a/filters/syntax-highlighting.py +++ b/filters/syntax-highlighting.py @@ -34,7 +34,7 @@ sys.stdin = io.TextIOWrapper(sys.stdin.buffer, encoding='utf-8', errors='replace sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace') data = sys.stdin.read() filename = sys.argv[1] -formatter = HtmlFormatter(style='stata-light', nobackground=True) +formatter = HtmlFormatter(style='igor') try: lexer = guess_lexer_for_filename(filename, data) diff --git a/ui-diff.c b/ui-diff.c index 5ed5990..d014043 100644 --- a/ui-diff.c +++ b/ui-diff.c @@ -194,7 +194,7 @@ static void cgit_print_diffstat(const struct object_id *old_oid, int i; html("
"); - cgit_diff_link("Diffstat", NULL, NULL, ctx.qry.head, ctx.qry.oid, + cgit_diff_link("diffstat", NULL, NULL, ctx.qry.head, ctx.qry.oid, ctx.qry.oid2, NULL); if (prefix) { html(" (limited to '"); diff --git a/ui-log.c b/ui-log.c index 20774bf..22f9ca1 100644 --- a/ui-log.c +++ b/ui-log.c @@ -459,26 +459,26 @@ void cgit_print_log(const char *tip, int ofs, int cnt, char *grep, char *pattern if (commit_graph) html(""); else - html("Age"); - html("Commit message"); + html("age"); + html("commit message"); if (pager) { html(" ("); - cgit_log_link(ctx.qry.showmsg ? "Collapse" : "Expand", NULL, + cgit_log_link(ctx.qry.showmsg ? "collapse" : "expand", NULL, NULL, ctx.qry.head, ctx.qry.oid, ctx.qry.vpath, ctx.qry.ofs, ctx.qry.grep, ctx.qry.search, ctx.qry.showmsg ? 0 : 1, ctx.qry.follow); html(")"); } - html("Author"); + html("author"); if (rev.graph) - html("Age"); + html("age"); if (ctx.repo->enable_log_filecount) { - html("Files"); + html("files"); columns++; } if (ctx.repo->enable_log_linecount) { - html("Lines"); + html("lines"); columns++; } html("\n"); diff --git a/ui-refs.c b/ui-refs.c index 456f610..ced72ac 100644 --- a/ui-refs.c +++ b/ui-refs.c @@ -84,10 +84,10 @@ static int print_branch(struct refinfo *ref) static void print_tag_header(void) { - html("Tag" - "Download" - "Author" - "Age\n"); + html("tag" + "download" + "author" + "age\n"); } static int print_tag(struct refinfo *ref) @@ -148,10 +148,10 @@ void cgit_print_branches(int maxcount) struct reflist list; int i; - html("Branch" - "Commit message" - "Author" - "Age\n"); + html("branch" + "commit message" + "author" + "age\n"); list.refs = NULL; list.alloc = list.count = 0; diff --git a/ui-repolist.c b/ui-repolist.c index 529a203..9a9c1a2 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -143,13 +143,13 @@ static void print_sort_header(const char *title, const char *sort) static void print_header(void) { html(""); - print_sort_header("Name", "name"); - print_sort_header("Description", "desc"); + print_sort_header("name", "name"); + print_sort_header("description", "desc"); if (ctx.cfg.enable_index_owner) - print_sort_header("Owner", "owner"); - print_sort_header("Idle", "idle"); + print_sort_header("owner", "owner"); + print_sort_header("idle", "idle"); if (ctx.cfg.enable_index_links) - html("Links"); + html("links"); html("\n"); } diff --git a/ui-shared.c b/ui-shared.c index acd8ab5..a7e40c3 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -838,7 +838,7 @@ void cgit_print_docend(void) htmlf("\n"); + html(" with beautiful colours of Rosé Pine
\n"); } html(" \n"); html("\n\n"); diff --git a/ui-stats.c b/ui-stats.c index 09b3625..8b7e70c 100644 --- a/ui-stats.c +++ b/ui-stats.c @@ -309,13 +309,13 @@ static void print_authors(struct string_list *authors, int top, for (i = 1; i < period->count; i++) period->dec(&tm); - html(""); + html("
Author
"); for (j = 0; j < period->count; j++) { tmp = period->pretty(&tm); htmlf("", tmp); period->inc(&tm); } - html("\n"); + html("\n"); if (top <= 0 || top > authors->nr) top = authors->nr; @@ -348,7 +348,7 @@ static void print_authors(struct string_list *authors, int top, print_combined_authorrow(authors, top, authors->nr - 1, "Others (%ld)", "left", "", "sum", period); - print_combined_authorrow(authors, 0, authors->nr - 1, "Total", + print_combined_authorrow(authors, 0, authors->nr - 1, "total", "total", "sum", "sum", period); html("
author%sTotal
total
"); } @@ -393,14 +393,14 @@ void cgit_show_stats(void) cgit_add_hidden_formfields(1, 0, "stats"); html(""); if (ctx.repo->max_stats > 1) { - html(""); + html(""); html(""); } - html(""); + html(""); html("
Period:
period:
Authors:
authors:
"); html(""); html(""); - htmlf("

Commits per author per %s", period->name); + htmlf("

commits per author per %s", period->name); if (ctx.qry.path) { html(" (path '"); html_txt(ctx.qry.path); diff --git a/ui-summary.c b/ui-summary.c index 947812a..1b65462 100644 --- a/ui-summary.c +++ b/ui-summary.c @@ -28,16 +28,20 @@ static void print_url(const char *url) if (urls++ == 0) { htmlf(" ", columns); - htmlf("Clone\n", columns); + htmlf("clone\n", columns); } - htmlf(""); + htmlf(""); + html(" git repository'>"); html_txt(url); - html("\n"); + html(" (click to copy)\n"); + html(""); } void cgit_print_summary(void) diff --git a/ui-tree.c b/ui-tree.c index b61f6f5..fbaaa32 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -213,7 +213,7 @@ static int ls_item(const struct object_id *oid, struct strbuf *base, if (!S_ISGITLINK(mode)) { type = oid_object_info(the_repository, oid, &size); if (type == OBJ_BAD) { - htmlf("Bad object: %s %s", + htmlf("bad object: %s %s", name, oid_to_hex(oid)); free(name); @@ -264,9 +264,9 @@ static void ls_head(void) cgit_print_layout_start(); html("\n"); html(""); - html(""); - html(""); - html(""); + html(""); + html(""); + html(""); html("\n"); } -- cgit v1.2.3-70-g09d2
ModeNameSizemodenamesize"); html("