/* Style like main */
div#cgit {
font-family: sans-serif;
font-size: 10pt;
margin: 0 0 0 calc(100px + 1em);
padding: 4px;
--diff-width: 800px;
--diff-text: #000000;
--diff-text-header: #000000;
--diff-head: #f8f9fa;
--diff-hunk: #9696f3;
--diff-border: #000000;
--diff-add: #96f396;
--diff-add-darker: #0e7c0e;
--diff-add-bolder: #51eb51;
--diff-delete: #f39696;
--diff-delete-darker: #7c0e0e;
--diff-delete-bolder: #eb5151;
--diff-change: #f3f396;
--diff-change-darker: #7c7c0e;
--diff-context: #ffffff;
--button-text: #000000;
--button-color: #f8f9fa;
--tab-text: #000000;
--age-newest: #008800;
--age-newer: #004400;
--age: #444444;
--age-older: #888888;
--age-oldest: #bbbbbb;
--tag-text: #000000;
--tag-color: #ffff88;
--tag-color-main: #88ff88;
}
@media (max-width: 800px) {
div#cgit {
margin: 0;
}
}
/* Tables */
th {
margin-right: 1em;
text-align: left;
border: solid 0px transparent;
background-clip: padding-box;
}
td {
margin-right: 1em;
border: solid 0px transparent;
background-clip: padding-box;
}
tr > td + td:not(.add, .rem, .upd, .none) {
border-left-width: 1em;
}
tr > th + th {
border-left-width: 1em;
}
/* Style like an h2 */
td.reposection {
margin: 0 0 1em 0;
font-size: 1.5em;
line-height: 2em;
}
td a.button {
margin: 0 1em 0 0;
padding: 0px 5px;
color: var(--button-text);
background-color: var(--button-color);
text-decoration: none;
border-radius: 5px;
}
td a.button::before {
content: "[";
}
td a.button::after {
content: "]";
}
/* Tabs bar */
table.tabs td:not(.form) a {
margin-right: 1em;
color: var(--tab-text);
text-decoration: none;
}
table.tabs td:not(.form) a::before {
content: "[";
}
table.tabs td:not(.form) a::after {
content: "]";
}
table.tabs td.form {
padding-left: 3em;
}
/* Repository age decorations */
.age-mins {
color: var(--age-newest);
font-weight: bold;
}
.age-hours {
color: var(--age-newest);
}
.age-days {
color: var(--age-newer);
}
.age-weeks {
color: var(--age);
}
.age-months {
color: var(--age-older);
}
.age-years {
color: var(--age-oldest);
}
/* Insertions and Deletions decorations */
.insertions {
color: var(--diff-add-darker);
}
.deletions {
color: var(--diff-delete-darker);
}
/* Branch and Tag decorations */
a.branch-deco,
a.tag-deco,
a.remote-deco,
a.deco {
margin-left: 1em;
padding: 0px 5px;
color: var(--tag-text);
background-color: var(--tag-color);
border-radius: 5px;
text-decoration: none;
}
a.branch-deco::before,
a.tag-deco::before,
a.remote-deco::before,
a.deco::before {
content: "[";
}
a.branch-deco::after,
a.tag-deco::after,
a.remote-deco::after,
a.deco::after {
content: "]";
}
table a.branch-deco,
table a.tag-deco,
table a.remote-deco,
table a.deco {
float: right;
}
a.deco + a.branch-deco {
background-color: var(--tag-color-main);
}
/* Monospace content
* + Log page (logsubject and logmsg cells only)
* + Tree page
* + path div
* + ls-mode cells, ls-dir links, and ls-blob links
* + blob table (entire table)
* + bin-blob table (entire table)
* + Commit page, Commit page's diff components, and Diff page
* + commit-info table (sha1 cells only)
* + commit-subject and commit-msg divs
* + diffstat table (mode, upd, add, and del cells)
* + diff table (entire table)
* + ssdiff table (entire table)
*/
table td.logsubject,
table td.logmsg,
div.path,
table td.ls-mode,
table td a.ls-dir,
table td a.ls-blob,
table.blob,
table.bin-blob,
table.commit-info td.sha1,
div.commit-subject,
div.commit-msg,
table.diffstat td.mode,
table.diffstat td.upd,
table.diffstat td.add,
table.diffstat td.del,
table.diff,
table.ssdiff {
font-family: monospace;
white-space: pre;
}
/* Diff content */
/* Style like an h2 */
div.cgit-panel b {
margin: 0 0 1em 0;
color: var(--diff-text-header);
font-size: 1.5em;
font-weight: normal;
line-height: 2em;
}
div.cgit-panel {
width: var(--diff-width);
margin: 1em 0 1em 0;
padding-bottom: 1em;
background-color: var(--diff-head);
}
table.commit-info {
width: var(--diff-width);
margin: 0 0 1em 0;
background-color: var(--diff-head);
}
/* Style like an h2 */
div.commit-subject {
width: var(--diff-width);
padding-top: 1em;
color: var(--diff-text-header);
background-color: var(--diff-head);
font-size: 1.5em;
line-height: 2em;
}
div.commit-msg {
width: var(--diff-width);
margin: 0 0 1em 0;
padding-bottom: 1em;
color: var(--diff-text);
background-color: var(--diff-head);
}
div.diffstat-header {
width: var(--diff-width);
background-color: var(--diff-head);
}
/* Style like an h2 */
div.diffstat-header a {
margin: 0 0 1em 0;
font-size: 1.5em;
line-height: 2em;
text-decoration: none;
color: var(--diff-text-header);
}
table.diffstat {
width: var(--diff-width);
color: var(--diff-text);
background-color: var(--diff-head);
}
table.diffstat td.graph table {
min-width: calc(var(--diff-width) * 0.5);
}
table.diffstat td.graph table td {
height: 7pt;
}
table.diffstat td.graph table td.add {
background-color: var(--diff-add-bolder);
}
table.diffstat td.graph table td.rem {
background-color: var(--diff-delete-bolder);
}
div.diffstat-summary {
width: var(--diff-width);
margin: 0 0 1em 0;
padding: 1em 0;
color: var(--diff-text);
background-color: var(--diff-head);
font-style: italic;
}
table.diff,
table.ssdiff {
min-width: var(--diff-width);
}
table.diff td,
table.ssdiff td {
color: var(--diff-text);
font-style: italic;
}
/* Diff components
* head diff metadata
* hunk diff context
* add inserted content (on the right in ssdiff mode)
* add_dark inserted content (ssdiff mode only, on the left)
* del removed content (on the left in ssdiff mode)
* del_dark removed content (ssdiff mode only, on the right)
* changed ssdiff mode only, changed content on the right
* changed_dark ssdiff mode only, changed content on the left
* lineno line numbers
*/
table.diff div.add,
table.ssdiff td.add {
background: var(--diff-add);
font-style: normal;
}
table.ssdiff td.add_dark {
background: var(--diff-add-darker);
font-style: normal;
}
table.diff div.del,
table.ssdiff td.del {
background: var(--diff-delete);
font-style: normal;
}
table.ssdiff td.del_dark {
background: var(--diff-delete-darker);
font-style: normal;
}
table.ssdiff td.changed {
background: var(--diff-change);
font-style: normal;
}
table.ssdiff td.changed_dark {
background: var(--diff-change-darker);
font-style: normal;
}
table.diff div.head,
table.ssdiff td.head {
background: var(--diff-head);
border-bottom: solid 1px var(--diff-border);
font-style: normal;
}
table.diff div.hunk,
table.ssdiff td.hunk {
background: var(--diff-hunk);
font-style: normal;
}
table.diff div.ctx,
table.ssdiff td.ctx {
background: var(--diff-context);
font-style: normal;
}
/* Style definition
* + Generated by highlight 3.9, http://www.andre-simon.de/
* + Theme: Kwrite Editor
*/
table.blob .num { color:#2928ff; }
table.blob .esc { color:#ff00ff; }
table.blob .str { color:#ff0000; }
table.blob .dstr { color:#818100; }
table.blob .slc { color:#838183; font-style:italic; }
table.blob .com { color:#838183; font-style:italic; }
table.blob .dir { color:#008200; }
table.blob .sym { color:#000000; }
table.blob .kwa { color:#000000; font-weight:bold; }
table.blob .kwb { color:#830000; }
table.blob .kwc { color:#000000; font-weight:bold; }
table.blob .kwd { color:#010181; }
body.hl { background-color:#e0eaee; }
pre.hl { color:#000000; background-color:#e0eaee; font-size:10pt; font-family:'Courier New',monospace;}
.hl.num { color:#b07e00; }
.hl.esc { color:#ff00ff; }
.hl.str { color:#bf0303; }
.hl.pps { color:#818100; }
.hl.slc { color:#838183; font-style:italic; }
.hl.com { color:#838183; font-style:italic; }
.hl.ppc { color:#008200; }
.hl.opt { color:#000000; }
.hl.ipl { color:#0057ae; }
.hl.lin { color:#555555; }
.hl.kwa { color:#000000; font-weight:bold; }
.hl.kwb { color:#0057ae; }
.hl.kwc { color:#000000; font-weight:bold; }
.hl.kwd { color:#010181; }