summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKushal Pandya <kushal@gitlab.com>2018-02-28 16:43:10 +0530
committerKushal Pandya <kushal@gitlab.com>2018-02-28 16:43:10 +0530
commitf0197d733818c17ad28a92c6f4def6221050f2e0 (patch)
tree84da370bd9bbcb984aa02a22690b49799a9b452b
parent7768b5f3e8e8eff878a4b263c467e59bd833bb25 (diff)
downloadgitlab-ce-f0197d733818c17ad28a92c6f4def6221050f2e0.tar.gz
Fix unnecessary spacing between labels
-rw-r--r--app/assets/stylesheets/pages/issuable.scss7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/stylesheets/pages/issuable.scss b/app/assets/stylesheets/pages/issuable.scss
index 0cf67734237..4c9732c26d9 100644
--- a/app/assets/stylesheets/pages/issuable.scss
+++ b/app/assets/stylesheets/pages/issuable.scss
@@ -103,6 +103,7 @@
.issuable-show-labels {
a {
margin-bottom: 5px;
+ margin-right: 5px;
display: inline-block;
.color-label {
@@ -116,6 +117,12 @@
}
&.has-labels {
+ // this font size is a fix to
+ // prevent unintended spacing between labels
+ // which shows up when rendering markup has white-space
+ // characters present.
+ // see: https://css-tricks.com/fighting-the-space-between-inline-block-elements/#article-header-id-3
+ font-size: 0;
margin-bottom: -5px;
}
}