From c6d369c52baaeb926a39bf06a81e7d2ed72a1520 Mon Sep 17 00:00:00 2001 From: nicolas 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; } }