bootstrap-generators 3.1.1.3 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +4 -5
  3. data/README.md +8 -8
  4. data/Rakefile +7 -5
  5. data/lib/bootstrap/generators/version.rb +1 -1
  6. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.less +40 -23
  7. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.scss +41 -24
  8. data/vendor/assets/javascripts/bootstrap.js +6 -6
  9. data/vendor/assets/javascripts/bootstrap/affix.js +19 -14
  10. data/vendor/assets/javascripts/bootstrap/alert.js +10 -6
  11. data/vendor/assets/javascripts/bootstrap/button.js +11 -8
  12. data/vendor/assets/javascripts/bootstrap/carousel.js +49 -31
  13. data/vendor/assets/javascripts/bootstrap/collapse.js +22 -22
  14. data/vendor/assets/javascripts/bootstrap/dropdown.js +17 -13
  15. data/vendor/assets/javascripts/bootstrap/modal.js +66 -29
  16. data/vendor/assets/javascripts/bootstrap/popover.js +10 -7
  17. data/vendor/assets/javascripts/bootstrap/scrollspy.js +40 -23
  18. data/vendor/assets/javascripts/bootstrap/tab.js +11 -8
  19. data/vendor/assets/javascripts/bootstrap/tooltip.js +115 -57
  20. data/vendor/assets/javascripts/bootstrap/transition.js +18 -7
  21. data/vendor/assets/stylesheets/bootstrap.css.erb +2740 -2322
  22. data/vendor/twitter/bootstrap/less/alerts.less +4 -3
  23. data/vendor/twitter/bootstrap/less/badges.less +18 -18
  24. data/vendor/twitter/bootstrap/less/bootstrap.less +3 -2
  25. data/vendor/twitter/bootstrap/less/button-groups.less +16 -2
  26. data/vendor/twitter/bootstrap/less/buttons.less +0 -2
  27. data/vendor/twitter/bootstrap/less/carousel.less +15 -4
  28. data/vendor/twitter/bootstrap/less/code.less +6 -1
  29. data/vendor/twitter/bootstrap/less/component-animations.less +6 -4
  30. data/vendor/twitter/bootstrap/less/dropdowns.less +2 -0
  31. data/vendor/twitter/bootstrap/less/forms.less +144 -42
  32. data/vendor/twitter/bootstrap/less/glyphicons.less +5 -5
  33. data/vendor/twitter/bootstrap/less/input-groups.less +6 -2
  34. data/vendor/twitter/bootstrap/less/jumbotron.less +4 -0
  35. data/vendor/twitter/bootstrap/less/labels.less +1 -1
  36. data/vendor/twitter/bootstrap/less/list-group.less +22 -1
  37. data/vendor/twitter/bootstrap/less/mixins.less +35 -925
  38. data/vendor/twitter/bootstrap/less/mixins/alerts.less +14 -0
  39. data/vendor/twitter/bootstrap/less/mixins/background-variant.less +8 -0
  40. data/vendor/twitter/bootstrap/less/mixins/border-radius.less +18 -0
  41. data/vendor/twitter/bootstrap/less/mixins/buttons.less +50 -0
  42. data/vendor/twitter/bootstrap/less/mixins/center-block.less +7 -0
  43. data/vendor/twitter/bootstrap/less/mixins/clearfix.less +22 -0
  44. data/vendor/twitter/bootstrap/less/mixins/forms.less +81 -0
  45. data/vendor/twitter/bootstrap/less/mixins/gradients.less +59 -0
  46. data/vendor/twitter/bootstrap/less/mixins/grid-framework.less +91 -0
  47. data/vendor/twitter/bootstrap/less/mixins/grid.less +122 -0
  48. data/vendor/twitter/bootstrap/less/mixins/hide-text.less +21 -0
  49. data/vendor/twitter/bootstrap/less/mixins/image.less +34 -0
  50. data/vendor/twitter/bootstrap/less/mixins/labels.less +12 -0
  51. data/vendor/twitter/bootstrap/less/mixins/list-group.less +29 -0
  52. data/vendor/twitter/bootstrap/less/mixins/nav-divider.less +10 -0
  53. data/vendor/twitter/bootstrap/less/mixins/nav-vertical-align.less +9 -0
  54. data/vendor/twitter/bootstrap/less/mixins/opacity.less +8 -0
  55. data/vendor/twitter/bootstrap/less/mixins/pagination.less +23 -0
  56. data/vendor/twitter/bootstrap/less/mixins/panels.less +24 -0
  57. data/vendor/twitter/bootstrap/less/mixins/progress-bar.less +10 -0
  58. data/vendor/twitter/bootstrap/less/mixins/reset-filter.less +8 -0
  59. data/vendor/twitter/bootstrap/less/mixins/resize.less +6 -0
  60. data/vendor/twitter/bootstrap/less/mixins/responsive-visibility.less +15 -0
  61. data/vendor/twitter/bootstrap/less/mixins/size.less +10 -0
  62. data/vendor/twitter/bootstrap/less/mixins/tab-focus.less +9 -0
  63. data/vendor/twitter/bootstrap/less/mixins/table-row.less +28 -0
  64. data/vendor/twitter/bootstrap/less/mixins/text-emphasis.less +8 -0
  65. data/vendor/twitter/bootstrap/less/mixins/text-overflow.less +8 -0
  66. data/vendor/twitter/bootstrap/less/mixins/vendor-prefixes.less +224 -0
  67. data/vendor/twitter/bootstrap/less/modals.less +18 -7
  68. data/vendor/twitter/bootstrap/less/navbar.less +41 -2
  69. data/vendor/twitter/bootstrap/less/navs.less +1 -1
  70. data/vendor/twitter/bootstrap/less/normalize.less +20 -18
  71. data/vendor/twitter/bootstrap/less/panels.less +8 -6
  72. data/vendor/twitter/bootstrap/less/popovers.less +1 -1
  73. data/vendor/twitter/bootstrap/less/progress-bars.less +27 -2
  74. data/vendor/twitter/bootstrap/less/responsive-embed.less +34 -0
  75. data/vendor/twitter/bootstrap/less/responsive-utilities.less +103 -1
  76. data/vendor/twitter/bootstrap/less/scaffolding.less +17 -1
  77. data/vendor/twitter/bootstrap/less/tables.less +4 -4
  78. data/vendor/twitter/bootstrap/less/theme.less +11 -0
  79. data/vendor/twitter/bootstrap/less/type.less +32 -12
  80. data/vendor/twitter/bootstrap/less/utilities.less +1 -0
  81. data/vendor/twitter/bootstrap/less/variables.less +40 -23
  82. data/vendor/twitter/bootstrap/sass/_alerts.scss +4 -3
  83. data/vendor/twitter/bootstrap/sass/_badges.scss +13 -11
  84. data/vendor/twitter/bootstrap/sass/_button-groups.scss +16 -2
  85. data/vendor/twitter/bootstrap/sass/_buttons.scss +0 -2
  86. data/vendor/twitter/bootstrap/sass/_carousel.scss +15 -4
  87. data/vendor/twitter/bootstrap/sass/_code.scss +6 -1
  88. data/vendor/twitter/bootstrap/sass/_component-animations.scss +10 -4
  89. data/vendor/twitter/bootstrap/sass/_dropdowns.scss +2 -0
  90. data/vendor/twitter/bootstrap/sass/_forms.scss +144 -42
  91. data/vendor/twitter/bootstrap/sass/_glyphicons.scss +4 -0
  92. data/vendor/twitter/bootstrap/sass/_input-groups.scss +6 -2
  93. data/vendor/twitter/bootstrap/sass/_jumbotron.scss +4 -0
  94. data/vendor/twitter/bootstrap/sass/_labels.scss +11 -9
  95. data/vendor/twitter/bootstrap/sass/_list-group.scss +22 -1
  96. data/vendor/twitter/bootstrap/sass/_mixins.scss +35 -943
  97. data/vendor/twitter/bootstrap/sass/_modals.scss +18 -7
  98. data/vendor/twitter/bootstrap/sass/_navbar.scss +41 -2
  99. data/vendor/twitter/bootstrap/sass/_navs.scss +1 -1
  100. data/vendor/twitter/bootstrap/sass/_normalize.scss +20 -18
  101. data/vendor/twitter/bootstrap/sass/_panels.scss +8 -6
  102. data/vendor/twitter/bootstrap/sass/_popovers.scss +1 -1
  103. data/vendor/twitter/bootstrap/sass/_progress-bars.scss +27 -2
  104. data/vendor/twitter/bootstrap/sass/_responsive-embed.scss +34 -0
  105. data/vendor/twitter/bootstrap/sass/_responsive-utilities.scss +101 -1
  106. data/vendor/twitter/bootstrap/sass/_scaffolding.scss +17 -1
  107. data/vendor/twitter/bootstrap/sass/_tables.scss +4 -4
  108. data/vendor/twitter/bootstrap/sass/_theme.scss +11 -0
  109. data/vendor/twitter/bootstrap/sass/_type.scss +32 -12
  110. data/vendor/twitter/bootstrap/sass/_utilities.scss +1 -0
  111. data/vendor/twitter/bootstrap/sass/_variables.scss +41 -24
  112. data/vendor/twitter/bootstrap/sass/bootstrap.scss +3 -2
  113. data/vendor/twitter/bootstrap/sass/mixins/_alerts.scss +14 -0
  114. data/vendor/twitter/bootstrap/sass/mixins/_background-variant.scss +11 -0
  115. data/vendor/twitter/bootstrap/sass/mixins/_border-radius.scss +18 -0
  116. data/vendor/twitter/bootstrap/sass/mixins/_buttons.scss +50 -0
  117. data/vendor/twitter/bootstrap/sass/mixins/_center-block.scss +7 -0
  118. data/vendor/twitter/bootstrap/sass/mixins/_clearfix.scss +22 -0
  119. data/vendor/twitter/bootstrap/sass/mixins/_forms.scss +84 -0
  120. data/vendor/twitter/bootstrap/sass/mixins/_gradients.scss +58 -0
  121. data/vendor/twitter/bootstrap/sass/mixins/_grid-framework.scss +81 -0
  122. data/vendor/twitter/bootstrap/sass/mixins/_grid.scss +122 -0
  123. data/vendor/twitter/bootstrap/sass/mixins/_hide-text.scss +21 -0
  124. data/vendor/twitter/bootstrap/sass/mixins/_image.scss +34 -0
  125. data/vendor/twitter/bootstrap/sass/mixins/_labels.scss +12 -0
  126. data/vendor/twitter/bootstrap/sass/mixins/_list-group.scss +31 -0
  127. data/vendor/twitter/bootstrap/sass/mixins/_nav-divider.scss +10 -0
  128. data/vendor/twitter/bootstrap/sass/mixins/_nav-vertical-align.scss +9 -0
  129. data/vendor/twitter/bootstrap/sass/mixins/_opacity.scss +8 -0
  130. data/vendor/twitter/bootstrap/sass/mixins/_pagination.scss +23 -0
  131. data/vendor/twitter/bootstrap/sass/mixins/_panels.scss +24 -0
  132. data/vendor/twitter/bootstrap/sass/mixins/_progress-bar.scss +10 -0
  133. data/vendor/twitter/bootstrap/sass/mixins/_reset-filter.scss +8 -0
  134. data/vendor/twitter/bootstrap/sass/mixins/_resize.scss +6 -0
  135. data/vendor/twitter/bootstrap/sass/mixins/_responsive-visibility.scss +21 -0
  136. data/vendor/twitter/bootstrap/sass/mixins/_size.scss +10 -0
  137. data/vendor/twitter/bootstrap/sass/mixins/_tab-focus.scss +9 -0
  138. data/vendor/twitter/bootstrap/sass/mixins/_table-row.scss +28 -0
  139. data/vendor/twitter/bootstrap/sass/mixins/_text-emphasis.scss +11 -0
  140. data/vendor/twitter/bootstrap/sass/mixins/_text-overflow.scss +8 -0
  141. data/vendor/twitter/bootstrap/sass/mixins/_vendor-prefixes.scss +219 -0
  142. metadata +62 -2
