]> cat aescling's git repositories - mastodon.git/commitdiff
Checkboxes label adjustement
authornicolas <nclm@users.noreply.github.com>
Wed, 23 Nov 2016 15:26:53 +0000 (16:26 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 25 Nov 2016 13:02:12 +0000 (14:02 +0100)
When the label of a checkbox is more than one line long, avoid unalignment.

app/assets/stylesheets/forms.scss

index 306f474d6fee7b84e8bb160ce6359976192a0ddf..fdaa60ca5947b374f7593d9eeb32c340afc8dba5 100644 (file)
@@ -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;
     }
   }