From: Stefan Imhoff Date: Sat, 10 Sep 2011 08:03:12 +0000 (-0700) Subject: Merge pull request #5 from ejholmes/master X-Git-Tag: gitweb-1.7.12~7 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fgitweb-theme;a=commitdiff_plain;h=98f972a6577ed055f22efeade62de21b90c58870;hp=2af5022c4c1e7f3138e42756d4ceea9a4884aaa3 Merge pull request #5 from ejholmes/master Adds content type images to the left of the object name, like github does. --- diff --git a/dir.png b/dir.png new file mode 100644 index 0000000..bd94124 Binary files /dev/null and b/dir.png differ diff --git a/gitweb.css b/gitweb.css index 537bb2c..1a5a44e 100755 --- a/gitweb.css +++ b/gitweb.css @@ -62,6 +62,22 @@ a:hover { text-decoration: underline; } +td.list a[href*='a=tree'], td.list a[href*='a=blob'] { + padding-left: 20px; + display: block; + float: left; + height: 16px; + line-height: 16px; +} + +td.list a[href*='a=tree'] { + background: url(dir.png) center left no-repeat; +} + +td.list a[href*='a=blob'] { + background: url(txt.png) center left no-repeat; +} + i { font-style: normal; } @@ -463,3 +479,4 @@ td.pre, div.pre, div.diff { .kwb { color:#6b3099; } .kwc { color:#d4663d; } .kwd { color:#2928ff; } + diff --git a/txt.png b/txt.png new file mode 100644 index 0000000..f3638cb Binary files /dev/null and b/txt.png differ