]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Changed last-child to first-child 13464/head
authorNick Colley <nickcolley7@gmail.com>
Tue, 29 Apr 2014 23:57:41 +0000 (00:57 +0100)
committerNick Colley <nickcolley7@gmail.com>
Wed, 30 Apr 2014 00:08:24 +0000 (01:08 +0100)
As noted by @jerem the first child will actually be the last shown

less/navbar.less

index b5e9a5f8da91a7391d4bf7f6ac5ed87a0de8cf90..c4bd0c4a5c33b6d69dfffd49f6acca510aaa3d02 100644 (file)
       }
     }
 
-    &.navbar-right:last-child {
+    &.navbar-right:first-child {
       margin-right: -@navbar-padding-horizontal;
     }
   }
     padding-bottom: 0;
     .box-shadow(none);
 
-    // Outdent the form if last child to line up with content down the page
-    &.navbar-right:last-child {
+    // Outdent the form if first child to line up with content down the page
+    &.navbar-right:first-child {
       margin-right: -@navbar-padding-horizontal;
     }
   }
     margin-left: @navbar-padding-horizontal;
     margin-right: @navbar-padding-horizontal;
 
-    // Outdent the form if last child to line up with content down the page
-    &.navbar-right:last-child {
+    // Outdent the form if first child to line up with content down the page
+    &.navbar-right:first-child {
       margin-right: 0;
     }
   }