compass-bootstrap-rails 0.1.3.3 → 0.1.4.0

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.
@@ -4,7 +4,7 @@ Twitter Bootstrap- Compass Plugin
4
4
  Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites.
5
5
  It includes base CSS and HTML for typography, forms, buttons, tables, grids, navigation, and more.: <http://twitter.github.com/bootstrap/>
6
6
 
7
- * This plugin is consistent with 1.3.0 version of Bootstrap
7
+ * This plugin is consistent with 1.4.0 version of Bootstrap
8
8
  ------------------------------------------------------------
9
9
 
10
10
  This plugin adds the Bootstrap to [Compass](http://compass-style.org/).
@@ -22,7 +22,7 @@ Add compass and compass-bootstrap to the assets group in you Gemfile
22
22
  gem 'compass-bootstrap'
23
23
 
24
24
 
25
- Adding the Bootstrap plugin to an existing Rails 3.0 project
25
+ Adding the Bootstrap plugin to an existing Rails 3.0 project
26
26
  ============================================
27
27
  Add the following to your compass.rb
28
28
 
@@ -31,33 +31,33 @@ Add the following to your compass.rb
31
31
 
32
32
  Run the following on your project's directory
33
33
 
34
- compass install compass-bootstrap/compass-bootstrap
35
-
34
+ compass install compass-bootstrap/compass-bootstrap
35
+
36
36
  this will add the following files to your stylesheets dir:
37
37
 
38
- create sass/compass_bootstrap.scss
39
- create sass/_reset.scss
40
- create sass/_variables.scss
41
- create sass/_mixins.scss
42
- create sass/_scaffolding.scss
43
- create sass/_type.scss
44
- create sass/_tables.scss
45
- create sass/_forms.scss
46
- create sass/_patterns.scss
47
- create javascripts/bootstrap-alerts.js
48
- create javascripts/bootstrap-dropdown.js
49
- create javascripts/bootstrap-modal.js
50
- create javascripts/bootstrap-popover.js
51
- create javascripts/bootstrap-scrollspy.js
52
- create javascripts/bootstrap-tabs.js
53
- create javascripts/bootstrap-twipsy.js
54
- create stylesheets/compass_bootstrap.css
38
+ create sass/compass_bootstrap.scss
39
+ create sass/_reset.scss
40
+ create sass/_variables.scss
41
+ create sass/_mixins.scss
42
+ create sass/_scaffolding.scss
43
+ create sass/_type.scss
44
+ create sass/_tables.scss
45
+ create sass/_forms.scss
46
+ create sass/_patterns.scss
47
+ create javascripts/bootstrap-alerts.js
48
+ create javascripts/bootstrap-dropdown.js
49
+ create javascripts/bootstrap-modal.js
50
+ create javascripts/bootstrap-popover.js
51
+ create javascripts/bootstrap-scrollspy.js
52
+ create javascripts/bootstrap-tabs.js
53
+ create javascripts/bootstrap-twipsy.js
54
+ create stylesheets/compass_bootstrap.css
55
55
 
56
56
  Now you can add the bootstrap style to your .scss/.sass files:
57
57
 
58
58
  @import 'compass_bootstrap';
59
-
60
- this will make available all the classes and styles from bootstrap
59
+
60
+ this will make available all the classes and styles from bootstrap
61
61
 
62
62
  ### If you only want to add some bootstrap styles to your files, add:
63
63
 
@@ -119,7 +119,7 @@ Open _preboot.sccs and you will see the entire list of colors, you can change th
119
119
  $analog1: spin($baseColor, 22); // Analogs colors
120
120
  $analog2: spin($baseColor, -22);
121
121
 
122
- Adding the Bootstrap plugin to an existing Rails 3.1 project
122
+ Adding the Bootstrap plugin to an existing Rails 3.1 project
123
123
  ============================================
124
124
  Open config/application.rb and add the following line after config.assets.enabled = true
125
125
 
@@ -21,5 +21,4 @@ Gem::Specification.new do |s|
21
21
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
22
22
  s.require_paths = ["lib"]
23
23
  s.add_dependency(%q<compass>, [">= 0.10.0"])
24
-
25
24
  end
@@ -1,5 +1,5 @@
1
1
  module Compass
2
2
  module BootstrapRails
3
- VERSION = "0.1.3.3"
3
+ VERSION = "0.1.4.0"
4
4
  end
5
5
  end
@@ -36,7 +36,7 @@ label,
36
36
  input,
37
37
  select,
38
38
  textarea {
39
- @include font-sans-serif(normal,13px,normal);
39
+ @include sans-serif(normal,13px,normal);
40
40
  }
41
41
 
42
42
  // Float labels left
@@ -77,6 +77,11 @@ select,
77
77
  @include border-radius(3px);
78
78
  }
