]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
more nesting in button-groups.less 8405/head
authorChris Rebert <code@rebertia.com>
Sun, 7 Jul 2013 05:07:03 +0000 (22:07 -0700)
committerChris Rebert <code@rebertia.com>
Sun, 7 Jul 2013 22:27:06 +0000 (15:27 -0700)
less/button-groups.less

index 408e7c75d9a3a4a6d3f7e2e44bce4bf509b86b7c..9500fecbb030c0de06df38d6f9da4178dd8baf66 100644 (file)
 .btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
   border-radius: 0;
 }
-.btn-group > .btn-group:first-child > .btn:last-child,
-.btn-group > .btn-group:first-child > .dropdown-toggle {
-  .border-right-radius(0);
+.btn-group > .btn-group:first-child {
+  > .btn:last-child,
+  > .dropdown-toggle {
+    .border-right-radius(0);
+  }
 }
 .btn-group > .btn-group:last-child > .btn:first-child {
   .border-left-radius(0);
     margin-top: -1px;
   }
 }
-.btn-group-vertical .btn:not(:first-child):not(:last-child) {
-  border-radius: 0;
-}
-.btn-group-vertical .btn:first-child {
-  .border-bottom-radius(0);
-}
-.btn-group-vertical .btn:last-child {
-  .border-top-radius(0);
+.btn-group-vertical .btn {
+  &:not(:first-child):not(:last-child) {
+    border-radius: 0;
+  }
+  &:first-child {
+    .border-bottom-radius(0);
+  }
+  &:last-child {
+    .border-top-radius(0);
+  }
 }