compass_twitter_bootstrap 2.0.1.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. data/README.md +17 -0
  2. data/build/convert.rb +2 -12
  3. data/lib/compass_twitter_bootstrap/version.rb +1 -1
  4. data/stylesheets/_compass_twitter_bootstrap.scss +2 -2
  5. data/stylesheets/_compass_twitter_bootstrap_awesome.scss +66 -0
  6. data/stylesheets/_compass_twitter_bootstrap_responsive.scss +14 -293
  7. data/stylesheets/compass_twitter_bootstrap/_accordion.scss +6 -1
  8. data/stylesheets/compass_twitter_bootstrap/_alerts.scss +3 -15
  9. data/stylesheets/compass_twitter_bootstrap/_breadcrumbs.scss +5 -3
  10. data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +82 -39
  11. data/stylesheets/compass_twitter_bootstrap/_buttons.scss +38 -30
  12. data/stylesheets/compass_twitter_bootstrap/_carousel.scss +5 -5
  13. data/stylesheets/compass_twitter_bootstrap/_close.scss +13 -2
  14. data/stylesheets/compass_twitter_bootstrap/_code.scss +9 -9
  15. data/stylesheets/compass_twitter_bootstrap/_component-animations.scss +10 -8
  16. data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +62 -49
  17. data/stylesheets/compass_twitter_bootstrap/_font-awesome.scss +267 -0
  18. data/stylesheets/compass_twitter_bootstrap/_forms.scss +141 -77
  19. data/stylesheets/compass_twitter_bootstrap/_grid.scss +2 -5
  20. data/stylesheets/compass_twitter_bootstrap/_hero-unit.scss +4 -2
  21. data/stylesheets/compass_twitter_bootstrap/_labels-badges.scss +63 -0
  22. data/stylesheets/compass_twitter_bootstrap/_layouts.scss +3 -3
  23. data/stylesheets/compass_twitter_bootstrap/_mixins.scss +275 -255
  24. data/stylesheets/compass_twitter_bootstrap/_modals.scss +19 -12
  25. data/stylesheets/compass_twitter_bootstrap/_navbar.scss +146 -81
  26. data/stylesheets/compass_twitter_bootstrap/_navs.scss +77 -52
  27. data/stylesheets/compass_twitter_bootstrap/_pager.scss +8 -2
  28. data/stylesheets/compass_twitter_bootstrap/_pagination.scss +6 -5
  29. data/stylesheets/compass_twitter_bootstrap/_popovers.scss +9 -9
  30. data/stylesheets/compass_twitter_bootstrap/_progress-bars.scss +41 -19
  31. data/stylesheets/compass_twitter_bootstrap/_reset.scss +4 -4
  32. data/stylesheets/compass_twitter_bootstrap/_responsive-1200px-min.scss +26 -0
  33. data/stylesheets/compass_twitter_bootstrap/_responsive-767px-max.scss +149 -0
  34. data/stylesheets/compass_twitter_bootstrap/_responsive-768px-979px.scss +17 -0
  35. data/stylesheets/compass_twitter_bootstrap/_responsive-navbar.scss +146 -0
  36. data/stylesheets/compass_twitter_bootstrap/_responsive-utilities.scss +41 -0
  37. data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +4 -4
  38. data/stylesheets/compass_twitter_bootstrap/_sprites.scss +42 -9
  39. data/stylesheets/compass_twitter_bootstrap/_tables.scss +60 -34
  40. data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +18 -6
  41. data/stylesheets/compass_twitter_bootstrap/_tooltip.scss +7 -7
  42. data/stylesheets/compass_twitter_bootstrap/_type.scss +28 -11
  43. data/stylesheets/compass_twitter_bootstrap/_variables.scss +107 -9
  44. data/stylesheets/compass_twitter_bootstrap/_wells.scss +13 -2
  45. data/stylesheets_sass/_compass_twitter_bootstrap.sass +2 -2
  46. data/stylesheets_sass/_compass_twitter_bootstrap_awesome.sass +70 -0
  47. data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +13 -224
  48. data/stylesheets_sass/compass_twitter_bootstrap/_accordion.sass +5 -1
  49. data/stylesheets_sass/compass_twitter_bootstrap/_alerts.sass +3 -14
  50. data/stylesheets_sass/compass_twitter_bootstrap/_breadcrumbs.sass +5 -3
  51. data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +73 -36
  52. data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +39 -28
  53. data/stylesheets_sass/compass_twitter_bootstrap/_carousel.sass +5 -5
  54. data/stylesheets_sass/compass_twitter_bootstrap/_close.sass +12 -2
  55. data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +10 -9
  56. data/stylesheets_sass/compass_twitter_bootstrap/_component-animations.sass +5 -5
  57. data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +57 -47
  58. data/stylesheets_sass/compass_twitter_bootstrap/_font-awesome.sass +515 -0
  59. data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +140 -76
  60. data/stylesheets_sass/compass_twitter_bootstrap/_grid.sass +2 -5
  61. data/stylesheets_sass/compass_twitter_bootstrap/_hero-unit.sass +4 -2
  62. data/stylesheets_sass/compass_twitter_bootstrap/_labels-badges.sass +85 -0
  63. data/stylesheets_sass/compass_twitter_bootstrap/_layouts.sass +3 -3
  64. data/stylesheets_sass/compass_twitter_bootstrap/_mixins.sass +277 -260
  65. data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +19 -12
  66. data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +138 -78
  67. data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +77 -51
  68. data/stylesheets_sass/compass_twitter_bootstrap/_pager.sass +8 -2
  69. data/stylesheets_sass/compass_twitter_bootstrap/_pagination.sass +6 -5
  70. data/stylesheets_sass/compass_twitter_bootstrap/_popovers.sass +9 -9
  71. data/stylesheets_sass/compass_twitter_bootstrap/_progress-bars.sass +44 -19
  72. data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +4 -3
  73. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-1200px-min.sass +17 -0
  74. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-767px-max.sass +115 -0
  75. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-768px-979px.sass +11 -0
  76. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-navbar.sass +115 -0
  77. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-utilities.sass +56 -0
  78. data/stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass +4 -4
  79. data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +70 -7
  80. data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +72 -34
  81. data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +15 -5
  82. data/stylesheets_sass/compass_twitter_bootstrap/_tooltip.sass +7 -7
  83. data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +27 -11
  84. data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +105 -8
  85. data/stylesheets_sass/compass_twitter_bootstrap/_wells.sass +11 -2
  86. data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
  87. data/vendor/assets/fonts/fontawesome-webfont.svg +175 -0
  88. data/vendor/assets/fonts/fontawesome-webfont.svgz +0 -0
  89. data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
  90. data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
  91. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  92. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  93. data/vendor/assets/javascripts/bootstrap-alert.js +28 -32
  94. data/vendor/assets/javascripts/bootstrap-all.js +12 -0
  95. data/vendor/assets/javascripts/bootstrap-button.js +32 -34
  96. data/vendor/assets/javascripts/bootstrap-carousel.js +33 -21
  97. data/vendor/assets/javascripts/bootstrap-collapse.js +47 -26
  98. data/vendor/assets/javascripts/bootstrap-dropdown.js +18 -10
  99. data/vendor/assets/javascripts/bootstrap-modal.js +25 -17
  100. data/vendor/assets/javascripts/bootstrap-popover.js +13 -10
  101. data/vendor/assets/javascripts/bootstrap-scrollspy.js +44 -18
  102. data/vendor/assets/javascripts/bootstrap-tab.js +12 -7
  103. data/vendor/assets/javascripts/bootstrap-tooltip.js +40 -35
  104. data/vendor/assets/javascripts/bootstrap-transition.js +30 -20
  105. data/vendor/assets/javascripts/bootstrap-typeahead.js +29 -15
  106. metadata +29 -9
  107. data/stylesheets/compass_twitter_bootstrap/_labels.scss +0 -32
  108. data/stylesheets_sass/compass_twitter_bootstrap/_labels.sass +0 -42
