bootstrapped-rails 2.0.7.1 → 2.0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. data/lib/bootstrapped-rails/version.rb +1 -1
  2. data/readme.md +1 -9
  3. data/vendor/assets/stylesheets/{bootstrapped/responsive.scss → _bootstrap-responsive.scss} +28 -33
  4. data/vendor/assets/stylesheets/_bootstrap.scss +63 -0
  5. data/vendor/assets/stylesheets/bootstrapped-responsive.css.scss +1 -0
  6. data/vendor/assets/stylesheets/{bootstrapped/accordion.scss → bootstrapped-sass/_accordion.scss} +1 -1
  7. data/vendor/assets/stylesheets/{bootstrapped/alerts.scss → bootstrapped-sass/_alerts.scss} +8 -16
  8. data/vendor/assets/stylesheets/{bootstrapped/breadcrumbs.scss → bootstrapped-sass/_breadcrumbs.scss} +2 -2
  9. data/vendor/assets/stylesheets/{bootstrapped/button-groups.scss → bootstrapped-sass/_button-groups.scss} +8 -19
  10. data/vendor/assets/stylesheets/bootstrapped-sass/_buttons.scss +163 -0
  11. data/vendor/assets/stylesheets/{bootstrapped/carousel.scss → bootstrapped-sass/_carousel.scss} +7 -12
  12. data/vendor/assets/stylesheets/{bootstrapped/close.scss → bootstrapped-sass/_close.scss} +2 -2
  13. data/vendor/assets/stylesheets/{bootstrapped/code.scss → bootstrapped-sass/_code.scss} +16 -4
  14. data/vendor/assets/stylesheets/{bootstrapped/component-animations.scss → bootstrapped-sass/_component-animations.scss} +1 -1
  15. data/vendor/assets/stylesheets/{bootstrapped/dropdowns.scss → bootstrapped-sass/_dropdowns.scss} +6 -11
  16. data/vendor/assets/stylesheets/{bootstrapped/forms.scss → bootstrapped-sass/_forms.scss} +71 -124
  17. data/vendor/assets/stylesheets/bootstrapped-sass/_grid.scss +8 -0
  18. data/vendor/assets/stylesheets/{bootstrapped/hero-unit.scss → bootstrapped-sass/_hero-unit.scss} +1 -1
  19. data/vendor/assets/stylesheets/bootstrapped-sass/_labels.scss +32 -0
  20. data/vendor/assets/stylesheets/{bootstrapped/layouts.scss → bootstrapped-sass/_layouts.scss} +0 -0
  21. data/vendor/assets/stylesheets/{bootstrapped/mixins.scss → bootstrapped-sass/_mixins.scss} +109 -90
  22. data/vendor/assets/stylesheets/{bootstrapped/modals.scss → bootstrapped-sass/_modals.scss} +15 -4
  23. data/vendor/assets/stylesheets/{bootstrapped/navbar.scss → bootstrapped-sass/_navbar.scss} +32 -42
  24. data/vendor/assets/stylesheets/{bootstrapped/navs.scss → bootstrapped-sass/_navs.scss} +42 -60
  25. data/vendor/assets/stylesheets/{bootstrapped/pager.scss → bootstrapped-sass/_pager.scss} +1 -1
  26. data/vendor/assets/stylesheets/{bootstrapped/pagination.scss → bootstrapped-sass/_pagination.scss} +5 -7
  27. data/vendor/assets/stylesheets/{bootstrapped/popovers.scss → bootstrapped-sass/_popovers.scss} +5 -5
  28. data/vendor/assets/stylesheets/{bootstrapped/progress-bars.scss → bootstrapped-sass/_progress-bars.scss} +1 -1
  29. data/vendor/assets/stylesheets/{bootstrapped/reset.scss → bootstrapped-sass/_reset.scss} +11 -32
  30. data/vendor/assets/stylesheets/{bootstrapped/scaffolding.scss → bootstrapped-sass/_scaffolding.scss} +1 -1
  31. data/vendor/assets/stylesheets/{bootstrapped/sprites.scss → bootstrapped-sass/_sprites.scss} +0 -0
  32. data/vendor/assets/stylesheets/{bootstrapped/tables.scss → bootstrapped-sass/_tables.scss} +26 -30
  33. data/vendor/assets/stylesheets/{bootstrapped/thumbnails.scss → bootstrapped-sass/_thumbnails.scss} +3 -3
  34. data/vendor/assets/stylesheets/{bootstrapped/tooltip.scss → bootstrapped-sass/_tooltip.scss} +5 -5
  35. data/vendor/assets/stylesheets/{bootstrapped/type.scss → bootstrapped-sass/_type.scss} +7 -15
  36. data/vendor/assets/stylesheets/{bootstrapped/utilities.scss → bootstrapped-sass/_utilities.scss} +1 -1
  37. data/vendor/assets/stylesheets/bootstrapped-sass/_variables.scss +103 -0
  38. data/vendor/assets/stylesheets/{bootstrapped/wells.scss → bootstrapped-sass/_wells.scss} +1 -1
  39. data/vendor/assets/stylesheets/{bootstrapped → bootstrapped-sass}/fontawesome-webfont.eot +0 -0
  40. data/vendor/assets/stylesheets/{bootstrapped → bootstrapped-sass}/fontawesome-webfont.svg +0 -0
  41. data/vendor/assets/stylesheets/{bootstrapped → bootstrapped-sass}/fontawesome-webfont.svgz +0 -0
  42. data/vendor/assets/stylesheets/{bootstrapped → bootstrapped-sass}/fontawesome-webfont.ttf +0 -0
  43. data/vendor/assets/stylesheets/{bootstrapped → bootstrapped-sass}/fontawesome-webfont.woff +0 -0
  44. data/vendor/assets/stylesheets/bootstrapped.css.scss +1 -0
  45. data/vendor/assets/stylesheets/bootstrapped.css.scss.css +1 -0
  46. data/vendor/assets/stylesheets/custom_partials/transition.scss +1 -1
  47. data/vendor/assets/stylesheets/fontawesome-webfont.eot +0 -0
  48. data/vendor/assets/stylesheets/fontawesome-webfont.svg +175 -0
  49. data/vendor/assets/stylesheets/fontawesome-webfont.svgz +0 -0
  50. data/vendor/assets/stylesheets/fontawesome-webfont.ttf +0 -0
  51. data/vendor/assets/stylesheets/fontawesome-webfont.woff +0 -0
  52. metadata +56 -55
  53. data/vendor/assets/stylesheets/bootstrap-xtra/mixins.scss +0 -19
  54. data/vendor/assets/stylesheets/bootstrap-xtra/patterns_xtra.scss +0 -178
  55. data/vendor/assets/stylesheets/bootstrap-xtra/type_xtra.css +0 -12
  56. data/vendor/assets/stylesheets/bootstrap-xtra/variables_xtra.scss +0 -13
  57. data/vendor/assets/stylesheets/bootstrap-xtra/xtra.scss +0 -24
  58. data/vendor/assets/stylesheets/bootstrapped.css +0 -4
  59. data/vendor/assets/stylesheets/bootstrapped/bootstrap.scss +0 -62
  60. data/vendor/assets/stylesheets/bootstrapped/buttons.scss +0 -189
  61. data/vendor/assets/stylesheets/bootstrapped/grid.scss +0 -8
  62. data/vendor/assets/stylesheets/bootstrapped/labels.scss +0 -16
  63. data/vendor/assets/stylesheets/bootstrapped/variables.scss +0 -99
