bootstrap 4.0.0.alpha3 → 4.0.0.alpha3.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bootstrap might be problematic. Click here for more details.

Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -2
  3. data/CHANGELOG.md +5 -0
  4. data/LICENSE +1 -1
  5. data/README.md +3 -3
  6. data/Rakefile +11 -8
  7. data/assets/javascripts/bootstrap.js +61 -48
  8. data/assets/javascripts/bootstrap.min.js +4 -4
  9. data/assets/javascripts/bootstrap/alert.js +2 -2
  10. data/assets/javascripts/bootstrap/button.js +4 -2
  11. data/assets/javascripts/bootstrap/carousel.js +10 -6
  12. data/assets/javascripts/bootstrap/collapse.js +2 -2
  13. data/assets/javascripts/bootstrap/dropdown.js +12 -8
  14. data/assets/javascripts/bootstrap/modal.js +9 -12
  15. data/assets/javascripts/bootstrap/popover.js +2 -2
  16. data/assets/javascripts/bootstrap/scrollspy.js +4 -3
  17. data/assets/javascripts/bootstrap/tab.js +2 -2
  18. data/assets/javascripts/bootstrap/tooltip.js +2 -2
  19. data/assets/javascripts/bootstrap/util.js +8 -3
  20. data/assets/stylesheets/_bootstrap-grid.scss +2 -41
  21. data/assets/stylesheets/_bootstrap-reboot.scss +1 -0
  22. data/assets/stylesheets/_bootstrap.scss +5 -7
  23. data/assets/stylesheets/bootstrap/_alert.scss +1 -10
  24. data/assets/stylesheets/bootstrap/_breadcrumb.scss +25 -10
  25. data/assets/stylesheets/bootstrap/_button-group.scss +22 -12
  26. data/assets/stylesheets/bootstrap/_buttons.scss +14 -11
  27. data/assets/stylesheets/bootstrap/_card.scss +59 -30
  28. data/assets/stylesheets/bootstrap/_carousel.scss +25 -24
  29. data/assets/stylesheets/bootstrap/_close.scss +3 -0
  30. data/assets/stylesheets/bootstrap/_code.scss +6 -7
  31. data/assets/stylesheets/bootstrap/_custom-forms.scss +144 -105
  32. data/assets/stylesheets/bootstrap/_custom.scss +4 -0
  33. data/assets/stylesheets/bootstrap/_dropdown.scss +10 -24
  34. data/assets/stylesheets/bootstrap/_forms.scss +97 -185
  35. data/assets/stylesheets/bootstrap/_grid.scss +9 -46
  36. data/assets/stylesheets/bootstrap/_images.scss +3 -4
  37. data/assets/stylesheets/bootstrap/_input-group.scss +25 -26
  38. data/assets/stylesheets/bootstrap/_list-group.scss +33 -50
  39. data/assets/stylesheets/bootstrap/_media.scss +4 -5
  40. data/assets/stylesheets/bootstrap/_mixins.scss +1 -2
  41. data/assets/stylesheets/bootstrap/_modal.scss +13 -27
  42. data/assets/stylesheets/bootstrap/_nav.scss +18 -23
  43. data/assets/stylesheets/bootstrap/_navbar.scss +54 -26
  44. data/assets/stylesheets/bootstrap/_normalize.scss +164 -168
  45. data/assets/stylesheets/bootstrap/_pagination.scss +1 -1
  46. data/assets/stylesheets/bootstrap/_popover.scss +12 -5
  47. data/assets/stylesheets/bootstrap/_print.scss +93 -65
  48. data/assets/stylesheets/bootstrap/_progress.scss +43 -54
  49. data/assets/stylesheets/bootstrap/_reboot.scss +59 -13
  50. data/assets/stylesheets/bootstrap/_tables.scss +32 -27
  51. data/assets/stylesheets/bootstrap/_tags.scss +77 -0
  52. data/assets/stylesheets/bootstrap/_tooltip.scss +7 -5
  53. data/assets/stylesheets/bootstrap/_type.scss +22 -29
  54. data/assets/stylesheets/bootstrap/_utilities.scss +9 -95
  55. data/assets/stylesheets/bootstrap/_variables.scss +302 -139
  56. data/assets/stylesheets/bootstrap/mixins/_background-variant.scss +1 -1
  57. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +22 -9
  58. data/assets/stylesheets/bootstrap/mixins/_cards.scss +8 -2
  59. data/assets/stylesheets/bootstrap/mixins/_forms.scss +7 -4
  60. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +4 -4
  61. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +37 -11
  62. data/assets/stylesheets/bootstrap/mixins/_grid.scss +18 -9
  63. data/assets/stylesheets/bootstrap/mixins/_hover.scss +10 -9
  64. data/assets/stylesheets/bootstrap/mixins/_pagination.scss +2 -3
  65. data/assets/stylesheets/bootstrap/mixins/_progress.scss +5 -0
  66. data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +2 -3
  67. data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +1 -1
  68. data/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +3 -3
  69. data/assets/stylesheets/bootstrap/mixins/{_label.scss → _tag.scss} +2 -2
  70. data/assets/stylesheets/bootstrap/mixins/_text-hide.scss +1 -1
  71. data/assets/stylesheets/bootstrap/{_utilities-background.scss → utilities/_background.scss} +1 -4
  72. data/assets/stylesheets/bootstrap/utilities/_clearfix.scss +3 -0
  73. data/assets/stylesheets/bootstrap/utilities/_display.scss +13 -0
  74. data/assets/stylesheets/bootstrap/utilities/_flex.scss +37 -0
  75. data/assets/stylesheets/bootstrap/utilities/_pulls.scss +13 -0
  76. data/assets/stylesheets/bootstrap/utilities/_screenreaders.scss +11 -0
  77. data/assets/stylesheets/bootstrap/{_utilities-spacing.scss → utilities/_spacing.scss} +4 -0
  78. data/assets/stylesheets/bootstrap/utilities/_text.scss +51 -0
  79. data/assets/stylesheets/bootstrap/{_utilities-responsive.scss → utilities/_visibility.scss} +9 -1
  80. data/bootstrap.gemspec +1 -1
  81. data/lib/bootstrap.rb +6 -6
  82. data/lib/bootstrap/engine.rb +2 -0
  83. data/lib/bootstrap/version.rb +2 -2
  84. data/tasks/updater/network.rb +3 -1
  85. data/templates/project/_bootstrap-variables.scss +303 -140
  86. data/test/dummy_rails/config/boot.rb +1 -1
  87. data/test/gemfiles/rails_4_2.gemfile +4 -4
  88. data/test/gemfiles/rails_5_0.gemfile +12 -0
  89. data/test/rails_test.rb +1 -1
  90. data/test/support/dummy_rails_integration.rb +2 -2
  91. metadata +19 -14
  92. data/assets/stylesheets/bootstrap/_labels.scss +0 -77
  93. data/assets/stylesheets/bootstrap/_pager.scss +0 -57
  94. data/assets/stylesheets/bootstrap/mixins/_center-block.scss +0 -7
  95. data/test/gemfiles/rails_head.gemfile +0 -20