@@ -15,8 +15,7 @@
15
15
  // Container that the modal scrolls within
16
16
  .modal {
17
17
  display: none;
18
- overflow: auto;
19
- overflow-y: scroll;
18
+ overflow: hidden;
20
19
  position: fixed;
21
20
  top: 0;
22
21
  right: 0;
@@ -31,10 +30,14 @@
31
30
 
32
31
  // When fading in the modal, animate it to slide down
33
32
  &.fade .modal-dialog {
34
- @include translate(0, -25%);
33
+ @include translate3d(0, -25%, 0);
35
34
  @include transition-transform(0.3s ease-out);
36
35
  }
37
- &.in .modal-dialog { @include translate(0, 0)}
36
+ &.in .modal-dialog { @include translate3d(0, 0, 0) }
37
+ }
38
+ .modal-open .modal {
39
+ overflow-x: hidden;
40
+ overflow-y: auto;
38
41
  }
39
42
 
40
43
  // Shell div to position the modal with bottom padding
@@ -54,7 +57,7 @@
54
57
  @include box-shadow(0 3px 9px rgba(0,0,0,.5));
55
58
  background-clip: padding-box;
56
59
  // Remove focus outline from opened modal
57
- outline: none;
60
+ outline: 0;
58
61
  }
59
62
 
