From d716331fb797579ebd4df5ee028811bc0f292967 Mon Sep 17 00:00:00 2001
From: Mohammad Younes <myounes@gmail.com>
Date: Sun, 7 Sep 2014 19:09:32 +0300
Subject: [PATCH 1/3] fix justified split button dropdowns

Sample: http://jsfiddle.net/0u2sa58e/
---
 less/button-groups.less | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/less/button-groups.less b/less/button-groups.less
index c2e2260f06..48ad02067f 100644
--- a/less/button-groups.less
+++ b/less/button-groups.less
@@ -217,6 +217,19 @@
     width: 100%;
   }
 
+  > .btn-group > .btn:first-child:not(:only-of-type) {
+    margin-right: -32px;
+    padding-right: 32px;
+  }  
+  > .btn-group > .dropdown-toggle{
+    float:right;
+    width:auto;    
+    z-index:3;
+  }  
+  > .btn-group:last-child > .btn:first-child {
+    .border-right-radius(@border-radius-large);
+  }
+  
   > .btn-group .dropdown-menu {
     left: auto;
   }
-- 
GitLab


From 1f2a8edb94070488457a7c1ad1f7abd251388296 Mon Sep 17 00:00:00 2001
From: Mohammad Younes <myounes@gmail.com>
Date: Sun, 7 Sep 2014 22:15:19 +0300
Subject: [PATCH 2/3] Exclude non-split button dropdown

Sample: http://jsfiddle.net/0u2sa58e/1/
---
 less/button-groups.less | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/less/button-groups.less b/less/button-groups.less
index 48ad02067f..ed57473531 100644
--- a/less/button-groups.less
+++ b/less/button-groups.less
@@ -221,7 +221,7 @@
     margin-right: -32px;
     padding-right: 32px;
   }  
-  > .btn-group > .dropdown-toggle{
+  > .btn-group > .btn:first-child:not(:only-of-type) + .dropdown-toggle {
     float:right;
     width:auto;    
     z-index:3;
-- 
GitLab


From c048e6dce0bfa03292b39bea048942bf17b0d782 Mon Sep 17 00:00:00 2001
From: Mohammad Younes <myounes@gmail.com>
Date: Mon, 8 Sep 2014 12:19:53 +0300
Subject: [PATCH 3/3] Update formatting

---
 less/button-groups.less | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/less/button-groups.less b/less/button-groups.less
index ed57473531..afa3a4ead3 100644
--- a/less/button-groups.less
+++ b/less/button-groups.less
@@ -218,13 +218,13 @@
   }
 
   > .btn-group > .btn:first-child:not(:only-of-type) {
-    margin-right: -32px;
     padding-right: 32px;
+    margin-right: -32px;
   }  
   > .btn-group > .btn:first-child:not(:only-of-type) + .dropdown-toggle {
-    float:right;
-    width:auto;    
-    z-index:3;
+    z-index: 3;
+    float: right;
+    width: auto;
   }  
   > .btn-group:last-child > .btn:first-child {
     .border-right-radius(@border-radius-large);
-- 
GitLab