compass-bootstrap-rails 0.1.3.3 → 0.1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.mkdn +24 -24
- data/compass-bootstrap-rails.gemspec +0 -1
- data/lib/compass-bootstrap-rails/version.rb +1 -1
- data/stylesheets/compass-bootstrap/_forms.scss +47 -35
- data/stylesheets/compass-bootstrap/_mixins.scss +111 -96
- data/stylesheets/compass-bootstrap/_patterns.scss +141 -86
- data/stylesheets/compass-bootstrap/_scaffolding.scss +29 -30
- data/stylesheets/compass-bootstrap/_tables.scss +71 -19
- data/stylesheets/compass-bootstrap/_type.scss +3 -3
- data/stylesheets/compass-bootstrap/_variables.scss +34 -34
- data/vendor/assets/javascripts/bootstrap-alerts.js +19 -10
- data/vendor/assets/javascripts/bootstrap-dropdown.js +18 -13
- data/vendor/assets/javascripts/bootstrap-modal.js +75 -42
- data/vendor/assets/javascripts/bootstrap-popover.js +16 -7
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +4 -2
- data/vendor/assets/javascripts/bootstrap-tabs.js +26 -8
- data/vendor/assets/javascripts/bootstrap-twipsy.js +17 -14
- data/vendor/assets/stylesheets/compass-bootstrap/_forms.scss +47 -35
- data/vendor/assets/stylesheets/compass-bootstrap/_mixins.scss +111 -96
- data/vendor/assets/stylesheets/compass-bootstrap/_patterns.scss +141 -86
- data/vendor/assets/stylesheets/compass-bootstrap/_scaffolding.scss +29 -30
- data/vendor/assets/stylesheets/compass-bootstrap/_tables.scss +71 -19
- data/vendor/assets/stylesheets/compass-bootstrap/_type.scss +3 -3
- data/vendor/assets/stylesheets/compass-bootstrap/_variables.scss +34 -34
- metadata +10 -4
data/README.mkdn
CHANGED
@@ -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.
|
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
|
|
@@ -36,7 +36,7 @@ label,
|
|
36
36
|
input,
|
37
37
|
select,
|
38
38
|
textarea {
|
39
|
-
@include
|
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
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
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
|
-
|
170
|
-
|
171
|
-
color: $
|
175
|
+
.help-block,
|
176
|
+
.help-inline {
|
177
|
+
color: $textColor;
|
172
178
|
}
|
179
|
+
// Style inputs accordingly
|
173
180
|
input,
|
174
181
|
textarea {
|
175
|
-
|
176
|
-
|
182
|
+
color: $textColor;
|
183
|
+
border-color: $borderColor;
|
177
184
|
&:focus {
|
178
|
-
border-color: darken($
|
179
|
-
|
185
|
+
border-color: darken($borderColor, 10%);
|
186
|
+
.box-shadow(0 0 6px lighten($borderColor, 20%);
|
180
187
|
}
|
181
188
|
}
|
182
|
-
|
183
|
-
.input-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
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
|
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
|
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
|
-
/*
|
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
|
-
|
9
|
+
&:before,
|
9
10
|
&:after {
|
10
11
|
display: table;
|
11
12
|
content: "";
|
12
13
|
zoom: 1;
|
13
14
|
*display: inline;
|
14
|
-
|
15
|
-
|
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
|
-
|
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
|
-
|
30
|
-
|
30
|
+
height: $height;
|
31
|
+
width: $width;
|
31
32
|
}
|
32
33
|
@mixin square($size: 5px) {
|
33
|
-
|
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
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
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
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
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
|
-
|
122
|
-
|
123
|
-
|
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
|
-
|
129
|
-
|
132
|
+
-webkit-column-count: $columnCount;
|
133
|
+
-moz-column-count: $columnCount;
|
130
134
|
column-count: $columnCount;
|
131
135
|
-webkit-column-gap: $columnGap;
|
132
|
-
|
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
|
-
|
148
|
+
#translucent {
|
149
|
+
@mixin background($color: $white, $alpha: 1) {
|
138
150
|
background-color: hsla(hue($color), saturation($color), lightness($color), $alpha);
|
139
|
-
}
|
140
|
-
@mixin
|
141
|
-
|
142
|
-
|
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
|
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
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
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.
|
216
|
+
filter: e(%("progid:DXImageTransform.Microsoft.gradient(enabled = false)"));
|
202
217
|
}
|
203
218
|
|
204
219
|
// Opacity
|
205
220
|
@mixin opacity($opacity: 100) {
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
221
|
+
filter: e(%("alpha(opacity=%d)", $opacity));
|
222
|
+
-khtml-opacity: $opacity / 100;
|
223
|
+
-moz-opacity: $opacity / 100;
|
224
|
+
opacity: $opacity / 100;
|
210
225
|
}
|