Commit 9fbbae9dbf9d2358d0cde2ae0b7f627da53f85d0
1 parent
7d037c11
Exists in
master
and in
4 other branches
Small css cleanup
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
6 changed files
with
22 additions
and
29 deletions
Show diff stats
app/assets/stylesheets/common.scss
app/assets/stylesheets/gitlab_bootstrap/files.scss
app/assets/stylesheets/sections/commits.scss
| ... | ... | @@ -16,37 +16,29 @@ |
| 16 | 16 | |
| 17 | 17 | .header { |
| 18 | 18 | @extend .clearfix; |
| 19 | + background: #DDD; | |
| 20 | + border-bottom: 1px solid #CCC; | |
| 19 | 21 | padding: 5px 5px 5px 10px; |
| 20 | 22 | color: #555; |
| 21 | - border-bottom: 1px solid #CCC; | |
| 22 | - background: #eee; | |
| 23 | - // TODO Replace with linear-gradient mixin | |
| 24 | - background-image: -webkit-gradient(linear, 0 0, 0 30, color-stop(0.066, #eee), to(#dfdfdf)); | |
| 25 | - background-image: -webkit-linear-gradient(#eee 6.6%, #dfdfdf); | |
| 26 | - background-image: -moz-linear-gradient(#eee 6.6%, #dfdfdf); | |
| 27 | - background-image: -ms-linear-gradient(#eee 6.6%, #dfdfdf); | |
| 28 | - background-image: -o-linear-gradient(#eee 6.6%, #dfdfdf); | |
| 29 | - | |
| 30 | - a{ | |
| 31 | - color: $style_color; | |
| 32 | - } | |
| 33 | 23 | |
| 34 | 24 | > span { |
| 35 | 25 | font-family: $monospace_font; |
| 36 | 26 | font-size: 14px; |
| 37 | - line-height: 30px; | |
| 27 | + line-height: 2; | |
| 38 | 28 | } |
| 39 | 29 | |
| 40 | - a.view-file{ | |
| 30 | + .view-file { | |
| 41 | 31 | font-weight: bold; |
| 32 | + float: right; | |
| 33 | + background-color: #EEE; | |
| 42 | 34 | } |
| 43 | 35 | |
| 44 | - .commit-short-id{ | |
| 36 | + .commit-short-id { | |
| 45 | 37 | font-family: $monospace_font; |
| 46 | 38 | font-size: smaller; |
| 47 | 39 | } |
| 48 | 40 | |
| 49 | - .file-mode{ | |
| 41 | + .file-mode { | |
| 50 | 42 | font-family: $monospace_font; |
| 51 | 43 | } |
| 52 | 44 | } |
| ... | ... | @@ -56,13 +48,13 @@ |
| 56 | 48 | background: #FFF; |
| 57 | 49 | color: #333; |
| 58 | 50 | font-size: 12px; |
| 59 | - .old{ | |
| 60 | - span.idiff{ | |
| 51 | + .old { | |
| 52 | + span.idiff { | |
| 61 | 53 | background-color: #FAA; |
| 62 | 54 | } |
| 63 | 55 | } |
| 64 | - .new{ | |
| 65 | - span.idiff{ | |
| 56 | + .new { | |
| 57 | + span.idiff { | |
| 66 | 58 | background-color: #AFA; |
| 67 | 59 | } |
| 68 | 60 | } | ... | ... |
app/assets/stylesheets/sections/projects.scss
app/assets/stylesheets/selects.scss
app/views/projects/commits/_diffs.html.haml
| ... | ... | @@ -46,7 +46,7 @@ |
| 46 | 46 | %span= diff.old_path |
| 47 | 47 | |
| 48 | 48 | - if @commit.parent_ids.present? |
| 49 | - = link_to project_blob_path(project, tree_join(@commit.parent_id, diff.new_path)), {:class => 'btn btn-tiny pull-right view-file'} do | |
| 49 | + = link_to project_blob_path(project, tree_join(@commit.parent_id, diff.new_path)), { class: 'btn btn-small view-file' } do | |
| 50 | 50 | View file @ |
| 51 | 51 | %span.commit-short-id= @commit.short_id(6) |
| 52 | 52 | - else |
| ... | ... | @@ -54,7 +54,7 @@ |
| 54 | 54 | - if diff.a_mode && diff.b_mode && diff.a_mode != diff.b_mode |
| 55 | 55 | %span.file-mode= "#{diff.a_mode} → #{diff.b_mode}" |
| 56 | 56 | |
| 57 | - = link_to project_blob_path(project, tree_join(@commit.id, diff.new_path)), {:class => 'btn btn-tiny pull-right view-file'} do | |
| 57 | + = link_to project_blob_path(project, tree_join(@commit.id, diff.new_path)), { class: 'btn btn-small view-file' } do | |
| 58 | 58 | View file @ |
| 59 | 59 | %span.commit-short-id= @commit.short_id(6) |
| 60 | 60 | ... | ... |