mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-09 23:26:40 +02:00
fixes #4729: only use margin-top on .help-block when it follows an input, select, textarea
This commit is contained in:
7
docs/assets/css/bootstrap.css
vendored
7
docs/assets/css/bootstrap.css
vendored
@@ -1792,10 +1792,15 @@ legend + .control-group {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.form-horizontal .help-block {
|
.form-horizontal .help-block {
|
||||||
margin-top: 10px;
|
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.form-horizontal input + .help-block,
|
||||||
|
.form-horizontal select + .help-block,
|
||||||
|
.form-horizontal textarea + .help-block {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
.form-horizontal .form-actions {
|
.form-horizontal .form-actions {
|
||||||
padding-left: 160px;
|
padding-left: 160px;
|
||||||
}
|
}
|
||||||
|
@@ -633,9 +633,16 @@ legend + .control-group {
|
|||||||
}
|
}
|
||||||
// Remove bottom margin on block level help text since that's accounted for on .control-group
|
// Remove bottom margin on block level help text since that's accounted for on .control-group
|
||||||
.help-block {
|
.help-block {
|
||||||
margin-top: @baseLineHeight / 2;
|
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
// And apply it only to .help-block instances that follow a form control
|
||||||
|
input,
|
||||||
|
select,
|
||||||
|
textarea {
|
||||||
|
+ .help-block {
|
||||||
|
margin-top: @baseLineHeight / 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
// Move over buttons in .form-actions to align with .controls
|
// Move over buttons in .form-actions to align with .controls
|
||||||
.form-actions {
|
.form-actions {
|
||||||
padding-left: 160px;
|
padding-left: 160px;
|
||||||
|
Reference in New Issue
Block a user