60
63
  // Modal background
@@ -98,8 +101,7 @@
98
101
 
99
102
  // Footer (for actions)
100
103
  .modal-footer {
101
- margin-top: 15px;
102
- padding: ($modal-inner-padding - 1) $modal-inner-padding $modal-inner-padding;
104
+ padding: $modal-inner-padding;
103
105
  text-align: right; // right align buttons
104
106
  border-top: 1px solid $modal-footer-border-color;
105
107
  @include clearfix(); // clear it in case folks use .pull-* classes on buttons
@@ -119,6 +121,15 @@
119
121
  }
120
122
  }
121
123
 
124
+ // Measure scrollbar width for padding body during modal show/hide
125
+ .modal-scrollbar-measure {
126
+ position: absolute;
127
+ top: -9999px;
128
+ width: 50px;
129
+ height: 50px;
130
+ overflow: scroll;
131
+ }
132
+
122
133
  // Scale up the modal
123
134
  @media (min-width: $screen-sm-min) {
124
135
  // Automatically set modal's width for larger viewports
@@ -48,7 +48,6 @@
48
48
  // content for the user's viewport.
49
49
 
50
50
  .navbar-collapse {
51
- max-height: $navbar-collapse-max-height;
52
51
  overflow-x: visible;
53
52
  padding-right: $navbar-padding-horizontal;
54
53
  padding-left: $navbar-padding-horizontal;
@@ -88,6 +87,17 @@
88
87
  }
89
88
  }
