Commit a79eb8428946152021b6f3a25398c49f2e9e7099
1 parent
9d9493c8
Exists in
master
and in
4 other branches
commit show page styled a bit
Showing
2 changed files
with
21 additions
and
3 deletions
Show diff stats
app/assets/stylesheets/sections/commits.scss
... | ... | @@ -47,6 +47,14 @@ |
47 | 47 | padding-left: 32px; |
48 | 48 | } |
49 | 49 | |
50 | + .author, | |
51 | + .committer { | |
52 | + font-size:14px; | |
53 | + line-height:22px; | |
54 | + text-shadow:0 1px 1px #fff; | |
55 | + color:#777; | |
56 | + } | |
57 | + | |
50 | 58 | .avatar { |
51 | 59 | margin-right: 10px; |
52 | 60 | } |
... | ... | @@ -227,3 +235,13 @@ |
227 | 235 | } |
228 | 236 | } |
229 | 237 | } |
238 | + | |
239 | +.label_commit { | |
240 | + @include round-borders-all(4px); | |
241 | + padding:2px 4px; | |
242 | + border:none; | |
243 | + font-size:13px; | |
244 | + background: #474D57; | |
245 | + color:#fff; | |
246 | + font-family: 'Menlo', 'Liberation Mono', 'Consolas', 'Courier New', 'andale mono','lucida console',monospace; | |
247 | +} | ... | ... |
app/views/commits/_commit_box.html.haml
... | ... | @@ -17,7 +17,7 @@ |
17 | 17 | = gfm escape_once(@commit.description) |
18 | 18 | .commit-info |
19 | 19 | .row |
20 | - .span4 | |
20 | + .span5 | |
21 | 21 | = image_tag gravatar_icon(@commit.author_email, 40), class: "avatar" |
22 | 22 | .author |
23 | 23 | %strong= @commit.author_name |
... | ... | @@ -31,10 +31,10 @@ |
31 | 31 | committed |
32 | 32 | %time{title: @commit.committed_date.stamp("Aug 21, 2011 9:23pm")} |
33 | 33 | #{time_ago_in_words(@commit.committed_date)} ago |
34 | - .span7.right | |
34 | + .span6.right | |
35 | 35 | .sha-block |
36 | 36 | %span.cgray commit |
37 | - %code= @commit.id | |
37 | + %code.label_commit= @commit.id | |
38 | 38 | .sha-block |
39 | 39 | %span.cgray= pluralize(@commit.parents.count, "parent") |
40 | 40 | - @commit.parents.each do |parent| | ... | ... |