]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
wasn't feeling the new buttons, downsizing again until we get a better balance
authorMark Otto <markotto@twitter.com>
Mon, 9 Jul 2012 07:31:54 +0000 (00:31 -0700)
committerMark Otto <markotto@twitter.com>
Mon, 9 Jul 2012 07:31:54 +0000 (00:31 -0700)
docs/assets/css/bootstrap.css
less/button-groups.less
less/buttons.less
less/dropdowns.less

index 678559c5a9c468553eef4f6c8896e8684227add8..57124eb4e7ed57b752f64c115ab388f1b15c45e5 100644 (file)
@@ -2498,8 +2498,8 @@ table .span24 {
 .caret {
   display: inline-block;
   width: 0;
-  height: 3px;
-  vertical-align: middle;
+  height: 0;
+  vertical-align: top;
   border-top: 4px solid #000000;
   border-right: 4px solid transparent;
   border-left: 4px solid transparent;
@@ -2509,6 +2509,7 @@ table .span24 {
 }
 
 .dropdown .caret {
+  margin-top: 8px;
   margin-left: 2px;
 }
 
@@ -2616,8 +2617,6 @@ table .span24 {
 
 .dropup .caret,
 .navbar-fixed-bottom .dropdown .caret {
-  height: 0;
-  margin-top: -2px;
   border-top: 0;
   border-bottom: 4px solid #000000;
   content: "\2191";
@@ -2726,10 +2725,10 @@ button.close {
 .btn {
   display: inline-block;
   *display: inline;
-  padding: 4px 14px 4px;
+  padding: 4px 14px;
   margin-bottom: 0;
   *margin-left: .3em;
-  font-size: 14px;
+  font-size: 13px;
   line-height: 20px;
   *line-height: 20px;
   color: #333333;
@@ -3123,7 +3122,7 @@ input[type="submit"].btn.btn-mini {
 
 .btn-group > .btn,
 .btn-group > .dropdown-menu {
-  font-size: 14px;
+  font-size: 13px;
 }
 
 .btn-group > .btn-mini,
@@ -3188,28 +3187,28 @@ input[type="submit"].btn.btn-mini {
 }
 
 .btn-group > .dropdown-toggle {
-  *padding-top: 8px;
-  padding-right: 10px;
-  *padding-bottom: 8px;
-  padding-left: 10px;
+  *padding-top: 4px;
+  padding-right: 8px;
+  *padding-bottom: 4px;
+  padding-left: 8px;
   -webkit-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
      -moz-box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
           box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.125), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
 }
 
 .btn-group > .btn-mini.dropdown-toggle {
-  padding-right: 8px;
-  padding-left: 8px;
+  padding-right: 5px;
+  padding-left: 5px;
 }
 
 .btn-group > .btn-small.dropdown-toggle {
-  *padding-top: 6px;
-  *padding-bottom: 6px;
+  *padding-top: 4px;
+  *padding-bottom: 4px;
 }
 
 .btn-group > .btn-large.dropdown-toggle {
-  padding-right: 14px;
-  padding-left: 14px;
+  padding-right: 12px;
+  padding-left: 12px;
 }
 
 .btn-group.open .dropdown-toggle {
@@ -3248,6 +3247,7 @@ input[type="submit"].btn.btn-mini {
 }
 
 .btn .caret {
+  margin-top: 7px;
   margin-left: 0;
 }
 
@@ -3257,7 +3257,16 @@ input[type="submit"].btn.btn-mini {
   filter: alpha(opacity=100);
 }
 
+.btn-mini .caret {
+  margin-top: 5px;
+}
+
+.btn-small .caret {
+  margin-top: 6px;
+}
+
 .btn-large .caret {
+  margin-top: 6px;
   border-top-width: 5px;
   border-right-width: 5px;
   border-left-width: 5px;
index d421b8f424cbf2b16f2f61fc88956762a4a0db73..05235b93bbf000373acf26112acda47bf7e1711e 100644 (file)
 }
 .btn-group > .btn,
 .btn-group > .dropdown-menu {
-  font-size: @baseFontSize; // redeclare as part 2 of font-size inline-block hack
+  font-size: 13px; // redeclare as part 2 of font-size inline-block hack
 }
 
 // Reset fonts for other sizes
 .btn-group > .btn-mini,
 .btn-group > .btn-small {
-  font-size: @baseFontSize - 2px;
+  font-size: 12px;
 }
 .btn-group > .btn-large {
-  font-size: @baseFontSize + 2px;
+  font-size: 16px;
 }
 
 // Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
 
 // Give the line between buttons some depth
 .btn-group > .dropdown-toggle {
-  padding-left: 10px;
-  padding-right: 10px;
+  padding-left: 8px;
+  padding-right: 8px;
   .box-shadow(~"inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
-  *padding-top: 8px;
-  *padding-bottom: 8px;
+  *padding-top: 4px;
+  *padding-bottom: 4px;
 }
 .btn-group > .btn-mini.dropdown-toggle {
-  padding-left: 8px;
-  padding-right: 8px;
+  padding-left: 5px;
+  padding-right: 5px;
 }
 .btn-group > .btn-small.dropdown-toggle {
-  *padding-top: 6px;
-  *padding-bottom: 6px;
+  *padding-top: 4px;
+  *padding-bottom: 4px;
 }
 .btn-group > .btn-large.dropdown-toggle {
-  padding-left: 14px;
-  padding-right: 14px;
+  padding-left: 12px;
+  padding-right: 12px;
 }
 
 .btn-group.open {
 
 // Reposition the caret
 .btn .caret {
+  margin-top: 7px;
   margin-left: 0;
 }
 .btn:hover .caret,
 }
 // Carets in other button sizes
 .btn-mini .caret {
+  margin-top: 5px;
 }
 .btn-small .caret {
+  margin-top: 6px;
 }
 .btn-large .caret {
+  margin-top: 6px;
   border-left-width:  5px;
   border-right-width: 5px;
   border-top-width:   5px;
index b48b0555b83bedb89d47ec2554a32141f0c042d8..c5b58c433d8840e218cab99ac43c1fabf788604b 100644 (file)
 .btn {
   display: inline-block;
   .ie7-inline-block();
-  padding: 4px 14px 4px;
+  padding: 4px 14px;
   margin-bottom: 0; // For input.btn
-  font-size: @baseFontSize;
-  line-height: @baseLineHeight;
+  font-size: 13px;
+  line-height: 20px;
   *line-height: 20px;
   color: @grayDark;
   text-align: center;
index 705b25d503cad9d7fe7ea96c68bbf06911812d50..e9e91b6a4b62523575c09ba7223e648d9173dfa4 100644 (file)
@@ -22,8 +22,8 @@
 .caret {
   display: inline-block;
   width: 0;
-  height: 3px;
-  vertical-align: middle;
+  height: 0;
+  vertical-align: top;
   border-top:   4px solid @black;
   border-right: 4px solid transparent;
   border-left:  4px solid transparent;
@@ -33,6 +33,7 @@
 
 // Place the caret
 .dropdown .caret {
+  margin-top: 8px;
   margin-left: 2px;
 }
 .dropdown a:focus .caret,
 .navbar-fixed-bottom .dropdown {
   // Reverse the caret
   .caret {
-    margin-top: -2px;
-    height: 0;
     border-top: 0;
     border-bottom: 4px solid @black;
     content: "\2191";