90
89
 
90
+ .navbar-fixed-top,
91
+ .navbar-fixed-bottom {
92
+ .navbar-collapse {
93
+ max-height: $navbar-collapse-max-height;
94
+
95
+ @media (max-width: $screen-xs-min) and (orientation: landscape) {
96
+ max-height: 200px;
97
+ }
98
+ }
99
+ }
100
+
91
101
 
92
102
  // Both navbar header and collapse
93
103
  //
@@ -131,6 +141,7 @@
131
141
  right: 0;
132
142
  left: 0;
133
143
  z-index: $zindex-navbar-fixed;
144
+ @include translate3d(0, 0, 0);
134
145
 
135
146
  // Undo the rounded corners
136
147
  @media (min-width: $grid-float-breakpoint) {
@@ -190,7 +201,7 @@
190
201
  // We remove the `outline` here, but later compensate by attaching `:hover`
191
202
  // styles to `:focus`.
192
203
  &:focus {
193
- outline: none;
204
+ outline: 0;
194
205
  }
195
206
 
196
207
  // Bars
@@ -496,6 +507,20 @@
496
507
  }
497
508
  }
498
509
 
510
+ .btn-link {
511
+ color: $navbar-default-link-color;
512
+ &:hover,
513
+ &:focus {
514
+ color: $navbar-default-link-hover-color;
515
+ }
516
+ &[disabled],
517
+ fieldset[disabled] & {
518
+ &:hover,
519
+ &:focus {
520
+ color: $navbar-default-link-disabled-color;
521
+ }
522
+ }
523
+ }
499
524
  }
