normalize-scss 3.0.3 → 4.0.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,36 @@
1
+ //
2
+ // Variables
3
+ //
4
+ // You can override the default values by setting the variables in your Sass
5
+ // before importing the normalize-scss library.
6
+
7
+ // The font size set on the root html element.
8
+ $base-font-size: 16px !default;
9
+
10
+ // The base line height determines the basic unit of vertical rhythm.
11
+ $base-line-height: 24px !default;
12
+
13
+ // The length unit in which to output vertical rhythm values.
14
+ // Supported values: px, em, rem.
15
+ $base-unit: 'em' !default;
16
+
17
+ // The default font family.
18
+ $base-font-family: sans-serif !default;
19
+
20
+ // The font sizes for h1-h6.
21
+ $h1-font-size: 2 * $base-font-size !default;
22
+ $h2-font-size: 1.5 * $base-font-size !default;
23
+ $h3-font-size: 1.17 * $base-font-size !default;
24
+ $h4-font-size: 1 * $base-font-size !default;
25
+ $h5-font-size: 0.83 * $base-font-size !default;
26
+ $h6-font-size: 0.67 * $base-font-size !default;
27
+
28
+ // The amount lists and blockquotes are indented.
29
+ $indent-amount: 40px !default;
30
+
31
+ // The following variable controls whether normalize-scss will output
32
+ // font-sizes, line-heights and block-level top/bottom margins that form a basic
33
+ // vertical rhythm on the page, which differs from the original Normalize.css.
34
+ // However, changing any of the variables above will cause
35
+ // $normalize-vertical-rhythm to be automatically set to true.
36
+ $normalize-vertical-rhythm: false !default;
@@ -0,0 +1,68 @@
1
+ //
2
+ // Vertical Rhythm
3
+ //
4
+ // This is the minimal amount of code needed to create vertical rhythm in our
5
+ // CSS. If you are looking for a robust solution, look at the excellent Typey
6
+ // library. @see https://github.com/jptaranto/typey
7
+
8
+ @function normalize-rhythm($value, $relative-to: $base-font-size) {
9
+ @if unit($value) != 'px' {
10
+ @error "The normalize vertical-rhythm module only supports px inputs. The typey library is better.";
11
+ }
12
+ @if $base-unit == rem {
13
+ @return ($value / $base-font-size) * 1rem;
14
+ }
15
+ @else if $base-unit == em {
16
+ @return ($value / $relative-to) * 1em;
17
+ }
18
+ @else { // $base-unit == px
19
+ @return $value;
20
+ }
21
+ }
22
+
23
+ @mixin normalize-font-size($value, $relative-to: $base-font-size) {
24
+ @if unit($value) != 'px' {
25
+ @error "normalize-font-size() only supports px inputs. The typey library is better.";
26
+ }
27
+ // px fallback for IE 8 and earlier. Note: IE 9/10 don't understand rem
28
+ // in font shorthand, but font-size longhand is fine.
29
+ @if $base-unit == rem and support-for(ie, 8) {
30
+ font-size: $value;
31
+ }
32
+ font-size: normalize-rhythm($value, $relative-to);
33
+ }
34
+
35
+ @mixin normalize-rhythm($property, $values, $relative-to: $base-font-size) {
36
+ @if type-of($values) == 'list' {
37
+ $px-fallback: $values;
38
+ }
39
+ @else {
40
+ $px-fallback: append((), $values);
41
+ }
42
+ $sep: list-separator($px-fallback);
43
+ $normalized-values: ();
44
+
45
+ @each $value in $px-fallback {
46
+ @if unitless($value) and $value != 0 {
47
+ $value: $value * normalize-rhythm($base-line-height, $relative-to);
48
+ }
49
+ $normalized-values: append($normalized-values, $value);
50
+ }
51
+ @if $base-unit == rem and support-for(ie, 8) {
52
+ #{$property}: $px-fallback;
53
+ }
54
+ #{$property}: $normalized-values;
55
+ }
56
+
57
+ @mixin normalize-margin($values, $relative-to: $base-font-size) {
58
+ @include normalize-rhythm(margin, $values, $relative-to);
59
+ }
60
+
61
+ @mixin normalize-line-height($font-size, $min-line-padding: 2px) {
62
+ $lines: ceil($font-size / $base-line-height);
63
+ // If lines are cramped include some extra leading.
64
+ @if ($lines * $base-line-height - $font-size) < ($min-line-padding * 2) {
65
+ $lines: $lines + 1;
66
+ }
67
+ @include normalize-rhythm(line-height, $lines, $font-size);
68
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: normalize-scss
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.3
4
+ version: 4.0.0.beta.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Albin Wilkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-17 00:00:00.000000000 Z
11
+ date: 2015-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass
@@ -17,9 +17,6 @@ dependencies:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.3'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 3.3.0
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,19 +24,13 @@ dependencies:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '3.3'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 3.3.0
33
27
  - !ruby/object:Gem::Dependency
34
- name: compass-core
28
+ name: support-for
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
33
  version: '1.0'
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 1.0.0
43
34
  type: :runtime
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
@@ -47,13 +38,10 @@ dependencies:
47
38
  - - "~>"
48
39
  - !ruby/object:Gem::Version
49
40
  version: '1.0'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 1.0.0
53
- description: This is the Sass/Compass version of Normalize.css, a collection of HTML
54
- element and attribute rulesets to normalize styles across all browsers. This port
55
- aims to use the best partials from Compass to make Normalize even easier to integrate
56
- with your website.
41
+ description: This is the Sass version of Normalize.css, a collection of HTML element
42
+ and attribute rulesets to normalize styles across all browsers. This port aims to
43
+ use a light dusting of Sass to make Normalize even easier to integrate with your
44
+ website.
57
45
  email: virtually.johnalbin@gmail.com
58
46
  executables: []
59
47
  extensions: []
@@ -63,9 +51,15 @@ files:
63
51
  - CONTRIBUTING.md
64
52
  - LICENSE.md
65
53
  - README.md
66
- - _normalize.scss
54
+ - bower.json
67
55
  - lib/normalize-scss.rb
68
56
  - normalize-scss.gemspec
57
+ - package.json
58
+ - sass/_normalize.scss
59
+ - sass/normalize/_import-now.scss
60
+ - sass/normalize/_normalize-mixin.scss
61
+ - sass/normalize/_variables.scss
62
+ - sass/normalize/_vertical-rhythm.scss
69
63
  homepage: https://github.com/JohnAlbin/normalize-scss
70
64
  licenses:
71
65
  - GPL-2
@@ -81,13 +75,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
81
75
  version: '0'
82
76
  required_rubygems_version: !ruby/object:Gem::Requirement
83
77
  requirements:
84
- - - ">="
78
+ - - ">"
85
79
  - !ruby/object:Gem::Version
86
- version: '0'
80
+ version: 1.3.1
87
81
  requirements: []
88
- rubyforge_project: 3.0.3
82
+ rubyforge_project: 4.0.0.beta.1
89
83
  rubygems_version: 2.4.8
90
84
  signing_key:
91
85
  specification_version: 4
92
- summary: The Sass/Compass version of Normalize.css
86
+ summary: The Sass version of Normalize.css
93
87
  test_files: []
@@ -1,670 +0,0 @@
1
- /* normalize-scss 3.0.3+normalize.3.0.3 | MIT/GPLv2 License | bit.ly/normalize-scss */
2
-
3
-
4
- // Variables and Imports
5
- //
6
- // If you have a base partial (or equivalent), you should move these lines to
7
- // that file. NOTE: Edit the lines to remove "!default".
8
- // @see http://compass-style.org/help/tutorials/best_practices/
9
- // =============================================================================
10
-
11
- // These 3 variables are copies of ones used in Compass' Vertical Rhythm module.
12
-
13
- // The font size set on the root html element.
14
- $base-font-size: 16px !default;
15
-
16
- // The base line height determines the basic unit of vertical rhythm.
17
- $base-line-height: 24px !default;
18
-
19
- // The length unit in which to output vertical rhythm values.
20
- // Supported values: px, em, rem.
21
- $rhythm-unit: 'em' !default;
22
-
23
- // Note: This project also makes use of variables from Compass' support
24
- // module. Documentation for this can be found on the wiki at:
25
- // https://github.com/JohnAlbin/normalize-scss/wiki
26
-
27
-
28
- // Set this to true to force CSS output to exactly match normalize.css.
29
- $strict-normalize: true !default;
30
-
31
- // The default font family.
32
- $base-font-family: sans-serif !default;
33
-
34
- // The font sizes for h1-h6.
35
- $h1-font-size: 2 * $base-font-size !default;
36
- $h2-font-size: 1.5 * $base-font-size !default;
37
- $h3-font-size: 1.17 * $base-font-size !default;
38
- $h4-font-size: 1 * $base-font-size !default;
39
- $h5-font-size: 0.83 * $base-font-size !default;
40
- $h6-font-size: 0.67 * $base-font-size !default;
41
-
42
- // The amount lists and blockquotes are indented.
43
- $indent-amount: 40px !default;
44
-
45
- // After the default variables are set, import the required Compass partials.
46
- @import "compass/support";
47
- @import "compass/css3/box-sizing";
48
- @import "compass/typography/vertical_rhythm";
49
-
50
-
51
- @if not $strict-normalize or support-legacy-browser(ie, "7") {
52
- /**
53
- * Establish a vertical rhythm unit using $base-font-size, $base-line-height,
54
- * and $rhythm-unit variables. Also, correct text resizing oddly in IE 6/7 when
55
- * body `font-size` is set using `em` units.
56
- */
57
-
58
- @include establish-baseline();
59
- }
60
-
61
- /**
62
- * 1. Set default font family to sans-serif.
63
- * 2. Prevent iOS and IE text size adjust after device orientation change,
64
- * without disabling user zoom.
65
- */
66
-
67
- html {
68
- font-family: $base-font-family; /* 1 */
69
- -ms-text-size-adjust: 100%; /* 2 */
70
- -webkit-text-size-adjust: 100%; /* 2 */
71
- // Show a background image that can be used to debug your alignments.
72
- // @include debug-vertical-alignment();
73
- }
74
-
75
- /**
76
- * Remove default margin.
77
- */
78
-
79
- body {
80
- margin: 0;
81
- }
82
-
83
- /* HTML5 display definitions
84
- ========================================================================== */
85
-
86
- /**
87
- * Correct `block` display not defined for any HTML5 element in IE 8/9.
88
- * Correct `block` display not defined for `details` or `summary` in IE 10/11
89
- * and Firefox.
90
- * Correct `block` display not defined for `main` in IE 11.
91
- */
92
-
93
- article,
94
- aside,
95
- details,
96
- figcaption,
97
- figure,
98
- footer,
99
- header,
100
- hgroup,
101
- main,
102
- menu,
103
- nav,
104
- section,
105
- summary {
106
- display: block;
107
- }
108
-
109
- /**
110
- * 1. Correct `inline-block` display not defined in IE 8/9.
111
- * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
112
- */
113
-
114
- audio,
115
- canvas,
116
- progress,
117
- video {
118
- @if support-legacy-browser(ie, "9") {
119
- display: inline-block; /* 1 */
120
- @if support-legacy-browser(ie, "7") {
121
- *display: inline;
122
- *zoom: 1;
123
- }
124
- }
125
- vertical-align: baseline; /* 2 */
126
- }
127
-
128
- /**
129
- * Prevent modern browsers from displaying `audio` without controls.
130
- * Remove excess height in iOS 5 devices.
131
- */
132
-
133
- audio:not([controls]) {
134
- display: none;
135
- height: 0;
136
- }
137
-
138
- @if support-legacy-browser(ie, "10") {
139
- /**
140
- * Address `[hidden]` styling not present in IE 8/9/10.
141
- */
142
-
143
- [hidden] {
144
- display: none;
145
- }
146
- }
147
-
148
- /**
149
- * Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
150
- */
151
-
152
- template {
153
- display: none;
154
- }
155
-
156
- /* Links
157
- ========================================================================== */
158
-
159
- @if support-legacy-browser(ie, "10") {
160
- /**
161
- * Remove the gray background color from active links in IE 10.
162
- */
163
-
164
- a {
165
- background-color: transparent;
166
- }
167
- }
168
-
169
- /**
170
- * Improve readability of focused elements when they are also in an
171
- * active/hover state.
172
- */
173
-
174
- a:active,
175
- a:hover {
176
- outline: 0;
177
- }
178
-
179
- /* Text-level semantics
180
- ========================================================================== */
181
-
182
- /**
183
- * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
184
- */
185
-
186
- abbr[title] {
187
- border-bottom: 1px dotted;
188
- }
189
-
190
- /**
191
- * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
192
- */
193
-
194
- b,
195
- strong {
196
- font-weight: bold;
197
- }
198
-
199
- @if not $strict-normalize or support-legacy-browser(ie, "7") {
200
- /**
201
- * Set 1 unit of vertical rhythm on the top and bottom margin.
202
- */
203
-
204
- blockquote {
205
- @include output-rhythm(margin, rhythm(1) $indent-amount);
206
- }
207
- }
208
-
209
- /**
210
- * Address styling not present in Safari and Chrome.
211
- */
212
-
213
- dfn {
214
- font-style: italic;
215
- }
216
-
217
- /**
218
- * Address variable `h1` font-size and margin within `section` and `article`
219
- * contexts in Firefox 4+, Safari, and Chrome.
220
- */
221
-
222
- h1 {
223
- /* Set the font-size and line-height while keeping a proper vertical rhythm. */
224
- @if not $strict-normalize or support-legacy-browser(ie, "7") {
225
- @include adjust-font-size-to( $h1-font-size );
226
- }
227
- @else {
228
- font-size: if($rhythm-unit == "px", $h1-font-size, ($h1-font-size / $base-font-size)#{$rhythm-unit});
229
- }
230
-
231
- /* Set 1 unit of vertical rhythm on the top and bottom margins. */
232
- @include leader(1, $h1-font-size);
233
- @include trailer(1, $h1-font-size);
234
- }
235
-
236
- @if not $strict-normalize or support-legacy-browser(ie, "7") {
237
- h2 {
238
- @include adjust-font-size-to( $h2-font-size );
239
- @include leader(1, $h2-font-size);
240
- @include trailer(1, $h2-font-size);
241
- }
242
-
243
- h3 {
244
- @include adjust-font-size-to( $h3-font-size );
245
- @include leader(1, $h3-font-size);
246
- @include trailer(1, $h3-font-size);
247
- }
248
-
249
- h4 {
250
- @include adjust-font-size-to( $h4-font-size );
251
- @include leader(1, $h4-font-size);
252
- @include trailer(1, $h4-font-size);
253
- }
254
-
255
- h5 {
256
- @include adjust-font-size-to( $h5-font-size );
257
- @include leader(1, $h5-font-size);
258
- @include trailer(1, $h5-font-size);
259
- }
260
-
261
- h6 {
262
- @include adjust-font-size-to( $h6-font-size );
263
- @include leader(1, $h6-font-size);
264
- @include trailer(1, $h6-font-size);
265
- }
266
- }
267
-
268
- @if support-legacy-browser(ie, "9") {
269
- /**
270
- * Address styling not present in IE 8/9.
271
- */
272
-
273
- mark {
274
- background: #ff0;
275
- color: #000;
276
- }
277
- }
278
-
279
- @if not $strict-normalize or support-legacy-browser(ie, "7") {
280
- /**
281
- * Set 1 unit of vertical rhythm on the top and bottom margin.
282
- */
283
-
284
- p,
285
- pre {
286
- @include output-rhythm(margin, rhythm(1) 0);
287
- }
288
- }
289
-
290
- /**
291
- * Address inconsistent and variable font size in all browsers.
292
- */
293
-
294
- small {
295
- font-size: 80%;
296
- }
297
-
298
- /**
299
- * Prevent `sub` and `sup` affecting `line-height` in all browsers.
300
- */
301
-
302
- sub,
303
- sup {
304
- font-size: 75%;
305
- line-height: 0;
306
- position: relative;
307
- vertical-align: baseline;
308
- }
309
-
310
- sup {
311
- top: -0.5em;
312
- }
313
-
314
- sub {
315
- bottom: -0.25em;
316
- }
317
-
318
- @if not $strict-normalize or support-legacy-browser(ie, "7") {
319
- /* Lists
320
- ========================================================================== */
321
-
322
- /**
323
- * Address margins set differently in IE 6/7.
324
- */
325
-
326
- dl,
327
- menu,
328
- ol,
329
- ul {
330
- @include output-rhythm(margin, rhythm(1) 0);
331
- }
332
-
333
- @if not $strict-normalize {
334
- /**
335
- * Turn off margins on nested lists.
336
- */
337
-
338
- ol,
339
- ul {
340
- ol,
341
- ul {
342
- margin: 0;
343
- }
344
- }
345
- }
346
-
347
- dd {
348
- margin: 0 0 0 $indent-amount;
349
- }
350
-
351
- /**
352
- * Address paddings set differently in IE 6/7.
353
- */
354
-
355
- menu,
356
- ol,
357
- ul {
358
- padding: 0 0 0 $indent-amount;
359
- }
360
- }
361
-
362
- @if support-legacy-browser(ie, "7") {
363
- /**
364
- * Correct list images handled incorrectly in IE 7.
365
- */
366
-
367
- nav ul,
368
- nav ol {
369
- list-style: none;
370
- list-style-image: none;
371
- }
372
- }
373
-
374
- /* Embedded content
375
- ========================================================================== */
376
-
377
- @if support-legacy-browser(ie, "10") {
378
- /**
379
- * Remove border when inside `a` element in IE 8/9/10.
380
- */
381
-
382
- img {
383
- border: 0;
384
- @if support-legacy-browser(ie, "7") {
385
- /* Improve image quality when scaled in IE 7. */
386
- -ms-interpolation-mode: bicubic;
387
- }
388
- }
389
- }
390
-
391
- /**
392
- * Correct overflow not hidden in IE 9/10/11.
393
- */
394
-
395
- svg:not(:root) {
396
- overflow: hidden;
397
- }
398
-
399
- /* Grouping content
400
- ========================================================================== */
401
-
402
- @if support-legacy-browser(ie, "9") or support-legacy-browser(safari, "6") {
403
- /**
404
- * Address margin not present in IE 8/9 and Safari.
405
- */
406
-
407
- figure {
408
- @include output-rhythm(margin, rhythm(1) $indent-amount);
409
- }
410
- }
411
-
412
- /**
413
- * Address differences between Firefox and other browsers.
414
- */
415
-
416
- hr {
417
- @include box-sizing(content-box);
418
- height: 0;
419
- }
420
-
421
- /**
422
- * Contain overflow in all browsers.
423
- */
424
-
425
- pre {
426
- overflow: auto;
427
- }
428
-
429
- /**
430
- * Address odd `em`-unit font size rendering in all browsers.
431
- */
432
-
433
- code,
434
- kbd,
435
- pre,
436
- samp {
437
- font-family: monospace, monospace;
438
- @if support-legacy-browser(ie, "6") {
439
- _font-family: 'courier new', monospace;
440
- }
441
- font-size: 1em;
442
- }
443
-
444
- /* Forms
445
- ========================================================================== */
446
-
447
- /**
448
- * Known limitation: by default, Chrome and Safari on OS X allow very limited
449
- * styling of `select`, unless a `border` property is set.
450
- */
451
-
452
- @if support-legacy-browser(ie, "7") {
453
- /**
454
- * Correct margin displayed oddly in IE 6/7.
455
- */
456
-
457
- form {
458
- margin: 0;
459
- }
460
- }
461
-
462
- /**
463
- * 1. Correct color not being inherited.
464
- * Known issue: affects color of disabled elements.
465
- * 2. Correct font properties not being inherited.
466
- * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
467
- * 4. Address `font-family` inconsistency between `textarea` and other form in IE 7
468
- * 5. Improve appearance and consistency with IE 6/7.
469
- */
470
-
471
- button,
472
- input,
473
- optgroup,
474
- select,
475
- textarea {
476
- color: inherit; /* 1 */
477
- font: inherit; /* 2 */
478
- margin: 0; /* 3 */
479
- @if support-legacy-browser(ie, "7") {
480
- *font-family: $base-font-family; /* 4 */
481
- *vertical-align: middle; /* 5 */
482
- }
483
- }
484
-
485
- /**
486
- * Address `overflow` set to `hidden` in IE 8/9/10/11.
487
- */
488
-
489
- button {
490
- overflow: visible;
491
- }
492
-
493
- /**
494
- * Address inconsistent `text-transform` inheritance for `button` and `select`.
495
- * All other form control elements do not inherit `text-transform` values.
496
- * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
497
- * Correct `select` style inheritance in Firefox.
498
- */
499
-
500
- button,
501
- select {
502
- text-transform: none;
503
- }
504
-
505
- /**
506
- * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
507
- * and `video` controls.
508
- * 2. Correct inability to style clickable `input` types in iOS.
509
- * 3. Improve usability and consistency of cursor style between image-type
510
- * `input` and others.
511
- * 4. Remove inner spacing in IE 7 without affecting normal text inputs.
512
- * Known issue: inner spacing remains in IE 6.
513
- */
514
-
515
- button,
516
- html input[type="button"], /* 1 */
517
- input[type="reset"],
518
- input[type="submit"] {
519
- -webkit-appearance: button; /* 2 */
520
- cursor: pointer; /* 3 */
521
- @if support-legacy-browser(ie, "7") {
522
- *overflow: visible; /* 4 */
523
- }
524
- }
525
-
526
- /**
527
- * Re-set default cursor for disabled elements.
528
- */
529
-
530
- button[disabled],
531
- html input[disabled] {
532
- cursor: default;
533
- }
534
-
535
- /**
536
- * Remove inner padding and border in Firefox 4+.
537
- */
538
-
539
- button::-moz-focus-inner,
540
- input::-moz-focus-inner {
541
- border: 0;
542
- padding: 0;
543
- }
544
-
545
- /**
546
- * Address Firefox 4+ setting `line-height` on `input` using `!important` in
547
- * the UA stylesheet.
548
- */
549
-
550
- input {
551
- line-height: normal;
552
- }
553
-
554
- @if support-legacy-browser(ie, "10") {
555
- /**
556
- * It's recommended that you don't attempt to style these elements.
557
- * Firefox's implementation doesn't respect box-sizing, padding, or width.
558
- *
559
- * 1. Address box sizing set to `content-box` in IE 8/9/10.
560
- * 2. Remove excess padding in IE 8/9/10.
561
- * 3. Remove excess padding in IE 7.
562
- * Known issue: excess padding remains in IE 6.
563
- */
564
-
565
- input[type="checkbox"],
566
- input[type="radio"] {
567
- @include box-sizing(border-box); /* 1 */
568
- padding: 0; /* 2 */
569
- @if support-legacy-browser(ie, "7") {
570
- *height: 13px; /* 3 */
571
- *width: 13px; /* 3 */
572
- }
573
- }
574
- }
575
-
576
- /**
577
- * Fix the cursor style for Chrome's increment/decrement buttons. For certain
578
- * `font-size` values of the `input`, it causes the cursor style of the
579
- * decrement button to change from `default` to `text`.
580
- */
581
-
582
- input[type="number"]::-webkit-inner-spin-button,
583
- input[type="number"]::-webkit-outer-spin-button {
584
- height: auto;
585
- }
586
-
587
- /**
588
- * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
589
- * 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
590
- */
591
-
592
- input[type="search"] {
593
- -webkit-appearance: textfield; /* 1 */
594
- @include box-sizing(content-box); /* 2 */
595
-
596
- /**
597
- * Remove inner padding and search cancel button in Safari and Chrome on OS X.
598
- * Safari (but not Chrome) clips the cancel button when the search input has
599
- * padding (and `textfield` appearance).
600
- */
601
-
602
- &::-webkit-search-cancel-button,
603
- &::-webkit-search-decoration {
604
- -webkit-appearance: none;
605
- }
606
- }
607
-
608
- /**
609
- * Define consistent border, margin, and padding.
610
- */
611
-
612
- fieldset {
613
- margin: 0 2px;
614
- /* Apply borders and padding that keep the vertical rhythm. */
615
- border-color: #c0c0c0;
616
- @include apply-side-rhythm-border(top, $width: 1px, $lines: 0.35 );
617
- @include apply-side-rhythm-border(bottom, $width: 1px, $lines: 0.65 );
618
- @include apply-side-rhythm-border(left, $width: 1px, $lines: 0.625);
619
- @include apply-side-rhythm-border(right, $width: 1px, $lines: 0.625);
620
- }
621
-
622
- /**
623
- * 1. Correct `color` not being inherited in IE 8/9/10/11.
624
- * 2. Remove padding so people aren't caught out if they zero out fieldsets.
625
- * 3. Correct alignment displayed oddly in IE 6/7.
626
- */
627
-
628
- legend {
629
- @if support-legacy-browser(ie, "11") {
630
- border: 0; /* 1 */
631
- }
632
- padding: 0; /* 2 */
633
- @if support-legacy-browser(ie, "7") {
634
- *margin-left: -7px; /* 3 */
635
- }
636
- }
637
-
638
- /**
639
- * Remove default vertical scrollbar in IE 8/9/10/11.
640
- */
641
-
642
- textarea {
643
- overflow: auto;
644
- }
645
-
646
- /**
647
- * Don't inherit the `font-weight` (applied by a rule above).
648
- * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
649
- */
650
-
651
- optgroup {
652
- font-weight: bold;
653
- }
654
-
655
- /* Tables
656
- ========================================================================== */
657
-
658
- /**
659
- * Remove most spacing between table cells.
660
- */
661
-
662
- table {
663
- border-collapse: collapse;
664
- border-spacing: 0;
665
- }
666
-
667
- td,
668
- th {
669
- padding: 0;
670
- }