bootstrap-generators 2.0.4 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. data/README.md +211 -63
  2. data/lib/bootstrap/generators/version.rb +1 -1
  3. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.scss +102 -28
  4. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.less +104 -31
  5. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  6. data/vendor/assets/javascripts/bootstrap-affix.js +104 -0
  7. data/vendor/assets/javascripts/bootstrap-alert.js +1 -1
  8. data/vendor/assets/javascripts/bootstrap-button.js +2 -2
  9. data/vendor/assets/javascripts/bootstrap-carousel.js +12 -5
  10. data/vendor/assets/javascripts/bootstrap-collapse.js +4 -3
  11. data/vendor/assets/javascripts/bootstrap-dropdown.js +66 -16
  12. data/vendor/assets/javascripts/bootstrap-modal.js +95 -74
  13. data/vendor/assets/javascripts/bootstrap-popover.js +9 -4
  14. data/vendor/assets/javascripts/bootstrap-scrollspy.js +9 -9
  15. data/vendor/assets/javascripts/bootstrap-tab.js +2 -2
  16. data/vendor/assets/javascripts/bootstrap-tooltip.js +15 -15
  17. data/vendor/assets/javascripts/bootstrap-transition.js +2 -3
  18. data/vendor/assets/javascripts/bootstrap-typeahead.js +51 -36
  19. data/vendor/assets/javascripts/bootstrap.js +1 -1
  20. data/vendor/assets/stylesheets/bootstrap-responsive.css +1058 -0
  21. data/vendor/assets/stylesheets/bootstrap-responsive.min.css +9 -0
  22. data/vendor/assets/stylesheets/bootstrap.css +5774 -0
  23. data/vendor/assets/stylesheets/bootstrap.min.css +9 -0
  24. data/vendor/twitter/bootstrap/less/accordion.less +3 -2
  25. data/vendor/twitter/bootstrap/less/alerts.less +16 -9
  26. data/vendor/twitter/bootstrap/less/bootstrap.less +1 -1
  27. data/vendor/twitter/bootstrap/less/breadcrumbs.less +10 -10
  28. data/vendor/twitter/bootstrap/less/button-groups.less +79 -25
  29. data/vendor/twitter/bootstrap/less/buttons.less +107 -67
  30. data/vendor/twitter/bootstrap/less/carousel.less +13 -3
  31. data/vendor/twitter/bootstrap/less/close.less +4 -2
  32. data/vendor/twitter/bootstrap/less/code.less +6 -5
  33. data/vendor/twitter/bootstrap/less/component-animations.less +4 -2
  34. data/vendor/twitter/bootstrap/less/dropdowns.less +82 -15
  35. data/vendor/twitter/bootstrap/less/forms.less +124 -57
  36. data/vendor/twitter/bootstrap/less/grid.less +17 -1
  37. data/vendor/twitter/bootstrap/less/hero-unit.less +4 -2
  38. data/vendor/twitter/bootstrap/less/labels-badges.less +19 -2
  39. data/vendor/twitter/bootstrap/less/layouts.less +1 -2
  40. data/vendor/twitter/bootstrap/less/mixins.less +112 -77
  41. data/vendor/twitter/bootstrap/less/modals.less +12 -4
  42. data/vendor/twitter/bootstrap/less/navbar.less +245 -128
  43. data/vendor/twitter/bootstrap/less/navs.less +38 -17
  44. data/vendor/twitter/bootstrap/less/pager.less +11 -7
  45. data/vendor/twitter/bootstrap/less/pagination.less +23 -15
  46. data/vendor/twitter/bootstrap/less/popovers.less +101 -33
  47. data/vendor/twitter/bootstrap/less/progress-bars.less +18 -13
  48. data/vendor/twitter/bootstrap/less/reset.less +10 -4
  49. data/vendor/twitter/bootstrap/less/responsive-1200px-min.less +9 -7
  50. data/vendor/twitter/bootstrap/less/responsive-767px-max.less +95 -70
  51. data/vendor/twitter/bootstrap/less/responsive-768px-979px.less +7 -5
  52. data/vendor/twitter/bootstrap/less/responsive-navbar.less +30 -6
  53. data/vendor/twitter/bootstrap/less/responsive-utilities.less +17 -15
  54. data/vendor/twitter/bootstrap/less/responsive.less +5 -5
  55. data/vendor/twitter/bootstrap/less/scaffolding.less +27 -4
  56. data/vendor/twitter/bootstrap/less/sprites.less +21 -19
  57. data/vendor/twitter/bootstrap/less/tables.less +81 -12
  58. data/vendor/twitter/bootstrap/less/thumbnails.less +9 -4
  59. data/vendor/twitter/bootstrap/less/tooltip.less +47 -12
  60. data/vendor/twitter/bootstrap/less/type.less +75 -86
  61. data/vendor/twitter/bootstrap/less/utilities.less +9 -2
  62. data/vendor/twitter/bootstrap/less/variables.less +104 -31
  63. data/vendor/twitter/bootstrap/less/wells.less +7 -5
  64. data/vendor/twitter/bootstrap/sass/_accordion.scss +3 -2
  65. data/vendor/twitter/bootstrap/sass/_alerts.scss +15 -8
  66. data/vendor/twitter/bootstrap/sass/_breadcrumbs.scss +10 -10
  67. data/vendor/twitter/bootstrap/sass/_button-groups.scss +77 -23
  68. data/vendor/twitter/bootstrap/sass/_buttons.scss +106 -66
  69. data/vendor/twitter/bootstrap/sass/_carousel.scss +13 -3
  70. data/vendor/twitter/bootstrap/sass/_close.scss +5 -3
  71. data/vendor/twitter/bootstrap/sass/_code.scss +7 -6
  72. data/vendor/twitter/bootstrap/sass/_component-animations.scss +5 -3
  73. data/vendor/twitter/bootstrap/sass/_dropdowns.scss +85 -18
  74. data/vendor/twitter/bootstrap/sass/_forms.scss +121 -53
  75. data/vendor/twitter/bootstrap/sass/_grid.scss +17 -1
  76. data/vendor/twitter/bootstrap/sass/_hero-unit.scss +4 -2
  77. data/vendor/twitter/bootstrap/sass/_labels-badges.scss +29 -12
  78. data/vendor/twitter/bootstrap/sass/_layouts.scss +2 -3
  79. data/vendor/twitter/bootstrap/sass/_mixins.scss +163 -127
  80. data/vendor/twitter/bootstrap/sass/_modals.scss +12 -4
  81. data/vendor/twitter/bootstrap/sass/_navbar.scss +243 -127
  82. data/vendor/twitter/bootstrap/sass/_navs.scss +36 -15
  83. data/vendor/twitter/bootstrap/sass/_pager.scss +12 -8
  84. data/vendor/twitter/bootstrap/sass/_pagination.scss +23 -15
  85. data/vendor/twitter/bootstrap/sass/_popovers.scss +101 -33
  86. data/vendor/twitter/bootstrap/sass/_progress-bars.scss +18 -13
  87. data/vendor/twitter/bootstrap/sass/_reset.scss +8 -3
  88. data/vendor/twitter/bootstrap/sass/_responsive-1200px-min.scss +9 -7
  89. data/vendor/twitter/bootstrap/sass/_responsive-767px-max.scss +95 -70
  90. data/vendor/twitter/bootstrap/sass/_responsive-768px-979px.scss +8 -6
  91. data/vendor/twitter/bootstrap/sass/_responsive-navbar.scss +29 -5
  92. data/vendor/twitter/bootstrap/sass/_responsive-utilities.scss +32 -15
  93. data/vendor/twitter/bootstrap/sass/_scaffolding.scss +29 -4
  94. data/vendor/twitter/bootstrap/sass/_sprites.scss +21 -19
  95. data/vendor/twitter/bootstrap/sass/_tables.scss +79 -11
  96. data/vendor/twitter/bootstrap/sass/_thumbnails.scss +9 -4
  97. data/vendor/twitter/bootstrap/sass/_tooltip.scss +47 -12
  98. data/vendor/twitter/bootstrap/sass/_type.scss +74 -85
  99. data/vendor/twitter/bootstrap/sass/_utilities.scss +24 -2
  100. data/vendor/twitter/bootstrap/sass/_variables.scss +102 -28
  101. data/vendor/twitter/bootstrap/sass/_wells.scss +7 -5
  102. data/vendor/twitter/bootstrap/sass/bootstrap.scss +1 -1
  103. data/vendor/twitter/bootstrap/sass/responsive.scss +5 -5
  104. metadata +15 -10
