From 1f9ced7960a656b01952a9fa793763ea97eff067 Mon Sep 17 00:00:00 2001 From: slene Date: Sun, 16 Mar 2014 22:29:23 +0800 Subject: [PATCH] file list style --- public/css/gogs.css | 114 +++++++++++++++++++++---------------- templates/repo/single.tmpl | 79 +++++++++++++++++-------- 2 files changed, 119 insertions(+), 74 deletions(-) diff --git a/public/css/gogs.css b/public/css/gogs.css index 2adbde23e..6d888745b 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -463,56 +463,6 @@ html, body { padding: 0; } -/* #gogs-source */ - -#gogs-source-toolbar:after { - clear: both; -} - -#gogs-source-toolbar .branch-switch { - display: inline-block; -} - -#gogs-source-toolbar .breadcrumb { - margin: 0 .5em; - font-size: 16px; - vertical-align: middle; - display: inline-block; - background-color: transparent; -} - -#gogs-source-table { - margin-top: 1.5em; - font-size: 14px; -} - -#gogs-source-table .fa{ - font-size: 15px; - width: 16px; - text-align: center; - color: #666; -} - -#gogs-source-table .name{ - width: 160px; -} - -#gogs-source-table .size{ - width: 80px; -} - -#gogs-source-table .date{ - width: 120px; -} - -#gogs-source-table .is-dir .name { - font-weight: bold; -} - -#gogs-source-table.table-hover > tbody > tr:hover > td { - background-color: #FEFEFE; -} - .activity-list { font-size: 14px; } @@ -574,6 +524,70 @@ html, body { color: #999; } +/* #gogs-source */ +#gogs-source .source-toolbar:after { + clear: both; +} + +#gogs-source .source-toolbar .branch-switch { + display: inline-block; +} + +#gogs-source .source-toolbar .breadcrumb { + margin: 0 .5em; + padding: 6px 15px; + font-size: 16px; + vertical-align: middle; + display: inline-block; + background-color: transparent; +} + +#gogs-source .source-toolbar, +#gogs-source .info-box, +#gogs-source .file-content { + margin: 0 0 10px; +} + +.info-box .info-head, +.info-box .info-content { + padding: 9px 20px; +} + +.file-list { + background-color: #fafafa; +} + +.file-list .icon { + font-size: 17px; + padding: 5px 0 4px 10px; + width: 40px; +} + +.file-list .wrap { + display: inline-block; + overflow: hidden; + text-overflow: ellipsis; + vertical-align: top; + white-space: nowrap; +} + +.file-list .name .wrap { + max-width: 180px; +} + +.file-list .text .wrap { + max-width: 450px; +} + +.file-list .date .wrap { + max-width: 100px; + padding: 0 20px 0 0; +} + +.file-list .date { + text-align: right; +} + #wrapper { min-height: 100%; height: auto !important; diff --git a/templates/repo/single.tmpl b/templates/repo/single.tmpl index 8ea7e2bbf..c83723446 100644 --- a/templates/repo/single.tmpl +++ b/templates/repo/single.tmpl @@ -4,7 +4,7 @@ {{template "repo/toolbar" .}}