Improve design of description below label of checkbox or radio button

Signed-off-by: Jan-Christoph Borchardt <hey@jancborchardt.net>
This commit is contained in:
Jan-Christoph Borchardt 2019-01-24 15:42:52 +01:00 committed by Julius Härtl
parent b068809d9f
commit c44c23a1c3
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 9 additions and 0 deletions

View File

@ -354,6 +354,15 @@ input {
&:checked:disabled + label:before {
background-color: $color-checkbox-radio-disabled;
}
// Detail description below label of checkbox or radio button
& + label ~ em {
display: inline-block;
margin-left: 18px;
}
& + label ~ em:last-of-type {
margin-bottom: 12px;
}
}
&.checkbox {
+ label:before {