]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Allow multiple buttons in `.input-prepend` and `.input-append`. 2962/head
authorArnold Daniels <arnold@adaniels.nl>
Thu, 5 Apr 2012 20:08:32 +0000 (23:08 +0300)
committerArnold Daniels <arnold@adaniels.nl>
Thu, 5 Apr 2012 20:08:32 +0000 (23:08 +0300)
This has a look similar to button groups.

less/forms.less

index 8d9c253083e5dc03782ceac90659bee5136cc88a..1da8d7500f03a5cd1fb4c2780518dd8a5510675c 100644 (file)
@@ -391,7 +391,7 @@ select:focus:required:invalid {
   }
   .add-on,
   .btn {
-    .border-radius(3px 0 0 3px);
+    .border-radius(0);
   }
   .active {
     background-color: lighten(@green, 30);
@@ -403,6 +403,10 @@ select:focus:required:invalid {
   .btn {
     margin-right: -1px;
   }
+  .add-on:first-child,
+  .btn:first-child {
+    .border-radius(3px 0 0 3px);
+  }
 }
 .input-append {
   input,
@@ -417,6 +421,9 @@ select:focus:required:invalid {
   .add-on,
   .btn {
     margin-left: -1px;
+  }
+  .add-on:last-child,
+  .btn:last-child {
     .border-radius(0 3px 3px 0);
   }
 }