1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-08-22 05:03:16 +02:00

Update labels and form grid examples

This commit is contained in:
Mark Otto
2015-04-23 00:51:39 -07:00
parent 56e267e71f
commit dc3abb5f12
9 changed files with 58 additions and 20 deletions

View File

@@ -3,12 +3,6 @@
// --------------------------------------------------
// todo: turn this into a class
label {
margin-bottom: .5rem;
}
//
// Textual form controls
//
@@ -75,6 +69,19 @@ label {
display: block;
}
//
// Labels
//
// For use with horizontal and inline forms, when you need the label text to
// align with the form controls.
.form-control-label {
padding: ($padding-base-vertical + $border-width) $padding-base-horizontal;
margin-bottom: 0; // Override the `<label>` default
}
// Todo: clear this up
// Special styles for iOS temporal inputs

View File

@@ -232,6 +232,7 @@ th {
label {
// Allow labels can use `margin` for spacing.
display: inline-block;
margin-bottom: .5rem;
}
input,