bootstrap-sass 3.2.0.4 → 3.3.0.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.
Potentially problematic release.
This version of bootstrap-sass might be problematic. Click here for more details.
- checksums.yaml +5 -5
- data/.gitignore +2 -1
- data/.travis.yml +8 -2
- data/CHANGELOG.md +7 -0
- data/CONTRIBUTING.md +1 -1
- data/README.md +29 -6
- data/Rakefile +3 -4
- data/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +1 -1
- data/assets/javascripts/bootstrap.js +329 -176
- data/assets/javascripts/bootstrap/affix.js +43 -23
- data/assets/javascripts/bootstrap/alert.js +6 -4
- data/assets/javascripts/bootstrap/button.js +16 -10
- data/assets/javascripts/bootstrap/carousel.js +26 -10
- data/assets/javascripts/bootstrap/collapse.js +69 -28
- data/assets/javascripts/bootstrap/dropdown.js +20 -10
- data/assets/javascripts/bootstrap/modal.js +22 -21
- data/assets/javascripts/bootstrap/popover.js +13 -7
- data/assets/javascripts/bootstrap/scrollspy.js +12 -7
- data/assets/javascripts/bootstrap/tab.js +41 -16
- data/assets/javascripts/bootstrap/tooltip.js +60 -39
- data/assets/javascripts/bootstrap/transition.js +1 -1
- data/assets/stylesheets/bootstrap/_button-groups.scss +18 -11
- data/assets/stylesheets/bootstrap/_buttons.scss +8 -5
- data/assets/stylesheets/bootstrap/_carousel.scss +25 -1
- data/assets/stylesheets/bootstrap/_code.scss +1 -0
- data/assets/stylesheets/bootstrap/_component-animations.scss +5 -2
- data/assets/stylesheets/bootstrap/_dropdowns.scss +4 -6
- data/assets/stylesheets/bootstrap/_forms.scss +51 -28
- data/assets/stylesheets/bootstrap/_glyphicons.scss +2 -5
- data/assets/stylesheets/bootstrap/_grid.scss +4 -4
- data/assets/stylesheets/bootstrap/_jumbotron.scss +4 -4
- data/assets/stylesheets/bootstrap/_list-group.scss +1 -0
- data/assets/stylesheets/bootstrap/_media.scss +27 -36
- data/assets/stylesheets/bootstrap/_modals.scss +3 -4
- data/assets/stylesheets/bootstrap/_navbar.scss +35 -33
- data/assets/stylesheets/bootstrap/_navs.scss +5 -3
- data/assets/stylesheets/bootstrap/_normalize.scss +5 -3
- data/assets/stylesheets/bootstrap/_pager.scss +2 -3
- data/assets/stylesheets/bootstrap/_pagination.scss +1 -1
- data/assets/stylesheets/bootstrap/_panels.scss +22 -4
- data/assets/stylesheets/bootstrap/_popovers.scss +5 -4
- data/assets/stylesheets/bootstrap/_print.scss +102 -96
- data/assets/stylesheets/bootstrap/_progress-bars.scss +2 -20
- data/assets/stylesheets/bootstrap/_responsive-embed.scss +2 -1
- data/assets/stylesheets/bootstrap/_scaffolding.scss +3 -3
- data/assets/stylesheets/bootstrap/_tables.scss +11 -10
- data/assets/stylesheets/bootstrap/_theme.scss +16 -14
- data/assets/stylesheets/bootstrap/_thumbnails.scss +2 -2
- data/assets/stylesheets/bootstrap/_type.scss +10 -16
- data/assets/stylesheets/bootstrap/_utilities.scss +3 -4
- data/assets/stylesheets/bootstrap/_variables.scss +29 -19
- data/assets/stylesheets/bootstrap/mixins/_buttons.scss +2 -0
- data/assets/stylesheets/bootstrap/mixins/_forms.scss +5 -1
- data/assets/stylesheets/bootstrap/mixins/_grid.scss +2 -2
- data/assets/stylesheets/bootstrap/mixins/_hide-text.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_image.scss +0 -1
- data/assets/stylesheets/bootstrap/mixins/_labels.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_progress-bar.scss +1 -1
- data/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +6 -3
- data/lib/bootstrap-sass.rb +2 -5
- data/lib/bootstrap-sass/engine.rb +1 -1
- data/lib/bootstrap-sass/version.rb +2 -2
- data/package.json +3 -3
- data/tasks/converter/less_conversion.rb +60 -28
- data/tasks/converter/network.rb +12 -6
- data/templates/project/_bootstrap-variables.sass +866 -0
- data/templates/project/manifest.rb +5 -11
- data/test/node_sass_compile_test.sh +8 -0
- metadata +7 -28
- data/templates/project/_bootstrap-variables.sass.erb +0 -4
- data/test/dummy_rails/bin/bundle +0 -3
- data/test/dummy_rails/bin/rails +0 -4
- data/test/dummy_rails/bin/rake +0 -4
- data/test/dummy_rails/db/test.sqlite3 +0 -0
- data/test/dummy_rails/lib/assets/.keep +0 -0
- data/test/dummy_rails/public/404.html +0 -58
- data/test/dummy_rails/public/422.html +0 -58
- data/test/dummy_rails/public/500.html +0 -57
- data/test/dummy_rails/public/favicon.ico +0 -0
- data/test/node_sass_test.rb +0 -16
- data/test/support/integration_test.rb +0 -22
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
.jumbotron {
|
7
|
-
padding: $jumbotron-padding;
|
7
|
+
padding: $jumbotron-padding ($jumbotron-padding / 2);
|
8
8
|
margin-bottom: $jumbotron-padding;
|
9
9
|
color: $jumbotron-color;
|
10
10
|
background-color: $jumbotron-bg;
|
@@ -23,7 +23,8 @@
|
|
23
23
|
border-top-color: darken($jumbotron-bg, 10%);
|
24
24
|
}
|
25
25
|
|
26
|
-
.container
|
26
|
+
.container &,
|
27
|
+
.container-fluid & {
|
27
28
|
border-radius: $border-radius-large; // Only round corners at higher resolutions if contained in a container
|
28
29
|
}
|
29
30
|
|
@@ -32,8 +33,7 @@
|
|
32
33
|
}
|
33
34
|
|
34
35
|
@media screen and (min-width: $screen-sm-min) {
|
35
|
-
padding
|
36
|
-
padding-bottom: ($jumbotron-padding * 1.6);
|
36
|
+
padding: ($jumbotron-padding * 1.6) 0;
|
37
37
|
|
38
38
|
.container & {
|
39
39
|
padding-left: ($jumbotron-padding * 2);
|
@@ -1,54 +1,45 @@
|
|
1
|
-
|
2
|
-
//
|
3
|
-
|
1
|
+
.media {
|
2
|
+
// Proper spacing between instances of .media
|
3
|
+
margin-top: 15px;
|
4
|
+
|
5
|
+
&:first-child {
|
6
|
+
margin-top: 0;
|
7
|
+
}
|
8
|
+
}
|
4
9
|
|
10
|
+
.media-right,
|
11
|
+
.media > .pull-right {
|
12
|
+
padding-left: 10px;
|
13
|
+
}
|
5
14
|
|
6
|
-
|
7
|
-
|
15
|
+
.media-left,
|
16
|
+
.media > .pull-left {
|
17
|
+
padding-right: 10px;
|
18
|
+
}
|
8
19
|
|
9
|
-
|
10
|
-
.media,
|
20
|
+
.media-left,
|
21
|
+
.media-right,
|
11
22
|
.media-body {
|
12
|
-
|
13
|
-
|
23
|
+
display: table-cell;
|
24
|
+
vertical-align: top;
|
14
25
|
}
|
15
26
|
|
16
|
-
|
17
|
-
|
18
|
-
.media .media {
|
19
|
-
margin-top: 15px;
|
20
|
-
}
|
21
|
-
.media:first-child {
|
22
|
-
margin-top: 0;
|
27
|
+
.media-middle {
|
28
|
+
vertical-align: middle;
|
23
29
|
}
|
24
30
|
|
25
|
-
|
26
|
-
|
27
|
-
display: block;
|
31
|
+
.media-bottom {
|
32
|
+
vertical-align: bottom;
|
28
33
|
}
|
29
34
|
|
30
35
|
// Reset margins on headings for tighter default spacing
|
31
36
|
.media-heading {
|
32
|
-
margin: 0
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
// Media image alignment
|
37
|
-
// -------------------------
|
38
|
-
|
39
|
-
.media {
|
40
|
-
> .pull-left {
|
41
|
-
margin-right: 10px;
|
42
|
-
}
|
43
|
-
> .pull-right {
|
44
|
-
margin-left: 10px;
|
45
|
-
}
|
37
|
+
margin-top: 0;
|
38
|
+
margin-bottom: 5px;
|
46
39
|
}
|
47
40
|
|
48
|
-
|
49
41
|
// Media list variation
|
50
|
-
//
|
51
|
-
|
42
|
+
//
|
52
43
|
// Undo default ul/ol styles
|
53
44
|
.media-list {
|
54
45
|
padding-left: 0;
|
@@ -30,10 +30,10 @@
|
|
30
30
|
|
31
31
|
// When fading in the modal, animate it to slide down
|
32
32
|
&.fade .modal-dialog {
|
33
|
-
@include
|
33
|
+
@include translate(0, -25%);
|
34
34
|
@include transition-transform(0.3s ease-out);
|
35
35
|
}
|
36
|
-
&.in .modal-dialog { @include
|
36
|
+
&.in .modal-dialog { @include translate(0, 0) }
|
37
37
|
}
|
38
38
|
.modal-open .modal {
|
39
39
|
overflow-x: hidden;
|
@@ -67,7 +67,6 @@
|
|
67
67
|
right: 0;
|
68
68
|
bottom: 0;
|
69
69
|
left: 0;
|
70
|
-
z-index: $zindex-modal-background;
|
71
70
|
background-color: $modal-backdrop-bg;
|
72
71
|
// Fade for backdrop
|
73
72
|
&.fade { @include opacity(0); }
|
@@ -104,7 +103,7 @@
|
|
104
103
|
padding: $modal-inner-padding;
|
105
104
|
text-align: right; // right align buttons
|
106
105
|
border-top: 1px solid $modal-footer-border-color;
|
107
|
-
@include clearfix
|
106
|
+
@include clearfix; // clear it in case folks use .pull-* classes on buttons
|
108
107
|
|
109
108
|
// Properly space out buttons
|
110
109
|
.btn + .btn {
|
@@ -15,7 +15,7 @@
|
|
15
15
|
border: 1px solid transparent;
|
16
16
|
|
17
17
|
// Prevent floats from breaking the navbar
|
18
|
-
@include clearfix
|
18
|
+
@include clearfix;
|
19
19
|
|
20
20
|
@media (min-width: $grid-float-breakpoint) {
|
21
21
|
border-radius: $navbar-border-radius;
|
@@ -29,7 +29,7 @@
|
|
29
29
|
// styling of responsive aspects.
|
30
30
|
|
31
31
|
.navbar-header {
|
32
|
-
@include clearfix
|
32
|
+
@include clearfix;
|
33
33
|
|
34
34
|
@media (min-width: $grid-float-breakpoint) {
|
35
35
|
float: left;
|
@@ -53,7 +53,7 @@
|
|
53
53
|
padding-left: $navbar-padding-horizontal;
|
54
54
|
border-top: 1px solid transparent;
|
55
55
|
box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
|
56
|
-
@include clearfix
|
56
|
+
@include clearfix;
|
57
57
|
-webkit-overflow-scrolling: touch;
|
58
58
|
|
59
59
|
&.in {
|
@@ -67,6 +67,7 @@
|
|
67
67
|
|
68
68
|
&.collapse {
|
69
69
|
display: block !important;
|
70
|
+
visibility: visible !important;
|
70
71
|
height: auto !important;
|
71
72
|
padding-bottom: 0; // Override default setting
|
72
73
|
overflow: visible !important;
|
@@ -92,7 +93,7 @@
|
|
92
93
|
.navbar-collapse {
|
93
94
|
max-height: $navbar-collapse-max-height;
|
94
95
|
|
95
|
-
@media (max-width: $screen-xs-min) and (orientation: landscape) {
|
96
|
+
@media (max-device-width: $screen-xs-min) and (orientation: landscape) {
|
96
97
|
max-height: 200px;
|
97
98
|
}
|
98
99
|
}
|
@@ -141,7 +142,6 @@
|
|
141
142
|
right: 0;
|
142
143
|
left: 0;
|
143
144
|
z-index: $zindex-navbar-fixed;
|
144
|
-
@include translate3d(0, 0, 0);
|
145
145
|
|
146
146
|
// Undo the rounded corners
|
147
147
|
@media (min-width: $grid-float-breakpoint) {
|
@@ -173,6 +173,10 @@
|
|
173
173
|
text-decoration: none;
|
174
174
|
}
|
175
175
|
|
176
|
+
> img {
|
177
|
+
display: block;
|
178
|
+
}
|
179
|
+
|
176
180
|
@media (min-width: $grid-float-breakpoint) {
|
177
181
|
.navbar > .container &,
|
178
182
|
.navbar > .container-fluid & {
|
@@ -271,26 +275,6 @@
|
|
271
275
|
padding-bottom: $navbar-padding-vertical;
|
272
276
|
}
|
273
277
|
}
|
274
|
-
|
275
|
-
&.navbar-right:last-child {
|
276
|
-
margin-right: -$navbar-padding-horizontal;
|
277
|
-
}
|
278
|
-
}
|
279
|
-
}
|
280
|
-
|
281
|
-
|
282
|
-
// Component alignment
|
283
|
-
//
|
284
|
-
// Repurpose the pull utilities as their own navbar utilities to avoid specificity
|
285
|
-
// issues with parents and chaining. Only do this when the navbar is uncollapsed
|
286
|
-
// though so that navbar contents properly stack and align in mobile.
|
287
|
-
|
288
|
-
@media (min-width: $grid-float-breakpoint) {
|
289
|
-
.navbar-left {
|
290
|
-
float: left !important;
|
291
|
-
}
|
292
|
-
.navbar-right {
|
293
|
-
float: right !important;
|
294
278
|
}
|
295
279
|
}
|
296
280
|
|
@@ -310,11 +294,15 @@
|
|
310
294
|
@include box-shadow($shadow);
|
311
295
|
|
312
296
|
// Mixin behavior for optimum display
|
313
|
-
@
|
297
|
+
@include form-inline;
|
314
298
|
|
315
299
|
.form-group {
|
316
300
|
@media (max-width: $grid-float-breakpoint-max) {
|
317
301
|
margin-bottom: 5px;
|
302
|
+
|
303
|
+
&:last-child {
|
304
|
+
margin-bottom: 0;
|
305
|
+
}
|
318
306
|
}
|
319
307
|
}
|
320
308
|
|
@@ -330,11 +318,6 @@
|
|
330
318
|
padding-top: 0;
|
331
319
|
padding-bottom: 0;
|
332
320
|
@include box-shadow(none);
|
333
|
-
|
334
|
-
// Outdent the form if last child to line up with content down the page
|
335
|
-
&.navbar-right:last-child {
|
336
|
-
margin-right: -$navbar-padding-horizontal;
|
337
|
-
}
|
338
321
|
}
|
339
322
|
}
|
340
323
|
|
@@ -379,14 +362,33 @@
|
|
379
362
|
float: left;
|
380
363
|
margin-left: $navbar-padding-horizontal;
|
381
364
|
margin-right: $navbar-padding-horizontal;
|
365
|
+
}
|
366
|
+
}
|
367
|
+
|
368
|
+
|
369
|
+
// Component alignment
|
370
|
+
//
|
371
|
+
// Repurpose the pull utilities as their own navbar utilities to avoid specificity
|
372
|
+
// issues with parents and chaining. Only do this when the navbar is uncollapsed
|
373
|
+
// though so that navbar contents properly stack and align in mobile.
|
374
|
+
//
|
375
|
+
// Declared after the navbar components to ensure more specificity on the margins.
|
382
376
|
|
383
|
-
|
384
|
-
|
377
|
+
@media (min-width: $grid-float-breakpoint) {
|
378
|
+
.navbar-left {
|
379
|
+
float: left !important;
|
380
|
+
}
|
381
|
+
.navbar-right {
|
382
|
+
float: right !important;
|
383
|
+
margin-right: -$navbar-padding-horizontal;
|
384
|
+
|
385
|
+
~ .navbar-right {
|
385
386
|
margin-right: 0;
|
386
387
|
}
|
387
388
|
}
|
388
389
|
}
|
389
390
|
|
391
|
+
|
390
392
|
// Alternate navbars
|
391
393
|
// --------------------------------------------------
|
392
394
|
|
@@ -10,7 +10,7 @@
|
|
10
10
|
margin-bottom: 0;
|
11
11
|
padding-left: 0; // Override default ul/ol
|
12
12
|
list-style: none;
|
13
|
-
@include clearfix
|
13
|
+
@include clearfix;
|
14
14
|
|
15
15
|
> li {
|
16
16
|
position: relative;
|
@@ -36,7 +36,7 @@
|
|
36
36
|
color: $nav-disabled-link-hover-color;
|
37
37
|
text-decoration: none;
|
38
38
|
background-color: transparent;
|
39
|
-
cursor:
|
39
|
+
cursor: $cursor-disabled;
|
40
40
|
}
|
41
41
|
}
|
42
42
|
}
|
@@ -57,7 +57,7 @@
|
|
57
57
|
// we missed it. We don't currently support this anywhere, but in the interest
|
58
58
|
// of maintaining backward compatibility in case you use it, it's deprecated.
|
59
59
|
.nav-divider {
|
60
|
-
@include nav-divider
|
60
|
+
@include nav-divider;
|
61
61
|
}
|
62
62
|
|
63
63
|
// Prevent IE8 from misplacing imgs
|
@@ -223,9 +223,11 @@
|
|
223
223
|
.tab-content {
|
224
224
|
> .tab-pane {
|
225
225
|
display: none;
|
226
|
+
visibility: hidden;
|
226
227
|
}
|
227
228
|
> .active {
|
228
229
|
display: block;
|
230
|
+
visibility: visible;
|
229
231
|
}
|
230
232
|
}
|
231
233
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
/*! normalize.css v3.0.
|
1
|
+
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
|
2
2
|
|
3
3
|
//
|
4
4
|
// 1. Set default font family to sans-serif.
|
@@ -25,7 +25,8 @@ body {
|
|
25
25
|
|
26
26
|
//
|
27
27
|
// Correct `block` display not defined for any HTML5 element in IE 8/9.
|
28
|
-
// Correct `block` display not defined for `details` or `summary` in IE 10/11
|
28
|
+
// Correct `block` display not defined for `details` or `summary` in IE 10/11
|
29
|
+
// and Firefox.
|
29
30
|
// Correct `block` display not defined for `main` in IE 11.
|
30
31
|
//
|
31
32
|
|
@@ -38,6 +39,7 @@ footer,
|
|
38
39
|
header,
|
39
40
|
hgroup,
|
40
41
|
main,
|
42
|
+
menu,
|
41
43
|
nav,
|
42
44
|
section,
|
43
45
|
summary {
|
@@ -85,7 +87,7 @@ template {
|
|
85
87
|
//
|
86
88
|
|
87
89
|
a {
|
88
|
-
background: transparent;
|
90
|
+
background-color: transparent;
|
89
91
|
}
|
90
92
|
|
91
93
|
//
|
@@ -8,7 +8,7 @@
|
|
8
8
|
margin: $line-height-computed 0;
|
9
9
|
list-style: none;
|
10
10
|
text-align: center;
|
11
|
-
@include clearfix
|
11
|
+
@include clearfix;
|
12
12
|
li {
|
13
13
|
display: inline;
|
14
14
|
> a,
|
@@ -48,8 +48,7 @@
|
|
48
48
|
> span {
|
49
49
|
color: $pager-disabled-color;
|
50
50
|
background-color: $pager-bg;
|
51
|
-
cursor:
|
51
|
+
cursor: $cursor-disabled;
|
52
52
|
}
|
53
53
|
}
|
54
|
-
|
55
54
|
}
|
@@ -15,7 +15,7 @@
|
|
15
15
|
// Panel contents
|
16
16
|
.panel-body {
|
17
17
|
padding: $panel-body-padding;
|
18
|
-
@include clearfix
|
18
|
+
@include clearfix;
|
19
19
|
}
|
20
20
|
|
21
21
|
// Optional heading
|
@@ -56,7 +56,8 @@
|
|
56
56
|
// any kind of custom content between the two.
|
57
57
|
|
58
58
|
.panel {
|
59
|
-
> .list-group
|
59
|
+
> .list-group,
|
60
|
+
> .panel-collapse > .list-group {
|
60
61
|
margin-bottom: 0;
|
61
62
|
|
62
63
|
.list-group-item {
|
@@ -100,6 +101,11 @@
|
|
100
101
|
> .table-responsive > .table,
|
101
102
|
> .panel-collapse > .table {
|
102
103
|
margin-bottom: 0;
|
104
|
+
|
105
|
+
caption {
|
106
|
+
padding-left: $panel-body-padding;
|
107
|
+
padding-right: $panel-body-padding;
|
108
|
+
}
|
103
109
|
}
|
104
110
|
// Add border top radius for first one
|
105
111
|
> .table:first-child,
|
@@ -109,6 +115,9 @@
|
|
109
115
|
> thead:first-child,
|
110
116
|
> tbody:first-child {
|
111
117
|
> tr:first-child {
|
118
|
+
border-top-left-radius: ($panel-border-radius - 1);
|
119
|
+
border-top-right-radius: ($panel-border-radius - 1);
|
120
|
+
|
112
121
|
td:first-child,
|
113
122
|
th:first-child {
|
114
123
|
border-top-left-radius: ($panel-border-radius - 1);
|
@@ -128,6 +137,9 @@
|
|
128
137
|
> tbody:last-child,
|
129
138
|
> tfoot:last-child {
|
130
139
|
> tr:last-child {
|
140
|
+
border-bottom-left-radius: ($panel-border-radius - 1);
|
141
|
+
border-bottom-right-radius: ($panel-border-radius - 1);
|
142
|
+
|
131
143
|
td:first-child,
|
132
144
|
th:first-child {
|
133
145
|
border-bottom-left-radius: ($panel-border-radius - 1);
|
@@ -140,7 +152,9 @@
|
|
140
152
|
}
|
141
153
|
}
|
142
154
|
> .panel-body + .table,
|
143
|
-
> .panel-body + .table-responsive
|
155
|
+
> .panel-body + .table-responsive,
|
156
|
+
> .table + .panel-body,
|
157
|
+
> .table-responsive + .panel-body {
|
144
158
|
border-top: 1px solid $table-border-color;
|
145
159
|
}
|
146
160
|
> .table > tbody:first-child > tr:first-child th,
|
@@ -202,6 +216,7 @@
|
|
202
216
|
.panel {
|
203
217
|
margin-bottom: 0;
|
204
218
|
border-radius: $panel-border-radius;
|
219
|
+
|
205
220
|
+ .panel {
|
206
221
|
margin-top: 5px;
|
207
222
|
}
|
@@ -209,10 +224,13 @@
|
|
209
224
|
|
210
225
|
.panel-heading {
|
211
226
|
border-bottom: 0;
|
212
|
-
|
227
|
+
|
228
|
+
+ .panel-collapse > .panel-body,
|
229
|
+
+ .panel-collapse > .list-group {
|
213
230
|
border-top: 1px solid $panel-inner-border;
|
214
231
|
}
|
215
232
|
}
|
233
|
+
|
216
234
|
.panel-footer {
|
217
235
|
border-top: 0;
|
218
236
|
+ .panel-collapse .panel-body {
|