bootstrap-sass-rails 2.0.2.2 → 2.0.3.0pre1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. data/lib/bootstrap/sass/rails/version.rb +1 -1
  2. data/test/cases/usage_css_spec.rb +7 -4
  3. data/test/dummy/log/test.log +610 -0
  4. data/test/dummy/tmp/cache/assets/C29/E80/sprockets%2F8f076727207424919c7170c7157bbe37 +0 -0
  5. data/test/dummy/tmp/cache/assets/D04/3C0/sprockets%2F29d763bd40cc25622b1f04b876a5c3e3 +0 -0
  6. data/test/dummy/tmp/cache/assets/D3F/FA0/sprockets%2F22c8366fdbaaa2872b202dfe7376629f +0 -0
  7. data/test/dummy/tmp/cache/assets/D7C/3E0/sprockets%2F53c81ab87ec56a748428a59da9a5d5de +0 -0
  8. data/test/dummy/tmp/cache/assets/E3A/D90/sprockets%2Fce0dbefdb4416ebc42589ecdbf7d7857 +0 -0
  9. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_accordion.scssc +0 -0
  10. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_button-groups.scssc +0 -0
  11. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_buttons.scssc +0 -0
  12. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_close.scssc +0 -0
  13. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_code.scssc +0 -0
  14. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_component-animations.scssc +0 -0
  15. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_dropdowns.scssc +0 -0
  16. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_forms.scssc +0 -0
  17. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_labels-badges.scssc +0 -0
  18. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_layouts.scssc +0 -0
  19. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_mixins.scssc +0 -0
  20. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_modals.scssc +0 -0
  21. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_navbar.scssc +0 -0
  22. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_navs.scssc +0 -0
  23. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_progress-bars.scssc +0 -0
  24. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_reset.scssc +0 -0
  25. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_responsive-1200px-min.scssc +0 -0
  26. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_responsive-767px-max.scssc +0 -0
  27. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_responsive-768px-979px.scssc +0 -0
  28. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_responsive-navbar.scssc +0 -0
  29. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_responsive-utilities.scssc +0 -0
  30. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_responsive.scssc +0 -0
  31. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_sprites.scssc +0 -0
  32. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_tables.scssc +0 -0
  33. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_thumbnails.scssc +0 -0
  34. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_type.scssc +0 -0
  35. data/test/dummy/tmp/cache/sass/367107abe8cc7204b7df467455e0644864892d9f/_variables.scssc +0 -0
  36. data/test/dummy/tmp/cache/sass/766526f7d87ffdf0401dde0ec8d49f976470392d/bootstrap.css.scssc +0 -0
  37. data/vendor/assets/javascripts/twitter/bootstrap/alert.js +28 -32
  38. data/vendor/assets/javascripts/twitter/bootstrap/button.js +29 -33
  39. data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +27 -19
  40. data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +44 -25
  41. data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +18 -10
  42. data/vendor/assets/javascripts/twitter/bootstrap/modal.js +25 -17
  43. data/vendor/assets/javascripts/twitter/bootstrap/popover.js +13 -10
  44. data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +43 -17
  45. data/vendor/assets/javascripts/twitter/bootstrap/tab.js +12 -7
  46. data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +40 -35
  47. data/vendor/assets/javascripts/twitter/bootstrap/transition.js +30 -20
  48. data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +25 -11
  49. data/vendor/assets/stylesheets/twitter/bootstrap.css.scss +2 -3
  50. data/vendor/assets/stylesheets/twitter/bootstrap/_accordion.scss +5 -0
  51. data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.scss +55 -36
  52. data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.scss +16 -11
  53. data/vendor/assets/stylesheets/twitter/bootstrap/_close.scss +12 -1
  54. data/vendor/assets/stylesheets/twitter/bootstrap/_code.scss +4 -4
  55. data/vendor/assets/stylesheets/twitter/bootstrap/_component-animations.scss +5 -5
  56. data/vendor/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +15 -20
  57. data/vendor/assets/stylesheets/twitter/bootstrap/_forms.scss +57 -29
  58. data/vendor/assets/stylesheets/twitter/bootstrap/_labels-badges.scss +55 -0
  59. data/vendor/assets/stylesheets/twitter/bootstrap/_layouts.scss +1 -1
  60. data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.scss +54 -36
  61. data/vendor/assets/stylesheets/twitter/bootstrap/_modals.scss +2 -2
  62. data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.scss +64 -41
  63. data/vendor/assets/stylesheets/twitter/bootstrap/_navs.scss +36 -35
  64. data/vendor/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +16 -8
  65. data/vendor/assets/stylesheets/twitter/bootstrap/_reset.scss +3 -3
  66. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-1200px-min.scss +26 -0
  67. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-767px-max.scss +150 -0
  68. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-768px-979px.scss +19 -0
  69. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-navbar.scss +146 -0
  70. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +41 -0
  71. data/vendor/assets/stylesheets/twitter/bootstrap/_responsive.scss +15 -338
  72. data/vendor/assets/stylesheets/twitter/bootstrap/_sprites.scss +25 -5
  73. data/vendor/assets/stylesheets/twitter/bootstrap/_tables.scss +22 -6
  74. data/vendor/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +14 -2
  75. data/vendor/assets/stylesheets/twitter/bootstrap/_type.scss +7 -6
  76. data/vendor/assets/stylesheets/twitter/bootstrap/_variables.scss +10 -5
  77. metadata +30 -17
  78. data/vendor/assets/stylesheets/twitter/bootstrap/_badges.scss +0 -36
  79. data/vendor/assets/stylesheets/twitter/bootstrap/_labels.scss +0 -38