@@ -1,5 +1,5 @@
1
1
  # Set up gems listed in the Gemfile.
2
2
  ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
3
3
 
4
- require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE'])
4
+ require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
5
5
  $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
@@ -1,10 +1,10 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
- gem 'actionpack', '>= 4.2.4'
4
- gem 'activesupport', '>= 4.2.4'
3
+ gem 'actionpack', '>= 4.2.6'
4
+ gem 'activesupport', '>= 4.2.6'
5
5
 
6
6
  source 'https://rails-assets.org' do
7
- gem 'rails-assets-tether', '>= 1.1.0'
7
+ gem 'rails-assets-tether', '>= 1.3.2'
8
8
  end
9
9
 
10
10
  gemspec path: '../../'
@@ -0,0 +1,12 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'actionpack', '~> 5.0.0.rc1'
4
+ gem 'activesupport', '~> 5.0.0.rc1'
5
+ gem 'autoprefixer-rails', '>= 6.3.6.1'
6
+
7
+ source 'https://rails-assets.org' do
8
+ gem 'rails-assets-tether', '>= 1.3.2'
9
+ end
10
+
11
+ gemspec path: '../../'
12
+
@@ -14,7 +14,7 @@ class RailsTest < ActionDispatch::IntegrationTest
14
14
 
15
15
  def test_autoprefixer
