From: Dan Brook Date: Thu, 12 Nov 2009 14:02:55 +0000 (+0000) Subject: Stripe the tables and semantify the pages. X-Git-Tag: 0.000000_01~23^2~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f78e75d8411b66fdcb52c006c917abec648e61d9;p=catagits%2FGitalist.git Stripe the tables and semantify the pages. --- diff --git a/gitalist.conf b/gitalist.conf index a3f08fc..9164bf4 100644 --- a/gitalist.conf +++ b/gitalist.conf @@ -31,9 +31,9 @@ favicon /git-favicon.png # $feature{'blame'}{'default'} = [1]; - - default = 1 - + + default = 1 + # fs traversing limit for getting project list @@ -42,5 +42,5 @@ project_maxdepth 2007 log = 50 - summary = 16 + summary = 17 diff --git a/root/_diff_tree.tt2 b/root/_diff_tree.tt2 index 8f70e2f..2057772 100644 --- a/root/_diff_tree.tt2 +++ b/root/_diff_tree.tt2 @@ -1,4 +1,4 @@ - +
@@ -16,7 +16,7 @@ [% FOREACH line IN diff_tree -%] -
file
+ [% line.file %] diff --git a/root/_heads.tt2 b/root/_heads.tt2 index 0a1c45b..c886711 100644 --- a/root/_heads.tt2 +++ b/root/_heads.tt2 @@ -1,4 +1,4 @@ - +
@@ -19,8 +19,8 @@ [% FOREACH head IN heads %] - - + +
HEAD
[% INCLUDE '_chroma_hash.tt2' sha1 = head.sha1.substr(0,7) %][% time_since(head.last_change) %][% INCLUDE '_chroma_hash.tt2' sha1 = head.sha1.substr(0,7) %][% time_since(head.last_change) %] [% head.name %] shortlog diff --git a/root/_shortlog.tt2 b/root/_shortlog.tt2 index 2c1dde1..19caaf1 100644 --- a/root/_shortlog.tt2 +++ b/root/_shortlog.tt2 @@ -1,4 +1,4 @@ - +
@@ -22,8 +22,8 @@ [% FOREACH line IN log_lines %] - - + +
sha1
[% INCLUDE '_chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %][% time_since(line.authored_time) %][% INCLUDE '_chroma_hash.tt2' sha1 = line.sha1.substr(0, 7) %][% time_since(line.authored_time) %] [% line.author.name | html %] [% short_cmt(line.comment) | html %] diff --git a/root/_tree.tt2 b/root/_tree.tt2 index 58d68d8..d6c8f41 100644 --- a/root/_tree.tt2 +++ b/root/_tree.tt2 @@ -1,4 +1,4 @@ - +
@@ -17,9 +17,9 @@ [% FOREACH item IN tree_list %] - + [% theact = item.type == 'tree' ? 'tree' : 'blob' -%] -
mode
[% item.modestr %][% item.modestr %] + [% item.file %] diff --git a/root/log.tt2 b/root/log.tt2 index e8c771b..cc0ff56 100644 --- a/root/log.tt2 +++ b/root/log.tt2 @@ -13,11 +13,11 @@
- - + + [% IF line.author.name != line.committer.name %] - - + + [% END %]
author[% line.author.name | html %]
authored time[% line.authored_time %]
author[% line.author.name | html %]
authored time[% line.authored_time %]
committer[% line.committer.name | html %]
committered time[% line.committed_time %]
committer[% line.committer.name | html %]
committered time[% line.committed_time %]
[% time_since(line.authored_time) %] diff --git a/root/static/css/blueprint/screen.css b/root/static/css/blueprint/screen.css index b6c4f12..8d05e3c 100644 --- a/root/static/css/blueprint/screen.css +++ b/root/static/css/blueprint/screen.css @@ -46,7 +46,7 @@ abbr, acronym {border-bottom:1px dotted #666;} address {margin:0 0 1.5em;font-style:italic;} del {color:#666;} pre {margin:1.5em 0;white-space:pre;} -pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;} +pre, code, tt {font:1.1em 'andale mono', 'lucida console', monospace;line-height:1.5;} li ul, li ol {margin:0;} ul, ol {margin:0 1.5em 1.5em 0;padding-left:3.333em;} ul {list-style-type:disc;} diff --git a/root/static/css/site.css b/root/static/css/site.css index fd4b2fc..2553cee 100644 --- a/root/static/css/site.css +++ b/root/static/css/site.css @@ -15,6 +15,13 @@ tfoot td { border-top: solid 1px #777; } +.listing tbody tr:nth-child(even) { + background-color: #f7f7f7; +} +.listing tbody tr:hover { + background-color: #fefeaa; +} + span.chroma-hash { font-family: monospace; font-size: 1em; @@ -32,6 +39,20 @@ div.chroma-hash { font-family: "Trebuchet MS", "Lucida Grande", serif; } +.file-name, .file-mode { + font-family: monospace; +} +.action-list { + font-size: smaller; +} + +.path { + border-bottom: solid 1px #ddd; + padding: 3px 0; + font-weight: bold; +} + + /* header */ #page-header { height: 25px; @@ -90,6 +111,7 @@ table.shortlog tbody td { /* /commit page */ .commit-message { font-family: monospace; + font-size: 1.2em; } div.commit-message { margin-bottom: 10px; @@ -106,19 +128,6 @@ pre.commit-message { font-family: monospace; } -.filename { - font-family: monospace; -} -.action-list { - font-size: smaller; -} - -.path { - border-bottom: solid 1px #ddd; - padding: 3px 0; - font-weight: bold; -} - /* /heads */ .heads .head { font-weight: bold; @@ -152,6 +161,11 @@ pre.blob { border-bottom: solid 1px green; } +/* /commitdiff */ +.diff-patch { + font-size: 0.8em; +} + /* /log */ #log .entry { border: solid 1px grey; @@ -160,7 +174,7 @@ pre.blob { } #log .meta { border-top: dotted 1px #ddd; - color: #755; + color: #311; } #log table.summary { width: 33%; @@ -169,6 +183,7 @@ pre.blob { #log .message { font-family: monospace; font-size: 1.15em; + /* XXX Need to enforce find the CSS switch to force the chroma-hash below the message box */ } #log .age { float: right; @@ -176,10 +191,12 @@ pre.blob { font-style: italic; } -/** - * from gitweb.css - * XXX These can be rejigged once gitweb.css has gone away. - */ +/* /tree */ +table.tree { + width: 65%; +} + +/* Formerly of gitweb.css */ span.refs span { padding: 0px 4px;