2
0
mirror of https://github.com/tenrok/bootstrap.git synced 2026-06-08 17:22:31 +03:00

update forms help-block

This commit is contained in:
Mark Otto
2012-02-21 13:43:13 -08:00
parent d908731566
commit 664a5c4438
5 changed files with 21 additions and 8 deletions
+11 -4
View File
@@ -335,17 +335,19 @@ select:focus:required:invalid {
// HELP TEXT
// ---------
.help-block,
.help-inline {
color: @gray; // lighten the text some for contrast
}
.help-block {
display: block; // account for any element using help-block
margin-top: 5px;
margin-bottom: 0;
color: @grayLight;
margin-bottom: @baseLineHeight / 2;
}
.help-inline {
display: inline-block;
.ie7-inline-block();
margin-bottom: 9px;
vertical-align: middle;
padding-left: 5px;
}
@@ -528,6 +530,11 @@ legend + .control-group {
.controls {
margin-left: 160px;
}
// Remove bottom margin on block level help text since that's accounted for on .control-group
.help-block {
margin-top: @baseLineHeight / 2;
margin-bottom: 0;
}
// Move over buttons in .form-actions to align with .controls
.form-actions {
padding-left: 160px;