16
16
  get ActionController::Base.helpers.stylesheet_path('application.css')
17
- assert_match /-webkit-(?:transition|transform)/, response.body
17
+ assert_match(/-webkit-(?:transition|transform)/, response.body)
18
18
  end
19
19
 
20
20
  def test_precompile
@@ -1,4 +1,4 @@
1
- require 'capybara'
1
+ require 'capybara/dsl'
2
2
  require 'fileutils'
3
3
  module DummyRailsIntegration
4
4
  include Capybara::DSL
@@ -24,6 +24,6 @@ module DummyRailsIntegration
24
24
  private
25
25
  def cleanup_dummy_rails_files
26
26
  FileUtils.rm_rf('test/dummy_rails/tmp/cache', secure: true)
27
- FileUtils.rm Dir.glob('test/dummy_rails/public/assets/*')
27
+ FileUtils.rm Dir.glob('test/dummy_rails/public/assets/{.[^\.]*,*}')
28
28
  end
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.alpha3
4
+ version: 4.0.0.alpha3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twitter, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-15 00:00:00.000000000 Z
11
+ date: 2016-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: 2.6.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: 2.6.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: poltergeist
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -262,13 +262,13 @@ files:
262
262
  - assets/stylesheets/bootstrap/_close.scss
263
263
  - assets/stylesheets/bootstrap/_code.scss
264
264
  - assets/stylesheets/bootstrap/_custom-forms.scss
265
+ - assets/stylesheets/bootstrap/_custom.scss
265
266
  - assets/stylesheets/bootstrap/_dropdown.scss
266
267
  - assets/stylesheets/bootstrap/_forms.scss
267
268
  - assets/stylesheets/bootstrap/_grid.scss
268
269
  - assets/stylesheets/bootstrap/_images.scss
269
270
  - assets/stylesheets/bootstrap/_input-group.scss
270
271
  - assets/stylesheets/bootstrap/_jumbotron.scss
271
- - assets/stylesheets/bootstrap/_labels.scss
272
272
  - assets/stylesheets/bootstrap/_list-group.scss
273
273
  - assets/stylesheets/bootstrap/_media.scss
274
274
  - assets/stylesheets/bootstrap/_mixins.scss
@@ -276,7 +276,6 @@ files:
276
276
  - assets/stylesheets/bootstrap/_nav.scss
277
277
  - assets/stylesheets/bootstrap/_navbar.scss
278
278
  - assets/stylesheets/bootstrap/_normalize.scss
279
- - assets/stylesheets/bootstrap/_pager.scss
280
279
  - assets/stylesheets/bootstrap/_pagination.scss
281
280
  - assets/stylesheets/bootstrap/_popover.scss
282
281
  - assets/stylesheets/bootstrap/_print.scss
@@ -284,11 +283,9 @@ files:
284
283
  - assets/stylesheets/bootstrap/_reboot.scss
285
284
  - assets/stylesheets/bootstrap/_responsive-embed.scss
286
285
  - assets/stylesheets/bootstrap/_tables.scss
286
+ - assets/stylesheets/bootstrap/_tags.scss
287
287
  - assets/stylesheets/bootstrap/_tooltip.scss
288
288
  - assets/stylesheets/bootstrap/_type.scss
289
- - assets/stylesheets/bootstrap/_utilities-background.scss
290
- - assets/stylesheets/bootstrap/_utilities-responsive.scss
291
- - assets/stylesheets/bootstrap/_utilities-spacing.scss
292
289
  - assets/stylesheets/bootstrap/_utilities.scss
293
290
  - assets/stylesheets/bootstrap/_variables.scss
294
291
  - assets/stylesheets/bootstrap/mixins/_alert.scss
@@ -297,7 +294,6 @@ files:
297
294
  - assets/stylesheets/bootstrap/mixins/_breakpoints.scss
298
295
  - assets/stylesheets/bootstrap/mixins/_buttons.scss
299
296
  - assets/stylesheets/bootstrap/mixins/_cards.scss