@@ -1,6 +1,6 @@
1
+ //
1
2
  // Forms
2
- // Base styles for various input types, form layouts, and states
3
- // -------------------------------------------------------------
3
+ // --------------------------------------------------
4
4
 
5
5
 
6
6
  // GENERAL STYLES
@@ -22,7 +22,7 @@ legend {
22
22
  display: block;
23
23
  width: 100%;
24
24
  padding: 0;
25
- margin-bottom: $baseLineHeight * 1.5;
25
+ margin-bottom: $baseLineHeight;
26
26
  font-size: $baseFontSize * 1.5;
27
27
  line-height: $baseLineHeight * 2;
28
28
  color: $grayDark;
@@ -80,18 +80,20 @@ input[type="color"],
80
80
  .uneditable-input {
81
81
  display: inline-block;
82
82
  height: $baseLineHeight;
83
- padding: 4px;
83
+ padding: 4px 6px;
84
84
  margin-bottom: 9px;
85
85
  font-size: $baseFontSize;
86
86
  line-height: $baseLineHeight;
87
87
  color: $gray;
88
+ @include border-radius($inputBorderRadius);
88
89
  }
89
90
 
90
91
  // Reset appearance properties for textual inputs and textarea
91
92
  // Declare width for legacy (can't be on input[type=*] selectors or it's too specific)
92
93
  input,
93
- textarea {
94
- width: 210px;
94
+ textarea,
95
+ .uneditable-input {
96
+ width: 206px; // plus 12px padding and 2px border
95
97
  }
96
98
  // Reset height since textareas have rows
97
99
  textarea {
@@ -116,7 +118,6 @@ input[type="color"],
116
118
  .uneditable-input {
117
119
  background-color: $inputBackground;
118
120
  border: 1px solid $inputBorder;
119
- @include border-radius($inputBorderRadius);
120
121
  @include box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
121
122
  @include transition(#{border linear .2s, box-shadow linear .2s});
122
123
 
@@ -132,13 +133,16 @@ input[type="color"],
132
133
  // Position radios and checkboxes better
133
134
  input[type="radio"],
134
135
  input[type="checkbox"] {
135
- margin: 3px 0;
136
+ margin: 4px 0 0;
136
137
  *margin-top: 0; /* IE7 */
138
+ margin-top: 1px \9; /* IE8-9 */
137
139
  line-height: normal;
138
140
  cursor: pointer;
139
141
  }
140
142
 
141
- // Reset width of input buttons, radios, checkboxes
143
+ // Reset width of input images, buttons, radios, checkboxes
144
+ input[type="file"],
145
+ input[type="image"],
142
146
  input[type="submit"],
143
147
  input[type="reset"],
144
148
  input[type="button"],
@@ -147,24 +151,19 @@ input[type="checkbox"] {
147
151
  width: auto; // Override of generic input selector
148
152
  }
149
153
 
150
- // Make uneditable textareas behave like a textarea
151
- .uneditable-textarea {
152
- width: auto;
153
- height: auto;
154
- }
155
-
156
154
  // Set the height of select and file controls to match text inputs
157
155
  select,
158
156
  input[type="file"] {
159
- height: 28px; /* In IE7, the height of the select element cannot be changed by height, only font-size */
157
+ height: 30px; /* In IE7, the height of the select element cannot be changed by height, only font-size */
160
158
  *margin-top: 4px; /* For IE7, add top margin to align select with labels */
161
- line-height: 28px;
159
+ line-height: 30px;
162
160
  }
163
161
 
164
162
  // Make select elements obey height by applying a border
165
163
  select {
166
164
  width: 220px; // default input width + 10px of padding that doesn't get applied
167
- border: 1px solid #bbb;
165
+ border: 1px solid $inputBorder;
166
+ background-color: $inputBackground; // Chrome on Linux and Mobile Safari need background-color
168
167
  }
169
168
 
170
169
  // Make multiple select elements height not fixed
@@ -182,6 +181,41 @@ input[type="checkbox"]:focus {
182
181
  }
183
182
 
184
183
 
184
+ // Uneditable inputs
185
+ // -------------------------
186
+
187
+ // Make uneditable inputs look inactive
188
+ .uneditable-input,
189
+ .uneditable-textarea {
190
+ color: $grayLight;
191
+ background-color: darken($inputBackground, 1%);
192
+ border-color: $inputBorder;
193
+ @include box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
194
+ cursor: not-allowed;
195
+ }
196
+
197
+ // For text that needs to appear as an input but should not be an input
198
+ .uneditable-input {
199
+ overflow: hidden; // prevent text from wrapping, but still cut it off like an input does
200
+ white-space: nowrap;
201
+ }
202
+
203
+ // Make uneditable textareas behave like a textarea
204
+ .uneditable-textarea {
205
+ width: auto;
206
+ height: auto;
207
+ }
208
+
209
+
210
+ // Placeholder
211
+ // -------------------------
212
+
213
+ // Placeholder text gets special styles because when browsers invalidate entire lines if it doesn’t understand a selector
214
+ input,
215
+ textarea {
216
+ @include placeholder();
217
+ }
218
+
185
219
 
186
220
  // CHECKBOXES & RADIOS
187
221
  // -------------------
@@ -249,6 +283,10 @@ textarea[class*="span"],
249
283
  .input-append .uneditable-input[class*="span"],
250
284
  .input-prepend input[class*="span"],
251
285
  .input-prepend .uneditable-input[class*="span"],
286
+ .row-fluid input[class*="span"],
287
+ .row-fluid select[class*="span"],
288
+ .row-fluid textarea[class*="span"],
289
+ .row-fluid .uneditable-input[class*="span"],
252
290
  .row-fluid .input-prepend [class*="span"],
253
291
  .row-fluid .input-append [class*="span"] {
254
292
  display: inline-block;
@@ -259,8 +297,18 @@ textarea[class*="span"],
259
297
  // GRID SIZING FOR INPUTS
260
298
  // ----------------------
261
299
 
300
+ // Grid sizes
262
301
  @include grid-input($gridColumnWidth, $gridGutterWidth);
263
302
 
303
+ // Control row for multiple inputs per line
304
+ .controls-row {
305
+ @include clearfix(); // Clear the float from controls
306
+ }
307
+ .controls-row [class*="span"] {
308
+ float: left; // Float to collapse white-space for proper grid alignment
309
+ }
310
+
311
+
264
312
 
265
313
 
266
314
  // DISABLED STATE
@@ -275,7 +323,6 @@ select[readonly],
275
323
  textarea[readonly] {
276
324
  cursor: not-allowed;
277
325
  background-color: $inputDisabledBackground;
278
- border-color: #ddd;
279
326
  }
280
327
  // Explicitly reset the colors here
281
328
  input[type="radio"][disabled],
@@ -303,6 +350,10 @@ input[type="checkbox"][readonly] {
303
350
  .control-group.success {
304
351
  @include formFieldState($successText, $successText, $successBackground);
305
352
  }
353
+ // Info
354
+ .control-group.info {
355
+ @include formFieldState($infoText, $infoText, $infoBackground);
356
+ }
306
357
 
307
358
  // HTML5 invalid states
308
359
  // Shares styles with the .control-group.error above
@@ -331,19 +382,6 @@ select:focus:required:invalid {
331
382
  @include clearfix(); // Adding clearfix to allow for .pull-right button containers
332
383
  }
333
384
 
334
- // For text that needs to appear as an input but should not be an input
335
- .uneditable-input {
336
- overflow: hidden; // prevent text from wrapping, but still cut it off like an input does
337
- white-space: nowrap;
338
- cursor: not-allowed;
339
- background-color: $inputBackground;
340
- border-color: #eee;
341
- @include box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
342
- }
343
-
344
- // Placeholder text gets special styles; can't be bundled together though for some reason
345
- @include placeholder();
346
-
347
385
 
348
386
 
349
387
  // HELP TEXT
@@ -351,7 +389,7 @@ select:focus:required:invalid {
351
389
 
352
390
  .help-block,
353
391
  .help-inline {
354
- color: $gray; // lighten the text some for contrast
392
+ color: lighten($textColor, 15%); // lighten the text some for contrast
355
393
  }
356
394
 
357
395
  .help-block {
@@ -372,42 +410,43 @@ select:focus:required:invalid {
372
410
  // ------------
373
411
 
374
412
  // Allow us to put symbols and text within the input field for a cleaner look
375
- .input-prepend,
376
- .input-append {
413
+ .input-append,
414
+ .input-prepend {
377
415
  margin-bottom: 5px;
416
+ font-size: 0;
417
+ white-space: nowrap; // Prevent span and input from separating
418
+
378
419
  input,
379
420
  select,
380
421
  .uneditable-input {
381
422
  position: relative; // placed here by default so that on :focus we can place the input above the .add-on for full border and box-shadow goodness
382
423
  margin-bottom: 0; // prevent bottom margin from screwing up alignment in stacked forms
383
424
  *margin-left: 0;
384
- vertical-align: middle;
425
+ font-size: $baseFontSize;
426
+ vertical-align: top;
385
427
  @include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
386
428
  // Make input on top when focused so blue border and shadow always show
387
429
  &:focus {
388
430
  z-index: 2;
389
431
  }
390
432
  }
391
- .uneditable-input {
392
- border-left-color: #ccc;
393
- }
394
433
  .add-on {
395
434
  display: inline-block;
396
435
  width: auto;
397
436
  height: $baseLineHeight;
398
437
  min-width: 16px;
399
438
  padding: 4px 5px;
439
+ font-size: $baseFontSize;
400
440
  font-weight: normal;
401
441
  line-height: $baseLineHeight;
402
442
  text-align: center;
403
443
  text-shadow: 0 1px 0 $white;
404
- vertical-align: middle;
405
444
  background-color: $grayLighter;
406
445
  border: 1px solid #ccc;
407
446
  }
408
447
  .add-on,
409
448
  .btn {
410
- margin-left: -1px;
449
+ vertical-align: top;
411
450
  @include border-radius(0);
412
451
  }
413
452
  .active {
@@ -431,9 +470,9 @@ select:focus:required:invalid {
431
470
  .uneditable-input {
432
471
  @include border-radius($inputBorderRadius 0 0 $inputBorderRadius);
433
472
  }
434
- .uneditable-input {
435
- border-right-color: #ccc;
436
- border-left-color: #eee;
473
+ .add-on,
474
+ .btn {
475
+ margin-left: -1px;
437
476
  }
438
477
  .add-on:last-child,
439
478
  .btn:last-child {
@@ -464,14 +503,33 @@ select:focus:required:invalid {
464
503
  // SEARCH FORM
465
504
  // -----------
466
505
 
467
- .search-query {
506
+ input.search-query {
468
507
  padding-right: 14px;
469
508
  padding-right: 4px \9;
470
509
  padding-left: 14px;
471
510
  padding-left: 4px \9; /* IE7-8 doesn't have border-radius, so don't indent the padding */
472
- margin-bottom: 0; // remove the default margin on all inputs
473
- @include border-radius(14px);
511
+ margin-bottom: 0; // Remove the default margin on all inputs
512
+ @include border-radius(15px);
513
+ }
514
+
515
+ /* Allow for input prepend/append in search forms */
516
+ .form-search .input-append .search-query,
517
+ .form-search .input-prepend .search-query {
518
+ @include border-radius(0); // Override due to specificity
474
519
  }
520
+ .form-search .input-append .search-query {
521
+ @include border-radius(14px 0 0 14px);
522
+ }
523
+ .form-search .input-append .btn {
524
+ @include border-radius(0 14px 14px 0);
525
+ }
526
+ .form-search .input-prepend .search-query {
527
+ @include border-radius(0 14px 14px 0);
528
+ }
529
+ .form-search .input-prepend .btn {
530
+ @include border-radius(14px 0 0 14px);
531
+ }
532
+
475
533
 
476
534
 
477
535
 
@@ -494,6 +552,7 @@ select:focus:required:invalid {
494
552
  display: inline-block;
495
553
  @include ie7-inline-block();
496
554
  margin-bottom: 0;
555
+ vertical-align: middle;
497
556
  }
498
557
  // Re-hide hidden elements due to specifity
499
558
  .hide {
@@ -501,7 +560,9 @@ select:focus:required:invalid {
501
560
  }
502
561
  }
503
562
  .form-search label,
504
- .form-inline label {
563
+ .form-inline label,
564
+ .form-search .btn-group,
565
+ .form-inline .btn-group {
505
566
  display: inline-block;
506
567
  }
507
568
  // Remove margin for input-prepend/-append
@@ -554,7 +615,7 @@ legend + .control-group {
554
615
  // Float the labels left
555
616
  .control-label {
556
617
  float: left;
557
- width: 140px;
618
+ width: $horizontalComponentOffset - 20;
558
619
  padding-top: 5px;
559
620
  text-align: right;
560
621
  }
@@ -564,19 +625,26 @@ legend + .control-group {
564
625
  // don't inherit the margin of the parent, in this case .controls
565
626
  *display: inline-block;
566
627
  *padding-left: 20px;
567
- margin-left: 160px;
628
+ margin-left: $horizontalComponentOffset;
568
629
  *margin-left: 0;
569
630
  &:first-child {
570
- *padding-left: 160px;
631
+ *padding-left: $horizontalComponentOffset;
571
632
  }
572
633
  }
573
634
  // Remove bottom margin on block level help text since that's accounted for on .control-group
574
635
  .help-block {
575
- margin-top: $baseLineHeight / 2;
576
636
  margin-bottom: 0;
577
637
  }
638
+ // And apply it only to .help-block instances that follow a form control
639
+ input,
640
+ select,
641
+ textarea {
642
+ + .help-block {
643
+ margin-top: $baseLineHeight / 2;
644
+ }
645
+ }
578
646
  // Move over buttons in .form-actions to align with .controls
579
647
  .form-actions {
580
- padding-left: 160px;
648
+ padding-left: $horizontalComponentOffset;
581
649
  }
582
650
  }
@@ -1,5 +1,21 @@
1
+ //
2
+ // Grid system
3
+ // --------------------------------------------------
4
+
5
+
1
6
  // Fixed (940px)
2
7
  @include grid-core($gridColumnWidth, $gridGutterWidth);
3
8
 
4
9
  // Fluid (940px)
5
- @include grid-fluid($fluidGridColumnWidth, $fluidGridGutterWidth);
10
+ @include grid-fluid($fluidGridColumnWidth, $fluidGridGutterWidth);
11
+
12
+ // Reset utility classes due to specificity
13
+ [class*="span"].hide,
14
+ .row-fluid [class*="span"].hide {
15
+ display: none;
16
+ }
17
+
18
+ [class*="span"].pull-right,
19
+ .row-fluid [class*="span"].pull-right {
20
+ float: right;
21
+ }
@@ -1,5 +1,7 @@
1
- // HERO UNIT
2
- // ---------
1
+ //
2
+ // Hero unit
3
+ // --------------------------------------------------
4
+
3
5
 
4
6
  .hero-unit {
5
7
  padding: 60px;
@@ -1,5 +1,7 @@
1
- // LABELS & BADGES
2
- // ---------------
1
+ //
2
+ // Labels and badges
3
+ // --------------------------------------------------
4
+
3
5
 
4
6
  // Base classes
5
7
  .label,
@@ -36,17 +38,32 @@ a {
36
38
  // Colors
37
39
  // Only give background-color difference to links (and to simplify, we don't qualifty with `a` but [href] attribute)
38
40
  // Important (red)
39
- .label-important, .badge-important { background-color: $errorText; }
40
- .label-important[href], .badge-important[href] { background-color: darken($errorText, 10%); }
41
+ .label-important, .badge-important { background-color: $errorText; }
42
+ .label-important[href], .badge-important[href] { background-color: darken($errorText, 10%); }
41
43
  // Warnings (orange)
42
- .label-warning, .badge-warning { background-color: $orange; }
43
- .label-warning[href], .badge-warning[href] { background-color: darken($orange, 10%); }
44
+ .label-warning, .badge-warning { background-color: $orange; }
45
+ .label-warning[href], .badge-warning[href] { background-color: darken($orange, 10%); }
44
46
  // Success (green)
45
- .label-success, .badge-success { background-color: $successText; }
46
- .label-success[href], .badge-success[href] { background-color: darken($successText, 10%); }
47
+ .label-success, .badge-success { background-color: $successText; }
48
+ .label-success[href], .badge-success[href] { background-color: darken($successText, 10%); }
47
49
  // Info (turquoise)
48
- .label-info, .badge-info { background-color: $infoText; }
49
- .label-info[href], .badge-info[href] { background-color: darken($infoText, 10%); }
50
+ .label-info, .badge-info { background-color: $infoText; }
51
+ .label-info[href], .badge-info[href] { background-color: darken($infoText, 10%); }
50
52
  // Inverse (black)
51
- .label-inverse, .badge-inverse { background-color: $grayDark; }
52
- .label-inverse[href], .badge-inverse[href] { background-color: darken($grayDark, 10%); }
53
+ .label-inverse, .badge-inverse { background-color: $grayDark; }
54
+ .label-inverse[href], .badge-inverse[href] { background-color: darken($grayDark, 10%); }
55
+
56
+ // Quick fix for labels/badges in buttons
57
+ .btn {
58
+ .label,
59
+ .badge {
60
+ position: relative;
61
+ top: -1px;
62
+ }
63
+ }
64
+ .btn-mini {
65
+ .label,
66
+ .badge {
67
+ top: 0;
68
+ }
69
+ }