@@ -11,7 +11,7 @@
11
11
  .accordion-group {
12
12
  margin-bottom: 2px;
13
13
  border: 1px solid #e5e5e5;
14
- @include border-radius(4px);
14
+ @include bootstrap-border-radius(4px);
15
15
  }
16
16
  .accordion-heading {
17
17
  border-bottom: 0;
@@ -21,6 +21,11 @@
21
21
  padding: 8px 15px;
22
22
  }
23
23
 
24
+ // General toggle styles
25
+ .accordion-toggle {
26
+ cursor: pointer;
27
+ }
28
+
24
29
  // Inner needs the styles because you can't animate properly with any styles on the element
25
30
  .accordion-inner {
26
31
  padding: 9px 15px;
@@ -8,11 +8,11 @@
8
8
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
9
9
  background-color: $warningBackground;
10
10
  border: 1px solid $warningBorder;
11
- @include border-radius(4px);
11
+ @include bootstrap-border-radius(4px);
12
+ color: $warningText;
12
13
  }
13
- .alert,
14
14
  .alert-heading {
15
- color: $warningText;
15
+ color: inherit;
16
16
  }
17
17
 
18
18
  // Adjust close link position
@@ -29,32 +29,20 @@
29
29
  .alert-success {
30
30
  background-color: $successBackground;
31
31
  border-color: $successBorder;
32
- }
33
- .alert-success,
34
- .alert-success .alert-heading {
35
32
  color: $successText;
36
33
  }
