semantic-ui-sass 2.2.10.1 → 2.2.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/semantic-ui/dropdown.js +108 -50
  3. data/app/assets/javascripts/semantic-ui/form.js +119 -19
  4. data/app/assets/javascripts/semantic-ui/modal.js +41 -16
  5. data/app/assets/javascripts/semantic-ui/popup.js +42 -31
  6. data/app/assets/javascripts/semantic-ui/search.js +11 -2
  7. data/app/assets/javascripts/semantic-ui/sidebar.js +1 -4
  8. data/app/assets/javascripts/semantic-ui/sticky.js +22 -5
  9. data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +1 -1
  10. data/app/assets/stylesheets/semantic-ui/collections/_form.scss +46 -59
  11. data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +23 -52
  12. data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +18 -26
  13. data/app/assets/stylesheets/semantic-ui/collections/_message.scss +6 -6
  14. data/app/assets/stylesheets/semantic-ui/collections/_table.scss +2 -2
  15. data/app/assets/stylesheets/semantic-ui/elements/_button.scss +1 -14
  16. data/app/assets/stylesheets/semantic-ui/elements/_container.scss +1 -1
  17. data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +1 -1
  18. data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +1 -1
  19. data/app/assets/stylesheets/semantic-ui/elements/_header.scss +1 -1
  20. data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +25 -1
  21. data/app/assets/stylesheets/semantic-ui/elements/_image.scss +1 -1
  22. data/app/assets/stylesheets/semantic-ui/elements/_input.scss +4 -10
  23. data/app/assets/stylesheets/semantic-ui/elements/_label.scss +1 -1
  24. data/app/assets/stylesheets/semantic-ui/elements/_list.scss +1 -1
  25. data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +1 -1
  26. data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +1 -1
  27. data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +1 -1
  28. data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +14 -20
  29. data/app/assets/stylesheets/semantic-ui/elements/_step.scss +22 -44
  30. data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +254 -199
  31. data/app/assets/stylesheets/semantic-ui/globals/_site.scss +44 -1
  32. data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +1 -1
  33. data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +1 -1
  34. data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +19 -3
  35. data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +70 -39
  36. data/app/assets/stylesheets/semantic-ui/modules/_embed.scss +1 -1
  37. data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +96 -22
  38. data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +1 -1
  39. data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +1 -1
  40. data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +1 -1
  41. data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +1 -3
  42. data/app/assets/stylesheets/semantic-ui/modules/_search.scss +1 -1
  43. data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +1 -1
  44. data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +1 -9
  45. data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +1 -1
  46. data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +1 -1
  47. data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +1 -1
  48. data/app/assets/stylesheets/semantic-ui/views/_ad.scss +1 -1
  49. data/app/assets/stylesheets/semantic-ui/views/_card.scss +3 -12
  50. data/app/assets/stylesheets/semantic-ui/views/_comment.scss +1 -1
  51. data/app/assets/stylesheets/semantic-ui/views/_feed.scss +7 -11
  52. data/app/assets/stylesheets/semantic-ui/views/_item.scss +17 -23
  53. data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +3 -19
  54. data/lib/semantic/ui/sass/version.rb +2 -2
  55. data/spec/helpers/semantic_icon_helper_spec.rb +9 -9
  56. metadata +2 -2
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.2.10 - Step
2
+ * # Semantic UI 2.2.11 - Step
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -15,16 +15,13 @@
15
15
 
