~dricottone/blog

2d9f9bfd44096b0e0a5c41d7fd75169b11999214 — Dominic Ricottone 2 years ago 360e020
Fix cgit CSS

Fix whitespace throughout

Fix selectors for table row highlighting

Fix commit message formatting
1 files changed, 55 insertions(+), 49 deletions(-)

M static/css/cgit.css
M static/css/cgit.css => static/css/cgit.css +55 -49
@@ 36,10 36,10 @@ div#cgit table.nowrap td {
 *    moved all relevent CSS into my common stylesheet
 */
div#cgit table {
	width: 100%;
	border: none;
	border-collapse: separate;
	border-spacing: 0;
  width: 100%;
  border: none;
  border-collapse: separate;
  border-spacing: 0;
}

/* Note: As a *very* hacky work-around:


@@ 73,12 73,12 @@ div#cgit table td a:hover {
 *  + the `sublevel-repo` class is set on repository rows under a Section
 */
div#cgit table td.reposection {
	font-style: italic;
	color: #888;
  font-style: italic;
  color: #888;
}

div#cgit table td.sublevel-repo {
	padding-left: 1.5em;
  padding-left: 1.5em;
}

div#cgit span.age-mins {


@@ 170,12 170,22 @@ div#cgit table.tabs td.form form {


/* Log page */
div#cgit table td.logsubject a {
  font-family: monospace;
  white-space: pre;
}

div#cgit table td.logmsg {
  font-family: monospace;
  white-space: pre;
}

div#cgit span.insertions {
	color: #080;
  color: #080;
}

div#cgit span.deletions {
	color: #800;
  color: #800;
}




@@ 189,12 199,13 @@ div#cgit div.path {
  background-color: #eee;
}

/*
div#cgit .ls-blob,
div#cgit .ls-blob {
  font-family: monospace;
}

div#cgit .ls-dir {
	font-family: monospace;
  font-family: monospace;
}
*/

div#cgit td.ls-mode {
  width: 10rem;


@@ 220,26 231,26 @@ div#cgit table.blob td.linenumbers {
}

div#cgit table.blob pre {
	padding: 0; margin: 0;
  padding: 0; margin: 0;
}

div#cgit table.bin-blob {
	margin-top: 0.5em;
	border: solid 1px black;
  margin-top: 0.5em;
  border: solid 1px black;
}

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: 0.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: 0em 1em;
}




@@ 323,48 334,48 @@ div#cgit table.diffstat td.mode {
}

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: blue;
}

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: none;
}

div#cgit table.diffstat td.graph td {
	padding: 0px;
	border: 0px;
	height: 7pt;
  padding: 0px;
  border: 0px;
  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: 0.5em;
}




@@ 485,21 496,16 @@ div#cgit table.ssdiff td.space div {


/* color table rows on hover... */
div#cgit table tr:hover {
div#cgit table.list tr:hover {
  background: #eee;
}
/* ...except for these rows */
div#cgit table tr.nohover:hover,
div#cgit table.diff tr:hover,
div#cgit table.ssdiff tr:hover,
div#cgit table.diffstat tr:hover,
div#cgit table.blob tr:hover {
  background: #fff;
}
/* ...except for these specific types of rows */
div#cgit .ctx:hover {
  background: #eee;
}
/* ...except for these rows */
div#cgit table.list tr.nohover:hover {
  background: #fff;
}