300
- - assets/stylesheets/bootstrap/mixins/_center-block.scss
301
297
  - assets/stylesheets/bootstrap/mixins/_clearfix.scss
302
298
  - assets/stylesheets/bootstrap/mixins/_forms.scss
303
299
  - assets/stylesheets/bootstrap/mixins/_gradients.scss
@@ -305,7 +301,6 @@ files:
305
301
  - assets/stylesheets/bootstrap/mixins/_grid.scss
306
302
  - assets/stylesheets/bootstrap/mixins/_hover.scss
307
303
  - assets/stylesheets/bootstrap/mixins/_image.scss
308
- - assets/stylesheets/bootstrap/mixins/_label.scss
309
304
  - assets/stylesheets/bootstrap/mixins/_list-group.scss
310
305
  - assets/stylesheets/bootstrap/mixins/_lists.scss
311
306
  - assets/stylesheets/bootstrap/mixins/_nav-divider.scss
@@ -320,9 +315,19 @@ files:
320
315
  - assets/stylesheets/bootstrap/mixins/_size.scss
321
316
  - assets/stylesheets/bootstrap/mixins/_tab-focus.scss
322
317
  - assets/stylesheets/bootstrap/mixins/_table-row.scss
318
+ - assets/stylesheets/bootstrap/mixins/_tag.scss
323
319
  - assets/stylesheets/bootstrap/mixins/_text-emphasis.scss
324
320
  - assets/stylesheets/bootstrap/mixins/_text-hide.scss
325
321
  - assets/stylesheets/bootstrap/mixins/_text-truncate.scss
322
+ - assets/stylesheets/bootstrap/utilities/_background.scss
323
+ - assets/stylesheets/bootstrap/utilities/_clearfix.scss
324
+ - assets/stylesheets/bootstrap/utilities/_display.scss
325
+ - assets/stylesheets/bootstrap/utilities/_flex.scss
326
+ - assets/stylesheets/bootstrap/utilities/_pulls.scss
327
+ - assets/stylesheets/bootstrap/utilities/_screenreaders.scss
328
+ - assets/stylesheets/bootstrap/utilities/_spacing.scss
329
+ - assets/stylesheets/bootstrap/utilities/_text.scss
330
+ - assets/stylesheets/bootstrap/utilities/_visibility.scss
326
331
  - bootstrap.gemspec
327
332
  - lib/bootstrap.rb
328
333
  - lib/bootstrap/engine.rb
@@ -365,7 +370,7 @@ files:
365
370
  - test/dummy_rails/config/routes.rb
366
371
  - test/dummy_rails/log/.keep
367
372
  - test/gemfiles/rails_4_2.gemfile
368
- - test/gemfiles/rails_head.gemfile
373
+ - test/gemfiles/rails_5_0.gemfile
369
374
  - test/rails_test.rb
370
375
  - test/support/dummy_rails_integration.rb
371
376
  - test/support/reporting.rb
@@ -391,7 +396,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
391
396
  version: 1.3.1
392
397
  requirements: []
393
398
  rubyforge_project:
394
- rubygems_version: 2.4.8
399
+ rubygems_version: 2.6.4
395
400
  signing_key:
396
401
  specification_version: 4
397
402
  summary: The most popular HTML, CSS, and JavaScript framework for developing responsive,
@@ -427,7 +432,7 @@ test_files:
427
432
  - test/dummy_rails/config/routes.rb
428
433
  - test/dummy_rails/log/.keep
429
434
  - test/gemfiles/rails_4_2.gemfile
430
- - test/gemfiles/rails_head.gemfile
435
+ - test/gemfiles/rails_5_0.gemfile
431
436
  - test/rails_test.rb
432
437
  - test/support/dummy_rails_integration.rb
433
438
  - test/support/reporting.rb
