diff options
| author | Jack Jamison <jackqjamison@gmail.com> | 2026-07-08 19:33:13 -0400 |
|---|---|---|
| committer | Jack Jamison <jackqjamison@gmail.com> | 2026-07-08 19:33:13 -0400 |
| commit | d03619fc2ac6c7e66432277ae4098db9274cd0b1 (patch) | |
| tree | fd4e79d8ff5f6d5e3a1181b491bb2df7d8a58e34 /configuration/cgit | |
| parent | 26e913c1b0ed20235a4570900e8c66d1f2996054 (diff) | |
cgit css
Diffstat (limited to 'configuration/cgit')
| -rw-r--r-- | configuration/cgit/cgitrc | 27 | ||||
| -rw-r--r-- | configuration/cgit/custom.css | 87 | ||||
| -rw-r--r-- | configuration/cgit/head_include.html | 1 |
3 files changed, 115 insertions, 0 deletions
diff --git a/configuration/cgit/cgitrc b/configuration/cgit/cgitrc new file mode 100644 index 0000000..541c6c4 --- /dev/null +++ b/configuration/cgit/cgitrc @@ -0,0 +1,27 @@ +# resources +css=/cgit.css +logo=/cgit.png + +# settings +virtual-root=/ +clone-prefix=https://git.jackjamison.net +enable-index-owner=0 +source-filter=/usr/lib/cgit/filters/syntax-highlighting.py +head-include=/usr/share/cgit/head_include.html + +# about page +about-filter=/usr/lib/cgit/filters/about-formatting.sh +default-page=about +readme=:readme.md +readme=:README.md +readme=:README + +# homepage +root-title=Jack Jamison's Repositories +root-desc=get my free software, foo + +# repos +enable-git-config=1 +remove-suffix=1 +project-list=/var/git/projects.list +scan-path=/var/git/repositories
\ No newline at end of file diff --git a/configuration/cgit/custom.css b/configuration/cgit/custom.css new file mode 100644 index 0000000..a6b60b8 --- /dev/null +++ b/configuration/cgit/custom.css @@ -0,0 +1,87 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ + +@import url("cgit.css"); + +* { line-height: 1.25em; } + +div#cgit { + max-width: 117ch; + margin: auto; + font-family: monospace; + -moz-tab-size: 4; + tab-size: 4; +} + +div#cgit table#header td.sub { + border-top: none; +} +div#cgit table#header td.sub.right { + padding-right: 1em; +} +div#cgit table.tabs { + border-bottom: none; +} +div#cgit div.content { + border-bottom: none; +} +div#cgit table.list th a { + color: inherit; +} +div#cgit table.list tr:nth-child(even) { + background: inherit; +} +div#cgit table.list tr:hover { + background: inherit; +} +div#cgit table.list tr.nohover-highlight:hover:nth-child(even) { + background: inherit; +} + +div#cgit table.blob td.linenumbers a:target { + color: goldenrod; + text-decoration: underline; + outline: none; +} + +div#cgit div#summary { + max-width: 80ch; +} + +/* for hilex(1) */ +div#cgit pre .Ke { color: dimgray; } +div#cgit pre .Ma { color: green; } +div#cgit pre .Co { color: navy; } +div#cgit pre .St { color: teal; } +div#cgit pre .Fo { color: teal; font-weight: bold; } +div#cgit pre .Su { color: olive; } + +/* for htagml(1) */ +div#cgit pre a.tag { color: inherit; text-decoration: underline; } +div#cgit pre a.tag:target { color: goldenrod; outline: none; } + +/* for mandoc(1) */ +table.head, table.foot { width: 100%; } +td.head-rtitle, td.foot-os { text-align: right; } +td.head-vol { text-align: center; } +div.Pp { margin: 1ex 0ex; } +div.Nd, div.Bf, div.Op { display: inline; } +span.Pa, span.Ad { font-style: italic; } +span.Ms { font-weight: bold; } +dl.Bl-diag > dt { font-weight: bold; } +code.Nm, code.Fl, code.Cm, code.Ic, code.In, code.Fd, code.Fn, +code.Cd { font-weight: bold; font-family: inherit; } + +h1.Sh { font-size: 1.5em; } +table.Nm td:first-child { padding-right: 1ch; } +code.Fl { white-space: nowrap; } +span.RsT { font-style: italic; } +dl.Bl-tag:not(.Bl-compact) > dt { margin-top: 1em; } +ul.Bl-bullet:not(.Bl-compact) > li { margin-top: 1em; } +div.Bd-indent { margin-left: 4ch; } +table.Bl-column { width: 100%; } +table.foot { margin-top: 1em; } + +div#cgit a.permalink { color: inherit; } + diff --git a/configuration/cgit/head_include.html b/configuration/cgit/head_include.html new file mode 100644 index 0000000..b36aaa6 --- /dev/null +++ b/configuration/cgit/head_include.html @@ -0,0 +1 @@ +<link rel="stylesheet" type="text/css" href="/custom.css"> |