500
525
 
501
526
  // Inverse navbar
@@ -617,4 +642,18 @@
617
642
  }
618
643
  }
619
644
 
645
+ .btn-link {
646
+ color: $navbar-inverse-link-color;
647
+ &:hover,
648
+ &:focus {
649
+ color: $navbar-inverse-link-hover-color;
650
+ }
651
+ &[disabled],
652
+ fieldset[disabled] & {
653
+ &:hover,
654
+ &:focus {
655
+ color: $navbar-inverse-link-disabled-color;
656
+ }
657
+ }
658
+ }
620
659
  }
@@ -162,7 +162,7 @@
162
162
 
163
163
  > li {
164
164
  float: none;
165
- > a {
165
+ > a {
166
166
  text-align: center;
167
167
  margin-bottom: 5px;
168
168
  }
@@ -1,4 +1,4 @@
1
- /*! normalize.css v3.0.0 | MIT License | git.io/normalize */
1
+ /*! normalize.css v3.0.1 | MIT License | git.io/normalize */
2
2
 
3
3
  //
4
4
  // 1. Set default font family to sans-serif.
@@ -24,7 +24,9 @@ body {
24
24
  // ==========================================================================
25
25
 
26
26
  //
27
- // Correct `block` display not defined in IE 8/9.
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 and Firefox.
29
+ // Correct `block` display not defined for `main` in IE 11.
28
30
  //
29
31
 
30
32
  article,
@@ -66,8 +68,8 @@ audio:not([controls]) {
66
68
  }
67
69
 
68
70
  //
69
- // Address `[hidden]` styling not present in IE 8/9.
70
- // Hide the `template` element in IE, Safari, and Firefox < 22.
71
+ // Address `[hidden]` styling not present in IE 8/9/10.
72
+ // Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
71
73
  //
72
74
 
73
75
  [hidden],
@@ -99,7 +101,7 @@ a:hover {
99
101
  // ==========================================================================
100
102
 
101
103
  //
102
- // Address styling not present in IE 8/9, Safari 5, and Chrome.
104
+ // Address styling not present in IE 8/9/10/11, Safari, and Chrome.
103
105
  //
104
106
 
105
107
  abbr[title] {
@@ -107,7 +109,7 @@ abbr[title] {
107
109
  }
108
110
 
109
111
  //
110
- // Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
112
+ // Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
111
113
  //
112
114
 
113
115
  b,
@@ -116,7 +118,7 @@ strong {
116
118
  }
117
119
 
118
120
  //
119
- // Address styling not present in Safari 5 and Chrome.
121
+ // Address styling not present in Safari and Chrome.
120
122
  //
121
123
 
122
124
  dfn {
@@ -125,7 +127,7 @@ dfn {
125
127
 
126
128
  //
127
129
  // Address variable `h1` font-size and margin within `section` and `article`
128
- // contexts in Firefox 4+, Safari 5, and Chrome.
130
+ // contexts in Firefox 4+, Safari, and Chrome.
129
131
  //
130
132
 
131
133
  h1 {
@@ -174,7 +176,7 @@ sub {
174
176
  // ==========================================================================
175
177
 
176
178
  //
177
- // Remove border when inside `a` element in IE 8/9.
179
+ // Remove border when inside `a` element in IE 8/9/10.
178
180
  //
179
181
 
180
182
  img {
@@ -182,7 +184,7 @@ img {
182
184
  }
183
185
 
184
186
  //
185
- // Correct overflow displayed oddly in IE 9.
187
+ // Correct overflow not hidden in IE 9/10/11.
186
188
  //
187
189
 
188
190
  svg:not(:root) {
@@ -193,7 +195,7 @@ svg:not(:root) {
193
195
  // ==========================================================================
194
196
 
195
197
  //
196
- // Address margin not present in IE 8/9 and Safari 5.
198
+ // Address margin not present in IE 8/9 and Safari.
197
199
  //
198
200
 
199
201
  figure {
@@ -242,7 +244,7 @@ samp {
242
244
  // 1. Correct color not being inherited.
243
245
  // Known issue: affects color of disabled elements.
244
246
  // 2. Correct font properties not being inherited.
245
- // 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
247
+ // 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
246
248
  //
247
249
 
248
250
  button,
@@ -256,7 +258,7 @@ textarea {
256
258
  }
257
259
 
258
260
  //
259
- // Address `overflow` set to `hidden` in IE 8/9/10.
261
+ // Address `overflow` set to `hidden` in IE 8/9/10/11.
260
262
  //
261
263
 
262
264
  button {
@@ -266,7 +268,7 @@ button {
266
268
  //
267
269
  // Address inconsistent `text-transform` inheritance for `button` and `select`.
268
270
  // All other form control elements do not inherit `text-transform` values.
269
- // Correct `button` style inheritance in Firefox, IE 8+, and Opera
271
+ // Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
270
272
  // Correct `select` style inheritance in Firefox.
271
273
  //
272
274
 
@@ -345,8 +347,8 @@ input[type="number"]::-webkit-outer-spin-button {
345
347
  }
346
348
 
347
349
  //
348
- // 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
349
- // 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
350
+ // 1. Address `appearance` set to `searchfield` in Safari and Chrome.
351
+ // 2. Address `box-sizing` set to `border-box` in Safari and Chrome
350
352
  // (include `-moz` to future-proof).
351
353
  //
352
354
 
@@ -379,7 +381,7 @@ fieldset {
379
381
  }
380
382
 
381
383
  //
382
- // 1. Correct `color` not being inherited in IE 8/9.
384
+ // 1. Correct `color` not being inherited in IE 8/9/10/11.
383
385
  // 2. Remove padding so people aren't caught out if they zero out fieldsets.
384
386
  //
385
387
 
@@ -389,7 +391,7 @@ legend {
389
391
  }
390
392
 
391
393
  //
392
- // Remove default vertical scrollbar in IE 8/9.
394
+ // Remove default vertical scrollbar in IE 8/9/10/11.
393
395
  //
394
396
 
395
397
  textarea {
@@ -20,7 +20,7 @@
20
20
 
21
21
  // Optional heading
22
22
  .panel-heading {
23
- padding: 10px 15px;
23
+ padding: $panel-heading-padding;
24
24
  border-bottom: 1px solid transparent;
25
25
  @include border-top-radius(($panel-border-radius - 1));
26
26
 
@@ -43,7 +43,7 @@
43
43
 
44
44
  // Optional footer (stays gray in every modifier class)
45
45
  .panel-footer {
46
- padding: 10px 15px;
46
+ padding: $panel-footer-padding;
47
47
  background-color: $panel-footer-bg;
48
48
  border-top: 1px solid $panel-inner-border;
49
49
  @include border-bottom-radius(($panel-border-radius - 1));
@@ -86,7 +86,9 @@
86
86
  border-top-width: 0;
87
87
  }
88
88
  }
89
-
89
+ .list-group + .panel-footer {
90
+ border-top-width: 0;
91
+ }
90
92
 
91
93
  // Tables in panels
92
94
  //
@@ -95,7 +97,8 @@
95
97
 
96
98
  .panel {
97
99
  > .table,
98
- > .table-responsive > .table {
100
+ > .table-responsive > .table,
101
+ > .panel-collapse > .table {
99
102
  margin-bottom: 0;
100
103
  }
101
104
  // Add border top radius for first one
@@ -199,7 +202,6 @@
199
202
  .panel {
200
203
  margin-bottom: 0;
201
204
  border-radius: $panel-border-radius;
202
- overflow: hidden; // crop contents when collapsed
203
205
  + .panel {
204
206
  margin-top: 5px;
205
207
  }
@@ -207,7 +209,7 @@
207
209
 
208
210
  .panel-heading {
209
211
  border-bottom: 0;
210
- + .panel-collapse .panel-body {
212
+ + .panel-collapse > .panel-body {
211
213
  border-top: 1px solid $panel-inner-border;
212
214
  }
213
215
  }
@@ -37,7 +37,7 @@
37
37
  line-height: 18px;
38
38
  background-color: $popover-title-bg;
39
39
  border-bottom: 1px solid darken($popover-title-bg, 5%);
40
- border-radius: 5px 5px 0 0;
40
+ border-radius: ($border-radius-large - 1) ($border-radius-large - 1) 0 0;
41
41
  }
42
42
 
43
43
  .popover-content {
@@ -48,16 +48,41 @@
48
48
  }
49
49
 
50
50
  // Striped bars
51
- .progress-striped .progress-bar {
51
+ //
52
+ // `.progress-striped .progress-bar` is deprecated as of v3.2.0 in favor of the
53
+ // `.progress-bar-striped` class, which you just add to an existing
54
+ // `.progress-bar`.
55
+ .progress-striped .progress-bar,
56
+ .progress-bar-striped {
52
57
  @include gradient-striped();
53
58
  background-size: 40px 40px;
54
59
  }
55
60
 
56
61
  // Call animation for the active one
57
- .progress.active .progress-bar {
62
+ //
63
+ // `.progress.active .progress-bar` is deprecated as of v3.2.0 in favor of the
64
+ // `.progress-bar.active` approach.
65
+ .progress.active .progress-bar,
66
+ .progress-bar.active {
58
67
  @include animation(progress-bar-stripes 2s linear infinite);
59
68
  }
60
69
 
70
+ // Account for lower percentages
71
+ .progress-bar {
72
+ &[aria-valuenow="1"],
73
+ &[aria-valuenow="2"] {
74
+ min-width: 30px;
75
+ }
76
+
77
+ &[aria-valuenow="0"] {
78
+ color: $gray-light;
79
+ min-width: 30px;
80
+ background-color: transparent;
81
+ background-image: none;
82
+ box-shadow: none;
83
+ }
84
+ }
85
+
61
86
 
62
87
 
63
88
  // Variations
@@ -0,0 +1,34 @@
1
+ // Embeds responsive
2
+ //
3
+ // Credit: Nicolas Gallagher and SUIT CSS.
4
+
5
+ .embed-responsive {
6
+ position: relative;
7
+ display: block;
8
+ height: 0;
9
+ padding: 0;
10
+ overflow: hidden;
11
+
12
+ .embed-responsive-item,
13
+ iframe,
14
+ embed,
15
+ object {
16
+ position: absolute;
17
+ top: 0;
18
+ left: 0;
19
+ bottom: 0;
20
+ height: 100%;
21
+ width: 100%;
22
+ border: 0;
23
+ }
24
+
25
+ // Modifier class for 16:9 aspect ratio
26
+ &.embed-responsive-16by9 {
27
+ padding-bottom: 56.25%;
28
+ }
29
+
30
+ // Modifier class for 4:3 aspect ratio
31
+ &.embed-responsive-4by3 {
32
+ padding-bottom: 75%;
33
+ }
34
+ }
@@ -14,7 +14,8 @@
14
14
  // For more information, see the following:
15
15
  //
16
16
  // Issue: https://github.com/twbs/bootstrap/issues/10497
17
- // Docs: http://getbootstrap.com/getting-started/#browsers
17
+ // Docs: http://getbootstrap.com/getting-started/#support-ie10-width
18
+ // Source: http://timkadlec.com/2013/01/windows-phone-8-and-device-width/
18
19
  // Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
19
20
 
20
21
  @-ms-viewport {
@@ -23,24 +24,100 @@
23
24
 
24
25
 
25
26
  // Visibility utilities
27
+ // Note: Deprecated .visible-xs, .visible-sm, .visible-md, and .visible-lg as of v3.2.0
26
28
 
27
29
  @include responsive-invisibility('.visible-xs, .visible-sm, .visible-md, .visible-lg');
28
30
 
31
+ .visible-xs-block,
32
+ .visible-xs-inline,
33
+ .visible-xs-inline-block,
34
+ .visible-sm-block,
35
+ .visible-sm-inline,
36
+ .visible-sm-inline-block,
37
+ .visible-md-block,
38
+ .visible-md-inline,
39
+ .visible-md-inline-block,
40
+ .visible-lg-block,
41
+ .visible-lg-inline,
42
+ .visible-lg-inline-block {
43
+ display: none !important;
44
+ }
45
+
29
46
  @media (max-width: $screen-xs-max) {
30
47
  @include responsive-visibility('.visible-xs');
31
48
  }
49
+ .visible-xs-block {
50
+ @media (max-width: $screen-xs-max) {
51
+ display: block !important;
52
+ }
53
+ }
54
+ .visible-xs-inline {
55
+ @media (max-width: $screen-xs-max) {
56
+ display: inline !important;
57
+ }
58
+ }
59
+ .visible-xs-inline-block {
60
+ @media (max-width: $screen-xs-max) {
61
+ display: inline-block !important;
62
+ }
63
+ }
32
64
 
33
65
  @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
34
66
  @include responsive-visibility('.visible-sm');
35
67
  }
68
+ .visible-sm-block {
69
+ @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
70
+ display: block !important;
71
+ }
72
+ }
73
+ .visible-sm-inline {
74
+ @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
75
+ display: inline !important;
76
+ }
77
+ }
78
+ .visible-sm-inline-block {
79
+ @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
80
+ display: inline-block !important;
81
+ }
82
+ }
36
83
 
37
84
  @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
38
85
  @include responsive-visibility('.visible-md');
39
86
  }
87
+ .visible-md-block {
88
+ @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
89
+ display: block !important;
90
+ }
91
+ }
92
+ .visible-md-inline {
93
+ @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
94
+ display: inline !important;
95
+ }
96
+ }
97
+ .visible-md-inline-block {
98
+ @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
99
+ display: inline-block !important;
100
+ }
101
+ }
40
102
 
41
103
  @media (min-width: $screen-lg-min) {
42
104
  @include responsive-visibility('.visible-lg');
43
105
  }
106
+ .visible-lg-block {
107
+ @media (min-width: $screen-lg-min) {
108
+ display: block !important;
109
+ }
110
+ }
111
+ .visible-lg-inline {
112
+ @media (min-width: $screen-lg-min) {
113
+ display: inline !important;
114
+ }
115
+ }
116
+ .visible-lg-inline-block {
117
+ @media (min-width: $screen-lg-min) {
118
+ display: inline-block !important;
119
+ }
120
+ }
44
121
 
45
122
  @media (max-width: $screen-xs-max) {
46
123
  @include responsive-invisibility('.hidden-xs');
@@ -63,11 +140,34 @@
63
140
  //
64
141
  // Media queries are placed on the inside to be mixin-friendly.
65
142
 
143
+ // Note: Deprecated .visible-print as of v3.2.0
144
+
66
145
  @include responsive-invisibility('.visible-print');
67
146
 
68
147
  @media print {
69
148
  @include responsive-visibility('.visible-print');
70
149
  }
150
+ .visible-print-block {
151
+ display: none !important;
152
+
153
+ @media print {
154
+ display: block !important;
155
+ }
156
+ }
157
+ .visible-print-inline {
158
+ display: none !important;
159
+
160
+ @media print {
161
+ display: inline !important;
162
+ }
163
+ }
164
+ .visible-print-inline-block {
165
+ display: none !important;
166
+
167
+ @media print {
168
+ display: inline-block !important;
169
+ }
170
+ }
71
171
 
72
172
  @media print {
73
173
  @include responsive-invisibility('.hidden-print');