79
79
 
80
+ /* remove padding from select */
81
+ select {
82
+ padding: initial;
83
+ }
84
+
80
85
  /* mini reset for non-html5 file types */
81
86
  input[type=checkbox],
82
87
  input[type=radio] {
@@ -107,6 +112,7 @@ input[type=submit] {
107
112
  select,
108
113
  input[type=file] {
109
114
  height: $baseline * 1.5; // In IE7, the height of the select element cannot be changed by height, only font-size
115
+ *height: auto; // Reset for IE7
110
116
  line-height: $baseline * 1.5;
111
117
  *margin-top: 4px; /* For IE7, add top margin to align select with labels */
112
118
  }
@@ -114,6 +120,7 @@ input[type=file] {
114
120
  // Make multiple select elements height not fixed
115
121
  select[multiple] {
116
122
  height: inherit;
123
+ background-color: $white; // Fixes Chromium bug of unreadable items
117
124
  }
118
125
 
119
126
  textarea {
@@ -158,36 +165,47 @@ select:focus {
158
165
  outline: 1px dotted #666; // Selet elements don't get box-shadow styles, so instead we do outline
159
166
  }
160
167
 
161
- // Error styles
162
- form div.clearfix.error {
163
- background: lighten($red, 57%);
164
- padding: 10px 0;
165
- margin: -10px 0 10px;
166
- @include border-radius(4px);
167
- $error-text: desaturate(lighten($red, 25%), 25%);
168
+ /* FORM FIELD FEEDBACK STATES
169
+ -------------------------- */
170
+
171
+ // Mixin for form field states
172
+ @mixin formFieldState($textColor: #555, $borderColor: #ccc, $backgroundColor: #f5f5f5) {
173
+ // Set the text color
168
174
  > label,
169
- span.help-inline,
170
- span.help-block {
171
- color: $red;
175
+ .help-block,
176
+ .help-inline {
177
+ color: $textColor;
172
178
  }
179
+ // Style inputs accordingly
173
180
  input,
174
181
  textarea {
175
- border-color: $error-text;
176
- @include box-shadow(0 0 3px rgba(171,41,32,.25));
182
+ color: $textColor;
183
+ border-color: $borderColor;
177
184
  &:focus {
178
- border-color: darken($error-text, 10%);
179
- @include box-shadow(0 0 6px rgba(171,41,32,.5));
185
+ border-color: darken($borderColor, 10%);
186
+ .box-shadow(0 0 6px lighten($borderColor, 20%);
180
187
  }
181
188
  }
182
- .input-prepend,
183
- .input-append {
184
- span.add-on {
185
- background: lighten($red, 50%);
186
- border-color: $error-text;
187
- color: darken($error-text, 10%);
188
- }
189
+ // Give a small background color for input-prepend/-append
190
+ .input-prepend .add-on,
191
+ .input-append .add-on {
192
+ color: $textColor;
193
+ background-color: $backgroundColor;
194
+ border-color: $textColor;
189
195
  }
190
196
  }
197
+ // Error
198
+ form .clearfix.error {
199
+ @include formFieldState(#b94a48, #ee5f5b, lighten(#ee5f5b, 30%));
200
+ }
201
+ // Warning
202
+ form .clearfix.warning {
203
+ @include formFieldState(#c09853, #ccae64, lighten(#CCAE64, 5%));
204
+ }
205
+ // Success
206
+ form .clearfix.success {
207
+ @include formFieldState(#468847, #57a957, lighten(#57a957, 30%));
208
+ }
191
209
 
192
210
  // Form element sizes
193
211
  // TODO v2: remove duplication here and just stick to .input-[size] in light of adding .spanN sizes
@@ -236,12 +254,11 @@ textarea.xxlarge {
236
254
  @mixin formColumns($columnSpan: 1) {
237
255
  display: inline-block;
238
256
  float: none;
239
- width: (($gridColumnWidth - 10) * $columnSpan) + (($gridColumnWidth - 10) * ($columnSpan - 1));
257
+ width: (($gridColumnWidth) * $columnSpan) + ($gridGutterWidth * ($columnSpan - 1)) - 10;
240
258
  margin-left: 0;
241
259
  }
242
260
  input,
243
- textarea,
244
- select {
261
+ textarea {
245
262
  // Default columns
246
263
  &.span1 { @include formColumns(1); }
247
264
  &.span2 { @include formColumns(2); }
@@ -293,9 +310,10 @@ textarea[readonly] {
293
310
  }
294
311
 
295
312
  // Help Text
313
+ // TODO: Do we need to set basefont and baseline here?
296
314
  .help-inline,
297
315
  .help-block {
298
- font-size: $basefont - 2;
316
+ font-size: $basefont;
299
317
  line-height: $baseline;
300
318
  color: $grayLight;
301
319
  }
@@ -314,15 +332,6 @@ textarea[readonly] {
314
332
  // Inline Fields (input fields that appear as inline objects
315
333
  .inline-inputs {
316
334
  color: $gray;
317
- span, input {
318
- display: inline-block;
319
- }
320
- input.mini {
321
- width: 60px;
322
- }
323
- input.small {
324
- width: 90px;
325
- }
326
335
  span {
327
336
  padding: 0 2px 0 1px;
328
337
  }
@@ -389,6 +398,7 @@ textarea[readonly] {
389
398
  float: none;
390
399
  width: auto;
391
400
  padding: 0;
401
+ margin-left: 20px;
392
402
  line-height: $baseline;
393
403
  text-align: left;
394
404
  white-space: normal;
@@ -414,6 +424,8 @@ textarea[readonly] {
414
424
  input[type=radio],
415
425
  input[type=checkbox] {
416
426
  margin-bottom: 0;
427
+ margin-left: -20px;
428
+ float: left;
417
429
  }
418
430
  }
419
431
 
@@ -1,36 +1,37 @@
1
- /* Variables.less
1
+ /* Mixins.less
2
2
  * Snippets of reusable CSS to develop faster and keep code readable
3
3
  * ----------------------------------------------------------------- */
4
4
 
5
+
5
6
  // Clearfix for clearing floats like a boss h5bp.com/q
6
7
  @mixin clearfix() {
7
8
  zoom: 1;
8
- &:before,
9
+  &:before,
9
10
  &:after {
10
11
  display: table;
11
12
  content: "";
12
13
  zoom: 1;
13
14
  *display: inline;
14
- }
15
- &:after {
15
+  }
16
+  &:after {
16
17
  clear: both;
17
- }
18
+  }
18
19
  }
19
20
 
20
21
  // Center-align a block level element
21
22
  @mixin center-block() {
22
- display: block;
23
+  display: block;
23
24
  margin-left: auto;
24
25
  margin-right: auto;
25
26
  }
26
27
 
27
28
  // Sizing shortcuts
28
29
  @mixin size($height: 5px, $width: 5px) {
29
- height: $height;
30
- width: $width;
30
+  height: $height;
31
+  width: $width;
31
32
  }
32
33
  @mixin square($size: 5px) {
33
- @include size($size, $size);
34
+  @include size($size, $size);
34
35
  }
35
36
 
36
37
  // Input placeholder text
@@ -44,28 +45,30 @@
44
45
  }
45
46
 
46
47
  // Font Stacks
47
- @mixin font-shorthand($weight: normal, $size: 14px, $lineHeight: 20px) {
48
- font-size: $size;
49
- font-weight: $weight;
50
- line-height: $lineHeight;
51
- }
52
- @mixin font-sans-serif($weight: normal, $size: 14px, $lineHeight: 20px) {
53
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
54
- font-size: $size;
55
- font-weight: $weight;
56
- line-height: $lineHeight;
57
- }
58
- @mixin font-serif($weight: normal, $size: 14px, $lineHeight: 20px) {
59
- font-family: "Georgia", Times New Roman, Times, serif;
60
- font-size: $size;
61
- font-weight: $weight;
62
- line-height: $lineHeight;
63
- }
64
- @mixin font-monospace($weight: normal, $size: 12px, $lineHeight: 20px) {
65
- font-family: "Monaco", Courier New, monospace;
66
- font-size: $size;
67
- font-weight: $weight;
68
- line-height: $lineHeight;
48
+ #font {
49
+ @mixin shorthand($weight: normal, $size: 14px, $lineHeight: 20px) {
50
+ font-size: $size;
51
+ font-weight: $weight;
52
+ line-height: $lineHeight;
53
+ }
54
+ @mixin sans-serif($weight: normal, $size: 14px, $lineHeight: 20px) {
55
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
56
+ font-size: $size;
57
+ font-weight: $weight;
58
+ line-height: $lineHeight;
59
+ }
60
+ @mixin serif($weight: normal, $size: 14px, $lineHeight: 20px) {
61
+ font-family: "Georgia", Times New Roman, Times, serif;
62
+ font-size: $size;
63
+ font-weight: $weight;
64
+ line-height: $lineHeight;
65
+ }
66
+ @mixin monospace($weight: normal, $size: 12px, $lineHeight: 20px) {
67
+ font-family: "Monaco", Courier New, monospace;
68
+ font-size: $size;
69
+ font-weight: $weight;
70
+ line-height: $lineHeight;
71
+ }
69
72
  }
70
73
 
71
74
  // Grid System
@@ -109,102 +112,114 @@
109
112
 
110
113
  // Transitions
111
114
  @mixin transition($transition) {
112
- -webkit-transition: $transition;
113
- -moz-transition: $transition;
114
- -ms-transition: $transition;
115
- -o-transition: $transition;
116
- transition: $transition;
115
+ -webkit-transform-style: e(%("preserve-3d"));
116
+ -webkit-transition: $transition;
117
+ -moz-transition: $transition;
118
+ -ms-transition: $transition;
119
+ -o-transition: $transition;
120
+ transition: $transition;
117
121
  }
118
122
 
119
123
  // Background clipping
120
124
  @mixin background-clip($clip) {
121
- -webkit-background-clip: $clip;
122
- -moz-background-clip: $clip;
123
- background-clip: $clip;
125
+  -webkit-background-clip: $clip;
126
+   -moz-background-clip: $clip;
127
+   background-clip: $clip;
124
128
  }
125
129
 
126
130
  // CSS3 Content Columns
127
131
  @mixin content-columns($columnCount, $columnGap: 20px) {
128
- -webkit-column-count: $columnCount;
129
- -moz-column-count: $columnCount;
132
+  -webkit-column-count: $columnCount;
133
+   -moz-column-count: $columnCount;
130
134
  column-count: $columnCount;
131
135
  -webkit-column-gap: $columnGap;
132
- -moz-column-gap: $columnGap;
136
+   -moz-column-gap: $columnGap;
133
137
  column-gap: $columnGap;
134
138
  }
135
139
 
140
+
141
+ // Make any element resizable for prototyping
142
+ @mixin resizable($direction: both) {
143
+ resize: $direction; // Options are horizontal, vertical, both
144
+ overflow: auto; // Safari fix
145
+ }
146
+
136
147
  // Add an alphatransparency value to any background or border color (via Elyse Holladay)
137
- @mixin translucent-background($color: $white, $alpha: 1) {
148
+ #translucent {
149
+ @mixin background($color: $white, $alpha: 1) {
138
150
  background-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
139
- }
140
- @mixin translucent-border($color: $white, $alpha: 1) {
141
- border-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
142
- background-clip: padding-box;
151
+  }
152
+  @mixin border($color: $white, $alpha: 1) {
153
+    border-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
154
+    background-clip: padding-box;
155
+  }
143
156
  }
144
157
 
145
158
  // Gradient Bar Colors for buttons and allerts
146
159
  @mixin gradientBar($primaryColor, $secondaryColor) {
147
- @include gradient-vertical($primaryColor, $secondaryColor);
160
+ #gradient > @include vertical($primaryColor, $secondaryColor);
148
161
  text-shadow: 0 -1px 0 rgba(0,0,0,.25);
149
162
  border-color: $secondaryColor $secondaryColor darken($secondaryColor, 15%);
150
163
  border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
151
164
  }
152
165
 
153
166
  // Gradients
154
- @mixin gradient-horizontal ($startColor: #555, $endColor: #333) {
155
- background-color: $endColor;
156
- background-repeat: repeat-x;
157
- background-image: -khtml-gradient(linear, left top, right top, from($startColor), to($endColor)); // Konqueror
158
- background-image: -moz-linear-gradient(left, $startColor, $endColor); // FF 3.6+
159
- background-image: -ms-linear-gradient(left, $startColor, $endColor); // IE10
160
- background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, $startColor), color-stop(100%, $endColor)); // Safari 4+, Chrome 2+
161
- background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+
162
- background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
163
- background-image: linear-gradient(left, $startColor, $endColor); // Le standard
164
- filter: progid:DXImageTransform.Microsoft.Gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=1); // IE9 and down
165
- }
166
- @mixin gradient-vertical ($startColor: #555, $endColor: #333) {
167
- background-color: $endColor;
168
- background-repeat: repeat-x;
169
- background-image: -khtml-gradient(linear, left top, left bottom, from($startColor), to($endColor)); // Konqueror
170
- background-image: -moz-linear-gradient(top, $startColor, $endColor); // FF 3.6+
171
- background-image: -ms-linear-gradient(top, $startColor, $endColor); // IE10
172
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $startColor), color-stop(100%, $endColor)); // Safari 4+, Chrome 2+
173
- background-image: -webkit-linear-gradient(top, $startColor, $endColor); // Safari 5.1+, Chrome 10+
174
- background-image: -o-linear-gradient(top, $startColor, $endColor); // Opera 11.10
175
- background-image: linear-gradient(top, $startColor, $endColor); // The standard
176
- filter: progid:DXImageTransform.Microsoft.Gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=0); // IE9 and down
177
- }
178
- @mixin gradient-directional ($startColor: #555, $endColor: #333, $deg: 45deg) {
179
- background-color: $endColor;
180
- background-repeat: repeat-x;
181
- background-image: -moz-linear-gradient($deg, $startColor, $endColor); // FF 3.6+
182
- background-image: -ms-linear-gradient($deg, $startColor, $endColor); // IE10
183
- background-image: -webkit-linear-gradient($deg, $startColor, $endColor); // Safari 5.1+, Chrome 10+
184
- background-image: -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10
185
- background-image: linear-gradient($deg, $startColor, $endColor); // The standard
186
- }
187
- @mixin gradient-vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
188
- background-color: $endColor;
189
- background-repeat: no-repeat;
190
- background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
191
- background-image: -webkit-linear-gradient($startColor, $midColor $colorStop, $endColor);
192
- background-image: -moz-linear-gradient(top, $startColor, $midColor $colorStop, $endColor);
193
- background-image: -ms-linear-gradient($startColor, $midColor $colorStop, $endColor);
194
- background-image: -o-linear-gradient($startColor, $midColor $colorStop, $endColor);
195
- background-image: linear-gradient($startColor, $midColor $colorStop, $endColor);
196
- filter: progid:DXImageTransform.Microsoft.Gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=0); // IE9 and down
167
+ #gradient {
168
+ @mixin horizontal ($startColor: #555, $endColor: #333) {
169
+ background-color: $endColor;
170
+ background-repeat: repeat-x;
171
+ background-image: -khtml-gradient(linear, left top, right top, from($startColor), to($endColor)); // Konqueror
172
+ background-image: -moz-linear-gradient(left, $startColor, $endColor); // FF 3.6+
173
+ background-image: -ms-linear-gradient(left, $startColor, $endColor); // IE10
174
+ background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, $startColor), color-stop(100%, $endColor)); // Safari 4+, Chrome 2+
175
+ background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+
176
+ background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
177
+ background-image: linear-gradient(left, $startColor, $endColor); // Le standard
178
+ filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=1)",$startColor,$endColor)); // IE9 and down
179
+ }
180
+ @mixin vertical ($startColor: #555, $endColor: #333) {
181
+ background-color: $endColor;
182
+ background-repeat: repeat-x;
183
+ background-image: -khtml-gradient(linear, left top, left bottom, from($startColor), to($endColor)); // Konqueror
184
+ background-image: -moz-linear-gradient(top, $startColor, $endColor); // FF 3.6+
185
+ background-image: -ms-linear-gradient(top, $startColor, $endColor); // IE10
186
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $startColor), color-stop(100%, $endColor)); // Safari 4+, Chrome 2+
187
+ background-image: -webkit-linear-gradient(top, $startColor, $endColor); // Safari 5.1+, Chrome 10+
188
+ background-image: -o-linear-gradient(top, $startColor, $endColor); // Opera 11.10
189
+ background-image: linear-gradient(top, $startColor, $endColor); // The standard
190
+ filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",$startColor,$endColor)); // IE9 and down
191
+ }
192
+ @mixin directional ($startColor: #555, $endColor: #333, $deg: 45deg) {
193
+ background-color: $endColor;
194
+ background-repeat: repeat-x;
195
+ background-image: -moz-linear-gradient($deg, $startColor, $endColor); // FF 3.6+
196
+ background-image: -ms-linear-gradient($deg, $startColor, $endColor); // IE10
197
+ background-image: -webkit-linear-gradient($deg, $startColor, $endColor); // Safari 5.1+, Chrome 10+
198
+ background-image: -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10
199
+ background-image: linear-gradient($deg, $startColor, $endColor); // The standard
200
+ }
201
+ @mixin vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
202
+ background-color: $endColor;
203
+ background-repeat: no-repeat;
204
+ background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
205
+ background-image: -webkit-linear-gradient($startColor, $midColor $colorStop, $endColor);
206
+ background-image: -moz-linear-gradient(top, $startColor, $midColor $colorStop, $endColor);
207
+ background-image: -ms-linear-gradient($startColor, $midColor $colorStop, $endColor);
208
+ background-image: -o-linear-gradient($startColor, $midColor $colorStop, $endColor);
209
+ background-image: linear-gradient($startColor, $midColor $colorStop, $endColor);
210
+ filter: e(%("progid:DXImageTransform.Microsoft.gradient(startColorstr='%d', endColorstr='%d', GradientType=0)",$startColor,$endColor)); // IE9 and down, gets no color-stop at all for proper fallback
211
+ }
197
212
  }
198
213
 
199
214
  // Reset filters for IE
200
215
  @mixin reset-filter() {
201
- filter: progid:DXImageTransform.Microsoft.Gradient(enabled = false);
216
+ filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
202
217
  }
203
218
 
204
219
  // Opacity
205
220
  @mixin opacity($opacity: 100) {
206
- filter: alpha(opacity='#{$opacity}');
207
- -khtml-opacity: $opacity / 100;
208
- -moz-opacity: $opacity / 100;
209
- opacity: $opacity / 100;
221
+  filter: e(%("alpha(opacity=%d)", $opacity));
222
+  -khtml-opacity: $opacity / 100;
223
+   -moz-opacity: $opacity / 100;
224
+   opacity: $opacity / 100;
210
225
  }