@@ -1,5 +1,5 @@
1
1
  module Bootstrapped
2
2
  module Rails
3
- VERSION = "2.0.7.1"
3
+ VERSION = "2.0.7.2"
4
4
  end
5
5
  end
data/readme.md CHANGED
@@ -1,4 +1,4 @@
1
- # This is a hacked-together version of the gem 'bootstrap-rails', with the generators from 'twitter-bootstrap-rails', has also replaced the Glyphicons icons with [Font Awesome](http://fortawesome.github.com/Font-Awesome/), since svg icons are resizable and colorable and such. There are also some custom scss helpers in a folder called 'custom_partials', which are just a byproduct of trying not to hate css. Feel free to muck around with this as you please.
1
+ # This is a hacked-together version of the gem 'bootstrap-sass', with the generators from 'twitter-bootstrap-rails', has also replaced the Glyphicons icons with [Font Awesome](http://fortawesome.github.com/Font-Awesome/), since svg icons are resizable and colorable and such. There are also some custom scss helpers in a folder called 'custom_partials', which are just a byproduct of trying not to hate css. Feel free to muck around with this as you please.
2
2
 
3
3
  ---------
4
4
  I have no idea why the font above looks so big..
@@ -9,14 +9,6 @@ Feel free to fork and mess around with this.
9
9
  (uses bootstrap v2)
