bootstrap 4.0.0.alpha6 → 4.0.0.beta

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 (97) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/Gemfile +2 -4
  4. data/README.md +20 -22
  5. data/assets/javascripts/bootstrap.js +657 -361
  6. data/assets/javascripts/bootstrap.min.js +2 -3
  7. data/assets/javascripts/bootstrap/alert.js +8 -8
  8. data/assets/javascripts/bootstrap/button.js +16 -9
  9. data/assets/javascripts/bootstrap/carousel.js +48 -21
  10. data/assets/javascripts/bootstrap/collapse.js +42 -33
  11. data/assets/javascripts/bootstrap/dropdown.js +196 -52
  12. data/assets/javascripts/bootstrap/modal.js +71 -29
  13. data/assets/javascripts/bootstrap/popover.js +25 -13
  14. data/assets/javascripts/bootstrap/scrollspy.js +23 -21
  15. data/assets/javascripts/bootstrap/tab.js +14 -18
  16. data/assets/javascripts/bootstrap/tooltip.js +139 -83
  17. data/assets/javascripts/bootstrap/util.js +10 -8
  18. data/assets/stylesheets/_bootstrap-grid.scss +2 -8
  19. data/assets/stylesheets/_bootstrap-reboot.scss +1 -2
  20. data/assets/stylesheets/_bootstrap.scss +2 -15
  21. data/assets/stylesheets/bootstrap/_alert.scss +4 -11
  22. data/assets/stylesheets/bootstrap/_badge.scss +4 -33
  23. data/assets/stylesheets/bootstrap/_breadcrumb.scss +1 -1
  24. data/assets/stylesheets/bootstrap/_button-group.scss +11 -15
  25. data/assets/stylesheets/bootstrap/_buttons.scss +13 -42
  26. data/assets/stylesheets/bootstrap/_card.scss +27 -80
  27. data/assets/stylesheets/bootstrap/_carousel.scss +24 -17
  28. data/assets/stylesheets/bootstrap/_close.scss +0 -2
  29. data/assets/stylesheets/bootstrap/_custom-forms.scss +27 -36
  30. data/assets/stylesheets/bootstrap/_dropdown.scss +15 -48
  31. data/assets/stylesheets/bootstrap/_forms.scss +70 -68
  32. data/assets/stylesheets/bootstrap/_functions.scss +90 -0
  33. data/assets/stylesheets/bootstrap/_grid.scss +3 -2
  34. data/assets/stylesheets/bootstrap/_images.scss +1 -1
  35. data/assets/stylesheets/bootstrap/_input-group.scss +6 -8
  36. data/assets/stylesheets/bootstrap/_jumbotron.scss +0 -4
  37. data/assets/stylesheets/bootstrap/_list-group.scss +9 -36
  38. data/assets/stylesheets/bootstrap/_mixins.scss +2 -18
  39. data/assets/stylesheets/bootstrap/_modal.scss +3 -3
  40. data/assets/stylesheets/bootstrap/_nav.scss +15 -16
  41. data/assets/stylesheets/bootstrap/_navbar.scss +70 -54
  42. data/assets/stylesheets/bootstrap/_pagination.scss +3 -4
  43. data/assets/stylesheets/bootstrap/_popover.scss +96 -72
  44. data/assets/stylesheets/bootstrap/_print.scss +1 -9
  45. data/assets/stylesheets/bootstrap/_progress.scss +4 -4
  46. data/assets/stylesheets/bootstrap/_reboot.scss +187 -95
  47. data/assets/stylesheets/bootstrap/_tables.scss +34 -19
  48. data/assets/stylesheets/bootstrap/_tooltip.scss +52 -35
  49. data/assets/stylesheets/bootstrap/_type.scss +8 -28
  50. data/assets/stylesheets/bootstrap/_utilities.scss +1 -0
  51. data/assets/stylesheets/bootstrap/_variables.scss +286 -410
  52. data/assets/stylesheets/bootstrap/mixins/_alert.scss +4 -5
  53. data/assets/stylesheets/bootstrap/mixins/_badge.scss +6 -5
  54. data/assets/stylesheets/bootstrap/mixins/_border-radius.scss +3 -3
  55. data/assets/stylesheets/bootstrap/mixins/_box-shadow.scss +5 -0
  56. data/assets/stylesheets/bootstrap/mixins/_breakpoints.scss +23 -13
  57. data/assets/stylesheets/bootstrap/mixins/_buttons.scss +11 -14
  58. data/assets/stylesheets/bootstrap/mixins/_clearfix.scss +1 -1
  59. data/assets/stylesheets/bootstrap/mixins/_forms.scss +57 -55
  60. data/assets/stylesheets/bootstrap/mixins/_gradients.scss +1 -1
  61. data/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +9 -18
  62. data/assets/stylesheets/bootstrap/mixins/_grid.scss +12 -65
  63. data/assets/stylesheets/bootstrap/mixins/_hover.scss +6 -6
  64. data/assets/stylesheets/bootstrap/mixins/_list-group.scss +2 -4
  65. data/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +3 -3
  66. data/assets/stylesheets/bootstrap/mixins/_pagination.scss +1 -0
  67. data/assets/stylesheets/bootstrap/mixins/_reset-text.scss +4 -3
  68. data/assets/stylesheets/bootstrap/mixins/_resize.scss +1 -1
  69. data/assets/stylesheets/bootstrap/mixins/_screen-reader.scss +5 -2
  70. data/assets/stylesheets/bootstrap/mixins/_text-truncate.scss +1 -1
  71. data/assets/stylesheets/bootstrap/mixins/_transition.scss +9 -0
  72. data/assets/stylesheets/bootstrap/mixins/_visibility.scss +2 -2
  73. data/assets/stylesheets/bootstrap/utilities/_background.scss +4 -17
  74. data/assets/stylesheets/bootstrap/utilities/_borders.scss +20 -5
  75. data/assets/stylesheets/bootstrap/utilities/_display.scss +36 -1
  76. data/assets/stylesheets/bootstrap/{_responsive-embed.scss → utilities/_embed.scss} +0 -0
  77. data/assets/stylesheets/bootstrap/utilities/_flex.scss +0 -4
  78. data/assets/stylesheets/bootstrap/utilities/_position.scss +5 -3
  79. data/assets/stylesheets/bootstrap/utilities/_spacing.scss +10 -12
  80. data/assets/stylesheets/bootstrap/utilities/_text.scss +5 -17
  81. data/assets/stylesheets/bootstrap/utilities/_visibility.scss +4 -48
  82. data/bootstrap.gemspec +2 -0
  83. data/lib/bootstrap.rb +2 -0
  84. data/lib/bootstrap/version.rb +2 -2
  85. data/tasks/updater/js.rb +7 -9
  86. data/tasks/updater/scss.rb +1 -4
  87. data/templates/project/_bootstrap-variables.scss +289 -396
  88. data/test/dummy_rails/app/assets/javascripts/application.js +1 -1
  89. data/test/dummy_rails/config/application.rb +0 -1
  90. data/test/gemfiles/rails_4_2.gemfile +0 -4
  91. data/test/gemfiles/rails_5_0.gemfile +0 -4
  92. data/test/gemfiles/rails_5_1.gemfile +8 -0
  93. metadata +23 -8
  94. data/assets/stylesheets/bootstrap/_custom.scss +0 -4
  95. data/assets/stylesheets/bootstrap/_normalize.scss +0 -461
  96. data/assets/stylesheets/bootstrap/mixins/_cards.scss +0 -47
  97. data/assets/stylesheets/bootstrap/mixins/_transforms.scss +0 -14
