From 29375059e1d7d943cc3e517f2433b5df1f126db2 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 2 Dec 2015 20:10:00 -0500 Subject: [PATCH] minor CSS fix --- public/css/gogs.css | 9 +++++++++ public/less/_repository.less | 12 ++++++++++++ templates/repo/commits_table.tmpl | 6 ++++-- 3 files changed, 25 insertions(+), 2 deletions(-) diff --git a/public/css/gogs.css b/public/css/gogs.css index 0214069e3..1c5a29b25 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -1864,6 +1864,9 @@ footer .container .links > *:first-child { position: relative; width: 325%; } +.repository.file.list #repo-files-table thead th .ui.sha.label { + font-weight: bold; +} .repository.file.list #repo-files-table thead .ui.avatar { margin-bottom: 5px; } @@ -2234,6 +2237,9 @@ footer .container .links > *:first-child { font-weight: normal; padding: 5px 10px; } +.repository #commits-table { + width: 100%; +} .repository .diff-detail-box { margin: 15px 0; line-height: 30px; @@ -2345,6 +2351,9 @@ footer .container .links > *:first-child { overflow-x: auto; overflow-y: hidden; } +.repository.quickstart .ui.grid { + margin-top: 0; +} .repository.quickstart .guide .item { padding: 1em; } diff --git a/public/less/_repository.less b/public/less/_repository.less index 184c14505..61d153dcd 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -146,11 +146,16 @@ padding-top: 8px; padding-bottom: 5px; font-weight: normal; + &:first-child { display: block; position: relative; width: 325%; } + + .ui.sha.label { + font-weight: bold; + } } .ui.avatar { margin-bottom: 5px; @@ -587,6 +592,9 @@ } } } + #commits-table { + width: 100%; + } .diff-detail-box { margin: 15px 0; @@ -732,6 +740,10 @@ } &.quickstart { + .ui.grid { + margin-top: 0; + } + .guide { .item { padding: 1em; diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 5e207486f..f78a6286e 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -16,7 +16,7 @@ {{if .Commits}}
- +
@@ -35,9 +35,11 @@   {{.Author.Name}} {{end}} -
{{.i18n.Tr "repo.commits.author"}} + {{ShortSha .ID.String}} {{RenderCommitMessage .Summary $.RepoLink}} + Initial commit +fjdksfjklsdjfklsjfklsdjfkljsklfjsdklfjklsjfksdjlfkjdsklfjklsjfkldsjfkljsaklfjaklsjfklsdjfkljakldjfklsjafkljaslfjlsakjflkasjfklasjdflkjsklfjsklfjklsjfklsjfkljs {{TimeSince .Author.When $.Lang}}