/*
 * Sparkburst dark theme for cgit.
 *
 * Loaded AFTER the stock /cgit.css (via head-include), so it only lists what
 * differs from stock. Rules use the same selectors as cgit.css, so being later
 * in the cascade is enough to win. Where the old theme simply deleted a stock
 * property, it is reset explicitly here (inherit / none / transparent).
 *
 * Reconstructed from the archived site (web.archive.org, 2025-07-09).
 */

body {
	height: 100%;
	background: #101010;
	color: #f0f0f0;
	tab-size: 4;
}

/* ---- README (about page) tweaks on top of markdown.css ---------------- */

.markdown-body pre {
	background-color: #171819;
	display: block;
	padding: 23px;
	border-radius: 0;
	overflow: auto;
	font-size: 14px;
	border-style: solid;
	border-width: 1px;
	border-color: #212121;
}

.markdown-body code {
	border: 1px #333 solid;
	margin: 0;
	background: #171819;
	padding: 2px 4px;
	border-radius: 3px;
}

.markdown-body h1,
.markdown-body h2 {
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #202020;
}

/* ---- Page frame -------------------------------------------------------- */

div#cgit {
	font-family: 'Open Sans', sans-serif;
	color: #f0f0f0;
	background: #101010;
}

div#cgit a {
	color: #fa7116;
}

div#cgit table#header {
	color: #fff;
}

div#cgit table#header td.logo {
	width: 20px;
}

div#cgit table#header td.main a {
	color: #fff;
}

div#cgit table#header td.sub {
	color: #aaa;
	border-top: none;
}

div#cgit .logo img {
	width: 70px;
	margin-right: 15px;
}

div#cgit table.tabs {
	border-bottom: solid 1px #202020;
}

div#cgit table.tabs td a.active {
	color: #f0f0f0;
	background-color: #303030;
}

div#cgit div.path {
	color: inherit;
	background-color: transparent;
}

div#cgit div.content {
	border-bottom: none;
}

/* ---- Lists (repo index, log, tree) ------------------------------------ */

div#cgit table.list tr,
div#cgit table.list tr:nth-child(odd),
div#cgit table.list tr.nohover,
div#cgit table.list tr.nohover:hover,
div#cgit table.list tr.nohover-highlight:hover:nth-child(odd) {
	background: #101010;
}

div#cgit table.list tr:nth-child(even),
div#cgit table.list tr.nohover-highlight:hover:nth-child(even) {
	background: #171819;
}

div#cgit table.list tr:hover {
	background: #222;
}

div#cgit table.list td a {
	color: #f0f0f0;
}

div#cgit table.list td a.ls-dir,
div#cgit table.list td a:hover {
	color: #fa7116;
}

/* "Idle" column / commit ages */
div#cgit span.age-mins   { color: #4f4; }
div#cgit span.age-hours  { color: #4f4; }
div#cgit span.age-days   { color: #090; }
div#cgit span.age-weeks  { color: #888; }
div#cgit span.age-months { color: #555; }
div#cgit span.age-years  { color: #444; }

/* Branch / tag labels in the log. These need !important because
   "table.list td a" above is more specific and would turn them white. */
div#cgit a.branch-deco,
div#cgit a.tag-deco,
div#cgit a.deco {
	color: #000 !important;
}

/* ---- Blobs, blame, panels --------------------------------------------- */

div#cgit table.blob td.lines {
	color: inherit;
}

div#cgit table.blame div.alt:nth-child(odd) {
	background: black;
}

div#cgit div.cgit-panel table {
	border: solid 1px #202020;
	background-color: #171819;
}

/* ---- Diffs ------------------------------------------------------------- */

div#cgit table.diffstat {
	border: solid 1px #222;
	background-color: #171819;
}

div#cgit table.diffstat td.add a { color: #4f4; }
div#cgit table.diffstat td.upd a { color: #fa7116; }

div#cgit table.diff td div.head { color: inherit; }
div#cgit table.diff td div.hunk { color: #44f; }
div#cgit table.diff td div.add  { color: #4f4; }

/* ---- Monospace font everywhere stock uses `monospace` ------------------ */

div#cgit table.list td.commitgraph,
div#cgit table.list td.logsubject,
div#cgit table.list td.logmsg,
div#cgit a.ls-blob, div#cgit a.ls-dir, div#cgit .ls-mod,
div#cgit td.ls-size,
div#cgit td.ls-mode,
div#cgit table.bin-blob th,
div#cgit table.bin-blob td,
div#cgit div.commit-msg,
div#cgit div.notes,
div#cgit table.diff td,
div#cgit .oid,
div#cgit table.ssdiff td {
	font-family: 'Red Hat Mono', monospace;
}