10
10
 
11
11
 
12
-
13
- ## License
14
- Copyright (c) 2011 AnjLab
15
-
16
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
17
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
19
-
20
12
  ## License
21
13
  Copyright (c) 2011 Seyhun Akyürek
22
14
 
@@ -1,14 +1,15 @@
1
1
  /*!
2
- * Bootstrap Responsive v2.0.0
2
+ * Bootstrap Responsive v2.0.1
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
6
6
  * http://www.apache.org/licenses/LICENSE-2.0
7
7
  *
8
8
  * Designed and built with all the love in the world @twitter by @mdo and @fat.
9
+ * Converted to SASS by Thomas McDonald
9
10
  */
10
11
 
11
- // Responsive.scss
12
+ // Responsive.css.scss
12
13
  // For phone and tablet devices
13
14
  // -------------------------------------------------------------
14
15
 
@@ -17,8 +18,8 @@
17
18
  // -------------------------
18
19
  // Required since we compile the responsive stuff separately
19
20
 
20
- @import "variables.scss"; // Modify this for custom colors, font-sizes, etc
21
- @import "mixins.scss";
21
+ @import "bootstrapped-sass/variables"; // Modify this for custom colors, font-sizes, etc
22
+ @import "bootstrapped-sass/mixins";
22
23
 
23
24
 
24
25
  // RESPONSIVE CLASSES
@@ -50,13 +51,10 @@
50
51
  }
51
52
 
52
53
  // Make span* classes full width
