summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bennett <lukeeeebennettplus@gmail.com>2016-09-24 19:17:05 +0100
committerLuke Bennett <lukeeeebennettplus@gmail.com>2016-09-29 20:37:34 +0100
commita095a3a694091ac9a7387e89e06f12c8ba80815c (patch)
tree8504625665fa2cdbd080e3aea3e15b8b9460469e
parent640ab3072ff278c052ab0e2a5eaec69d684db753 (diff)
downloadgitlab-ce-22529-build-sidebar-weird-padding.tar.gz
Removed blocks-first declaration that was added to fix coverage padding, moved the padding to a new coverage block declaration22529-build-sidebar-weird-padding
Review changes
-rw-r--r--app/assets/stylesheets/pages/builds.scss13
-rw-r--r--app/views/projects/builds/_sidebar.html.haml4
2 files changed, 12 insertions, 5 deletions
diff --git a/app/assets/stylesheets/pages/builds.scss b/app/assets/stylesheets/pages/builds.scss
index a5a260d4c8f..194a39a8377 100644
--- a/app/assets/stylesheets/pages/builds.scss
+++ b/app/assets/stylesheets/pages/builds.scss
@@ -107,10 +107,14 @@
.block {
width: 100%;
- }
- .block-first {
- padding: 5px 16px 11px;
+ &.coverage {
+ padding: 0 16px 11px;
+ }
+
+ .btn-group-justified {
+ margin-top: 5px;
+ }
}
.js-build-variable {
@@ -214,6 +218,9 @@
.build-detail-row {
margin-bottom: 5px;
+ &:last-of-type {
+ margin-bottom: 0;
+ }
}
.build-light-text {
diff --git a/app/views/projects/builds/_sidebar.html.haml b/app/views/projects/builds/_sidebar.html.haml
index 0aa3092baa2..8846cf8577c 100644
--- a/app/views/projects/builds/_sidebar.html.haml
+++ b/app/views/projects/builds/_sidebar.html.haml
@@ -8,7 +8,7 @@
%a.gutter-toggle.pull-right.js-sidebar-build-toggle{ href: "#" }
= icon('angle-double-right')
- if @build.coverage
- .block.block-first
+ .block.coverage
.title
Test coverage
%p.build-detail-row
@@ -95,7 +95,7 @@
- @build.trigger_request.variables.each do |key, value|
.hide.js-build
- .js-build-variable= key
+ .js-build-variable= key
.js-build-value= value
.block