Commit 9f7fc6a0 authored by Fatih Acet's avatar Fatih Acet

Merge branch 'status-badge-spacing' into 'master'

Fix spacing between icon and word in status badge

Before:      
![Screen_Shot_2016-11-22_at_11.44.16_AM](/uploads/65c5abc6dc08985cb3079b7c2af03715/Screen_Shot_2016-11-22_at_11.44.16_AM.png)
After:   
![Screen_Shot_2016-11-22_at_11.44.01_AM](/uploads/1b6261b64c65de5a718b68873e069ac9/Screen_Shot_2016-11-22_at_11.44.01_AM.png)

cc @dimitrieh

See merge request !7678
parents 0676c5c7 6f11ffe8
...@@ -91,14 +91,6 @@ ...@@ -91,14 +91,6 @@
} }
} }
.ci-status {
svg {
top: 1px;
margin-right: 0;
}
}
a:hover { a:hover {
text-decoration: none; text-decoration: none;
} }
......
...@@ -11,6 +11,15 @@ ...@@ -11,6 +11,15 @@
text-decoration: none; text-decoration: none;
} }
svg {
height: 13px;
width: 13px;
position: relative;
top: 1px;
margin-right: 3px;
overflow: visible;
}
&.ci-failed { &.ci-failed {
color: $gl-danger; color: $gl-danger;
border-color: $gl-danger; border-color: $gl-danger;
...@@ -104,15 +113,6 @@ ...@@ -104,15 +113,6 @@
fill: $table-text-gray; fill: $table-text-gray;
} }
} }
svg {
height: 13px;
width: 13px;
position: relative;
top: 1px;
margin: 0 3px;
overflow: visible;
}
} }
} }
......
...@@ -5,7 +5,7 @@ module CiStatusHelper ...@@ -5,7 +5,7 @@ module CiStatusHelper
end end
def ci_status_with_icon(status, target = nil) def ci_status_with_icon(status, target = nil)
content = ci_icon_for_status(status) + ' '.html_safe + ci_label_for_status(status) content = ci_icon_for_status(status) + ci_label_for_status(status)
klass = "ci-status ci-#{status}" klass = "ci-status ci-#{status}"
if target if target
link_to content, target, class: klass link_to content, target, class: klass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment