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.
- data/lib/bootstrapped-rails/version.rb +1 -1
- data/readme.md +1 -9
- data/vendor/assets/stylesheets/{bootstrapped/responsive.scss → _bootstrap-responsive.scss} +28 -33
- data/vendor/assets/stylesheets/_bootstrap.scss +63 -0
- data/vendor/assets/stylesheets/bootstrapped-responsive.css.scss +1 -0
- data/vendor/assets/stylesheets/{bootstrapped/accordion.scss → bootstrapped-sass/_accordion.scss} +1 -1
- data/vendor/assets/stylesheets/{bootstrapped/alerts.scss → bootstrapped-sass/_alerts.scss} +8 -16
- data/vendor/assets/stylesheets/{bootstrapped/breadcrumbs.scss → bootstrapped-sass/_breadcrumbs.scss} +2 -2
- data/vendor/assets/stylesheets/{bootstrapped/button-groups.scss → bootstrapped-sass/_button-groups.scss} +8 -19
- data/vendor/assets/stylesheets/bootstrapped-sass/_buttons.scss +163 -0
- data/vendor/assets/stylesheets/{bootstrapped/carousel.scss → bootstrapped-sass/_carousel.scss} +7 -12
- data/vendor/assets/stylesheets/{bootstrapped/close.scss → bootstrapped-sass/_close.scss} +2 -2
- data/vendor/assets/stylesheets/{bootstrapped/code.scss → bootstrapped-sass/_code.scss} +16 -4
- data/vendor/assets/stylesheets/{bootstrapped/component-animations.scss → bootstrapped-sass/_component-animations.scss} +1 -1
- data/vendor/assets/stylesheets/{bootstrapped/dropdowns.scss → bootstrapped-sass/_dropdowns.scss} +6 -11
- data/vendor/assets/stylesheets/{bootstrapped/forms.scss → bootstrapped-sass/_forms.scss} +71 -124
- data/vendor/assets/stylesheets/bootstrapped-sass/_grid.scss +8 -0
- data/vendor/assets/stylesheets/{bootstrapped/hero-unit.scss → bootstrapped-sass/_hero-unit.scss} +1 -1
- data/vendor/assets/stylesheets/bootstrapped-sass/_labels.scss +32 -0
- data/vendor/assets/stylesheets/{bootstrapped/layouts.scss → bootstrapped-sass/_layouts.scss} +0 -0
- data/vendor/assets/stylesheets/{bootstrapped/mixins.scss → bootstrapped-sass/_mixins.scss} +109 -90
- data/vendor/assets/stylesheets/{bootstrapped/modals.scss → bootstrapped-sass/_modals.scss} +15 -4
- data/vendor/assets/stylesheets/{bootstrapped/navbar.scss → bootstrapped-sass/_navbar.scss} +32 -42
- data/vendor/assets/stylesheets/{bootstrapped/navs.scss → bootstrapped-sass/_navs.scss} +42 -60
- data/vendor/assets/stylesheets/{bootstrapped/pager.scss → bootstrapped-sass/_pager.scss} +1 -1
- data/vendor/assets/stylesheets/{bootstrapped/pagination.scss → bootstrapped-sass/_pagination.scss} +5 -7
- data/vendor/assets/stylesheets/{bootstrapped/popovers.scss → bootstrapped-sass/_popovers.scss} +5 -5
- data/vendor/assets/stylesheets/{bootstrapped/progress-bars.scss → bootstrapped-sass/_progress-bars.scss} +1 -1
- data/vendor/assets/stylesheets/{bootstrapped/reset.scss → bootstrapped-sass/_reset.scss} +11 -32
- data/vendor/assets/stylesheets/{bootstrapped/scaffolding.scss → bootstrapped-sass/_scaffolding.scss} +1 -1
- data/vendor/assets/stylesheets/{bootstrapped/sprites.scss → bootstrapped-sass/_sprites.scss} +0 -0
- data/vendor/assets/stylesheets/{bootstrapped/tables.scss → bootstrapped-sass/_tables.scss} +26 -30
- data/vendor/assets/stylesheets/{bootstrapped/thumbnails.scss → bootstrapped-sass/_thumbnails.scss} +3 -3
- data/vendor/assets/stylesheets/{bootstrapped/tooltip.scss → bootstrapped-sass/_tooltip.scss} +5 -5
- data/vendor/assets/stylesheets/{bootstrapped/type.scss → bootstrapped-sass/_type.scss} +7 -15
- data/vendor/assets/stylesheets/{bootstrapped/utilities.scss → bootstrapped-sass/_utilities.scss} +1 -1
- data/vendor/assets/stylesheets/bootstrapped-sass/_variables.scss +103 -0
- data/vendor/assets/stylesheets/{bootstrapped/wells.scss → bootstrapped-sass/_wells.scss} +1 -1
- data/vendor/assets/stylesheets/{bootstrapped → bootstrapped-sass}/fontawesome-webfont.eot +0 -0
- data/vendor/assets/stylesheets/{bootstrapped → bootstrapped-sass}/fontawesome-webfont.svg +0 -0
- data/vendor/assets/stylesheets/{bootstrapped → bootstrapped-sass}/fontawesome-webfont.svgz +0 -0
- data/vendor/assets/stylesheets/{bootstrapped → bootstrapped-sass}/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/stylesheets/{bootstrapped → bootstrapped-sass}/fontawesome-webfont.woff +0 -0
- data/vendor/assets/stylesheets/bootstrapped.css.scss +1 -0
- data/vendor/assets/stylesheets/bootstrapped.css.scss.css +1 -0
- data/vendor/assets/stylesheets/custom_partials/transition.scss +1 -1
- data/vendor/assets/stylesheets/fontawesome-webfont.eot +0 -0
- data/vendor/assets/stylesheets/fontawesome-webfont.svg +175 -0
- data/vendor/assets/stylesheets/fontawesome-webfont.svgz +0 -0
- data/vendor/assets/stylesheets/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/stylesheets/fontawesome-webfont.woff +0 -0
- metadata +56 -55
- data/vendor/assets/stylesheets/bootstrap-xtra/mixins.scss +0 -19
- data/vendor/assets/stylesheets/bootstrap-xtra/patterns_xtra.scss +0 -178
- data/vendor/assets/stylesheets/bootstrap-xtra/type_xtra.css +0 -12
- data/vendor/assets/stylesheets/bootstrap-xtra/variables_xtra.scss +0 -13
- data/vendor/assets/stylesheets/bootstrap-xtra/xtra.scss +0 -24
- data/vendor/assets/stylesheets/bootstrapped.css +0 -4
- data/vendor/assets/stylesheets/bootstrapped/bootstrap.scss +0 -62
- data/vendor/assets/stylesheets/bootstrapped/buttons.scss +0 -189
- data/vendor/assets/stylesheets/bootstrapped/grid.scss +0 -8
- data/vendor/assets/stylesheets/bootstrapped/labels.scss +0 -16
- data/vendor/assets/stylesheets/bootstrapped/variables.scss +0 -99
@@ -0,0 +1,32 @@
|
|
1
|
+
// LABELS
|
2
|
+
// ------
|
3
|
+
|
4
|
+
// Base
|
5
|
+
.label {
|
6
|
+
padding: 2px 4px 3px;
|
7
|
+
font-size: $baseFontSize * .85;
|
8
|
+
font-weight: bold;
|
9
|
+
color: $white;
|
10
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
11
|
+
background-color: $grayLight;
|
12
|
+
@include border-radius(3px);
|
13
|
+
}
|
14
|
+
|
15
|
+
// Hover state
|
16
|
+
.label:hover {
|
17
|
+
color: $white;
|
18
|
+
text-decoration: none;
|
19
|
+
}
|
20
|
+
|
21
|
+
// Colors
|
22
|
+
.label-important { background-color: $errorText; }
|
23
|
+
.label-important:hover { background-color: darken($errorText, 10%); }
|
24
|
+
|
25
|
+
.label-warning { background-color: $orange; }
|
26
|
+
.label-warning:hover { background-color: darken($orange, 10%); }
|
27
|
+
|
28
|
+
.label-success { background-color: $successText; }
|
29
|
+
.label-success:hover { background-color: darken($successText, 10%); }
|
30
|
+
|
31
|
+
.label-info { background-color: $infoText; }
|
32
|
+
.label-info:hover { background-color: darken($infoText, 10%); }
|
data/vendor/assets/stylesheets/{bootstrapped/layouts.scss → bootstrapped-sass/_layouts.scss}
RENAMED
File without changes
|
@@ -20,12 +20,13 @@
|
|
20
20
|
clear: both;
|
21
21
|
}
|
22
22
|
}
|
23
|
+
.clearfix { @include clearfix(); }
|
23
24
|
|
24
25
|
// Webkit-style focus
|
25
26
|
// ------------------
|
26
27
|
@mixin tab-focus() {
|
27
28
|
// Default
|
28
|
-
outline: thin dotted;
|
29
|
+
outline: thin dotted #333;
|
29
30
|
// Webkit
|
30
31
|
outline: 5px auto -webkit-focus-ring-color;
|
31
32
|
outline-offset: -2px;
|
@@ -89,47 +90,46 @@
|
|
89
90
|
}
|
90
91
|
}
|
91
92
|
|
93
|
+
// Text overflow
|
94
|
+
// ------------------------
|
95
|
+
@mixin text-overflow() {
|
96
|
+
overflow: hidden;
|
97
|
+
text-overflow: ellipsis;
|
98
|
+
white-space: nowrap;
|
99
|
+
}
|
92
100
|
|
93
101
|
|
94
102
|
// FONTS
|
95
103
|
// --------------------------------------------------
|
96
|
-
|
97
104
|
@mixin font-family-serif() {
|
98
105
|
font-family: Georgia, "Times New Roman", Times, serif;
|
99
106
|
}
|
100
|
-
|
101
107
|
@mixin font-family-sans-serif() {
|
102
108
|
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
103
109
|
}
|
104
|
-
|
105
110
|
@mixin font-family-monospace() {
|
106
111
|
font-family: Menlo, Monaco, "Courier New", monospace;
|
107
112
|
}
|
108
|
-
|
109
113
|
@mixin font-shorthand($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight) {
|
110
114
|
font-size: $size;
|
111
115
|
font-weight: $weight;
|
112
116
|
line-height: $lineHeight;
|
113
117
|
}
|
114
|
-
|
115
118
|
@mixin font-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight) {
|
116
|
-
@include font-family-serif;
|
119
|
+
@include font-family-serif();
|
117
120
|
@include font-shorthand($size, $weight, $lineHeight);
|
118
121
|
}
|
119
|
-
|
120
122
|
@mixin font-sans-serif($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight) {
|
121
|
-
@include font-family-sans-serif;
|
123
|
+
@include font-family-sans-serif();
|
122
124
|
@include font-shorthand($size, $weight, $lineHeight);
|
123
125
|
}
|
124
|
-
|
125
126
|
@mixin font-monospace($size: $baseFontSize, $weight: normal, $lineHeight: $baseLineHeight) {
|
126
|
-
@include font-family-monospace;
|
127
|
+
@include font-family-monospace();
|
127
128
|
@include font-shorthand($size, $weight, $lineHeight);
|
128
129
|
}
|
129
130
|
|
130
131
|
|
131
132
|
|
132
|
-
|
133
133
|
// GRID SYSTEM
|
134
134
|
// --------------------------------------------------
|
135
135
|
|
@@ -146,21 +146,18 @@
|
|
146
146
|
// -------------------------
|
147
147
|
|
148
148
|
// Setup the mixins to be used
|
149
|
-
@mixin
|
149
|
+
@mixin gridSystemColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, $columns) {
|
150
150
|
width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1));
|
151
151
|
}
|
152
|
-
|
153
|
-
@mixin grid-system-offset($gridColumnWidth, $gridGutterWidth, $columns) {
|
152
|
+
@mixin gridSystemOffset($gridColumnWidth, $gridGutterWidth, $columns) {
|
154
153
|
margin-left: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1)) + ($gridGutterWidth * 2);
|
155
154
|
}
|
156
|
-
|
157
|
-
@mixin grid-system-grid-column($gridGutterWidth) {
|
155
|
+
@mixin gridSystemGridColumn($gridGutterWidth) {
|
158
156
|
float: left;
|
159
157
|
margin-left: $gridGutterWidth;
|
160
158
|
}
|
161
|
-
|
162
159
|
// Take these values and mixins, and make 'em do their thang
|
163
|
-
@mixin
|
160
|
+
@mixin gridSystemGenerate($gridColumns, $gridColumnWidth, $gridGutterWidth) {
|
164
161
|
// Row surrounds the columns
|
165
162
|
.row {
|
166
163
|
margin-left: $gridGutterWidth * -1;
|
@@ -168,33 +165,31 @@
|
|
168
165
|
}
|
169
166
|
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7, thanks @dhg)
|
170
167
|
[class*="span"] {
|
171
|
-
@include
|
168
|
+
@include gridSystemGridColumn($gridGutterWidth);
|
172
169
|
}
|
173
170
|
// Default columns
|
174
|
-
@for $i from 1 through
|
175
|
-
.span#{$i} { @include
|
171
|
+
@for $i from 1 through $gridColumns {
|
172
|
+
.span#{$i} { @include gridSystemColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, $i) }
|
176
173
|
}
|
177
|
-
.container { @include
|
174
|
+
.container { @include gridSystemColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, $gridColumns) }
|
175
|
+
|
178
176
|
// Offset column options
|
179
|
-
@for $i from 1 through
|
180
|
-
.offset#{$i} { @include
|
177
|
+
@for $i from 1 through $gridColumns - 1 {
|
178
|
+
.offset#{$i} { @include gridSystemOffset($gridColumnWidth, $gridGutterWidth, $i) }
|
181
179
|
}
|
182
180
|
}
|
183
181
|
|
184
182
|
// Fluid grid system
|
185
183
|
// -------------------------
|
186
|
-
|
187
|
-
// Setup the mixins to be used
|
188
|
-
@mixin fluid-grid-system-columns($fluidGridGutterWidth, $fluidGridColumnWidth, $columns) {
|
189
|
-
//TODO: check floid
|
184
|
+
@mixin fluidGridSystemColumns($fluidGridGutterWidth, $fluidGridColumnWidth, $columns) {
|
190
185
|
width: ($fluidGridColumnWidth * $columns) + ($fluidGridGutterWidth * ($columns - 1));
|
191
|
-
}
|
192
|
-
@mixin
|
186
|
+
}
|
187
|
+
@mixin fluidGridSystemGridColumn($fluidGridGutterWidth) {
|
193
188
|
float: left;
|
194
189
|
margin-left: $fluidGridGutterWidth;
|
195
190
|
}
|
196
191
|
// Take these values and mixins, and make 'em do their thang
|
197
|
-
@mixin
|
192
|
+
@mixin fluidGridSystemGenerate($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
|
198
193
|
// Row surrounds the columns
|
199
194
|
.row-fluid {
|
200
195
|
width: 100%;
|
@@ -202,35 +197,70 @@
|
|
202
197
|
|
203
198
|
// Find all .span# classes within .row and give them the necessary properties for grid columns (supported by all browsers back to IE7, thanks @dhg)
|
204
199
|
> [class*="span"] {
|
205
|
-
@include
|
200
|
+
@include fluidGridSystemGridColumn($fluidGridGutterWidth);
|
206
201
|
}
|
207
202
|
> [class*="span"]:first-child {
|
208
203
|
margin-left: 0;
|
209
204
|
}
|
210
205
|
// Default columns
|
211
|
-
@for $i from 1 through
|
212
|
-
.span#{$i} { @include
|
206
|
+
@for $i from 1 through $gridColumns {
|
207
|
+
> .span#{$i} { @include fluidGridSystemColumns($fluidGridGutterWidth, $fluidGridColumnWidth, $i); }
|
213
208
|
}
|
214
209
|
}
|
215
210
|
}
|
216
211
|
|
217
|
-
|
218
|
-
|
219
212
|
// Input grid system
|
220
213
|
// -------------------------
|
221
|
-
@mixin
|
214
|
+
@mixin inputGridSystemInputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, $columns) {
|
222
215
|
width: (($gridColumnWidth) * $columns) + ($gridGutterWidth * ($columns - 1)) - 10;
|
223
216
|
}
|
224
|
-
@mixin
|
225
|
-
input,
|
226
|
-
|
227
|
-
|
228
|
-
@for $i from 1 through 12 {
|
229
|
-
&.span#{$i} { @include input-grid-system-input-columns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, $i); }
|
217
|
+
@mixin inputGridSystemGenerate($gridColumns, $gridColumnWidth, $gridGutterWidth) {
|
218
|
+
input, textarea, .uneditable-input {
|
219
|
+
@for $i from 1 through $gridColumns {
|
220
|
+
&.span#{$i} { @include inputGridSystemInputColumns($gridGutterWidth, $gridColumnWidth, $gridRowWidth, $i); }
|
230
221
|
}
|
231
222
|
}
|
232
223
|
}
|
233
224
|
|
225
|
+
// Make a grid
|
226
|
+
// -------------------------
|
227
|
+
// Use makeRow() and makeColumn() to assign semantic layouts grid system behaviour
|
228
|
+
@mixin makeRow() {
|
229
|
+
margin-left: $gridGutterWidth * -1;
|
230
|
+
@include clearfix();
|
231
|
+
}
|
232
|
+
@mixin makeColumn($columns: 1) {
|
233
|
+
float: left;
|
234
|
+
margin-left: $gridGutterWidth;
|
235
|
+
width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1));
|
236
|
+
}
|
237
|
+
|
238
|
+
|
239
|
+
// Form field states (used in forms.less)
|
240
|
+
// --------------------------------------------------
|
241
|
+
|
242
|
+
// Mixin for form field states
|
243
|
+
@mixin formFieldState($textColor: #555, $borderColor: #ccc, $backgroundColor: #f5f5f5) {
|
244
|
+
// Set the text color
|
245
|
+
> label, .help-block, .help-inline {
|
246
|
+
color: $textColor;
|
247
|
+
}
|
248
|
+
// Style inputs accordingly
|
249
|
+
input, select, textarea {
|
250
|
+
color: $textColor;
|
251
|
+
border-color: $borderColor;
|
252
|
+
&:focus {
|
253
|
+
border-color: darken($borderColor, 10%);
|
254
|
+
@include box-shadow(0 0 6px lighten($borderColor, 20%));
|
255
|
+
}
|
256
|
+
}
|
257
|
+
// Give a small background color for input-prepend/-append
|
258
|
+
.input-prepend .add-on, .input-append .add-on {
|
259
|
+
color: $textColor;
|
260
|
+
background-color: $backgroundColor;
|
261
|
+
border-color: $textColor;
|
262
|
+
}
|
263
|
+
}
|
234
264
|
|
235
265
|
|
236
266
|
// CSS3 PROPERTIES
|
@@ -281,6 +311,7 @@
|
|
281
311
|
-o-transform: translate($x, $y);
|
282
312
|
transform: translate($x, $y);
|
283
313
|
}
|
314
|
+
|
284
315
|
@mixin skew($x: 0, $y: 0) {
|
285
316
|
-webkit-transform: skew($x, $y);
|
286
317
|
-moz-transform: skew($x, $y);
|
@@ -289,6 +320,14 @@
|
|
289
320
|
transform: skew($x, $y);
|
290
321
|
}
|
291
322
|
|
323
|
+
@mixin translate3d($x: 0, $y: 0, $z: 0) {
|
324
|
+
-webkit-transform: translate($x, $y, $z);
|
325
|
+
-moz-transform: translate($x, $y, $z);
|
326
|
+
-ms-transform: translate($x, $y, $z);
|
327
|
+
-o-transform: translate($x, $y, $z);
|
328
|
+
transform: translate($x, $y, $z);
|
329
|
+
}
|
330
|
+
|
292
331
|
// Background clipping
|
293
332
|
// Heads up: FF 3.6 and under need "padding" instead of "padding-box"
|
294
333
|
@mixin background-clip($clip) {
|
@@ -339,9 +378,9 @@
|
|
339
378
|
}
|
340
379
|
|
341
380
|
// Opacity
|
342
|
-
@mixin opacity($opacity:
|
343
|
-
opacity: $opacity
|
344
|
-
filter: alpha(opacity
|
381
|
+
@mixin opacity($opacity: 1) {
|
382
|
+
opacity: $opacity;
|
383
|
+
filter: alpha(opacity=$opacity * 100);
|
345
384
|
}
|
346
385
|
|
347
386
|
|
@@ -358,6 +397,13 @@
|
|
358
397
|
@include background-clip(padding-box);
|
359
398
|
}
|
360
399
|
|
400
|
+
// Gradient Bar Colors for buttons and alerts
|
401
|
+
@mixin gradientBar($primaryColor, $secondaryColor) {
|
402
|
+
@include gradient-vertical($primaryColor, $secondaryColor);
|
403
|
+
border-color: $secondaryColor $secondaryColor darken($secondaryColor, 15%);
|
404
|
+
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
|
405
|
+
}
|
406
|
+
|
361
407
|
// Gradients
|
362
408
|
@mixin gradient-horizontal($startColor: #555, $endColor: #333) {
|
363
409
|
background-color: $endColor;
|
@@ -368,9 +414,7 @@
|
|
368
414
|
background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
|
369
415
|
background-image: linear-gradient(left, $startColor, $endColor); // Le standard
|
370
416
|
background-repeat: repeat-x;
|
371
|
-
|
372
|
-
$ieEndColor: ie_hex_str($endColor);
|
373
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$ieStartColor}', endColorstr='#{$ieEndColor}', GradientType=1); // IE9 and down
|
417
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($startColor)}', endColorstr='#{ie-hex-str($endColor)}', GradientType=1); // IE9 and down
|
374
418
|
}
|
375
419
|
@mixin gradient-vertical($startColor: #555, $endColor: #333) {
|
376
420
|
background-color: mix($startColor, $endColor, 60%);
|
@@ -381,9 +425,7 @@
|
|
381
425
|
background-image: -o-linear-gradient(top, $startColor, $endColor); // Opera 11.10
|
382
426
|
background-image: linear-gradient(top, $startColor, $endColor); // The standard
|
383
427
|
background-repeat: repeat-x;
|
384
|
-
|
385
|
-
$ieEndColor: ie_hex_str($endColor);
|
386
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$ieStartColor}', endColorstr='#{$ieEndColor}', GradientType=0); // IE9 and down
|
428
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($startColor)}', endColorstr='#{ie-hex-str($endColor)}', GradientType=0); // IE9 and down
|
387
429
|
}
|
388
430
|
@mixin gradient-directional($startColor: #555, $endColor: #333, $deg: 45deg) {
|
389
431
|
background-color: $endColor;
|
@@ -403,9 +445,7 @@
|
|
403
445
|
background-image: -o-linear-gradient($startColor, $midColor $colorStop, $endColor);
|
404
446
|
background-image: linear-gradient($startColor, $midColor $colorStop, $endColor);
|
405
447
|
background-repeat: no-repeat;
|
406
|
-
|
407
|
-
$ieEndColor: ie_hex_str($endColor);
|
408
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$ieStartColor}', endColorstr='#{$ieEndColor}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
|
448
|
+
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($startColor)}', endColorstr='#{ie-hex-str($endColor)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
|
409
449
|
}
|
410
450
|
@mixin gradient-radial($innerColor: #555, $outerColor: #333) {
|
411
451
|
background-color: $outerColor;
|
@@ -418,22 +458,13 @@
|
|
418
458
|
}
|
419
459
|
@mixin gradient-striped($color, $angle: -45deg) {
|
420
460
|
background-color: $color;
|
421
|
-
$transparent: rgba(0,0,0,0); // Workaround compass transparent color-stop bug https://github.com/chriseppstein/compass/issues/356
|
422
461
|
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, rgba(255,255,255,.15)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255,255,255,.15)), color-stop(.75, rgba(255,255,255,.15)), color-stop(.75, transparent), to(transparent));
|
423
|
-
background-image: -webkit-linear-gradient($angle, rgba(255,255,255,.15) 25%,
|
424
|
-
background-image: -moz-linear-gradient($angle, rgba(255,255,255,.15) 25%,
|
425
|
-
background-image: -ms-linear-gradient($angle, rgba(255,255,255,.15) 25%,
|
426
|
-
background-image: -o-linear-gradient($angle, rgba(255,255,255,.15) 25%,
|
427
|
-
background-image: linear-gradient($angle, rgba(255,255,255,.15) 25%,
|
428
|
-
}
|
429
|
-
|
430
|
-
// Gradient Bar Colors for buttons and alerts
|
431
|
-
@mixin gradient-bar($primaryColor, $secondaryColor) {
|
432
|
-
@include gradient-vertical($primaryColor, $secondaryColor);
|
433
|
-
border-color: $secondaryColor $secondaryColor darken($secondaryColor, 15%);
|
434
|
-
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) fadein(rgba(0,0,0,.1), 15%);
|
462
|
+
background-image: -webkit-linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
|
463
|
+
background-image: -moz-linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
|
464
|
+
background-image: -ms-linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
|
465
|
+
background-image: -o-linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
|
466
|
+
background-image: linear-gradient($angle, rgba(255,255,255,.15) 25%, rgba(255,255,255,0) 25%, rgba(255,255,255,0) 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, rgba(255,255,255,0) 75%, rgba(255,255,255,0));
|
435
467
|
}
|
436
|
-
|
437
468
|
// Reset filters for IE
|
438
469
|
@mixin reset-filter() {
|
439
470
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
|
@@ -442,34 +473,22 @@
|
|
442
473
|
|
443
474
|
// Mixin for generating button backgrounds
|
444
475
|
// ---------------------------------------
|
445
|
-
@mixin
|
476
|
+
@mixin buttonBackground($startColor, $endColor) {
|
446
477
|
// gradientBar will set the background to a pleasing blend of these, to support IE<=9
|
447
|
-
@include
|
478
|
+
@include gradientBar($startColor, $endColor);
|
448
479
|
@include reset-filter();
|
449
480
|
|
450
481
|
// in these cases the gradient won't cover the background, so we override
|
451
482
|
&:hover, &:active, &.active, &.disabled, &[disabled] {
|
452
|
-
|
483
|
+
background-color: $endColor;
|
453
484
|
}
|
454
485
|
|
455
486
|
// IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
|
456
|
-
&:active,
|
457
|
-
&.active {
|
487
|
+
&:active, &.active {
|
458
488
|
background-color: darken($endColor, 10%) \9;
|
459
489
|
}
|
460
490
|
}
|
461
|
-
@mixin button_background2($color, $percentage) {
|
462
|
-
background-color: darken($color, $percentage);
|
463
|
-
background-image: -khtml-gradient(linear, left top, right top, from($color), to(darken($color, $percentage))); // Konqueror
|
464
|
-
background-image: -moz-linear-gradient(left, $color, darken($color, $percentage)); // FF 3.6+
|
465
|
-
background-image: -ms-linear-gradient(left, $color, darken($color, $percentage)); // IE10
|
466
|
-
background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, $color), color-stop(100%, darken($color, $percentage))); // Safari 4+, Chrome 2+
|
467
|
-
background-image: -webkit-linear-gradient(left, $color, darken($color, $percentage)); // Safari 5.1+, Chrome 10+
|
468
|
-
background-image: -o-linear-gradient(left, $color, darken($color, $percentage)); // Opera 11.10
|
469
|
-
background-image: linear-gradient(left, $color, darken($color, $percentage)); // Le standard
|
470
|
-
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$color}', endColorstr='#{darken($color, $percentage)}', GradientType=1); // IE9 and down
|
471
491
|
|
472
|
-
}
|
473
492
|
|
474
493
|
// COMPONENT MIXINS
|
475
494
|
// --------------------------------------------------
|
@@ -477,7 +496,7 @@
|
|
477
496
|
// POPOVER ARROWS
|
478
497
|
// -------------------------
|
479
498
|
// For tipsies and popovers
|
480
|
-
@mixin
|
499
|
+
@mixin popoverArrowTop($arrowWidth: 5px) {
|
481
500
|
bottom: 0;
|
482
501
|
left: 50%;
|
483
502
|
margin-left: -$arrowWidth;
|
@@ -485,7 +504,7 @@
|
|
485
504
|
border-right: $arrowWidth solid transparent;
|
486
505
|
border-top: $arrowWidth solid $black;
|
487
506
|
}
|
488
|
-
@mixin
|
507
|
+
@mixin popoverArrowLeft($arrowWidth: 5px) {
|
489
508
|
top: 50%;
|
490
509
|
right: 0;
|
491
510
|
margin-top: -$arrowWidth;
|
@@ -493,7 +512,7 @@
|
|
493
512
|
border-bottom: $arrowWidth solid transparent;
|
494
513
|
border-left: $arrowWidth solid $black;
|
495
514
|
}
|
496
|
-
@mixin
|
515
|
+
@mixin popoverArrowBottom($arrowWidth: 5px) {
|
497
516
|
top: 0;
|
498
517
|
left: 50%;
|
499
518
|
margin-left: -$arrowWidth;
|
@@ -501,7 +520,7 @@
|
|
501
520
|
border-right: $arrowWidth solid transparent;
|
502
521
|
border-bottom: $arrowWidth solid $black;
|
503
522
|
}
|
504
|
-
@mixin
|
523
|
+
@mixin popoverArrowRight($arrowWidth: 5px) {
|
505
524
|
top: 50%;
|
506
525
|
left: 0;
|
507
526
|
margin-top: -$arrowWidth;
|