diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2014-03-28 15:06:48 -0400 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2014-03-28 15:06:48 -0400 |
| commit | 2acbb853f92ed9273503756e5337017a925519dc (patch) | |
| tree | a1761ffef36e41037caec3934381b7662dddc9bf | |
| parent | c84c32c3ab7916669f1d13824ef4353b6e901a7d (diff) | |
| download | cgit-skin-2acbb853f92ed9273503756e5337017a925519dc.tar.gz | |
Github-like style for tree view
| -rw-r--r-- | cgit.css | 45 |
1 files changed, 45 insertions, 0 deletions
@@ -1,3 +1,5 @@ +@import url("http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css"); + @font-face { font-family: 'Source Code Pro'; font-style: normal; @@ -570,11 +572,54 @@ body { border: none; } +#cgit .list a:active { + outline: none; +} + #cgit .list[summary="tree listing"] td:first-child, #cgit .list[summary="tree listing"] td:last-child { width: 1%; } +#cgit .list[summary="tree listing"] { + border: 1px solid #CCC; + width: 700px; + margin: auto; +} + +#cgit .list[summary="tree listing"] th { + background-image: linear-gradient(#FAFAFA, #EAEAEA); + padding: 0.3em 1em; + border-bottom: 1px solid #CCC; +} + +#cgit .list[summary="tree listing"] td { + border-bottom: 1px solid #eee; +} + +#cgit .list[summary="tree listing"] tr:last-child td { + border-bottom: none; +} + +#cgit .list[summary="tree listing"] .ls-blob:before { + content: "\f0f6"; + width: 1.2em; + display:inline-block; + color: #666; + line-height: 1; + font-family: FontAwesome; +} + +#cgit .list[summary="tree listing"] .ls-dir:before { + content: "\f07b"; + margin-right: 0.1em; + display: inline-block; + width: 1.2em; + color: #4183C4; + line-height: 1; + font-family: FontAwesome; +} + #cgit .list .ls-mode + td > a { color: inherit; } |
