From c1aab76da4ebb09718f66b7953e0c14452faf29c Mon Sep 17 00:00:00 2001
From: nicolas <nclm@users.noreply.github.com>
Date: Wed, 23 Nov 2016 16:26:53 +0100
Subject: [PATCH] Checkboxes label adjustement
When the label of a checkbox is more than one line long, avoid unalignment.
---
app/assets/stylesheets/forms.scss | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/app/assets/stylesheets/forms.scss b/app/assets/stylesheets/forms.scss
index 306f474d6f..fdaa60ca59 100644
--- a/app/assets/stylesheets/forms.scss
+++ b/app/assets/stylesheets/forms.scss
@@ -47,12 +47,16 @@ code {
color: #9baec8;
display: block;
}
+
+ label.checkbox {
+ position: relative;
+ padding-left: 25px;
+ }
input[type=checkbox] {
- display: inline-block;
- position: relative;
- top: 3px;
- margin-right: 8px;
+ position: absolute;
+ left: 0;
+ top: 0;
}
}
--
GitLab