@@ -1,5 +1,5 @@
1
1
  //= require jquery
2
- //= require tether
2
+ //= require popper.js
3
3
  //= require bootstrap-sprockets
4
4
 
5
5
  jQuery(function ($) {
@@ -17,7 +17,6 @@ require 'uglifier'
17
17
 
18
18
  require 'bootstrap'
19
19
  require 'jquery-rails'
20
- require 'rails-assets-tether'
21
20
 
22
21
  module Dummy
23
22
  class Application < Rails::Application
@@ -3,9 +3,5 @@ source 'https://rubygems.org'
3
3
  gem 'actionpack', '~> 4.2.7'
4
4
  gem 'activesupport', '~> 4.2.7'
5
5
 
6
- source 'https://rails-assets.org' do
7
- gem 'rails-assets-tether', '>= 1.3.2'
8
- end
9
-
10
6
  gemspec path: '../../'
11
7
 
@@ -4,9 +4,5 @@ gem 'actionpack', '~> 5.0.0'
4
4
  gem 'activesupport', '~> 5.0.0'
5
5
  gem 'autoprefixer-rails', '>= 6.3.6.1'
6
6
 
7
- source 'https://rails-assets.org' do
8
- gem 'rails-assets-tether', '>= 1.3.2'
9
- end
10
-
11
7
  gemspec path: '../../'
12
8
 
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'actionpack', '~> 5.1.0'
4
+ gem 'activesupport', '~> 5.1.0'
5
+ gem 'autoprefixer-rails', '>= 7.1.1'
6
+
7
+ gemspec path: '../../'
8
+
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.alpha6
4
+ version: 4.0.0.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Twitter, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-07 00:00:00.000000000 Z
11
+ date: 2017-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: popper_js
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.11.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.11.1
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: sass
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -261,9 +275,9 @@ files:
261
275
  - assets/stylesheets/bootstrap/_close.scss
262
276
  - assets/stylesheets/bootstrap/_code.scss
263
277
  - assets/stylesheets/bootstrap/_custom-forms.scss
264
- - assets/stylesheets/bootstrap/_custom.scss
265
278
  - assets/stylesheets/bootstrap/_dropdown.scss
266
279
  - assets/stylesheets/bootstrap/_forms.scss
280
+ - assets/stylesheets/bootstrap/_functions.scss
267
281
  - assets/stylesheets/bootstrap/_grid.scss
268
282
  - assets/stylesheets/bootstrap/_images.scss
269
283
  - assets/stylesheets/bootstrap/_input-group.scss
@@ -274,13 +288,11 @@ files:
274
288
  - assets/stylesheets/bootstrap/_modal.scss
275
289
  - assets/stylesheets/bootstrap/_nav.scss
276
290
  - assets/stylesheets/bootstrap/_navbar.scss
277
- - assets/stylesheets/bootstrap/_normalize.scss
278
291
  - assets/stylesheets/bootstrap/_pagination.scss
279
292
  - assets/stylesheets/bootstrap/_popover.scss
280
293
  - assets/stylesheets/bootstrap/_print.scss
281
294
  - assets/stylesheets/bootstrap/_progress.scss
282
295
  - assets/stylesheets/bootstrap/_reboot.scss
283
- - assets/stylesheets/bootstrap/_responsive-embed.scss
284
296
  - assets/stylesheets/bootstrap/_tables.scss
285
297
  - assets/stylesheets/bootstrap/_tooltip.scss
286
298
  - assets/stylesheets/bootstrap/_transitions.scss
@@ -291,9 +303,9 @@ files:
291
303
  - assets/stylesheets/bootstrap/mixins/_background-variant.scss
292
304
  - assets/stylesheets/bootstrap/mixins/_badge.scss
293
305
  - assets/stylesheets/bootstrap/mixins/_border-radius.scss
306
+ - assets/stylesheets/bootstrap/mixins/_box-shadow.scss
294
307
  - assets/stylesheets/bootstrap/mixins/_breakpoints.scss
295
308
  - assets/stylesheets/bootstrap/mixins/_buttons.scss
296
- - assets/stylesheets/bootstrap/mixins/_cards.scss
297
309
  - assets/stylesheets/bootstrap/mixins/_clearfix.scss
298
310
  - assets/stylesheets/bootstrap/mixins/_float.scss
299
311
  - assets/stylesheets/bootstrap/mixins/_forms.scss
@@ -315,13 +327,14 @@ files:
315
327
  - assets/stylesheets/bootstrap/mixins/_text-emphasis.scss
316
328
  - assets/stylesheets/bootstrap/mixins/_text-hide.scss
317
329
  - assets/stylesheets/bootstrap/mixins/_text-truncate.scss
318
- - assets/stylesheets/bootstrap/mixins/_transforms.scss
330
+ - assets/stylesheets/bootstrap/mixins/_transition.scss
319
331
  - assets/stylesheets/bootstrap/mixins/_visibility.scss
320
332
  - assets/stylesheets/bootstrap/utilities/_align.scss
321
333
  - assets/stylesheets/bootstrap/utilities/_background.scss
322
334
  - assets/stylesheets/bootstrap/utilities/_borders.scss
323
335
  - assets/stylesheets/bootstrap/utilities/_clearfix.scss
324
336
  - assets/stylesheets/bootstrap/utilities/_display.scss
337
+ - assets/stylesheets/bootstrap/utilities/_embed.scss
325
338
  - assets/stylesheets/bootstrap/utilities/_flex.scss
326
339
  - assets/stylesheets/bootstrap/utilities/_float.scss
327
340
  - assets/stylesheets/bootstrap/utilities/_position.scss
@@ -373,6 +386,7 @@ files:
373
386
  - test/dummy_rails/log/.keep
374
387
  - test/gemfiles/rails_4_2.gemfile
375
388
  - test/gemfiles/rails_5_0.gemfile
389
+ - test/gemfiles/rails_5_1.gemfile
376
390
  - test/rails_test.rb
377
391
  - test/support/dummy_rails_integration.rb
378
392
  - test/support/reporting.rb
@@ -398,7 +412,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
398
412
  version: 1.3.1
399
413
  requirements: []
400
414
  rubyforge_project:
401
- rubygems_version: 2.6.8
415
+ rubygems_version: 2.6.12
402
416
  signing_key:
403
417
  specification_version: 4
404
418
  summary: The most popular HTML, CSS, and JavaScript framework for developing responsive,
@@ -435,6 +449,7 @@ test_files:
435
449
  - test/dummy_rails/log/.keep
436
450
  - test/gemfiles/rails_4_2.gemfile
437
451
  - test/gemfiles/rails_5_0.gemfile
452
+ - test/gemfiles/rails_5_1.gemfile
438
453
  - test/rails_test.rb
439
454
  - test/support/dummy_rails_integration.rb
440
455
  - test/support/reporting.rb
@@ -1,4 +0,0 @@
1
- // Bootstrap overrides
2
- //
3
- // Copy variables from `_variables.scss` to this file to override default values
4
- // without modifying source files.
@@ -1,461 +0,0 @@
1
- /*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */
2
-
3
- //
4
- // 1. Change the default font family in all browsers (opinionated).
5
- // 2. Correct the line height in all browsers.
6
- // 3. Prevent adjustments of font size after orientation changes in
7
- // IE on Windows Phone and in iOS.
8
- //
9
-
10
- // Document
11
- // ==========================================================================
12
-
13
- html {
14
- font-family: sans-serif; // 1
15
- line-height: 1.15; // 2
16
- -ms-text-size-adjust: 100%; // 3
17
- -webkit-text-size-adjust: 100%; // 3
18
- }
19
-
20
- // Sections
21
- // ==========================================================================
22
-
23
- //
24
- // Remove the margin in all browsers (opinionated).
25
- //
26
-
27
- body {
28
- margin: 0;
29
- }
30
-
31
- //
32
- // Add the correct display in IE 9-.
33
- //
34
-
35
- article,
36
- aside,
37
- footer,
38
- header,
39
- nav,
40
- section {
41
- display: block;
42
- }
43
-
44
- //
45
- // Correct the font size and margin on `h1` elements within `section` and
46
- // `article` contexts in Chrome, Firefox, and Safari.
47
- //
48
-
49
- h1 {
50
- font-size: 2em;
51
- margin: 0.67em 0;
52
- }
53
-
54
- // Grouping content
55
- // ==========================================================================
56
-
57
- //
58
- // Add the correct display in IE 9-.
59
- // 1. Add the correct display in IE.
60
- //
61
-
62
- figcaption,
63
- figure,
64
- main { // 1
65
- display: block;
66
- }
67
-
68
- //
69
- // Add the correct margin in IE 8.
70
- //
71
-
72
- figure {
73
- margin: 1em 40px;
74
- }
75
-
76
- //
77
- // 1. Add the correct box sizing in Firefox.
78
- // 2. Show the overflow in Edge and IE.
79
- //
80
-
81
- hr {
82
- box-sizing: content-box; // 1
83
- height: 0; // 1
84
- overflow: visible; // 2
85
- }
86
-
87
- //
88
- // 1. Correct the inheritance and scaling of font size in all browsers.
89
- // 2. Correct the odd `em` font sizing in all browsers.
90
- //
91
-
92
- pre {
93
- font-family: monospace, monospace; // 1
94
- font-size: 1em; // 2
95
- }
96
-
97
- // Text-level semantics
98
- // ==========================================================================
99
-
100
- //
101
- // 1. Remove the gray background on active links in IE 10.
102
- // 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
103
- //
104
-
105
- a {
106
- background-color: transparent; // 1
107
- -webkit-text-decoration-skip: objects; // 2
108
- }
109
-
110
- //
111
- // Remove the outline on focused links when they are also active or hovered
112
- // in all browsers (opinionated).
113
- //
114
-
115
- a:active,
116
- a:hover {
117
- outline-width: 0;
118
- }
119
-
120
- //
121
- // 1. Remove the bottom border in Firefox 39-.
122
- // 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
123
- //
124
-
125
- abbr[title] {
126
- border-bottom: none; // 1
127
- text-decoration: underline; // 2
128
- text-decoration: underline dotted; // 2
129
- }
130
-
131
- //
132
- // Prevent the duplicate application of `bolder` by the next rule in Safari 6.
133
- //
134
-
135
- b,
136
- strong {
137
- font-weight: inherit;
138
- }
139
-
140
- //
141
- // Add the correct font weight in Chrome, Edge, and Safari.
142
- //
143
-
144
- b,
145
- strong {
146
- font-weight: bolder;
147
- }
148
-
149
- //
150
- // 1. Correct the inheritance and scaling of font size in all browsers.
151
- // 2. Correct the odd `em` font sizing in all browsers.
152
- //
153
-
154
- code,
155
- kbd,
156
- samp {
157
- font-family: monospace, monospace; // 1
158
- font-size: 1em; // 2
159
- }
160
-
161
- //
162
- // Add the correct font style in Android 4.3-.
163
- //
164
-
165
- dfn {
166
- font-style: italic;
167
- }
168
-
169
- //
170
- // Add the correct background and color in IE 9-.
171
- //
172
-
173
- mark {
174
- background-color: #ff0;
175
- color: #000;
176
- }
177
-
178
- //
179
- // Add the correct font size in all browsers.
180
- //
181
-
182
- small {
183
- font-size: 80%;
184
- }
185
-
186
- //
187
- // Prevent `sub` and `sup` elements from affecting the line height in
188
- // all browsers.
189
- //
190
-
191
- sub,
192
- sup {
193
- font-size: 75%;
194
- line-height: 0;
195
- position: relative;
196
- vertical-align: baseline;
197
- }
198
-
199
- sub {
200
- bottom: -0.25em;
201
- }
202
-
203
- sup {
204
- top: -0.5em;
205
- }
206
-
207
- // Embedded content
208
- // ==========================================================================
209
-
210
- //
211
- // Add the correct display in IE 9-.
212
- //
213
-
214
- audio,
215
- video {
216
- display: inline-block;
217
- }
218
-
219
- //
220
- // Add the correct display in iOS 4-7.
221
- //
222
-
223
- audio:not([controls]) {
224
- display: none;
225
- height: 0;
226
- }
227
-
228
- //
229
- // Remove the border on images inside links in IE 10-.
230
- //
231
-
232
- img {
233
- border-style: none;
234
- }
235
-
236
- //
237
- // Hide the overflow in IE.
238
- //
239
-
240
- svg:not(:root) {
241
- overflow: hidden;
242
- }
243
-
244
- // Forms
245
- // ==========================================================================
246
-
247
- //
248
- // 1. Change the font styles in all browsers (opinionated).
249
- // 2. Remove the margin in Firefox and Safari.
250
- //
251
-
252
- button,
253
- input,
254
- optgroup,
255
- select,
256
- textarea {
257
- font-family: sans-serif; // 1
258
- font-size: 100%; // 1
259
- line-height: 1.15; // 1
260
- margin: 0; // 2
261
- }
262
-
263
- //
264
- // Show the overflow in IE.
265
- // 1. Show the overflow in Edge.
266
- //
267
-
268
- button,
269
- input { // 1
270
- overflow: visible;
271
- }
272
-
273
- //
274
- // Remove the inheritance of text transform in Edge, Firefox, and IE.
275
- // 1. Remove the inheritance of text transform in Firefox.
276
- //
277
-
278
- button,
279
- select { // 1
280
- text-transform: none;
281
- }
282
-
283
- //
284
- // 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
285
- // controls in Android 4.
286
- // 2. Correct the inability to style clickable types in iOS and Safari.
287
- //
288
-
289
- button,
290
- html [type="button"], // 1
291
- [type="reset"],
292
- [type="submit"] {
293
- -webkit-appearance: button; // 2
294
- }
295
-
296
- //
297
- // Remove the inner border and padding in Firefox.
298
- //
299
-
300
- button::-moz-focus-inner,
301
- [type="button"]::-moz-focus-inner,
302
- [type="reset"]::-moz-focus-inner,
303
- [type="submit"]::-moz-focus-inner {
304
- border-style: none;
305
- padding: 0;
306
- }
307
-
308
- //
309
- // Restore the focus styles unset by the previous rule.
310
- //
311
-
312
- button:-moz-focusring,
313
- [type="button"]:-moz-focusring,
314
- [type="reset"]:-moz-focusring,
315
- [type="submit"]:-moz-focusring {
316
- outline: 1px dotted ButtonText;
317
- }
318
-
319
- //
320
- // Change the border, margin, and padding in all browsers (opinionated).
321
- //
322
-
323
- fieldset {
324
- border: 1px solid #c0c0c0;
325
- margin: 0 2px;
326
- padding: 0.35em 0.625em 0.75em;
327
- }
328
-
329
- //
330
- // 1. Correct the text wrapping in Edge and IE.
331
- // 2. Correct the color inheritance from `fieldset` elements in IE.
332
- // 3. Remove the padding so developers are not caught out when they zero out
333
- // `fieldset` elements in all browsers.
334
- //
335
-
336
- legend {
337
- box-sizing: border-box; // 1
338
- color: inherit; // 2
339
- display: table; // 1
340
- max-width: 100%; // 1
341
- padding: 0; // 3
342
- white-space: normal; // 1
343
- }
344
-
345
- //
346
- // 1. Add the correct display in IE 9-.
347
- // 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
348
- //
349
-
350
- progress {
351
- display: inline-block; // 1
352
- vertical-align: baseline; // 2
353
- }
354
-
355
- //
356
- // Remove the default vertical scrollbar in IE.
357
- //
358
-
359
- textarea {
360
- overflow: auto;
361
- }
362
-
363
- //
364
- // 1. Add the correct box sizing in IE 10-.
365
- // 2. Remove the padding in IE 10-.
366
- //
367
-
368
- [type="checkbox"],
369
- [type="radio"] {
370
- box-sizing: border-box; // 1
371
- padding: 0; // 2
372
- }
373
-
374
- //
375
- // Correct the cursor style of increment and decrement buttons in Chrome.
376
- //
377
-
378
- [type="number"]::-webkit-inner-spin-button,
379
- [type="number"]::-webkit-outer-spin-button {
380
- height: auto;
381
- }
382
-
383
- //
384
- // 1. Correct the odd appearance in Chrome and Safari.
385
- // 2. Correct the outline style in Safari.
386
- //
387
-
388
- [type="search"] {
389
- -webkit-appearance: textfield; // 1
390
- outline-offset: -2px; // 2
391
- }
392
-
393
- //
394
- // Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
395
- //
396
-
397
- [type="search"]::-webkit-search-cancel-button,
398
- [type="search"]::-webkit-search-decoration {
399
- -webkit-appearance: none;
400
- }
401
-
402
- //
403
- // 1. Correct the inability to style clickable types in iOS and Safari.
404
- // 2. Change font properties to `inherit` in Safari.
405
- //
406
-
407
- ::-webkit-file-upload-button {
408
- -webkit-appearance: button; // 1
409
- font: inherit; // 2
410
- }
411
-
412
- // Interactive
413
- // ==========================================================================
414
-
415
- //
416
- // Add the correct display in IE 9-.
417
- // 1. Add the correct display in Edge, IE, and Firefox.
418
- //
419
-
420
- details, // 1
421
- menu {
422
- display: block;
423
- }
424
-
425
- //
426
- // Add the correct display in all browsers.
427
- //
428
-
429
- summary {
430
- display: list-item;
431
- }
432
-
433
- // Scripting
434
- // ==========================================================================
435
-
436
- //
437
- // Add the correct display in IE 9-.
438
- //
439
-
440
- canvas {
441
- display: inline-block;
442
- }
443
-
444
- //
445
- // Add the correct display in IE.
446
- //
447
-
448
- template {
449
- display: none;
450
- }
451
-
452
- // Hidden
453
- // ==========================================================================
454
-
455
- //
456
- // Add the correct display in IE 10-.
457
- //
458
-
459
- [hidden] {
460
- display: none;
461
- }