@@ -1,77 +0,0 @@
1
- // Base class
2
- //
3
- // Requires one of the contextual, color modifier classes for `color` and
4
- // `background-color`.
5
-
6
- .label {
7
- display: inline-block;
8
- padding: .25em .4em;
9
- font-size: 75%;
10
- font-weight: $label-font-weight;
11
- line-height: 1;
12
- color: $label-color;
13
- text-align: center;
14
- white-space: nowrap;
15
- vertical-align: baseline;
16
- @include border-radius();
17
-
18
- // Empty labels collapse automatically
19
- &:empty {
20
- display: none;
21
- }
22
- }
23
-
24
- // Quick fix for labels in buttons
25
- .btn .label {
26
- position: relative;
27
- top: -1px;
28
- }
29
-
30
- // Add hover effects, but only for links
31
- a.label {
32
- @include hover-focus {
33
- color: $label-link-hover-color;
34
- text-decoration: none;
35
- cursor: pointer;
36
- }
37
- }
38
-
39
- // Pill labels
40
- //
41
- // Make them extra rounded with a modifier to replace v3's badges.
42
-
43
- .label-pill {
44
- padding-right: .6em;
45
- padding-left: .6em;
46
- // Use a higher than normal value to ensure completely rounded edges when
47
- // customizing padding or font-size on labels.
48
- @include border-radius(10rem);
49
- }
50
-
51
- // Colors
52
- //
53
- // Contextual variations (linked labels get darker on :hover).
54
-
55
- .label-default {
56
- @include label-variant($label-default-bg);
57
- }
58
-
59
- .label-primary {
60
- @include label-variant($label-primary-bg);
61
- }
62
-
63
- .label-success {
64
- @include label-variant($label-success-bg);
65
- }
66
-
67
- .label-info {
68
- @include label-variant($label-info-bg);
69
- }
70
-
71
- .label-warning {
72
- @include label-variant($label-warning-bg);
73
- }
74
-
75
- .label-danger {
76
- @include label-variant($label-danger-bg);
77
- }
@@ -1,57 +0,0 @@
1
- .pager {
2
- padding-left: 0;
3
- margin-top: $spacer-y;
4
- margin-bottom: $spacer-y;
5
- text-align: center;
6
- list-style: none;
7
- @include clearfix();
8
-
9
- li {
10
- display: inline;
11
-
12
- > a,
13
- > span {
14
- display: inline-block;
15
- padding: 5px 14px;
16
- background-color: $pager-bg;
17
- border: $pager-border-width solid $pager-border-color;
18
- border-radius: $pager-border-radius;
19
- }
20
-
21
- > a {
22
- @include hover-focus {
23
- text-decoration: none;
24
- background-color: $pager-hover-bg;
25
- }
26
- }
27
- }
28
-
29
- .disabled {
30
- > a {
31
- @include plain-hover-focus {
32
- color: $pager-disabled-color;
33
- cursor: $cursor-disabled;
34
- background-color: $pager-bg;
35
- }
36
- }
37
- > span {
38
- color: $pager-disabled-color;
39
- cursor: $cursor-disabled;
40
- background-color: $pager-bg;
41
- }
42
- }
43
- }
44
-
45
- .pager-next {
46
- > a,
47
- > span {
48
- float: right;
49
- }
50
- }
51
-
52
- .pager-prev {
53
- > a,
54
- > span {
55
- float: left;
56
- }
57
- }
@@ -1,7 +0,0 @@
1
- // Center-align a block level element
2
-
3
- @mixin center-block() {
4
- display: block;
5
- margin-left: auto;
6
- margin-right: auto;
7
- }
@@ -1,20 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- gem 'actionpack', github: 'rails/rails'
4
- gem 'activesupport', github: 'rails/rails'
5
-
6
- # Required git dependencies as per https://github.com/rails/rails/blob/51211a94bd7a34d80f2412a7f94fefe7366647a5/Gemfile:
7
- gem 'rack', github: 'rack/rack'
8
- gem 'sprockets', github: 'rails/sprockets'
9
- gem 'sprockets-rails', github: 'rails/sprockets-rails'
10
- gem 'sass-rails', github: 'rails/sass-rails', branch: 'master'
11
-
12
- # Need https://github.com/ai/autoprefixer-rails/pull/73 fixed to unlock
13
- gem 'autoprefixer-rails', '= 6.1.0'
14
-
15
- source 'https://rails-assets.org' do
16
- gem 'rails-assets-tether', '>= 1.1.0'
17
- end
18
-
19
- gemspec path: '../../'
20
-