16
16
  .ui.steps {
17
17
  display: -webkit-inline-box;
18
- display: -webkit-inline-flex;
19
18
  display: -ms-inline-flexbox;
20
19
  display: inline-flex;
21
20
  -webkit-box-orient: horizontal;
22
21
  -webkit-box-direction: normal;
23
- -webkit-flex-direction: row;
24
22
  -ms-flex-direction: row;
25
23
  flex-direction: row;
26
24
  -webkit-box-align: stretch;
27
- -webkit-align-items: stretch;
28
25
  -ms-flex-align: stretch;
29
26
  align-items: stretch;
30
27
  margin: 1em 0em;
@@ -53,28 +50,22 @@
53
50
  .ui.steps .step {
54
51
  position: relative;
55
52
  display: -webkit-box;
56
- display: -webkit-flex;
57
53
  display: -ms-flexbox;
58
54
  display: flex;
59
55
  -webkit-box-flex: 1;
60
- -webkit-flex: 1 0 auto;
61
56
  -ms-flex: 1 0 auto;
62
57
  flex: 1 0 auto;
63
- -webkit-flex-wrap: wrap;
64
- -ms-flex-wrap: wrap;
65
- flex-wrap: wrap;
58
+ -ms-flex-wrap: wrap;
59
+ flex-wrap: wrap;
66
60
  -webkit-box-orient: horizontal;
67
61
  -webkit-box-direction: normal;
68
- -webkit-flex-direction: row;
69
62
  -ms-flex-direction: row;
70
63
  flex-direction: row;
71
64
  vertical-align: middle;
72
65
  -webkit-box-align: center;
73
- -webkit-align-items: center;
74
66
  -ms-flex-align: center;
75
67
  align-items: center;
76
68
  -webkit-box-pack: center;
77
- -webkit-justify-content: center;
78
69
  -ms-flex-pack: center;
79
70
  justify-content: center;
80
71
  margin: 0em 0em;
@@ -169,16 +160,14 @@
169
160
  .ui.steps .step > .icon ~ .content {
170
161
  display: block;
171
162
  -webkit-box-flex: 0;
172
- -webkit-flex: 0 1 auto;
173
163
  -ms-flex: 0 1 auto;
174
164
  flex: 0 1 auto;
175
- -webkit-align-self: middle;
176
- -ms-flex-item-align: middle;
177
- align-self: middle;
165
+ -ms-flex-item-align: middle;
166
+ -ms-grid-row-align: middle;
167
+ align-self: middle;
178
168
  }
179
169
  .ui.steps .step > .icon ~ .content {
180
170
  -webkit-box-flex: 1 0 auto;
181
- -webkit-flex-grow: 1 0 auto;
182
171
  -ms-flex-positive: 1 0 auto;
183
172
  flex-grow: 1 0 auto;
184
173
  }
@@ -212,9 +201,9 @@
212
201
  position: static;
213
202
  text-align: center;
214
203
  content: counters(ordered, ".");
215
- -webkit-align-self: middle;
216
- -ms-flex-item-align: middle;
217
- align-self: middle;
204
+ -ms-flex-item-align: middle;
205
+ -ms-grid-row-align: middle;
206
+ align-self: middle;
218
207
  margin-right: 1rem;
219
208
  font-size: 2.5em;
220
209
  counter-increment: ordered;
@@ -223,9 +212,9 @@
223
212
  }
224
213
  .ui.ordered.steps .step > * {
225
214
  display: block;
226
- -webkit-align-self: middle;
227
- -ms-flex-item-align: middle;
228
- align-self: middle;
215
+ -ms-flex-item-align: middle;
216
+ -ms-grid-row-align: middle;
217
+ align-self: middle;
229
218
  }
230
219
 
231
220
  /*--------------
@@ -234,19 +223,16 @@
234
223
 
235
224
  .ui.vertical.steps {
236
225
  display: -webkit-inline-box;
237
- display: -webkit-inline-flex;
238
226
  display: -ms-inline-flexbox;
239
227
  display: inline-flex;
240
228
  -webkit-box-orient: vertical;
241
229
  -webkit-box-direction: normal;
242
- -webkit-flex-direction: column;
243
230
  -ms-flex-direction: column;
244
231
  flex-direction: column;
245
232
  overflow: visible;
246
233
  }
247
234
  .ui.vertical.steps .step {
248
235
  -webkit-box-pack: start;
249
- -webkit-justify-content: flex-start;
250
236
  -ms-flex-pack: start;
251
237
  justify-content: flex-start;
252
238
  border-radius: 0em;
@@ -295,49 +281,46 @@
295
281
 
296
282
  /* Mobile (Default) */
297
283
  @media only screen and (max-width: 767px) {
298
- .ui.steps {
284
+ .ui.steps:not(.unstackable) {
299
285
  display: -webkit-inline-box;
300
- display: -webkit-inline-flex;
301
286
  display: -ms-inline-flexbox;
302
287
  display: inline-flex;
303
288
  overflow: visible;
304
289
  -webkit-box-orient: vertical;
305
290
  -webkit-box-direction: normal;
306
- -webkit-flex-direction: column;
307
291
  -ms-flex-direction: column;
308
292
  flex-direction: column;
309
293
  }
310
- .ui.steps .step {
294
+ .ui.steps:not(.unstackable) .step {
311
295
  width: 100% !important;
312
296
  -webkit-box-orient: vertical;
313
297
  -webkit-box-direction: normal;
314
- -webkit-flex-direction: column;
315
298
  -ms-flex-direction: column;
316
299
  flex-direction: column;
317
300
  border-radius: 0em;
318
301
  padding: 1.14285714em 2em;
319
302
  }
320
- .ui.steps .step:first-child {
303
+ .ui.steps:not(.unstackable) .step:first-child {
321
304
  padding: 1.14285714em 2em;
322
305
  border-radius: 0.28571429rem 0.28571429rem 0em 0em;
323
306
  }
324
- .ui.steps .step:last-child {
307
+ .ui.steps:not(.unstackable) .step:last-child {
325
308
  border-radius: 0em 0em 0.28571429rem 0.28571429rem;
326
309
  }
327
310
 
328
311
  /* Arrow */
329
- .ui.steps .step:after {
312
+ .ui.steps:not(.unstackable) .step:after {
330
313
  display: none !important;
331
314
  }
332
315
 
333
316
  /* Content */
334
- .ui.steps .step .content {
317
+ .ui.steps:not(.unstackable) .step .content {
335
318
  text-align: center;
336
319
  }
337
320
 
338
321
  /* Icon */
339
- .ui.steps .step > .icon,
340
- .ui.ordered.steps .step:before {
322
+ .ui.steps:not(.unstackable) .step > .icon,
323
+ .ui.ordered.steps:not(.unstackable) .step:before {
341
324
  margin: 0em 0em 1rem 0em;
342
325
  }
343
326
  }
@@ -442,13 +425,11 @@
442
425
  @media only screen and (max-width: 991px) {
443
426
  .ui[class*="tablet stackable"].steps {
444
427
  display: -webkit-inline-box;
445
- display: -webkit-inline-flex;
446
428
  display: -ms-inline-flexbox;
447
429
  display: inline-flex;
448
430
  overflow: visible;
449
431
  -webkit-box-orient: vertical;
450
432
  -webkit-box-direction: normal;
451
- -webkit-flex-direction: column;
452
433
  -ms-flex-direction: column;
453
434
  flex-direction: column;
454
435
  }
@@ -457,7 +438,6 @@
457
438
  .ui[class*="tablet stackable"].steps .step {
458
439
  -webkit-box-orient: vertical;
459
440
  -webkit-box-direction: normal;
460
- -webkit-flex-direction: column;
461
441
  -ms-flex-direction: column;
462
442
  flex-direction: column;
463
443
  border-radius: 0em;
@@ -496,7 +476,6 @@
496
476
  /* Fluid */
497
477
  .ui.fluid.steps {
498
478
  display: -webkit-box;
499
- display: -webkit-flex;
500
479
  display: -ms-flexbox;
501
480
  display: flex;
502
481
  width: 100%;
@@ -555,9 +534,8 @@
555
534
  .ui.six.steps > .step,
556
535
  .ui.seven.steps > .step,
557
536
  .ui.eight.steps > .step {
558
- -webkit-flex-wrap: nowrap;
559
- -ms-flex-wrap: nowrap;
560
- flex-wrap: nowrap;
537
+ -ms-flex-wrap: nowrap;
538
+ flex-wrap: nowrap;
561
539
  }
562
540
  .ui.one.steps > .step {
563
541
  width: 100%;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * # Semantic UI 2.2.10 - Reset
2
+ * # Semantic UI 2.2.11 - Reset
3
3
  * http://github.com/semantic-org/semantic-ui/
4
4
  *
5
5
  *
@@ -34,24 +34,17 @@ input[type="password"] {
34
34
 
35
35
  /* mobile firefox too! */
36
36
  }
37
+ /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
37
38
 
38
-
39
- /*******************************
40
- Theme Overrides
41
- *******************************/
42
-
43
- /*! normalize.css v3.0.1 | MIT License | git.io/normalize */
44
- /**
45
- * Correct `block` display not defined in IE 8/9.
46
- */
47
- /*! normalize.css v3.0.1 | MIT License | git.io/normalize */
39
+ /* Document
40
+ ========================================================================== */
48
41
  /**
49
- * 1. Set default font family to sans-serif.
50
- * 2. Prevent iOS text size adjust after orientation change, without disabling
51
- * user zoom.
42
+ * 1. Correct the line height in all browsers.
43
+ * 2. Prevent adjustments of font size after orientation changes in
44
+ * IE on Windows Phone and in iOS.
52
45
  */
53
46
  html {
54
- font-family: sans-serif;
47
+ line-height: 1.15;
55
48
 
56
49
  /* 1 */
57
50
  -ms-text-size-adjust: 100%;
@@ -61,126 +54,161 @@ html {
61
54
 
62
55
  /* 2 */
63
56
  }
57
+
58
+ /* Sections
59
+ ========================================================================== */
64
60
  /**
65
- * Remove default margin.
61
+ * Remove the margin in all browsers (opinionated).
66
62
  */
67
63
  body {
68
64
  margin: 0;
69
65
  }
70
-
71
- /* HTML5 display definitions
72
- ========================================================================== */
73
66
  /**
74
- * Correct `block` display not defined for any HTML5 element in IE 8/9.
75
- * Correct `block` display not defined for `details` or `summary` in IE 10/11 and Firefox.
76
- * Correct `block` display not defined for `main` in IE 11.
67
+ * Add the correct display in IE 9-.
77
68
  */
78
69
  article,
79
70
  aside,
80
- details,
81
- figcaption,
82
- figure,
83
71
  footer,
84
72
  header,
85
- hgroup,
86
- main,
87
73
  nav,
88
- section,
89
- summary {
74
+ section {
90
75
  display: block;
91
76
  }
92
77
  /**
93
- * 1. Correct `inline-block` display not defined in IE 8/9.
94
- * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
78
+ * Correct the font size and margin on `h1` elements within `section` and
79
+ * `article` contexts in Chrome, Firefox, and Safari.
95
80
  */
96
- audio,
97
- canvas,
98
- progress,
99
- video {
100
- display: inline-block;
81
+ h1 {
82
+ font-size: 2em;
83
+ margin: 0.67em 0;
84
+ }
85
+
86
+ /* Grouping content
87
+ ========================================================================== */
88
+ /**
89
+ * Add the correct display in IE 9-.
90
+ * 1. Add the correct display in IE.
91
+ */
92
+ figcaption,
93
+ figure,
94
+ main {
101
95
 
102
96
  /* 1 */
103
- vertical-align: baseline;
104
-
105
- /* 2 */
97
+ display: block;
106
98
  }
107
99
  /**
108
- * Prevent modern browsers from displaying `audio` without controls.
109
- * Remove excess height in iOS 5 devices.
100
+ * Add the correct margin in IE 8.
110
101
  */
111
- audio:not([controls]) {
112
- display: none;
102
+ figure {
103
+ margin: 1em 40px;
104
+ }
105
+ /**
106
+ * 1. Add the correct box sizing in Firefox.
107
+ * 2. Show the overflow in Edge and IE.
108
+ */
109
+ hr {
110
+ box-sizing: content-box;
111
+
112
+ /* 1 */
113
113
  height: 0;
114
+
115
+ /* 1 */
116
+ overflow: visible;
117
+
118
+ /* 2 */
114
119
  }
115
120
  /**
116
- * Address `[hidden]` styling not present in IE 8/9/10.
117
- * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
121
+ * 1. Correct the inheritance and scaling of font size in all browsers.
122
+ * 2. Correct the odd `em` font sizing in all browsers.
118
123
  */
119
- [hidden],
120
- template {
121
- display: none;
124
+ pre {
125
+ font-family: monospace, monospace;
126
+
127
+ /* 1 */
128
+ font-size: 1em;
129
+
130
+ /* 2 */
122
131
  }
123
132
 
124
- /* Links
133
+ /* Text-level semantics
125
134
  ========================================================================== */
126
135
  /**
127
- * Remove the gray background color from active links in IE 10.
136
+ * 1. Remove the gray background on active links in IE 10.
137
+ * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
128
138
  */
129
139
  a {
130
- background: transparent;
140
+ background-color: transparent;
141
+
142
+ /* 1 */
143
+ -webkit-text-decoration-skip: objects;
144
+
145
+ /* 2 */
131
146
  }
132
147
  /**
133
- * Improve readability when focused and also mouse hovered in all browsers.
148
+ * 1. Remove the bottom border in Chrome 57- and Firefox 39-.
149
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
134
150
  */
135
- a:active,
136
- a:hover {
137
- outline: 0;
151
+ abbr[title] {
152
+ border-bottom: none;
153
+
154
+ /* 1 */
155
+ text-decoration: underline;
156
+
157
+ /* 2 */
158
+ text-decoration: underline dotted;
159
+
160
+ /* 2 */
138
161
  }
139
-
140
- /* Text-level semantics
141
- ========================================================================== */
142
162
  /**
143
- * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
163
+ * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
144
164
  */
145
- abbr[title] {
146
- border-bottom: 1px dotted;
165
+ b,
166
+ strong {
167
+ font-weight: inherit;
147
168
  }
148
169
  /**
149
- * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
170
+ * Add the correct font weight in Chrome, Edge, and Safari.
150
171
  */
151
172
  b,
152
173
  strong {
153
- font-weight: bold;
174
+ font-weight: bolder;
154
175
  }
155
176
  /**
156
- * Address styling not present in Safari and Chrome.
177
+ * 1. Correct the inheritance and scaling of font size in all browsers.
178
+ * 2. Correct the odd `em` font sizing in all browsers.
157
179
  */
158
- dfn {
159
- font-style: italic;
180
+ code,
181
+ kbd,
182
+ samp {
183
+ font-family: monospace, monospace;
184
+
185
+ /* 1 */
186
+ font-size: 1em;
187
+
188
+ /* 2 */
160
189
  }
161
190
  /**
162
- * Address variable `h1` font-size and margin within `section` and `article`
163
- * contexts in Firefox 4+, Safari, and Chrome.
191
+ * Add the correct font style in Android 4.3-.
164
192
  */
165
- h1 {
166
- font-size: 2em;
167
- margin: 0.67em 0;
193
+ dfn {
194
+ font-style: italic;
168
195
  }
169
196
  /**
170
- * Address styling not present in IE 8/9.
197
+ * Add the correct background and color in IE 9-.
171
198
  */
172
199
  mark {
173
- background: #ff0;
200
+ background-color: #ff0;
174
201
  color: #000;
175
202
  }
176
203
  /**
177
- * Address inconsistent and variable font size in all browsers.
204
+ * Add the correct font size in all browsers.
178
205
  */
179
206
  small {
180
207
  font-size: 80%;
181
208
  }
182
209
  /**
183
- * Prevent `sub` and `sup` affecting `line-height` in all browsers.
210
+ * Prevent `sub` and `sup` elements from affecting the line height in
211
+ * all browsers.
184
212
  */
185
213
  sub,
186
214
  sup {
@@ -189,151 +217,174 @@ sup {
189
217
  position: relative;
190
218
  vertical-align: baseline;
191
219
  }
192
- sup {
193
- top: -0.5em;
194
- }
195
220
  sub {
196
221
  bottom: -0.25em;
197
222
  }
198
-
199
- /* Embedded content
200
- ========================================================================== */
201
- /**
202
- * Remove border when inside `a` element in IE 8/9/10.
203
- */
204
- img {
205
- border: 0;
206
- }
207
- /**
208
- * Correct overflow not hidden in IE 9/10/11.
209
- */
210
- svg:not(:root) {
211
- overflow: hidden;
223
+ sup {
224
+ top: -0.5em;
212
225
  }
213
226
 
214
- /* Grouping content
227
+ /* Embedded content
215
228
  ========================================================================== */
216
229
  /**
217
- * Address margin not present in IE 8/9 and Safari.
230
+ * Add the correct display in IE 9-.
218
231
  */
219
- figure {
220
- margin: 1em 40px;
232
+ audio,
233
+ video {
234
+ display: inline-block;
221
235
  }
222
236
  /**
223
- * Address differences between Firefox and other browsers.
237
+ * Add the correct display in iOS 4-7.
224
238
  */
225
- hr {
239
+ audio:not([controls]) {
240
+ display: none;
226
241
  height: 0;
227
242
  }
228
243
  /**
229
- * Contain overflow in all browsers.
244
+ * Remove the border on images inside links in IE 10-.
230
245
  */
231
- pre {
232
- overflow: auto;
246
+ img {
247
+ border-style: none;
233
248
  }
234
249
  /**
235
- * Address odd `em`-unit font size rendering in all browsers.
250
+ * Hide the overflow in IE.
236
251
  */
237
- code,
238
- kbd,
239
- pre,
240
- samp {
241
- font-family: monospace, monospace;
242
- font-size: 1em;
252
+ svg:not(:root) {
253
+ overflow: hidden;
243
254
  }
244
255
 
245
256
  /* Forms
246
257
  ========================================================================== */
247
258
  /**
248
- * Known limitation: by default, Chrome and Safari on OS X allow very limited
249
- * styling of `select`, unless a `border` property is set.
250
- */
251
- /**
252
- * 1. Correct color not being inherited.
253
- * Known issue: affects color of disabled elements.
254
- * 2. Correct font properties not being inherited.
255
- * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
259
+ * 1. Change the font styles in all browsers (opinionated).
260
+ * 2. Remove the margin in Firefox and Safari.
256
261
  */
257
262
  button,
258
263
  input,
259
264
  optgroup,
260
265
  select,
261
266
  textarea {
262
- color: inherit;
267
+ font-family: sans-serif;
263
268
 
264
269
  /* 1 */
265
- font: inherit;
270
+ font-size: 100%;
266
271
 
267
- /* 2 */
272
+ /* 1 */
273
+ line-height: 1.15;
274
+
275
+ /* 1 */
268
276
  margin: 0;
269
277
 
270
- /* 3 */
278
+ /* 2 */
271
279
  }
272
280
  /**
273
- * Address `overflow` set to `hidden` in IE 8/9/10/11.
281
+ * Show the overflow in IE.
282
+ * 1. Show the overflow in Edge.
274
283
  */
275
- button {
284
+ button,
285
+ input {
286
+
287
+ /* 1 */
276
288
  overflow: visible;
277
289
  }
278
290
  /**
279
- * Address inconsistent `text-transform` inheritance for `button` and `select`.
280
- * All other form control elements do not inherit `text-transform` values.
281
- * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
282
- * Correct `select` style inheritance in Firefox.
291
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
292
+ * 1. Remove the inheritance of text transform in Firefox.
283
293
  */
284
294
  button,
285
295
  select {
296
+
297
+ /* 1 */
286
298
  text-transform: none;
287
299
  }
288
300
  /**
289
- * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
290
- * and `video` controls.
291
- * 2. Correct inability to style clickable `input` types in iOS.
292
- * 3. Improve usability and consistency of cursor style between image-type
293
- * `input` and others.
301
+ * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
302
+ * controls in Android 4.
303
+ * 2. Correct the inability to style clickable types in iOS and Safari.
294
304
  */
295
305
  button,
296
- html input[type="button"],
297
- input[type="reset"],
298
- input[type="submit"] {
306
+ html [type="button"],
307
+ [type="reset"],
308
+ [type="submit"] {
299
309
  -webkit-appearance: button;
300
310
 
301
311
  /* 2 */
302
- cursor: pointer;
303
-
304
- /* 3 */
305
312
  }
306
313
  /**
307
- * Re-set default cursor for disabled elements.
314
+ * Remove the inner border and padding in Firefox.
308
315
  */
309
- button[disabled],
310
- html input[disabled] {
311
- cursor: default;
316
+ button::-moz-focus-inner,
317
+ [type="button"]::-moz-focus-inner,
318
+ [type="reset"]::-moz-focus-inner,
319
+ [type="submit"]::-moz-focus-inner {
320
+ border-style: none;
321
+ padding: 0;
312
322
  }
313
323
  /**
314
- * Remove inner padding and border in Firefox 4+.
324
+ * Restore the focus styles unset by the previous rule.
315
325
  */
316
- button::-moz-focus-inner,
317
- input::-moz-focus-inner {
318
- border: 0;
326
+ button:-moz-focusring,
327
+ [type="button"]:-moz-focusring,
328
+ [type="reset"]:-moz-focusring,
329
+ [type="submit"]:-moz-focusring {
330
+ outline: 1px dotted ButtonText;
331
+ }
332
+ /**
333
+ * Correct the padding in Firefox.
334
+ */
335
+ fieldset {
336
+ padding: 0.35em 0.75em 0.625em;
337
+ }
338
+ /**
339
+ * 1. Correct the text wrapping in Edge and IE.
340
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
341
+ * 3. Remove the padding so developers are not caught out when they zero out
342
+ * `fieldset` elements in all browsers.
343
+ */
344
+ legend {
345
+ box-sizing: border-box;
346
+
347
+ /* 1 */
348
+ color: inherit;
349
+
350
+ /* 2 */
351
+ display: table;
352
+
353
+ /* 1 */
354
+ max-width: 100%;
355
+
356
+ /* 1 */
319
357
  padding: 0;
358
+
359
+ /* 3 */
360
+ white-space: normal;
361
+
362
+ /* 1 */
320
363
  }
321
364
  /**
322
- * Address Firefox 4+ setting `line-height` on `input` using `!important` in
323
- * the UA stylesheet.
365
+ * 1. Add the correct display in IE 9-.
366
+ * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
324
367
  */
325
- input {
326
- line-height: normal;
368
+ progress {
369
+ display: inline-block;
370
+
371
+ /* 1 */
372
+ vertical-align: baseline;
373
+
374
+ /* 2 */
327
375
  }
328
376
  /**
329
- * It's recommended that you don't attempt to style these elements.
330
- * Firefox's implementation doesn't respect box-sizing, padding, or width.
331
- *
332
- * 1. Address box sizing set to `content-box` in IE 8/9/10.
333
- * 2. Remove excess padding in IE 8/9/10.
377
+ * Remove the default vertical scrollbar in IE.
334
378
  */
335
- input[type="checkbox"],
336
- input[type="radio"] {
379
+ textarea {
380
+ overflow: auto;
381
+ }
382
+ /**
383
+ * 1. Add the correct box sizing in IE 10-.
384
+ * 2. Remove the padding in IE 10-.
385
+ */
386
+ [type="checkbox"],
387
+ [type="radio"] {
337
388
  box-sizing: border-box;
338
389
 
339
390
  /* 1 */
@@ -342,79 +393,83 @@ input[type="radio"] {
342
393
  /* 2 */
343
394
  }
344
395
  /**
345
- * Fix the cursor style for Chrome's increment/decrement buttons. For certain
346
- * `font-size` values of the `input`, it causes the cursor style of the
347
- * decrement button to change from `default` to `text`.
396
+ * Correct the cursor style of increment and decrement buttons in Chrome.
348
397
  */
349
- input[type="number"]::-webkit-inner-spin-button,
350
- input[type="number"]::-webkit-outer-spin-button {
398
+ [type="number"]::-webkit-inner-spin-button,
399
+ [type="number"]::-webkit-outer-spin-button {
351
400
  height: auto;
352
401
  }
353
402
  /**
354
- * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
355
- * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
356
- * (include `-moz` to future-proof).
403
+ * 1. Correct the odd appearance in Chrome and Safari.
404
+ * 2. Correct the outline style in Safari.
357
405
  */
358
- input[type="search"] {
406
+ [type="search"] {
359
407
  -webkit-appearance: textfield;
360
408
 
361
409
  /* 1 */
410
+ outline-offset: -2px;
411
+
412
+ /* 2 */
362
413
  }
363
414
  /**
364
- * Remove inner padding and search cancel button in Safari and Chrome on OS X.
365
- * Safari (but not Chrome) clips the cancel button when the search input has
366
- * padding (and `textfield` appearance).
415
+ * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
367
416
  */
368
- input[type="search"]::-webkit-search-cancel-button,
369
- input[type="search"]::-webkit-search-decoration {
417
+ [type="search"]::-webkit-search-cancel-button,
418
+ [type="search"]::-webkit-search-decoration {
370
419
  -webkit-appearance: none;
371
420
  }
372
421
  /**
373
- * Define consistent border, margin, and padding.
422
+ * 1. Correct the inability to style clickable types in iOS and Safari.
423
+ * 2. Change font properties to `inherit` in Safari.
374
424
  */
375
- fieldset {
376
- border: 1px solid #c0c0c0;
377
- margin: 0 2px;
378
- padding: 0.35em 0.625em 0.75em;
379
- }
380
- /**
381
- * 1. Correct `color` not being inherited in IE 8/9/10/11.
382
- * 2. Remove padding so people aren't caught out if they zero out fieldsets.
383
- */
384
- legend {
385
- border: 0;
425
+ ::-webkit-file-upload-button {
426
+ -webkit-appearance: button;
386
427
 
387
428
  /* 1 */
388
- padding: 0;
429
+ font: inherit;
389
430
 
390
431
  /* 2 */
391
432
  }
433
+
434
+ /* Interactive
435
+ ========================================================================== */
436
+ /*
437
+ * Add the correct display in IE 9-.
438
+ * 1. Add the correct display in Edge, IE, and Firefox.
439
+ */
440
+ details,
441
+ menu {
442
+ display: block;
443
+ }
444
+ /*
445
+ * Add the correct display in all browsers.
446
+ */
447
+ summary {
448
+ display: list-item;
449
+ }
450
+
451
+ /* Scripting
452
+ ========================================================================== */
392
453
  /**
393
- * Remove default vertical scrollbar in IE 8/9/10/11.
454
+ * Add the correct display in IE 9-.
394
455
  */
395
- textarea {
396
- overflow: auto;
456
+ canvas {
457
+ display: inline-block;
397
458
  }
398
459
  /**
399
- * Don't inherit the `font-weight` (applied by a rule above).
400
- * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
460
+ * Add the correct display in IE.
401
461
  */
402
- optgroup {
403
- font-weight: bold;
462
+ template {
463
+ display: none;
404
464
  }
405
465
 
406
- /* Tables
466
+ /* Hidden
407
467
  ========================================================================== */
408
468
  /**
409
- * Remove most spacing between table cells.
469
+ * Add the correct display in IE 10-.
410
470
  */
411
- table {
412
- border-collapse: collapse;
413
- border-spacing: 0;
414
- }
415
- td,
416
- th {
417
- padding: 0;
471
+ [hidden] {
472
+ display: none;
418
473
  }
419
474
 
420
475