0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-02-26 23:54:23 +01:00

Fixes #7885 and #7886: only right align horizontal form labels when above 768px

This commit is contained in:
Mark Otto 2013-05-14 18:59:13 -07:00
parent 1d8ff36afa
commit e23f661f3f
2 changed files with 12 additions and 1 deletions

View File

@ -1700,7 +1700,12 @@ select:focus:invalid:focus {
.form-horizontal .row-label { .form-horizontal .row-label {
padding-top: 6px; padding-top: 6px;
text-align: right; }
@media (min-width: 768px) {
.form-horizontal .row-label {
text-align: right;
}
} }
.btn { .btn {

View File

@ -478,6 +478,12 @@ select:focus:invalid {
} }
.row-label { .row-label {
padding-top: 6px; padding-top: 6px;
}
}
// Only right aline form labels here when the columns stop stacking
@media (min-width: 768px) {
.form-horizontal .row-label {
text-align: right; text-align: right;
} }
} }