@@ -12,7 +12,18 @@
12
12
  &:hover {
13
13
  color: $black;
14
14
  text-decoration: none;
15
- @include opacity(40);
16
15
  cursor: pointer;
16
+ @include opacity(40);
17
17
  }
18
18
  }
19
+
20
+ // Additional properties for button version
21
+ // iOS requires the button element instead of an anchor tag.
22
+ // If you want the anchor version, it requires `href="#"`.
23
+ button.close {
24
+ padding: 0;
25
+ cursor: pointer;
26
+ background: transparent;
27
+ border: 0;
28
+ -webkit-appearance: none;
29
+ }
@@ -27,14 +27,14 @@ pre {
27
27
  margin: 0 0 $baseLineHeight / 2;
28
28
  font-size: $baseFontSize * .925; // 13px to 12px
29
29
  line-height: $baseLineHeight;
30
+ word-break: break-all;
31
+ word-wrap: break-word;
32
+ white-space: pre;
33
+ white-space: pre-wrap;
30
34
  background-color: #f5f5f5;
31
35
  border: 1px solid #ccc; // fallback for IE7-8
32
36
  border: 1px solid rgba(0,0,0,.15);
33
37
  @include border-radius(4px);
34
- white-space: pre;
35
- white-space: pre-wrap;
36
- word-break: break-all;
37
- word-wrap: break-word;
38
38
 
39
39
  // Make prettyprint styles more spaced out for readability
40
40
  &.prettyprint {
@@ -2,18 +2,18 @@
2
2
  // --------------------
3
3
 
4
4
  .fade {
5
+ @include opacity(0);
5
6
  @include transition(opacity .15s linear);
6
- opacity: 0;
7
7
  &.in {
8
- opacity: 1;
8
+ @include opacity(100);
9
9
  }
10
10
  }
11
11
 
12
12
  .collapse {
13
- @include transition(height .35s ease);
14
- position:relative;
15
- overflow:hidden;
13
+ position: relative;
16
14
  height: 0;
15
+ overflow: hidden;
16
+ @include transition(height .35s ease);
17
17
  &.in {
18
18
  height: auto;
19
19
  }
@@ -2,6 +2,7 @@
2
2
  // --------------
3
3
 
4
4
  // Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
5
+ .dropup,
5
6
  .dropdown {
6
7
  position: relative;
7
8
  }
@@ -21,11 +22,11 @@
21
22
  width: 0;
22
23
  height: 0;
23
24
  vertical-align: top;
24
- border-left: 4px solid transparent;
25
- border-right: 4px solid transparent;
26
25
  border-top: 4px solid $black;
27
- @include opacity(30);
26
+ border-right: 4px solid transparent;
27
+ border-left: 4px solid transparent;
28
28
  content: "";
29
+ @include opacity(30);
29
30
  }
30
31
  // Place the caret
31
32
  .dropdown .caret {
@@ -33,7 +34,7 @@
33
34
  margin-left: 2px;
34
35
  }
35
36
  .dropdown:hover .caret,
36
- .open.dropdown .caret {
37
+ .open .caret {
37
38
  @include opacity(100);
38
39
  }
39
40
 
@@ -44,24 +45,22 @@
44
45
  top: 100%;
45
46
  left: 0;
46
47
  z-index: $zindexDropdown;
47
- float: left;
48
48
  display: none; // none by default, but block on "open" of the menu
49
+ float: left;
49
50
  min-width: 160px;
50
51
  padding: 4px 0;
51
- margin: 0; // override default ul
52
+ margin: 1px 0 0; // override default ul
52
53
  list-style: none;
53
54
  background-color: $dropdownBackground;
54
- border-color: #ccc;
55
- border-color: rgba(0,0,0,.2);
56
- border-style: solid;
57
- border-width: 1px;
58
- @include border-radius(0 0 5px 5px);
55
+ border: 1px solid #ccc;
56
+ border: 1px solid rgba(0,0,0,.2);
57
+ *border-right-width: 2px;
58
+ *border-bottom-width: 2px;
59
+ @include border-radius(5px);
59
60
  @include box-shadow(0 5px 10px rgba(0,0,0,.2));
60
61
  -webkit-background-clip: padding-box;
61
62
  -moz-background-clip: padding;
62
63
  background-clip: padding-box;
63
- *border-right-width: 2px;
64
- *border-bottom-width: 2px;
65
64
 
66
65
  // Aligns the dropdown menu to right
67
66
  &.pull-right {
@@ -98,25 +97,21 @@
98
97
 
99
98
  // Open state for the dropdown
100
99
  // ---------------------------
101
- .dropdown.open {
100
+ .open {
102
101
  // IE7's z-index only goes to the nearest positioned ancestor, which would
103
102
  // make the menu appear below buttons that appeared later on the page
104
103
  *z-index: $zindexDropdown;
105
104
 
106
- .dropdown-toggle {
107
- color: $white;
108
- background: #ccc;
109
- background: rgba(0,0,0,.3);
110
- }
111
105
  .dropdown-menu {
112
106
  display: block;
113
107
  }
114
108
  }
115
109
 
116
110
  // Right aligned dropdowns
111
+ // ---------------------------
117
112
  .pull-right .dropdown-menu {
118
- left: auto;
119
113
  right: 0;
114
+ left: auto;
120
115
  }
121
116
 
122
117
  // Allow for dropdowns to go bottom up (aka, dropup-menu)
@@ -72,8 +72,9 @@ select,
72
72
  font-size: $baseFontSize;
73
73
  line-height: $baseLineHeight;
74
74
  color: $gray;
75
+ background-color: $inputBackground;
75
76
  border: 1px solid $inputBorder;
76
- @include border-radius(3px);
77
+ @include border-radius($inputBorderRadius);
77
78
  }
78
79
  .uneditable-textarea {
79
80
  width: auto;
@@ -98,8 +99,9 @@ input[type="radio"] {
98
99
  *margin-top: 0; /* IE7 */
99
100
  line-height: normal;
100
101
  cursor: pointer;
101
- @include border-radius(0);
102
+ background-color: transparent;
102
103
  border: 0 \9; /* IE9 and down */
104
+ @include border-radius(0);
103
105
  }
104
106
  input[type="image"] {
105
107
  border: 0;
@@ -110,9 +112,9 @@ input[type="file"] {
110
112
  width: auto;
111
113
  padding: initial;
112
114
  line-height: initial;
113
- border: initial;
114
115
  background-color: $inputBackground;
115
116
  background-color: initial;
117
+ border: initial;
116
118
  @include box-shadow(none);
117
119
  }
118
120
 
@@ -172,6 +174,7 @@ input[type="hidden"] {
172
174
  // Indent the labels to position radios/checkboxes as hanging
173
175
  .radio,
174
176
  .checkbox {
177
+ min-height: 18px; // clear the floating input if there is no label text
175
178
  padding-left: 18px;
176
179
  }
177
180
  .radio input[type="radio"],
@@ -214,17 +217,16 @@ textarea {
214
217
  input:focus,
215
218
  textarea:focus {
216
219
  border-color: rgba(82,168,236,.8);
217
- $shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6);
218
- @include box-shadow($shadow);
219
220
  outline: 0;
220
221
  outline: thin dotted \9; /* IE6-9 */
222
+ @include box-shadow("inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6)");
221
223
  }
222
224
  input[type="file"]:focus,
223
225
  input[type="radio"]:focus,
224
226
  input[type="checkbox"]:focus,
225
227
  select:focus {
226
- @include box-shadow(none); // override for file inputs
227
228
  @include tab-focus();
229
+ @include box-shadow(none); // override for file inputs
228
230
  }
229
231
 
230
232
 
@@ -244,7 +246,12 @@ select:focus {
244
246
  input[class*="span"],
245
247
  select[class*="span"],
246
248
  textarea[class*="span"],
247
- .uneditable-input {
249
+ .uneditable-input[class*="span"],
250
+ // Redeclare since the fluid row class is more specific
251
+ .row-fluid input[class*="span"],
252
+ .row-fluid select[class*="span"],
253
+ .row-fluid textarea[class*="span"],
254
+ .row-fluid .uneditable-input[class*="span"] {
248
255
  float: none;
249
256
  margin-left: 0;
250
257
  }
@@ -269,11 +276,17 @@ textarea[disabled],
269
276
  input[readonly],
270
277
  select[readonly],
271
278
  textarea[readonly] {
279
+ cursor: not-allowed;
272
280
  background-color: $inputDisabledBackground;
273
281
  border-color: #ddd;
274
- cursor: not-allowed;
275
282
  }
276
-
283
+ // Explicitly reset the colors here
284
+ input[type="radio"][disabled],
285
+ input[type="checkbox"][disabled],
286
+ input[type="radio"][readonly],
287
+ input[type="checkbox"][readonly] {
288
+ background-color: transparent;
289
+ }
277
290
 
278
291
 
279
292
 
@@ -315,18 +328,19 @@ select:focus:required:invalid {
315
328
  padding: ($baseLineHeight - 1) 20px $baseLineHeight;
316
329
  margin-top: $baseLineHeight;
317
330
  margin-bottom: $baseLineHeight;
318
- background-color: $grayLighter;
331
+ background-color: $formActionsBackground;
319
332
  border-top: 1px solid #ddd;
320
333
  @include clearfix(); // Adding clearfix to allow for .pull-right button containers
321
334
  }
322
335
 
323
336
  // For text that needs to appear as an input but should not be an input
324
337
  .uneditable-input {
325
- display: block;
338
+ overflow: hidden; // prevent text from wrapping, but still cut it off like an input does
339
+ white-space: nowrap;
340
+ cursor: not-allowed;
326
341
  background-color: $inputBackground;
327
342
  border-color: #eee;
328
343
  @include box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
329
- cursor: not-allowed;
330
344
  }
331
345
 
332
346
  // Placeholder text gets special styles; can't be bundled together though for some reason
@@ -366,10 +380,13 @@ select:focus:required:invalid {
366
380
  input,
367
381
  select,
368
382
  .uneditable-input {
383
+ 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
384
+ margin-bottom: 0; // prevent bottom margin from screwing up alignment in stacked forms
369
385
  *margin-left: 0;
370
- @include border-radius(0 3px 3px 0);
386
+ vertical-align: middle;
387
+ @include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
388
+ // Make input on top when focused so blue border and shadow always show
371
389
  &:focus {
372
- position: relative;
373
390
  z-index: 2;
374
391
  }
375
392
  }
@@ -379,8 +396,8 @@ select:focus:required:invalid {
379
396
  .add-on {
380
397
  display: inline-block;
381
398
  width: auto;
382
- min-width: 16px;
383
399
  height: $baseLineHeight;
400
+ min-width: 16px;
384
401
  padding: 4px 5px;
385
402
  font-weight: normal;
386
403
  line-height: $baseLineHeight;
@@ -392,7 +409,8 @@ select:focus:required:invalid {
392
409
  }
393
410
  .add-on,
394
411
  .btn {
395
- @include border-radius(3px 0 0 3px);
412
+ margin-left: -1px;
413
+ @include border-radius(0);
396
414
  }
397
415
  .active {
398
416
  background-color: lighten($green, 30);
@@ -404,21 +422,24 @@ select:focus:required:invalid {
404
422
  .btn {
405
423
  margin-right: -1px;
406
424
  }
425
+ .add-on:first-child,
426
+ .btn:first-child {
427
+ @include border-radius($inputBorderRadius 0 0 $inputBorderRadius);
428
+ }
407
429
  }
408
430
  .input-append {
409
431
  input,
410
432
  select,
411
433
  .uneditable-input {
412
- @include border-radius(3px 0 0 3px);
434
+ @include border-radius($inputBorderRadius 0 0 $inputBorderRadius);
413
435
  }
414
436
  .uneditable-input {
415
- border-left-color: #eee;
416
437
  border-right-color: #ccc;
438
+ border-left-color: #eee;
417
439
  }
418
- .add-on,
419
- .btn {
420
- margin-left: -1px;
421
- @include border-radius(0 3px 3px 0);
440
+ .add-on:last-child,
441
+ .btn:last-child {
442
+ @include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
422
443
  }
423
444
  }
424
445
  // Remove all border-radius for inputs with both prepend and append
@@ -431,12 +452,12 @@ select:focus:required:invalid {
431
452
  .add-on:first-child,
432
453
  .btn:first-child {
433
454
  margin-right: -1px;
434
- @include border-radius(3px 0 0 3px);
455
+ @include border-radius($inputBorderRadius 0 0 $inputBorderRadius);
435
456
  }
436
457
  .add-on:last-child,
437
458
  .btn:last-child {
438
459
  margin-left: -1px;
439
- @include border-radius(0 3px 3px 0);
460
+ @include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
440
461
  }
441
462
  }
442
463
 
@@ -445,8 +466,10 @@ select:focus:required:invalid {
445
466
  // -----------
446
467
 
447
468
  .search-query {
448
- padding-left: 14px;
449
469
  padding-right: 14px;
470
+ padding-right: 4px \9;
471
+ padding-left: 14px;
472
+ padding-left: 4px \9; /* IE7-8 doesn't have border-radius, so don't indent the padding */
450
473
  margin-bottom: 0; // remove the default margin on all inputs
451
474
  @include border-radius(14px);
452
475
  }
@@ -470,6 +493,7 @@ select:focus:required:invalid {
470
493
  .input-prepend,
471
494
  .input-append {
472
495
  display: inline-block;
496
+ @include ie7-inline-block();
473
497
  margin-bottom: 0;
474
498
  }
475
499
  // Re-hide hidden elements due to specifity
@@ -503,8 +527,8 @@ select:focus:required:invalid {
503
527
  .form-inline .radio input[type="radio"],
504
528
  .form-inline .checkbox input[type="checkbox"] {
505
529
  float: left;
506
- margin-left: 0;
507
530
  margin-right: 3px;
531
+ margin-left: 0;
508
532
  }
509
533
 
510
534
 
@@ -537,11 +561,15 @@ legend + .control-group {
537
561
  }
538
562
  // Move over all input controls and content
539
563
  .controls {
540
- margin-left: 160px;
541
- /* Super jank IE7 fix to ensure the inputs in .input-append and input-prepend don't inherit the margin of the parent, in this case .controls */
564
+ // Super jank IE7 fix to ensure the inputs in .input-append and input-prepend
565
+ // don't inherit the margin of the parent, in this case .controls
542
566
  *display: inline-block;
543
- *margin-left: 0;
544
567
  *padding-left: 20px;
568
+ margin-left: 160px;
569
+ *margin-left: 0;
570
+ &:first-child {
571
+ *padding-left: 160px;
572
+ }
545
573
  }
546
574
  // Remove bottom margin on block level help text since that's accounted for on .control-group
547
575
  .help-block {
@@ -0,0 +1,55 @@
1
+ // LABELS & BADGES
2
+ // ---------------
3
+
4
+ // Base classes
5
+ .label,
6
+ .badge {
7
+ font-size: $baseFontSize * .846;
8
+ font-weight: bold;
9
+ line-height: 13px; // ensure proper line-height if floated
10
+ color: $white;
11
+ vertical-align: middle;
12
+ white-space: nowrap;
13
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
14
+ background-color: $grayLight;
15
+ }
16
+ // Set unique padding and border-radii
17
+ .label {
18
+ padding: 1px 4px 2px;
19
+ @include border-radius(3px);
20
+ }
21
+ .badge {
22
+ padding: 1px 9px 2px;
23
+ @include border-radius(9px);
24
+ }
25
+
26
+ // Hover state, but only for links
27
+ a {
28
+ &.label:hover,
29
+ &.badge:hover {
30
+ color: $white;
31
+ text-decoration: none;
32
+ cursor: pointer;
33
+ }
34
+ }
35
+
36
+ // Colors
37
+ // Only give background-color difference to links (and to simplify, we don't qualifty with `a` but [href] attribute)
38
+ .label,
39
+ .badge {
40
+ // Important (red)
41
+ &-important { background-color: $errorText; }
42
+ &-important:hover { background-color: darken($errorText, 10%); }
43
+ // Warnings (orange)
44
+ &-warning { background-color: $orange; }
45
+ &-warning:hover { background-color: darken($orange, 10%); }
46
+ // Success (green)
47
+ &-success { background-color: $successText; }
48
+ &-success:hover { background-color: darken($successText, 10%); }
49
+ // Info (turquoise)
50
+ &-info { background-color: $infoText; }
51
+ &-info:hover { background-color: darken($infoText, 10%); }
52
+ // Inverse (black)
53
+ &-inverse { background-color: $grayDark; }
54
+ &-inverse:hover { background-color: darken($grayDark, 10%); }
55
+ }