bootstrap-generators 2.1.1 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +48 -3
- data/lib/bootstrap/generators/version.rb +1 -1
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.scss +25 -2
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.less +23 -1
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.scss +1 -1
- data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.scss +1 -1
- data/vendor/assets/javascripts/bootstrap-affix.js +4 -2
- data/vendor/assets/javascripts/bootstrap-alert.js +2 -4
- data/vendor/assets/javascripts/bootstrap-button.js +5 -7
- data/vendor/assets/javascripts/bootstrap-carousel.js +12 -12
- data/vendor/assets/javascripts/bootstrap-collapse.js +9 -11
- data/vendor/assets/javascripts/bootstrap-dropdown.js +9 -11
- data/vendor/assets/javascripts/bootstrap-modal.js +20 -25
- data/vendor/assets/javascripts/bootstrap-popover.js +1 -1
- data/vendor/assets/javascripts/bootstrap-scrollspy.js +1 -1
- data/vendor/assets/javascripts/bootstrap-tab.js +5 -7
- data/vendor/assets/javascripts/bootstrap-tooltip.js +12 -11
- data/vendor/assets/javascripts/bootstrap-transition.js +5 -5
- data/vendor/assets/javascripts/bootstrap-typeahead.js +19 -9
- data/vendor/twitter/bootstrap/less/accordion.less +1 -1
- data/vendor/twitter/bootstrap/less/alerts.less +1 -1
- data/vendor/twitter/bootstrap/less/bootstrap.less +2 -1
- data/vendor/twitter/bootstrap/less/breadcrumbs.less +1 -1
- data/vendor/twitter/bootstrap/less/button-groups.less +5 -8
- data/vendor/twitter/bootstrap/less/buttons.less +17 -16
- data/vendor/twitter/bootstrap/less/code.less +1 -1
- data/vendor/twitter/bootstrap/less/dropdowns.less +32 -5
- data/vendor/twitter/bootstrap/less/forms.less +47 -14
- data/vendor/twitter/bootstrap/less/hero-unit.less +6 -5
- data/vendor/twitter/bootstrap/less/labels-badges.less +4 -2
- data/vendor/twitter/bootstrap/less/media.less +55 -0
- data/vendor/twitter/bootstrap/less/mixins.less +15 -10
- data/vendor/twitter/bootstrap/less/modals.less +7 -11
- data/vendor/twitter/bootstrap/less/navbar.less +6 -6
- data/vendor/twitter/bootstrap/less/navs.less +3 -2
- data/vendor/twitter/bootstrap/less/pager.less +10 -9
- data/vendor/twitter/bootstrap/less/pagination.less +69 -12
- data/vendor/twitter/bootstrap/less/popovers.less +2 -2
- data/vendor/twitter/bootstrap/less/progress-bars.less +2 -2
- data/vendor/twitter/bootstrap/less/reset.less +5 -4
- data/vendor/twitter/bootstrap/less/responsive-767px-max.less +20 -1
- data/vendor/twitter/bootstrap/less/responsive-navbar.less +12 -4
- data/vendor/twitter/bootstrap/less/responsive.less +1 -1
- data/vendor/twitter/bootstrap/less/sprites.less +3 -3
- data/vendor/twitter/bootstrap/less/tables.less +20 -29
- data/vendor/twitter/bootstrap/less/thumbnails.less +1 -1
- data/vendor/twitter/bootstrap/less/tooltip.less +1 -1
- data/vendor/twitter/bootstrap/less/type.less +30 -24
- data/vendor/twitter/bootstrap/less/variables.less +23 -1
- data/vendor/twitter/bootstrap/less/wells.less +3 -3
- data/vendor/twitter/bootstrap/sass/_accordion.scss +1 -1
- data/vendor/twitter/bootstrap/sass/_alerts.scss +1 -1
- data/vendor/twitter/bootstrap/sass/_breadcrumbs.scss +1 -1
- data/vendor/twitter/bootstrap/sass/_button-groups.scss +5 -8
- data/vendor/twitter/bootstrap/sass/_buttons.scss +18 -17
- data/vendor/twitter/bootstrap/sass/_code.scss +1 -1
- data/vendor/twitter/bootstrap/sass/_component-animations.scss +2 -2
- data/vendor/twitter/bootstrap/sass/_dropdowns.scss +32 -5
- data/vendor/twitter/bootstrap/sass/_forms.scss +46 -14
- data/vendor/twitter/bootstrap/sass/_hero-unit.scss +6 -5
- data/vendor/twitter/bootstrap/sass/_labels-badges.scss +4 -2
- data/vendor/twitter/bootstrap/sass/_media.scss +55 -0
- data/vendor/twitter/bootstrap/sass/_mixins.scss +12 -7
- data/vendor/twitter/bootstrap/sass/_modals.scss +8 -11
- data/vendor/twitter/bootstrap/sass/_navbar.scss +8 -10
- data/vendor/twitter/bootstrap/sass/_navs.scss +5 -4
- data/vendor/twitter/bootstrap/sass/_pager.scss +10 -9
- data/vendor/twitter/bootstrap/sass/_pagination.scss +69 -12
- data/vendor/twitter/bootstrap/sass/_popovers.scss +2 -2
- data/vendor/twitter/bootstrap/sass/_progress-bars.scss +2 -2
- data/vendor/twitter/bootstrap/sass/_reset.scss +6 -4
- data/vendor/twitter/bootstrap/sass/_responsive-767px-max.scss +20 -1
- data/vendor/twitter/bootstrap/sass/_responsive-navbar.scss +12 -4
- data/vendor/twitter/bootstrap/sass/_scaffolding.scss +1 -3
- data/vendor/twitter/bootstrap/sass/_sprites.scss +3 -3
- data/vendor/twitter/bootstrap/sass/_tables.scss +12 -8
- data/vendor/twitter/bootstrap/sass/_thumbnails.scss +1 -1
- data/vendor/twitter/bootstrap/sass/_tooltip.scss +1 -1
- data/vendor/twitter/bootstrap/sass/_type.scss +30 -24
- data/vendor/twitter/bootstrap/sass/_variables.scss +25 -2
- data/vendor/twitter/bootstrap/sass/_wells.scss +3 -3
- data/vendor/twitter/bootstrap/sass/bootstrap.scss +2 -1
- data/vendor/twitter/bootstrap/sass/responsive.scss +1 -1
- metadata +12 -10
@@ -72,7 +72,7 @@
|
|
72
72
|
}
|
73
73
|
|
74
74
|
// Links within the dropdown menu
|
75
|
-
a {
|
75
|
+
li > a {
|
76
76
|
display: block;
|
77
77
|
padding: 3px 20px;
|
78
78
|
clear: both;
|
@@ -90,7 +90,6 @@
|
|
90
90
|
.dropdown-submenu:hover > a {
|
91
91
|
text-decoration: none;
|
92
92
|
color: $dropdownLinkColorHover;
|
93
|
-
background-color: $dropdownLinkBackgroundHover;
|
94
93
|
@include gradient-vertical($dropdownLinkBackgroundHover, darken($dropdownLinkBackgroundHover, 5%));
|
95
94
|
}
|
96
95
|
|
@@ -98,10 +97,9 @@
|
|
98
97
|
// ------------
|
99
98
|
.dropdown-menu .active > a,
|
100
99
|
.dropdown-menu .active > a:hover {
|
101
|
-
color: $
|
100
|
+
color: $dropdownLinkColorActive;
|
102
101
|
text-decoration: none;
|
103
102
|
outline: 0;
|
104
|
-
background-color: $dropdownLinkBackgroundActive;
|
105
103
|
@include gradient-vertical($dropdownLinkBackgroundActive, darken($dropdownLinkBackgroundActive, 5%));
|
106
104
|
}
|
107
105
|
|
@@ -116,6 +114,7 @@
|
|
116
114
|
.dropdown-menu .disabled > a:hover {
|
117
115
|
text-decoration: none;
|
118
116
|
background-color: transparent;
|
117
|
+
background-image: none; // Remove CSS gradient
|
119
118
|
cursor: default;
|
120
119
|
}
|
121
120
|
|
@@ -163,6 +162,7 @@
|
|
163
162
|
.dropdown-submenu {
|
164
163
|
position: relative;
|
165
164
|
}
|
165
|
+
// Default dropdowns
|
166
166
|
.dropdown-submenu > .dropdown-menu {
|
167
167
|
top: 0;
|
168
168
|
left: 100%;
|
@@ -176,6 +176,18 @@
|
|
176
176
|
display: block;
|
177
177
|
}
|
178
178
|
|
179
|
+
// Dropups
|
180
|
+
.dropup .dropdown-submenu > .dropdown-menu {
|
181
|
+
top: auto;
|
182
|
+
bottom: 0;
|
183
|
+
margin-top: 0;
|
184
|
+
margin-bottom: -2px;
|
185
|
+
-webkit-border-radius: 5px 5px 5px 0;
|
186
|
+
-moz-border-radius: 5px 5px 5px 0;
|
187
|
+
border-radius: 5px 5px 5px 0;
|
188
|
+
}
|
189
|
+
|
190
|
+
// Caret to indicate there is a submenu
|
179
191
|
.dropdown-submenu > a:after {
|
180
192
|
display: block;
|
181
193
|
content: " ";
|
@@ -193,6 +205,21 @@
|
|
193
205
|
border-left-color: $dropdownLinkColorHover;
|
194
206
|
}
|
195
207
|
|
208
|
+
// Left aligned submenus
|
209
|
+
.dropdown-submenu.pull-left {
|
210
|
+
// Undo the float
|
211
|
+
// Yes, this is awkward since .pull-left adds a float, but it sticks to our conventions elsewhere.
|
212
|
+
float: none;
|
213
|
+
|
214
|
+
// Positioning the submenu
|
215
|
+
> .dropdown-menu {
|
216
|
+
left: -100%;
|
217
|
+
margin-left: 10px;
|
218
|
+
-webkit-border-radius: 6px 0 6px 6px;
|
219
|
+
-moz-border-radius: 6px 0 6px 6px;
|
220
|
+
border-radius: 6px 0 6px 6px;
|
221
|
+
}
|
222
|
+
}
|
196
223
|
|
197
224
|
// Tweak nav headers
|
198
225
|
// -----------------
|
@@ -206,5 +233,5 @@
|
|
206
233
|
// ---------
|
207
234
|
.typeahead {
|
208
235
|
margin-top: 2px; // give it some space to breathe
|
209
|
-
@include border-radius(
|
236
|
+
@include border-radius($baseBorderRadius);
|
210
237
|
}
|
@@ -81,11 +81,12 @@ input[type="color"],
|
|
81
81
|
display: inline-block;
|
82
82
|
height: $baseLineHeight;
|
83
83
|
padding: 4px 6px;
|
84
|
-
margin-bottom:
|
84
|
+
margin-bottom: $baseLineHeight / 2;;
|
85
85
|
font-size: $baseFontSize;
|
86
86
|
line-height: $baseLineHeight;
|
87
87
|
color: $gray;
|
88
88
|
@include border-radius($inputBorderRadius);
|
89
|
+
vertical-align: middle;
|
89
90
|
}
|
90
91
|
|
91
92
|
// Reset appearance properties for textual inputs and textarea
|
@@ -119,14 +120,14 @@ input[type="color"],
|
|
119
120
|
background-color: $inputBackground;
|
120
121
|
border: 1px solid $inputBorder;
|
121
122
|
@include box-shadow(inset 0 1px 1px rgba(0,0,0,.075));
|
122
|
-
@include transition(
|
123
|
+
@include transition(border linear .2s, box-shadow linear .2s);
|
123
124
|
|
124
125
|
// Focus state
|
125
126
|
&:focus {
|
126
127
|
border-color: rgba(82,168,236,.8);
|
127
128
|
outline: 0;
|
128
129
|
outline: thin dotted \9; /* IE6-9 */
|
129
|
-
@include box-shadow(
|
130
|
+
@include box-shadow(inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6));
|
130
131
|
}
|
131
132
|
}
|
132
133
|
|
@@ -154,9 +155,9 @@ input[type="checkbox"] {
|
|
154
155
|
// Set the height of select and file controls to match text inputs
|
155
156
|
select,
|
156
157
|
input[type="file"] {
|
157
|
-
height:
|
158
|
+
height: $inputHeight; /* In IE7, the height of the select element cannot be changed by height, only font-size */
|
158
159
|
*margin-top: 4px; /* For IE7, add top margin to align select with labels */
|
159
|
-
line-height:
|
160
|
+
line-height: $inputHeight;
|
160
161
|
}
|
161
162
|
|
162
163
|
// Make select elements obey height by applying a border
|
@@ -210,7 +211,7 @@ input[type="checkbox"]:focus {
|
|
210
211
|
// Placeholder
|
211
212
|
// -------------------------
|
212
213
|
|
213
|
-
// Placeholder text gets special styles because when browsers invalidate entire lines if it doesn
|
214
|
+
// Placeholder text gets special styles because when browsers invalidate entire lines if it doesn't understand a selector
|
214
215
|
input,
|
215
216
|
textarea {
|
216
217
|
@include placeholder();
|
@@ -223,13 +224,13 @@ textarea {
|
|
223
224
|
// Indent the labels to position radios/checkboxes as hanging
|
224
225
|
.radio,
|
225
226
|
.checkbox {
|
226
|
-
min-height:
|
227
|
-
padding-left:
|
227
|
+
min-height: $baseLineHeight; // clear the floating input if there is no label text
|
228
|
+
padding-left: 20px;
|
228
229
|
}
|
229
230
|
.radio input[type="radio"],
|
230
231
|
.checkbox input[type="checkbox"] {
|
231
232
|
float: left;
|
232
|
-
margin-left: -
|
233
|
+
margin-left: -20px;
|
233
234
|
}
|
234
235
|
|
235
236
|
// Move the options list down to align with labels
|
@@ -304,8 +305,17 @@ textarea[class*="span"],
|
|
304
305
|
.controls-row {
|
305
306
|
@include clearfix(); // Clear the float from controls
|
306
307
|
}
|
307
|
-
|
308
|
-
|
308
|
+
|
309
|
+
// Float to collapse white-space for proper grid alignment
|
310
|
+
.controls-row [class*="span"],
|
311
|
+
// Redeclare the fluid grid collapse since we undo the float for inputs
|
312
|
+
.row-fluid .controls-row [class*="span"] {
|
313
|
+
float: left;
|
314
|
+
}
|
315
|
+
// Explicity set top padding on all checkboxes/radios, not just first-child
|
316
|
+
.controls-row .checkbox[class*="span"],
|
317
|
+
.controls-row .radio[class*="span"] {
|
318
|
+
padding-top: 5px;
|
309
319
|
}
|
310
320
|
|
311
321
|
|
@@ -413,16 +423,23 @@ select:focus:required:invalid {
|
|
413
423
|
.input-append,
|
414
424
|
.input-prepend {
|
415
425
|
margin-bottom: 5px;
|
416
|
-
font-size: 0;
|
426
|
+
font-size: 0; // white space collapse hack
|
417
427
|
white-space: nowrap; // Prevent span and input from separating
|
418
428
|
|
429
|
+
// Reset the white space collapse hack
|
430
|
+
input,
|
431
|
+
select,
|
432
|
+
.uneditable-input,
|
433
|
+
.dropdown-menu {
|
434
|
+
font-size: $baseFontSize;
|
435
|
+
}
|
436
|
+
|
419
437
|
input,
|
420
438
|
select,
|
421
439
|
.uneditable-input {
|
422
440
|
position: relative; // placed here by default so that on :focus we can place the input above the .add-on for full border and box-shadow goodness
|
423
441
|
margin-bottom: 0; // prevent bottom margin from screwing up alignment in stacked forms
|
424
442
|
*margin-left: 0;
|
425
|
-
font-size: $baseFontSize;
|
426
443
|
vertical-align: top;
|
427
444
|
@include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
|
428
445
|
// Make input on top when focused so blue border and shadow always show
|
@@ -454,6 +471,7 @@ select:focus:required:invalid {
|
|
454
471
|
border-color: $green;
|
455
472
|
}
|
456
473
|
}
|
474
|
+
|
457
475
|
.input-prepend {
|
458
476
|
.add-on,
|
459
477
|
.btn {
|
@@ -461,17 +479,23 @@ select:focus:required:invalid {
|
|
461
479
|
}
|
462
480
|
.add-on:first-child,
|
463
481
|
.btn:first-child {
|
482
|
+
// FYI, `.btn:first-child` accounts for a button group that's prepended
|
464
483
|
@include border-radius($inputBorderRadius 0 0 $inputBorderRadius);
|
465
484
|
}
|
466
485
|
}
|
486
|
+
|
467
487
|
.input-append {
|
468
488
|
input,
|
469
489
|
select,
|
470
490
|
.uneditable-input {
|
471
491
|
@include border-radius($inputBorderRadius 0 0 $inputBorderRadius);
|
492
|
+
+ .btn-group .btn {
|
493
|
+
@include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
|
494
|
+
}
|
472
495
|
}
|
473
496
|
.add-on,
|
474
|
-
.btn
|
497
|
+
.btn,
|
498
|
+
.btn-group {
|
475
499
|
margin-left: -1px;
|
476
500
|
}
|
477
501
|
.add-on:last-child,
|
@@ -479,12 +503,16 @@ select:focus:required:invalid {
|
|
479
503
|
@include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
|
480
504
|
}
|
481
505
|
}
|
506
|
+
|
482
507
|
// Remove all border-radius for inputs with both prepend and append
|
483
508
|
.input-prepend.input-append {
|
484
509
|
input,
|
485
510
|
select,
|
486
511
|
.uneditable-input {
|
487
512
|
@include border-radius(0);
|
513
|
+
+ .btn-group .btn {
|
514
|
+
@include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
|
515
|
+
}
|
488
516
|
}
|
489
517
|
.add-on:first-child,
|
490
518
|
.btn:first-child {
|
@@ -496,10 +524,14 @@ select:focus:required:invalid {
|
|
496
524
|
margin-left: -1px;
|
497
525
|
@include border-radius(0 $inputBorderRadius $inputBorderRadius 0);
|
498
526
|
}
|
527
|
+
.btn-group:first-child {
|
528
|
+
margin-left: 0;
|
529
|
+
}
|
499
530
|
}
|
500
531
|
|
501
532
|
|
502
533
|
|
534
|
+
|
503
535
|
// SEARCH FORM
|
504
536
|
// -----------
|
505
537
|
|
@@ -6,6 +6,10 @@
|
|
6
6
|
.hero-unit {
|
7
7
|
padding: 60px;
|
8
8
|
margin-bottom: 30px;
|
9
|
+
font-size: 18px;
|
10
|
+
font-weight: 200;
|
11
|
+
line-height: $baseLineHeight * 1.5;
|
12
|
+
color: $heroUnitLeadColor;
|
9
13
|
background-color: $heroUnitBackground;
|
10
14
|
@include border-radius(6px);
|
11
15
|
h1 {
|
@@ -15,10 +19,7 @@
|
|
15
19
|
color: $heroUnitHeadingColor;
|
16
20
|
letter-spacing: -1px;
|
17
21
|
}
|
18
|
-
|
19
|
-
|
20
|
-
font-weight: 200;
|
21
|
-
line-height: $baseLineHeight * 1.5;
|
22
|
-
color: $heroUnitLeadColor;
|
22
|
+
li {
|
23
|
+
line-height: $baseLineHeight * 1.5; // Reset since we specify in type.scss
|
23
24
|
}
|
24
25
|
}
|
@@ -6,6 +6,8 @@
|
|
6
6
|
// Base classes
|
7
7
|
.label,
|
8
8
|
.badge {
|
9
|
+
display: inline-block;
|
10
|
+
padding: 2px 4px;
|
9
11
|
font-size: $baseFontSize * .846;
|
10
12
|
font-weight: bold;
|
11
13
|
line-height: 14px; // ensure proper line-height if floated
|
@@ -17,11 +19,11 @@
|
|
17
19
|
}
|
18
20
|
// Set unique padding and border-radii
|
19
21
|
.label {
|
20
|
-
padding: 1px 4px 2px;
|
21
22
|
@include border-radius(3px);
|
22
23
|
}
|
23
24
|
.badge {
|
24
|
-
padding:
|
25
|
+
padding-left: 9px;
|
26
|
+
padding-right: 9px;
|
25
27
|
@include border-radius(9px);
|
26
28
|
}
|
27
29
|
|
@@ -0,0 +1,55 @@
|
|
1
|
+
// Media objects
|
2
|
+
// Source: http://stubbornella.org/content/?p=497
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Common styles
|
7
|
+
// -------------------------
|
8
|
+
|
9
|
+
// Clear the floats
|
10
|
+
.media,
|
11
|
+
.media-body {
|
12
|
+
overflow: hidden;
|
13
|
+
*overflow: visible;
|
14
|
+
zoom: 1;
|
15
|
+
}
|
16
|
+
|
17
|
+
// Proper spacing between instances of .media
|
18
|
+
.media,
|
19
|
+
.media .media {
|
20
|
+
margin-top: 15px;
|
21
|
+
}
|
22
|
+
.media:first-child {
|
23
|
+
margin-top: 0;
|
24
|
+
}
|
25
|
+
|
26
|
+
// For images and videos, set to block
|
27
|
+
.media-object {
|
28
|
+
display: block;
|
29
|
+
}
|
30
|
+
|
31
|
+
// Reset margins on headings for tighter default spacing
|
32
|
+
.media-heading {
|
33
|
+
margin: 0 0 5px;
|
34
|
+
}
|
35
|
+
|
36
|
+
|
37
|
+
// Media image alignment
|
38
|
+
// -------------------------
|
39
|
+
|
40
|
+
.media .pull-left {
|
41
|
+
margin-right: 10px;
|
42
|
+
}
|
43
|
+
.media .pull-right {
|
44
|
+
margin-left: 10px;
|
45
|
+
}
|
46
|
+
|
47
|
+
|
48
|
+
// Media list variation
|
49
|
+
// -------------------------
|
50
|
+
|
51
|
+
// Undo default ul/ol styles
|
52
|
+
.media-list {
|
53
|
+
margin-left: 0;
|
54
|
+
list-style: none;
|
55
|
+
}
|
@@ -149,7 +149,7 @@
|
|
149
149
|
@mixin input-block-level {
|
150
150
|
display: block;
|
151
151
|
width: 100%;
|
152
|
-
min-height:
|
152
|
+
min-height: $inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
|
153
153
|
@include box-sizing(border-box); // Makes inputs behave like true block-level elements
|
154
154
|
}
|
155
155
|
|
@@ -178,7 +178,7 @@
|
|
178
178
|
@include box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
|
179
179
|
&:focus {
|
180
180
|
border-color: darken($borderColor, 10%);
|
181
|
-
@include box-shadow(
|
181
|
+
@include box-shadow(inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px lighten($borderColor, 20%));
|
182
182
|
}
|
183
183
|
}
|
184
184
|
// Give a small background color for input-prepend/-append
|
@@ -243,14 +243,14 @@
|
|
243
243
|
}
|
244
244
|
|
245
245
|
// Drop shadows
|
246
|
-
@mixin box-shadow($shadow) {
|
246
|
+
@mixin box-shadow($shadow...) {
|
247
247
|
-webkit-box-shadow: $shadow;
|
248
248
|
-moz-box-shadow: $shadow;
|
249
249
|
box-shadow: $shadow;
|
250
250
|
}
|
251
251
|
|
252
252
|
// Transitions
|
253
|
-
@mixin transition($transition) {
|
253
|
+
@mixin transition($transition...) {
|
254
254
|
-webkit-transition: $transition;
|
255
255
|
-moz-transition: $transition;
|
256
256
|
-o-transition: $transition;
|
@@ -292,6 +292,7 @@
|
|
292
292
|
-ms-transform: skewX($x) skewY($y); // See https://github.com/twitter/bootstrap/issues/4885
|
293
293
|
-o-transform: skew($x, $y);
|
294
294
|
transform: skew($x, $y);
|
295
|
+
-webkit-backface-visibility: hidden; // See https://github.com/twitter/bootstrap/issues/5319
|
295
296
|
}
|
296
297
|
@mixin translate3d($x, $y, $z) {
|
297
298
|
-webkit-transform: translate3d($x, $y, $z);
|
@@ -457,7 +458,7 @@
|
|
457
458
|
}
|
458
459
|
|
459
460
|
// Reset filters for IE
|
460
|
-
@mixin
|
461
|
+
@mixin reset-filter() {
|
461
462
|
filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
|
462
463
|
}
|
463
464
|
|
@@ -489,7 +490,7 @@
|
|
489
490
|
// gradientBar will set the background to a pleasing blend of these, to support IE<=9
|
490
491
|
@include gradientBar($startColor, $endColor, $textColor, $textShadow);
|
491
492
|
*background-color: $endColor; /* Darken IE7 buttons by default so they stand out more given they won't have borders */
|
492
|
-
@include
|
493
|
+
@include reset-filter();
|
493
494
|
|
494
495
|
// in these cases the gradient won't cover the background, so we override
|
495
496
|
&:hover, &:active, &.active, &.disabled, &[disabled] {
|
@@ -544,7 +545,6 @@
|
|
544
545
|
width: ($gridColumnWidth * $columns) + ($gridGutterWidth * ($columns - 1));
|
545
546
|
}
|
546
547
|
|
547
|
-
|
548
548
|
// The Grid
|
549
549
|
@mixin grid-core($gridColumnWidth, $gridGutterWidth) {
|
550
550
|
.row {
|
@@ -609,6 +609,11 @@
|
|
609
609
|
margin-left: 0;
|
610
610
|
}
|
611
611
|
|
612
|
+
// Space grid-sized controls properly if multiple per line
|
613
|
+
.controls-row [class*="span"] + [class*="span"] {
|
614
|
+
margin-left: $fluidGridGutterWidth;
|
615
|
+
}
|
616
|
+
|
612
617
|
// generate .spanX and .offsetX
|
613
618
|
@include grid-fluid-span-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth);
|
614
619
|
@include grid-fluid-offset-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth);
|
@@ -2,16 +2,6 @@
|
|
2
2
|
// Modals
|
3
3
|
// --------------------------------------------------
|
4
4
|
|
5
|
-
|
6
|
-
// Recalculate z-index where appropriate,
|
7
|
-
// but only apply to elements within modal
|
8
|
-
.modal-open .modal {
|
9
|
-
.dropdown-menu { z-index: $zindexDropdown + $zindexModal; }
|
10
|
-
.dropdown.open { *z-index: $zindexDropdown + $zindexModal; }
|
11
|
-
.popover { z-index: $zindexPopover + $zindexModal; }
|
12
|
-
.tooltip { z-index: $zindexTooltip + $zindexModal; }
|
13
|
-
}
|
14
|
-
|
15
5
|
// Background
|
16
6
|
.modal-backdrop {
|
17
7
|
position: fixed;
|
@@ -46,8 +36,11 @@
|
|
46
36
|
@include border-radius(6px);
|
47
37
|
@include box-shadow(0 3px 7px rgba(0,0,0,0.3));
|
48
38
|
@include background-clip(padding-box);
|
39
|
+
// Remove focus outline from opened modal
|
40
|
+
outline: none;
|
41
|
+
|
49
42
|
&.fade {
|
50
|
-
@include transition(
|
43
|
+
@include transition(opacity .3s linear, top .3s ease-out);
|
51
44
|
top: -25%;
|
52
45
|
}
|
53
46
|
&.fade.in { top: 50%; }
|
@@ -95,4 +88,8 @@
|
|
95
88
|
.btn-group .btn + .btn {
|
96
89
|
margin-left: -1px;
|
97
90
|
}
|
91
|
+
// and override it for block buttons as well
|
92
|
+
.btn-block + .btn-block {
|
93
|
+
margin-left: 0;
|
94
|
+
}
|
98
95
|
}
|