37
34
  .alert-danger,
38
35
  .alert-error {
39
36
  background-color: $errorBackground;
40
37
  border-color: $errorBorder;
41
- }
42
- .alert-danger,
43
- .alert-error,
44
- .alert-danger .alert-heading,
45
- .alert-error .alert-heading {
46
38
  color: $errorText;
47
39
  }
48
40
  .alert-info {
49
41
  background-color: $infoBackground;
50
42
  border-color: $infoBorder;
51
- }
52
- .alert-info,
53
- .alert-info .alert-heading {
54
43
  color: $infoText;
55
44
  }
56
45
 
57
-
58
46
  // Block alerts
59
47
  // ------------------------
60
48
  .alert-block {
@@ -4,12 +4,14 @@
4
4
  .breadcrumb {
5
5
  padding: 7px 14px;
6
6
  margin: 0 0 $baseLineHeight;
7
- @include gradient-vertical($white, #f5f5f5);
7
+ list-style: none;
8
+ @include bootstrap-gradient-vertical($white, #f5f5f5);
8
9
  border: 1px solid #ddd;
9
- @include border-radius(3px);
10
- @include box-shadow(inset 0 1px 0 $white);
10
+ @include bootstrap-border-radius(3px);
11
+ @include bootstrap-box-shadow(inset 0 1px 0 $white);
11
12
  li {
12
13
  display: inline-block;
14
+ @include bootstrap-ie7-inline-block();
13
15
  text-shadow: 0 1px 0 $white;
14
16
  }
15
17
  .divider {
@@ -5,8 +5,8 @@
5
5
  // Make the div behave like a button
6
6
  .btn-group {
7
7
  position: relative;
8
- @include clearfix(); // clears the floated buttons
9
- @include ie7-restore-left-whitespace();
8
+ @include bootstrap-clearfix(); // clears the floated buttons
9
+ @include bootstrap-ie7-restore-left-whitespace();
10
10
  }
11
11
 
12
12
  // Space out series of button groups
@@ -20,19 +20,19 @@
20
20
  margin-bottom: $baseLineHeight / 2;
21
21
  .btn-group {
22
22
  display: inline-block;
23
- @include ie7-inline-block();
23
+ @include bootstrap-ie7-inline-block();
24
24
  }
25
25
  }
26
26
 
27
27
  // Float them, remove border radius, then re-add to first and last elements
28
- .btn-group .btn {
28
+ .btn-group > .btn {
29
29
  position: relative;
30
30
  float: left;
31
31
  margin-left: -1px;
32
- @include border-radius(0);
32
+ @include bootstrap-border-radius(0);
33
33
  }
34
34
  // 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
35
- .btn-group .btn:first-child {
35
+ .btn-group > .btn:first-child {
36
36
  margin-left: 0;
37
37
  -webkit-border-top-left-radius: 4px;
38
38
  -moz-border-radius-topleft: 4px;
@@ -41,8 +41,9 @@
41
41
  -moz-border-radius-bottomleft: 4px;
42
42
  border-bottom-left-radius: 4px;
43
43
  }
44
- .btn-group .btn:last-child,
45
- .btn-group .dropdown-toggle {
44
+ // Need .dropdown-toggle since :last-child doesn't apply given a .dropdown-menu immediately after it
45
+ .btn-group > .btn:last-child,
46
+ .btn-group > .dropdown-toggle {
46
47
  -webkit-border-top-right-radius: 4px;
47
48
  -moz-border-radius-topright: 4px;
48
49
  border-top-right-radius: 4px;
@@ -51,7 +52,7 @@
51
52
  border-bottom-right-radius: 4px;
52
53
  }
53
54
  // Reset corners for large buttons
54
- .btn-group .btn.large:first-child {
55
+ .btn-group > .btn.large:first-child {
55
56
  margin-left: 0;
56
57
  -webkit-border-top-left-radius: 6px;
57
58
  -moz-border-radius-topleft: 6px;
@@ -60,8 +61,8 @@
60
61
  -moz-border-radius-bottomleft: 6px;
61
62
  border-bottom-left-radius: 6px;
62
63
  }
63
- .btn-group .btn.large:last-child,
64
- .btn-group .large.dropdown-toggle {
64
+ .btn-group > .btn.large:last-child,
65
+ .btn-group > .large.dropdown-toggle {
65
66
  -webkit-border-top-right-radius: 6px;
66
67
  -moz-border-radius-topright: 6px;
67
68
  border-top-right-radius: 6px;
@@ -71,10 +72,10 @@
71
72
  }
72
73
 
73
74
  // On hover/focus/active, bring the proper btn to front
74
- .btn-group .btn:hover,
75
- .btn-group .btn:focus,
76
- .btn-group .btn:active,
77
- .btn-group .btn.active {
75
+ .btn-group > .btn:hover,
76
+ .btn-group > .btn:focus,
77
+ .btn-group > .btn:active,
78
+ .btn-group > .btn.active {
78
79
  z-index: 2;
79
80
  }
80
81
 
@@ -90,34 +91,60 @@
90
91
  // ----------------------
91
92
 
92
93
  // Give the line between buttons some depth
93
- .btn-group .dropdown-toggle {
94
+ .btn-group > .dropdown-toggle {
94
95
  padding-left: 8px;
95
96
  padding-right: 8px;
96
- $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);
97
- @include box-shadow($shadow);
98
- *padding-top: 5px;
99
- *padding-bottom: 5px;
97
+ @include bootstrap-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)");
98
+ *padding-top: 4px;
99
+ *padding-bottom: 4px;
100
+ }
101
+ .btn-group > .btn-mini.dropdown-toggle {
102
+ padding-left: 5px;
103
+ padding-right: 5px;
104
+ }
105
+ .btn-group > .btn-small.dropdown-toggle {
106
+ *padding-top: 4px;
107
+ *padding-bottom: 4px;
108
+ }
109
+ .btn-group > .btn-large.dropdown-toggle {
110
+ padding-left: 12px;
111
+ padding-right: 12px;
100
112
  }
101
113
 
102
114
  .btn-group.open {
103
- // IE7's z-index only goes to the nearest positioned ancestor, which would
104
- // make the menu appear below buttons that appeared later on the page
105
- *z-index: $zindexDropdown;
106
-
107
- // Reposition menu on open and round all corners
108
- .dropdown-menu {
109
- display: block;
110
- margin-top: 1px;
111
- @include border-radius(5px);
112
- }
113
115
 
116
+ // The clickable button for toggling the menu
117
+ // Remove the gradient and set the same inset shadow as the :active state
114
118
  .dropdown-toggle {
115
119
  background-image: none;
116
- $shadow: inset 0 1px 6px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
117
- @include box-shadow($shadow);
120
+ @include bootstrap-box-shadow("inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
121
+ }
122
+
123
+ // Keep the hover's background when dropdown is open
124
+ .btn.dropdown-toggle {
125
+ background-color: $btnBackgroundHighlight;
126
+ }
127
+ .btn-primary.dropdown-toggle {
128
+ background-color: $btnPrimaryBackgroundHighlight;
129
+ }
130
+ .btn-warning.dropdown-toggle {
131
+ background-color: $btnWarningBackgroundHighlight;
132
+ }
133
+ .btn-danger.dropdown-toggle {
134
+ background-color: $btnDangerBackgroundHighlight;
135
+ }
136
+ .btn-success.dropdown-toggle {
137
+ background-color: $btnSuccessBackgroundHighlight;
138
+ }
139
+ .btn-info.dropdown-toggle {
140
+ background-color: $btnInfoBackgroundHighlight;
141
+ }
142
+ .btn-inverse.dropdown-toggle {
143
+ background-color: $btnInverseBackgroundHighlight;
118
144
  }
119
145
  }
120
146
 
147
+
121
148
  // Reposition the caret
122
149
  .btn .caret {
123
150
  margin-top: 7px;
@@ -125,24 +152,40 @@
125
152
  }
126
153
  .btn:hover .caret,
127
154
  .open.btn-group .caret {
128
- @include opacity(1.0);
155
+ @include bootstrap-opacity(100);
156
+ }
157
+ // Carets in other button sizes
158
+ .btn-mini .caret {
159
+ margin-top: 5px;
160
+ }
161
+ .btn-small .caret {
162
+ margin-top: 6px;
163
+ }
164
+ .btn-large .caret {
165
+ margin-top: 6px;
166
+ border-left-width: 5px;
167
+ border-right-width: 5px;
168
+ border-top-width: 5px;
129
169
  }
170
+ // Upside down carets for .dropup
171
+ .dropup .btn-large .caret {
172
+ border-bottom: 5px solid $black;
173
+ border-top: 0;
174
+ }
175
+
130
176
 
131
177
 
132
178
  // Account for other colors
133
179
  .btn-primary,
180
+ .btn-warning,
134
181
  .btn-danger,
135
182
  .btn-info,
136
183
  .btn-success,
137
184
  .btn-inverse {
138
185
  .caret {
139
186
  border-top-color: $white;
140
- @include opacity(0.75);
187
+ border-bottom-color: $white;
188
+ @include bootstrap-opacity(75);
141
189
  }
142
190
  }
143
191
 
144
- // Small button dropdowns
145
- .btn-small .caret {
146
- margin-top: 4px;
147
- }
148
-
@@ -8,25 +8,24 @@
8
8
  // Core
9
9
  .btn {
10
10
  display: inline-block;
11
+ @include bootstrap-ie7-inline-block();
11
12
  padding: 4px 10px 4px;
12
13
  margin-bottom: 0; // For input.btn
13
14
  font-size: $baseFontSize;
14
15
  line-height: $baseLineHeight;
16
+ *line-height: 20px;
15
17
  color: $grayDark;
16
18
  text-align: center;
17
19
  text-shadow: 0 1px 1px rgba(255,255,255,.75);
18
20
  vertical-align: middle;
19
- @include buttonBackground($white, darken($white, 10%));
20
- border: 1px solid #ccc;
21
- border-bottom-color: #bbb;
22
- @include border-radius(4px);
23
- $shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
24
- @include box-shadow($shadow);
25
21
  cursor: pointer;
26
-
27
- // Give IE7 some love
28
- @include reset-filter();
29
- @include ie7-restore-left-whitespace();
22
+ @include bootstrap-buttonBackground($btnBackground, $btnBackgroundHighlight);
23
+ border: 1px solid $btnBorder;
24
+ *border: 0; // Remove the border to prevent IE7's black border on input:focus
25
+ border-bottom-color: darken($btnBorder, 10%);
26
+ @include bootstrap-border-radius(4px);
27
+ @include bootstrap-ie7-restore-left-whitespace(); // Give IE7 some love
28
+ @include bootstrap-box-shadow("inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
30
29
  }
31
30
 
32
31
  // Hover state
@@ -34,37 +33,37 @@
34
33
  color: $grayDark;
35
34
  text-decoration: none;
36
35
  background-color: darken($white, 10%);
36
+ *background-color: darken($white, 15%); /* Buttons in IE7 don't get borders, so darken on hover */
37
37
  background-position: 0 -15px;
38
38
 
39
39
  // transition is only when going to hover, otherwise the background
40
40
  // behind the gradient (there for IE<=9 fallback) gets mismatched
41
- @include transition(background-position .1s linear);
41
+ @include bootstrap-transition(background-position .1s linear);
42
42
  }
43
43
 
44
44
  // Focus state for keyboard and accessibility
45
45
  .btn:focus {
46
- @include tab-focus();
46
+ @include bootstrap-tab-focus();
47
47
  }
48
48
 
49
49
  // Active state
50
50
  .btn.active,
51
51
  .btn:active {
52
- background-image: none;
53
- $shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
54
- @include box-shadow($shadow);
55
52
  background-color: darken($white, 10%);
56
- background-color: darken($white, 15%) e("\9");
53
+ background-color: darken($white, 15%)\9;
54
+ background-image: none;
57
55
  outline: 0;
56
+ @include bootstrap-box-shadow("inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
58
57
  }
59
58
 
60
59
  // Disabled state
61
60
  .btn.disabled,
62
61
  .btn[disabled] {
63
62
  cursor: default;
64
- background-image: none;
65
63
  background-color: darken($white, 10%);
66
- @include opacity(0.65);
67
- @include box-shadow(none);
64
+ background-image: none;
65
+ @include bootstrap-opacity(65);
66
+ @include bootstrap-box-shadow(none);
68
67
  }
69
68
 
70
69
 
@@ -76,7 +75,7 @@
76
75
  padding: 9px 14px;
77
76
  font-size: $baseFontSize + 2px;
78
77
  line-height: normal;
79
- @include border-radius(5px);
78
+ @include bootstrap-border-radius(5px);
80
79
  }
81
80
  .btn-large [class^="icon-"] {
82
81
  margin-top: 1px;
@@ -117,8 +116,8 @@
117
116
  .btn-info:hover,
118
117
  .btn-inverse,
119
118
  .btn-inverse:hover {
120
- text-shadow: 0 -1px 0 rgba(0,0,0,.25);
121
119
  color: $white;
120
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
122
121
  }
123
122
  // Provide *some* extra contrast for those who can get it
124
123
  .btn-primary.active,
@@ -126,34 +125,39 @@
126
125
  .btn-danger.active,
127
126
  .btn-success.active,
128
127
  .btn-info.active,
129
- .btn-dark.active {
128
+ .btn-inverse.active {
130
129
  color: rgba(255,255,255,.75);
131
130
  }
132
131
 
133
132
  // Set the backgrounds
134
133
  // -------------------------
134
+ .btn {
135
+ // reset here as of 2.0.3 due to Recess property order
136
+ border-color: #ccc;
137
+ border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);
138
+ }
135
139
  .btn-primary {
136
- @include buttonBackground($primaryButtonBackground, adjust-hue($primaryButtonBackground, 20));
140
+ @include bootstrap-buttonBackground($btnPrimaryBackground, $btnPrimaryBackgroundHighlight);
137
141
  }
138
142
  // Warning appears are orange
139
143
  .btn-warning {
140
- @include buttonBackground(lighten($orange, 15%), $orange);
144
+ @include bootstrap-buttonBackground($btnWarningBackground, $btnWarningBackgroundHighlight);
141
145
  }
142
146
  // Danger and error appear as red
143
147
  .btn-danger {
144
- @include buttonBackground(#ee5f5b, #bd362f);
148
+ @include bootstrap-buttonBackground($btnDangerBackground, $btnDangerBackgroundHighlight);
145
149
  }
146
150
  // Success appears as green
147
151
  .btn-success {
148
- @include buttonBackground(#62c462, #51a351);
152
+ @include bootstrap-buttonBackground($btnSuccessBackground, $btnSuccessBackgroundHighlight);
149
153
  }
150
154
  // Info appears as a neutral blue
151
155
  .btn-info {
152
- @include buttonBackground(#5bc0de, #2f96b4);
156
+ @include bootstrap-buttonBackground($btnInfoBackground, $btnInfoBackgroundHighlight);
153
157
  }
154
158
  // Inverse appears as dark gray
155
159
  .btn-inverse {
156
- @include buttonBackground(#454545, #262626);
160
+ @include bootstrap-buttonBackground($btnInverseBackground, $btnInverseBackgroundHighlight);
157
161
  }
158
162
 
159
163
 
@@ -172,12 +176,16 @@ input[type="submit"].btn {
172
176
  // IE7 has some default padding on button controls
173
177
  *padding-top: 2px;
174
178
  *padding-bottom: 2px;
175
- &.large {
179
+ &.btn-large {
176
180
  *padding-top: 7px;
177
181
  *padding-bottom: 7px;
178
182
  }
179
- &.small {
183
+ &.btn-small {
180
184
  *padding-top: 3px;
181
185
  *padding-bottom: 3px;
182
186
  }
187
+ &.btn-mini {
188
+ *padding-top: 1px;
189
+ *padding-bottom: 1px;
190
+ }
183
191
  }