Bootstrap: cleaning commits css

This commit is contained in:
Dmitriy Zaporozhets 2012-01-28 02:08:26 +02:00
parent 29b5aa2c76
commit 1afd93ee1a
4 changed files with 17 additions and 62 deletions

View file

@ -113,46 +113,3 @@ ul.bordered-list li:last-child { border:none }
tr.line_notes_row {
border-bottom:1px solid #DDD;
}
/**
*
* COMMIT LIST
*
*/
.commit-info{float: right;}
.commit-info data{
padding: 4px 10px;
font-size: 11px;
}
a.commit{padding: 10px; border-bottom: 1px solid #eee; overflow: hidden; display: block;}
a.commit:last-child {border-bottom: 0}
a.commit img{float: left; margin-right: 10px;}
a.commit .commit-title{display: block;}
a.commit .commit-title{margin-bottom: 10px}
a.commit .commit-author{color: #999; font-weight: normal; font-style: italic;}
a.commit .commit-author strong{font-weight: bold; font-style: normal;}
.commit-button{
background-image: -webkit-gradient(linear, 0 0, 0 26, color-stop(0.192, #fff), to(#f4f4f4));
background-image: -webkit-linear-gradient(#fff 19.2%, #f4f4f4);
background-image: -moz-linear-gradient(#fff 19.2%, #f4f4f4);
background-image: -o-linear-gradient(#fff 19.2%, #f4f4f4);
box-shadow: 0 -1px 0 white inset;
display: block;
border: 1px solid #eee;
border-radius: 5px;
margin-bottom: 2px;
position: relative;
padding-right: 20px !important;
}
.commit-button i{
background: url('images.png') no-repeat -138px -27px;
width: 6px;
height: 9px;
float: right;
position: absolute;
top: 6px;
right: 5px;
}

View file

@ -52,18 +52,19 @@
float:left;
margin-right:10px;
}
.news-feed .project-updates a.project-update span.update-title,.dashboard-page .news-feed .project-updates li a span.update-author {
span.update-title,
span.update-author {
display:block;
}
.news-feed .project-updates a.project-update span.update-title {
span.update-title {
margin-bottom:10px
}
.news-feed .project-updates a.project-update span.update-author {
span.update-author {
color:#999;
font-weight:normal;
font-style:italic;
}
.news-feed .project-updates a.project-update span.update-author strong {
span.update-author strong {
font-weight:bold;
font-style: normal;
}
@ -87,7 +88,8 @@ a.update-item img {
float:left;
margin-right:10px;
}
a.update-item span.update-title,.dashboard-page .news-feed .project-updates li a span.update-author {
span.update-title,
span.update-author {
display:block;
}
a.update-item span.update-title {

View file

@ -29,6 +29,8 @@ class CommitsController < ApplicationController
@line_notes = project.commit_line_notes(@commit)
render_full_content
respond_to do |format|
format.html
format.js { respond_with_notes }

View file

@ -5,21 +5,15 @@
%ul.unstyled
- commits.each do |commit|
%li
%a{ :class => "commit", :href => project_commit_path(@project, :id => commit.id) }
%span.commit-info
%data.commit-button
= truncate(commit.id.to_s, :length => 16)
%i
%data.commit-browse{ :onclick => "location.href='#{tree_project_ref_path(@project, commit.id)}';return false;"}
Browse Code
- if commit.author_email
= image_tag gravatar_icon(commit.author_email), :class => "left", :width => 40, :style => "padding-right:5px;"
- else
= image_tag "no_avatar.png", :class => "left", :width => 40, :style => "padding-right:5px;"
%span.commit-title
%a{ :class => "update-item", :href => project_commit_path(@project, :id => commit.id) }
.right.btn
= truncate(commit.id.to_s, :length => 10)
»
= image_tag gravatar_icon(commit.author_email), :class => "avatar", :width => 32
%div
%strong
= truncate(commit.safe_message, :length => 70)
%span.commit-author
= truncate(commit.safe_message, :length => 50)
%span.update-author
%strong= commit.author_name
= time_ago_in_words(commit.committed_date)
ago