Commit d9739b8026246b733cf5a36794376cbb946528fe

Authored by Dmitriy Zaporozhets
2 parents 9d09d616 de55d7aa

Merge branch 'ui-improvements' into 'master'

UI improvements

![Untitledalign-fix](https://dev.gitlab.org/uploads/gitlab/gitlabhq/5b059bab94/Untitledalign-fix.png)
app/assets/stylesheets/generic/issue_box.scss
@@ -56,23 +56,22 @@ @@ -56,23 +56,22 @@
56 56
57 .state { 57 .state {
58 border-bottom: 1px solid #DDD; 58 border-bottom: 1px solid #DDD;
59 - padding: 10px 25px; 59 + padding: 10px 15px;
60 } 60 }
61 61
62 .title { 62 .title {
63 - font-size: 26px; 63 + font-size: 28px;
64 font-weight: normal; 64 font-weight: normal;
65 line-height: 1.5; 65 line-height: 1.5;
66 margin: 0; 66 margin: 0;
67 color: #333; 67 color: #333;
68 - padding-bottom: 0;  
69 - padding: 15px 25px; 68 + padding: 10px 15px;
70 } 69 }
71 70
72 .context { 71 .context {
73 border: none; 72 border: none;
74 border-top: 1px solid #eee; 73 border-top: 1px solid #eee;
75 - padding: 15px 25px; 74 + padding: 10px 15px;
76 75
77 // Reset text align for children 76 // Reset text align for children
78 .text-right > * { text-align: left; } 77 .text-right > * { text-align: left; }
@@ -88,7 +87,7 @@ @@ -88,7 +87,7 @@
88 } 87 }
89 88
90 .description { 89 .description {
91 - padding: 0 25px 15px 25px; 90 + padding: 0 15px 10px 15px;
92 } 91 }
93 92
94 .title, .context, .description { 93 .title, .context, .description {
app/assets/stylesheets/sections/merge_requests.scss
@@ -118,3 +118,7 @@ @@ -118,3 +118,7 @@
118 .merge-request-show-labels .label { 118 .merge-request-show-labels .label {
119 padding: 6px 10px; 119 padding: 6px 10px;
120 } 120 }
  121 +
  122 +.mr-commits .commit {
  123 + padding: 10px 15px;
  124 +}
app/views/projects/issues/_issue_context.html.haml
1 = form_for [@project, @issue], remote: true, html: {class: 'edit-issue inline-update'} do |f| 1 = form_for [@project, @issue], remote: true, html: {class: 'edit-issue inline-update'} do |f|
2 .row 2 .row
3 - .col-md-6 3 + .col-sm-6
4 %strong.append-right-10 4 %strong.append-right-10
5 Assignee: 5 Assignee:
6 6
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 - else 11 - else
12 None 12 None
13 13
14 - .col-md-6.text-right 14 + .col-sm-6.text-right
15 %strong.append-right-10 15 %strong.append-right-10
16 Milestone: 16 Milestone:
17 - if can?(current_user, :modify_issue, @issue) 17 - if can?(current_user, :modify_issue, @issue)
app/views/projects/merge_requests/show/_commits.html.haml
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 .panel-heading 3 .panel-heading
4 %i.icon-list 4 %i.icon-list
5 Commits (#{@commits.count}) 5 Commits (#{@commits.count})
6 - .commits 6 + .commits.mr-commits
7 - if @commits.count > 8 7 - if @commits.count > 8
8 %ul.first-commits.well-list 8 %ul.first-commits.well-list
9 - @commits.first(8).each do |commit| 9 - @commits.first(8).each do |commit|
app/views/projects/merge_requests/show/_context.html.haml
1 = form_for [@project, @merge_request], remote: true, html: {class: 'edit-merge_request inline-update'} do |f| 1 = form_for [@project, @merge_request], remote: true, html: {class: 'edit-merge_request inline-update'} do |f|
2 .row 2 .row
3 - .col-md-6 3 + .col-sm-6
4 %strong.append-right-10 4 %strong.append-right-10
5 Assignee: 5 Assignee:
6 6
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 - else 11 - else
12 None 12 None
13 13
14 - .col-md-6.text-right 14 + .col-sm-6.text-right
15 %strong.append-right-10 15 %strong.append-right-10
16 Milestone: 16 Milestone:
17 - if can?(current_user, :modify_merge_request, @merge_request) 17 - if can?(current_user, :modify_merge_request, @merge_request)