diff options
author | Unknwon <u@gogs.io> | 2015-12-03 14:28:30 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-03 14:28:30 -0500 |
commit | 1802d52362f4d52a1c63168228da17d0810ed56f (patch) | |
tree | 6503df47e422c5e07185461e7a42b074e95dd1ab | |
parent | 81133d45a150e82a0d7f6bdef25802c3a3482fa7 (diff) | |
parent | cab2911f23e396f565b4f1d3db10277676a8d9de (diff) | |
download | gitea-1802d52362f4d52a1c63168228da17d0810ed56f.tar.gz gitea-1802d52362f4d52a1c63168228da17d0810ed56f.zip |
Merge pull request #2094 from nanoant/patch/less-pronounced-sha-labels
UI: Use more subtle grey SHA1 labels
-rwxr-xr-x | public/css/gogs.css | 3 | ||||
-rw-r--r-- | public/less/_repository.less | 3 | ||||
-rw-r--r-- | templates/repo/commits_table.tmpl | 2 | ||||
-rw-r--r-- | templates/repo/view_list.tmpl | 2 |
4 files changed, 8 insertions, 2 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css index 40e8545681..e6dc435f32 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -2240,6 +2240,9 @@ footer .container .links > *:first-child { font-size: 13px; padding: 6px 40px 4px 35px; } +.repository #commits-table.ui.basic.striped.table tbody tr:nth-child(2n) { + background-color: rgba(0, 0, 0, 0.02) !important; +} .repository .diff-detail-box { margin: 15px 0; line-height: 30px; diff --git a/public/less/_repository.less b/public/less/_repository.less index 85b76973d4..a03a0a849e 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -598,6 +598,9 @@ padding: 6px 40px 4px 35px; } } + &.ui.basic.striped.table tbody tr:nth-child(2n) { + background-color: rgba(0, 0, 0, .02)!important; + } } .diff-detail-box { diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl index 35c7a48cc7..f87866bf44 100644 --- a/templates/repo/commits_table.tmpl +++ b/templates/repo/commits_table.tmpl @@ -36,7 +36,7 @@ {{end}} </td> <td class="message collapsing"> - <a rel="nofollow" class="ui green sha label" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{.ID}}">{{ShortSha .ID.String}}</a> + <a rel="nofollow" class="ui sha label" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{.ID}}">{{ShortSha .ID.String}}</a> {{RenderCommitMessage .Summary $.RepoLink}} </td> <td class="grey text right aligned">{{TimeSince .Author.When $.Lang}}</td> diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index 4acfa2b676..5bf496dafd 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -43,7 +43,7 @@ </td> {{end}} <td class="message collapsing"> - <a rel="nofollow" class="ui green sha label" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{$commit.ID}}">{{ShortSha $commit.ID.String}}</a> + <a rel="nofollow" class="ui sha label" href="{{AppSubUrl}}/{{$.Username}}/{{$.Reponame}}/commit/{{$commit.ID}}">{{ShortSha $commit.ID.String}}</a> {{RenderCommitMessage $commit.Summary $.RepoLink}} </td> <td class="text grey right age">{{TimeSince $commit.Committer.When $.Lang}}</td> |