mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-26 06:44:35 +02:00
v5: .form-check layout changes (#29322)
* Scope .form-check-input layout to the .form-check parent * Remove margin-bottom from list-group-items in case they are label elements * document .form-check in input groups and list groups, and cleanup the no-label examples in the main .form-check docs
This commit is contained in:
@@ -7,14 +7,17 @@
|
||||
min-height: $form-check-min-height;
|
||||
padding-left: $form-check-padding-left;
|
||||
margin-bottom: $form-check-margin-bottom;
|
||||
|
||||
.form-check-input {
|
||||
float: left;
|
||||
margin-left: $form-check-padding-left * -1;
|
||||
}
|
||||
}
|
||||
|
||||
.form-check-input {
|
||||
float: left;
|
||||
width: $form-check-input-width;
|
||||
height: $form-check-input-width;
|
||||
margin-top: ($line-height-base - $form-check-input-width) / 2; // line-height minus check height
|
||||
margin-left: $form-check-padding-left * -1;
|
||||
background-color: $form-check-input-bg;
|
||||
border: $form-check-input-border;
|
||||
appearance: none;
|
||||
|
Reference in New Issue
Block a user