]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Fixes #7885 and #7886: only right align horizontal form labels when above 768px
authorMark Otto <otto@github.com>
Wed, 15 May 2013 01:59:13 +0000 (18:59 -0700)
committerMark Otto <otto@github.com>
Wed, 15 May 2013 01:59:13 +0000 (18:59 -0700)
docs/assets/css/bootstrap.css
less/forms.less

index 7f1bf5cd8bc07cf32eb4961ff6715ae6eb00aa9f..4a1324b6bae1c07f09eaa831a3b03b32ce37d541 100644 (file)
@@ -1700,7 +1700,12 @@ select:focus:invalid:focus {
 
 .form-horizontal .row-label {
   padding-top: 6px;
-  text-align: right;
+}
+
+@media (min-width: 768px) {
+  .form-horizontal .row-label {
+    text-align: right;
+  }
 }
 
 .btn {
index 17352000061718a141d45d8be78b3f41c445778f..dacc4bb505832c523299931a988591cd416f4a93 100644 (file)
@@ -478,6 +478,12 @@ select:focus:invalid {
   }
   .row-label {
     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;
   }
 }