From a79eb8428946152021b6f3a25398c49f2e9e7099 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 28 Sep 2012 16:05:54 +0300 Subject: [PATCH] commit show page styled a bit --- app/assets/stylesheets/sections/commits.scss | 18 ++++++++++++++++++ app/views/commits/_commit_box.html.haml | 6 +++--- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/sections/commits.scss b/app/assets/stylesheets/sections/commits.scss index 33b05135..711f603f 100644 --- a/app/assets/stylesheets/sections/commits.scss +++ b/app/assets/stylesheets/sections/commits.scss @@ -47,6 +47,14 @@ padding-left: 32px; } + .author, + .committer { + font-size:14px; + line-height:22px; + text-shadow:0 1px 1px #fff; + color:#777; + } + .avatar { margin-right: 10px; } @@ -227,3 +235,13 @@ } } } + +.label_commit { + @include round-borders-all(4px); + padding:2px 4px; + border:none; + font-size:13px; + background: #474D57; + color:#fff; + font-family: 'Menlo', 'Liberation Mono', 'Consolas', 'Courier New', 'andale mono','lucida console',monospace; +} diff --git a/app/views/commits/_commit_box.html.haml b/app/views/commits/_commit_box.html.haml index b8151b56..ece0df22 100644 --- a/app/views/commits/_commit_box.html.haml +++ b/app/views/commits/_commit_box.html.haml @@ -17,7 +17,7 @@ = gfm escape_once(@commit.description) .commit-info .row - .span4 + .span5 = image_tag gravatar_icon(@commit.author_email, 40), class: "avatar" .author %strong= @commit.author_name @@ -31,10 +31,10 @@ committed %time{title: @commit.committed_date.stamp("Aug 21, 2011 9:23pm")} #{time_ago_in_words(@commit.committed_date)} ago - .span7.right + .span6.right .sha-block %span.cgray commit - %code= @commit.id + %code.label_commit= @commit.id .sha-block %span.cgray= pluralize(@commit.parents.count, "parent") - @commit.parents.each do |parent|