]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
fixes #3900: nudge badges in buttons up 1px
authorMark Otto <markotto@twitter.com>
Mon, 30 Jul 2012 20:25:27 +0000 (13:25 -0700)
committerMark Otto <markotto@twitter.com>
Mon, 30 Jul 2012 20:25:27 +0000 (13:25 -0700)
docs/assets/css/bootstrap.css
less/labels-badges.less
less/tests/css-tests.html

index fa58f2ef34186de3f629cfb7e954fa224ad6ad6f..dd9b96bc16681d9af8a9295e1b026c9f8062c24f 100644 (file)
@@ -5128,6 +5128,12 @@ a.badge:hover {
   background-color: #1a1a1a;
 }
 
+.btn .label,
+.btn .badge {
+  position: relative;
+  top: -1px;
+}
+
 @-webkit-keyframes progress-bar-stripes {
   from {
     background-position: 40px 0;
index 7537b188a59d6f91aefe281b3a17b3854b723aa2..527cf6497e96cf8e474191fd21afed5ae30c3502 100644 (file)
@@ -55,3 +55,12 @@ a {
   &-inverse           { background-color: @grayDark; }
   &-inverse[href]     { background-color: darken(@grayDark, 10%); }
 }
+
+// Quick fix for labels/badges in buttons
+.btn {
+  .label,
+  .badge {
+    position: relative;
+    top: -1px;
+  }
+}
index a8f62c3ccf9bb6d767a5efe0915f769b49ad4a75..3ded955bf6bc63e08f36a76d54581c43c736a59b 100644 (file)
     </form>
   </div><!--/span-->
   <div class="span4">
-
+    <button class="btn">Action <span class="badge">2</span></button>
+    <button class="btn">Action <span class="label">2</span></button>
   </div><!--/span-->
 </div><!--/row-->