53
- input[class*="span"],
54
- select[class*="span"],
55
- textarea[class*="span"],
56
- .uneditable-input {
54
+ input[class*="span"], select[class*="span"], textarea[class*="span"], .uneditable-input {
57
55
  display: block;
58
56
  width: 100%;
59
- height: 28px; /* Make inputs at least the height of their button counterpart */
57
+ min-height: 28px; /* Make inputs at least the height of their button counterpart */
60
58
  /* Makes inputs behave like true block-level elements */
61
59
  -webkit-box-sizing: border-box; /* Older Webkit */
62
60
  -moz-box-sizing: border-box; /* Older FF */
@@ -64,14 +62,12 @@
64
62
  box-sizing: border-box; /* CSS3 spec*/
65
63
  }
66
64
  // But don't let it screw up prepend/append inputs
67
- .input-prepend input[class*="span"],
68
- .input-append input[class*="span"] {
65
+ .input-prepend input[class*="span"], .input-append input[class*="span"] {
69
66
  width: auto;
70
67
  }
71
68
 
72
69
  // Update checkboxes for iOS
73
- input[type="checkbox"],
74
- input[type="radio"] {
70
+ input[type="checkbox"], input[type="radio"] {
75
71
  border: 1px solid #ccc;
76
72
  }
77
73
 
@@ -123,7 +119,7 @@
123
119
  // LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET
124
120
  // --------------------------------------------------
125
121
 
126
- @media (max-width: 768px) {
122
+ @media (max-width: 767px) {
127
123
  // GRID & CONTAINERS
128
124
  // -----------------
129
125
  // Remove width from containers
@@ -140,8 +136,7 @@
140
136
  margin-left: 0;
141
137
  }
142
138
  // Make all columns even
143
- .row > [class*="span"],
144
- .row-fluid > [class*="span"] {
139
+ .row > [class*="span"], .row-fluid > [class*="span"] {
145
140
  float: none;
146
141
  display: block;
147
142
  width: auto;
@@ -154,16 +149,16 @@
154
149
  // PORTRAIT TABLET TO DEFAULT DESKTOP
155
150
  // ----------------------------------
156
151
 
157
- @media (min-width: 768px) and (max-width: 980px) {
152
+ @media (min-width: 768px) and (max-width: 979px) {
158
153
 
159
154
  // Fixed grid
160
- @include grid-system-generate(12, 42px, 20px);
155
+ @include gridSystemGenerate(12, 42px, 20px);
161
156
 
162
157
  // Fluid grid
163
- @include fluid-grid-system-generate(12, 5.801104972%, 2.762430939%);
158
+ @include fluidGridSystemGenerate(12, 5.801104972%, 2.762430939%);
164
159
 
165
160
  // Input grid
166
- @include input-grid-system-generate(12, 42px, 20px);
161
+ @include inputGridSystemGenerate(12, 42px, 20px);
167
162
 
168
163
  }
169
164
 
@@ -171,7 +166,7 @@
171
166
 
172
167
  // TABLETS AND BELOW
173
168
  // -----------------
174
- @media (max-width: 980px) {
169
+ @media (max-width: 979px) {
175
170
 
176
171
  // UNFIX THE TOPBAR
177
172
  // ----------------
@@ -215,9 +210,12 @@
215
210
  .navbar .nav > .divider-vertical {
216
211
  display: none;
217
212
  }
213
+ .navbar .nav .nav-header {
214
+ color: $navbarText;
215
+ text-shadow: none;
216
+ }
218
217
  // Nav and dropdown links in navbar
219
- .navbar .nav > li > a,
220
- .navbar .dropdown-menu a {
218
+ .navbar .nav > li > a, .navbar .dropdown-menu a {
221
219
  padding: 6px 15px;
222
220
  font-weight: bold;
223
221
  color: $navbarLinkColor;
@@ -226,8 +224,7 @@
226
224
  .navbar .dropdown-menu li + li a {
227
225
  margin-bottom: 2px;
228
226
  }
229
- .navbar .nav > li > a:hover,
230
- .navbar .dropdown-menu a:hover {
227
+ .navbar .nav > li > a:hover, .navbar .dropdown-menu a:hover {
231
228
  background-color: $navbarBackground;
232
229
  }
233
230
  // Dropdowns in the navbar
@@ -245,16 +242,14 @@
245
242
  @include border-radius(0);
246
243
  @include box-shadow(none);
247
244
  }
248
- .navbar .dropdown-menu:before,
249
- .navbar .dropdown-menu:after {
245
+ .navbar .dropdown-menu:before, .navbar .dropdown-menu:after {
250
246
  display: none;
251
247
  }
252
248
  .navbar .dropdown-menu .divider {
253
249
  display: none;
254
250
  }
255
251
  // Forms in navbar
256
- .navbar-form,
257
- .navbar-search {
252
+ .navbar-form, .navbar-search {
258
253
  float: none;
259
254
  padding: ($baseLineHeight / 2) 15px;
260
255
  margin: ($baseLineHeight / 2) 0;
@@ -304,13 +299,13 @@
304
299
  @media (min-width: 1200px) {
305
300
 
306
301
  // Fixed grid
307
- @include grid-system-generate(12, 70px, 30px);
302
+ @include gridSystemGenerate(12, 70px, 30px);
308
303
 
309
304
  // Fluid grid
310
- @include fluid-grid-system-generate(12, 5.982905983%, 2.564102564%);
305
+ @include fluidGridSystemGenerate(12, 5.982905983%, 2.564102564%);
311
306
 
312
307
  // Input grid
313
- @include input-grid-system-generate(12, 70px, 30px);
308
+ @include inputGridSystemGenerate(12, 70px, 30px);
314
309
 
315
310
  // Thumbnails
316
311
  .thumbnails {
@@ -320,4 +315,4 @@
320
315
  margin-left: 30px;
321
316
  }
322
317
 
323
- }
318
+ }
@@ -0,0 +1,63 @@
1
+ /*!
2
+ * Bootstrap 2.0.1
3
+ *
4
+ * Copyright 2012 Twitter, Inc
5
+ * Licensed under the Apache License v2.0
6
+ * http://www.apache.org/licenses/LICENSE-2.0
7
+ *
8
+ * Designed and built with all the love in the world @twitter by @mdo and @fat.
9
+ * Converted to SASS by Thomas McDonald
10
+ */
11
+
12
+ // Core variables and mixins
13
+ @import "bootstrapped-sass/variables"; // Modify this for custom colors, font-sizes, etc
14
+ @import "bootstrapped-sass/mixins";
15
+
16
+ // CSS Reset
17
+ @import "bootstrapped-sass/reset";
18
+
19
+ // Grid system and page structure
20
+ @import "bootstrapped-sass/scaffolding";
21
+ @import "bootstrapped-sass/grid";
22
+ @import "bootstrapped-sass/layouts";
23
+
24
+ // Base CSS
25
+ @import "bootstrapped-sass/type";
26
+ @import "bootstrapped-sass/code";
27
+ @import "bootstrapped-sass/forms";
28
+ @import "bootstrapped-sass/tables";
29
+
30
+ // Components: common
31
+ @import "bootstrapped-sass/sprites";
32
+ @import "bootstrapped-sass/dropdowns";
33
+ @import "bootstrapped-sass/wells";
34
+ @import "bootstrapped-sass/component-animations";
35
+ @import "bootstrapped-sass/close";
36
+
37
+ // Components: Buttons & Alerts
38
+ @import "bootstrapped-sass/buttons";
39
+ @import "bootstrapped-sass/button-groups";
40
+ @import "bootstrapped-sass/alerts"; // Note: alerts share common CSS with buttons and thus have styles in buttons.less
41
+
42
+ // Components: Nav
43
+ @import "bootstrapped-sass/navs";
44
+ @import "bootstrapped-sass/navbar";
45
+ @import "bootstrapped-sass/breadcrumbs";
46
+ @import "bootstrapped-sass/pagination";
47
+ @import "bootstrapped-sass/pager";
48
+
49
+ // Components: Popovers
50
+ @import "bootstrapped-sass/modals";
51
+ @import "bootstrapped-sass/tooltip";
52
+ @import "bootstrapped-sass/popovers";
53
+
54
+ // Components: Misc
55
+ @import "bootstrapped-sass/thumbnails";
56
+ @import "bootstrapped-sass/labels";
57
+ @import "bootstrapped-sass/progress-bars";
58
+ @import "bootstrapped-sass/accordion";
59
+ @import "bootstrapped-sass/carousel";
60
+ @import "bootstrapped-sass/hero-unit";
61
+
62
+ // Utility classes
63
+ @import "bootstrapped-sass/utilities"; // Has to be last to override when necessary
@@ -0,0 +1 @@
1
+ @import 'bootstrap-responsive';
@@ -25,4 +25,4 @@
25
25
  .accordion-inner {
26
26
  padding: 9px 15px;
27
27
  border-top: 1px solid #e5e5e5;
28
- }
28
+ }
@@ -10,8 +10,7 @@
10
10
  border: 1px solid $warningBorder;
11
11
  @include border-radius(4px);
12
12
  }
13
- .alert,
14
- .alert-heading {
13
+ .alert, .alert-heading {
15
14
  color: $warningText;
16
15
  }
17
16
 
@@ -28,29 +27,23 @@
28
27
 
29
28
  .alert-success {
30
29
  background-color: $successBackground;
31
- border-color: $successBorder;
30
+ border-color: $successBorder;
32
31
  }
33
- .alert-success,
34
- .alert-success .alert-heading {
32
+ .alert-success, .alert-success .alert-heading {
35
33
  color: $successText;
36
34
  }
37
- .alert-danger,
38
- .alert-error {
35
+ .alert-danger, .alert-error {
39
36
  background-color: $errorBackground;
40
37
  border-color: $errorBorder;
41
38
  }
42
- .alert-danger,
43
- .alert-error,
44
- .alert-danger .alert-heading,
45
- .alert-error .alert-heading {
39
+ .alert-danger, .alert-error, .alert-danger .alert-heading, .alert-error .alert-heading {
46
40
  color: $errorText;
47
41
  }
48
42
  .alert-info {
49
43
  background-color: $infoBackground;
50
44
  border-color: $infoBorder;
51
45
  }
52
- .alert-info,
53
- .alert-info .alert-heading {
46
+ .alert-info, .alert-info .alert-heading {
54
47
  color: $infoText;
55
48
  }
56
49
 
@@ -61,10 +54,9 @@
61
54
  padding-top: 14px;
62
55
  padding-bottom: 14px;
63
56
  }
64
- .alert-block > p,
65
- .alert-block > ul {
57
+ .alert-block > p, .alert-block > ul {
66
58
  margin-bottom: 0;
67
59
  }
68
60
  .alert-block p + p {
69
61
  margin-top: 5px;
70
- }
62
+ }
@@ -9,7 +9,7 @@
9
9
  @include border-radius(3px);
10
10
  @include box-shadow(inset 0 1px 0 $white);
11
11
  li {
12
- display: inline;
12
+ display: inline-block;
13
13
  text-shadow: 0 1px 0 $white;
14
14
  }
15
15
  .divider {
@@ -19,4 +19,4 @@
19
19
  .active a {
20
20
  color: $grayDark;
21
21
  }
22
- }
22
+ }
@@ -41,8 +41,7 @@
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
+ .btn-group .btn:last-child, .btn-group .dropdown-toggle {
46
45
  -webkit-border-top-right-radius: 4px;
47
46
  -moz-border-radius-topright: 4px;
48
47
  border-top-right-radius: 4px;
@@ -60,8 +59,7 @@
60
59
  -moz-border-radius-bottomleft: 6px;
61
60
  border-bottom-left-radius: 6px;
62
61
  }
63
- .btn-group .btn.large:last-child,
64
- .btn-group .large.dropdown-toggle {
62
+ .btn-group .btn.large:last-child, .btn-group .large.dropdown-toggle {
65
63
  -webkit-border-top-right-radius: 6px;
66
64
  -moz-border-radius-topright: 6px;
67
65
  border-top-right-radius: 6px;
@@ -71,16 +69,12 @@
71
69
  }
72
70
 
73
71
  // 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 {
72
+ .btn-group .btn:hover, .btn-group .btn:focus, .btn-group .btn:active, .btn-group .btn.active {
78
73
  z-index: 2;
79
74
  }
80
75
 
81
76
  // On active and open, don't show outline
82
- .btn-group .dropdown-toggle:active,
83
- .btn-group.open .dropdown-toggle {
77
+ .btn-group .dropdown-toggle:active, .btn-group.open .dropdown-toggle {
84
78
  outline: 0;
85
79
  }
86
80
 
@@ -123,20 +117,16 @@
123
117
  margin-top: 7px;
124
118
  margin-left: 0;
125
119
  }
126
- .btn:hover .caret,
127
- .open.btn-group .caret {
128
- @include opacity(100);
120
+ .btn:hover .caret, .open.btn-group .caret {
121
+ @include opacity(1);
129
122
  }
130
123
 
131
124
 
132
125
  // Account for other colors
133
- .btn-primary,
134
- .btn-danger,
135
- .btn-info,
136
- .btn-success {
126
+ .btn-primary, .btn-danger, .btn-info, .btn-success, .btn-inverse {
137
127
  .caret {
138
128
  border-top-color: $white;
139
- @include opacity(75);
129
+ @include opacity(0.75);
140
130
  }
141
131
  }
142
132
 
@@ -144,4 +134,3 @@
144
134
  .btn-small .caret {
145
135
  margin-top: 4px;
146
136
  }
147
-
@@ -0,0 +1,163 @@
1
+ // BUTTON STYLES
2
+ // -------------
3
+
4
+
5
+ // Base styles
6
+ // --------------------------------------------------
7
+
8
+ // Core
9
+ .btn {
10
+ display: inline-block;
11
+ padding: 4px 10px 4px;
12
+ margin-bottom: 0; // For input.btn
13
+ font-size: $baseFontSize;
14
+ line-height: $baseLineHeight;
15
+ color: $grayDark;
16
+ text-align: center;
17
+ text-shadow: 0 1px 1px rgba(255,255,255,.75);
18
+ 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
+ cursor: pointer;
26
+
27
+ // Give IE7 some love
28
+ @include reset-filter();
29
+ @include ie7-restore-left-whitespace();
30
+ }
31
+
32
+ // Hover state
33
+ .btn:hover {
34
+ color: lighten($grayDark, 5%);
35
+ text-decoration: none;
36
+ background-color: darken($white, 10%);
37
+ background-position: 0 -15px;
38
+
39
+ // transition is only when going to hover, otherwise the background
40
+ // behind the gradient (there for IE<=9 fallback) gets mismatched
41
+ @include transition(background-position .1s linear);
42
+ }
43
+
44
+ // Focus state for keyboard and accessibility
45
+ .btn:focus {
46
+ @include tab-focus();
47
+ }
48
+
49
+ // Active state
50
+ .btn.active, .btn:active {
51
+ background-image: none;
52
+ $shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
53
+ @include box-shadow($shadow);
54
+ background-color: darken($white, 10%);
55
+ background-color: darken($white, 15%) \9;
56
+ outline: 0;
57
+ }
58
+
59
+ // Disabled state
60
+ .btn.disabled, .btn[disabled] {
61
+ cursor: default;
62
+ background-image: none;
63
+ background-color: darken($white, 10%);
64
+ @include opacity(0.65);
65
+ @include box-shadow(none);
66
+ }
67
+
68
+
69
+ // Button Sizes
70
+ // --------------------------------------------------
71
+
72
+ // Large
73
+ .btn-large {
74
+ padding: 9px 14px;
75
+ font-size: $baseFontSize + 2px;
76
+ line-height: normal;
77
+ @include border-radius(5px);
78
+ }
79
+ .btn-large [class^="icon-"] {
80
+ margin-top: 1px;
81
+ }
82
+
83
+ // Small
84
+ .btn-small {
85
+ padding: 5px 9px;
86
+ font-size: $baseFontSize - 2px;
87
+ line-height: $baseLineHeight - 2px;
88
+ }
89
+ .btn-small [class^="icon-"] {
90
+ margin-top: -1px;
91
+ }
92
+
93
+ // Mini
94
+ .btn-mini {
95
+ padding: 2px 6px;
96
+ font-size: $baseFontSize - 2px;
97
+ line-height: $baseLineHeight - 4px;
98
+ }
99
+
100
+
101
+ // Alternate buttons
102
+ // --------------------------------------------------
103
+
104
+ // Set text color
105
+ // -------------------------
106
+ .btn-primary, .btn-primary:hover, .btn-warning, .btn-warning:hover, .btn-danger, .btn-danger:hover, .btn-success, .btn-success:hover, .btn-info, .btn-info:hover, .btn-inverse, .btn-inverse:hover {
107
+ text-shadow: 0 -1px 0 rgba(0,0,0,.25);
108
+ color: $white;
109
+ }
110
+ // Provide *some* extra contrast for those who can get it
111
+ .btn-primary.active, .btn-warning.active, .btn-danger.active, .btn-success.active, .btn-info.active, .btn-inverse.active {
112
+ color: rgba(255,255,255,.75);
113
+ }
114
+
115
+ // Set the backgrounds
116
+ // -------------------------
117
+ .btn-primary {
118
+ @include buttonBackground($primaryButtonBackground, adjust-hue($primaryButtonBackground, 20));
119
+ }
120
+ // Warning appears are orange
121
+ .btn-warning {
122
+ @include buttonBackground(lighten($orange, 15%), $orange);
123
+ }
124
+ // Danger and error appear as red
125
+ .btn-danger {
126
+ @include buttonBackground(#ee5f5b, #bd362f);
127
+ }
128
+ // Success appears as green
129
+ .btn-success {
130
+ @include buttonBackground(#62c462, #51a351);
131
+ }
132
+ // Info appears as a neutral blue
133
+ .btn-info {
134
+ @include buttonBackground(#5bc0de, #2f96b4);
135
+ }
136
+ .btn-inverse {
137
+ @include buttonBackground(#454545, #262626);
138
+ }
139
+
140
+
141
+ // Cross-browser Jank
142
+ // --------------------------------------------------
143
+
144
+ button.btn, input[type="submit"].btn {
145
+
146
+ // Firefox 3.6 only I believe
147
+ &::-moz-focus-inner {
148
+ padding: 0;
149
+ border: 0;
150
+ }
151
+
152
+ // IE7 has some default padding on button controls
153
+ *padding-top: 2px;
154
+ *padding-bottom: 2px;
155
+ &.large {
156
+ *padding-top: 7px;
157
+ *padding-bottom: 7px;
158
+ }
159
+ &.small {
160
+ *padding-top: 3px;
161
+ *padding-bottom: 3px;
162
+ }
163
+ }