baseline-scss 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +15 -0
- data/lib/baseline-scss.rb +1 -0
- data/lib/baseline_scss/version.rb +3 -0
- data/lib/baseline_scss.rb +41 -0
- data/src/_content.scss +7 -0
- data/src/_helpers.scss +49 -0
- data/src/_mixins.scss +7 -0
- data/src/_reboot.scss +227 -0
- data/src/_variables.scss +149 -0
- data/src/_vendors.scss +3 -0
- data/src/baseline.scss +8 -0
- data/src/content/_buttons.scss +37 -0
- data/src/content/_code.scss +15 -0
- data/src/content/_forms.scss +88 -0
- data/src/content/_lists.scss +15 -0
- data/src/content/_multimedia.scss +8 -0
- data/src/content/_tables.scss +27 -0
- data/src/content/_typography.scss +99 -0
- data/src/mixins/_.scss +4 -0
- data/src/mixins/_after_border.scss +12 -0
- data/src/mixins/_clearfix.scss +7 -0
- data/src/mixins/_font_awesome.scss +12 -0
- data/src/mixins/_max_width_container.scss +15 -0
- data/src/mixins/_outline.scss +5 -0
- data/src/mixins/_sr_only.scss +17 -0
- data/src/vendors/_bourbon.scss +54 -0
- data/src/vendors/_include-media.scss +591 -0
- data/src/vendors/animate.css +4072 -0
- data/src/vendors/bourbon/helpers/_buttons-list.scss +14 -0
- data/src/vendors/bourbon/helpers/_scales.scss +27 -0
- data/src/vendors/bourbon/helpers/_text-inputs-list.scss +26 -0
- data/src/vendors/bourbon/library/_border-color.scss +26 -0
- data/src/vendors/bourbon/library/_border-radius.scss +85 -0
- data/src/vendors/bourbon/library/_border-style.scss +25 -0
- data/src/vendors/bourbon/library/_border-width.scss +25 -0
- data/src/vendors/bourbon/library/_buttons.scss +84 -0
- data/src/vendors/bourbon/library/_clearfix.scss +25 -0
- data/src/vendors/bourbon/library/_contrast-switch.scss +81 -0
- data/src/vendors/bourbon/library/_ellipsis.scss +36 -0
- data/src/vendors/bourbon/library/_font-face.scss +65 -0
- data/src/vendors/bourbon/library/_font-stacks.scss +248 -0
- data/src/vendors/bourbon/library/_hide-text.scss +24 -0
- data/src/vendors/bourbon/library/_hide-visually.scss +70 -0
- data/src/vendors/bourbon/library/_margin.scss +37 -0
- data/src/vendors/bourbon/library/_modular-scale.scss +120 -0
- data/src/vendors/bourbon/library/_overflow-wrap.scss +25 -0
- data/src/vendors/bourbon/library/_padding.scss +36 -0
- data/src/vendors/bourbon/library/_position.scss +62 -0
- data/src/vendors/bourbon/library/_prefixer.scss +37 -0
- data/src/vendors/bourbon/library/_shade.scss +32 -0
- data/src/vendors/bourbon/library/_size.scss +50 -0
- data/src/vendors/bourbon/library/_strip-unit.scss +17 -0
- data/src/vendors/bourbon/library/_text-inputs.scss +163 -0
- data/src/vendors/bourbon/library/_timing-functions.scss +36 -0
- data/src/vendors/bourbon/library/_tint.scss +32 -0
- data/src/vendors/bourbon/library/_triangle.scss +82 -0
- data/src/vendors/bourbon/library/_value-prefixer.scss +37 -0
- data/src/vendors/bourbon/settings/_settings.scss +75 -0
- data/src/vendors/bourbon/utilities/_assign-inputs.scss +28 -0
- data/src/vendors/bourbon/utilities/_compact-shorthand.scss +42 -0
- data/src/vendors/bourbon/utilities/_contrast-ratio.scss +31 -0
- data/src/vendors/bourbon/utilities/_directional-property.scss +68 -0
- data/src/vendors/bourbon/utilities/_fetch-bourbon-setting.scss +16 -0
- data/src/vendors/bourbon/utilities/_font-source-declaration.scss +52 -0
- data/src/vendors/bourbon/utilities/_gamma.scss +24 -0
- data/src/vendors/bourbon/utilities/_lightness.scss +24 -0
- data/src/vendors/bourbon/utilities/_unpack-shorthand.scss +29 -0
- data/src/vendors/bourbon/validators/_contains-falsy.scss +20 -0
- data/src/vendors/bourbon/validators/_contains.scss +26 -0
- data/src/vendors/bourbon/validators/_is-color.scss +13 -0
- data/src/vendors/bourbon/validators/_is-length.scss +20 -0
- data/src/vendors/bourbon/validators/_is-number.scss +15 -0
- data/src/vendors/bourbon/validators/_is-size.scss +18 -0
- data/src/vendors/normalize.css +349 -0
- metadata +130 -0
@@ -0,0 +1,52 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Builds the `src` list for an `@font-face` declaration.
|
4
|
+
///
|
5
|
+
/// @link https://goo.gl/Ru1bKP
|
6
|
+
///
|
7
|
+
/// @argument {string} $font-family
|
8
|
+
///
|
9
|
+
/// @argument {string} $file-path
|
10
|
+
///
|
11
|
+
/// @argument {boolean} $asset-pipeline
|
12
|
+
///
|
13
|
+
/// @argument {list} $file-formats
|
14
|
+
///
|
15
|
+
/// @return {list}
|
16
|
+
///
|
17
|
+
/// @require {function} _contains
|
18
|
+
///
|
19
|
+
/// @access private
|
20
|
+
|
21
|
+
@function _font-source-declaration(
|
22
|
+
$font-family,
|
23
|
+
$file-path,
|
24
|
+
$asset-pipeline,
|
25
|
+
$file-formats
|
26
|
+
) {
|
27
|
+
$src: ();
|
28
|
+
|
29
|
+
$formats-map: (
|
30
|
+
"woff2": "#{$file-path}.woff2" format("woff2"),
|
31
|
+
"woff": "#{$file-path}.woff" format("woff"),
|
32
|
+
);
|
33
|
+
|
34
|
+
@each $format in $file-formats {
|
35
|
+
@if _contains(map-keys($formats-map), $format) {
|
36
|
+
$value: map-get($formats-map, $format);
|
37
|
+
$file-path: nth($value, 1);
|
38
|
+
$font-format: nth($value, 2);
|
39
|
+
|
40
|
+
@if $asset-pipeline == true {
|
41
|
+
$src: append($src, font-url($file-path) $font-format, comma);
|
42
|
+
} @else {
|
43
|
+
$src: append($src, url($file-path) $font-format, comma);
|
44
|
+
}
|
45
|
+
} @else {
|
46
|
+
@error "`#{$file-formats}` contains an unsupported font file format. " +
|
47
|
+
"Must be `woff` and/or `woff2`.";
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
@return $src;
|
52
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Performs gamma correction on a single color channel.
|
4
|
+
///
|
5
|
+
/// Note that the calculation is approximate if a `pow()` is not available.
|
6
|
+
///
|
7
|
+
/// @argument {number (0-1)} $channel
|
8
|
+
///
|
9
|
+
/// @return {number (0-1)}
|
10
|
+
///
|
11
|
+
/// @access private
|
12
|
+
|
13
|
+
@function _gamma($channel) {
|
14
|
+
@if $channel < 0.03928 {
|
15
|
+
@return $channel / 12.92;
|
16
|
+
} @else {
|
17
|
+
$c: ($channel + 0.055) / 1.055;
|
18
|
+
@if function-exists("pow") {
|
19
|
+
@return pow($c, 2.4);
|
20
|
+
} @else {
|
21
|
+
@return 0.56 * $c * $c * $c + 0.44 * $c * $c;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Programatically determines the lightness of a color.
|
4
|
+
///
|
5
|
+
/// @argument {color (hex)} $hex-color
|
6
|
+
///
|
7
|
+
/// @return {number (0-1)}
|
8
|
+
///
|
9
|
+
/// @example scss
|
10
|
+
/// _lightness($color)
|
11
|
+
///
|
12
|
+
/// @access private
|
13
|
+
|
14
|
+
@function _lightness($hex-color) {
|
15
|
+
$-local-red-raw: red(rgba($hex-color, 1));
|
16
|
+
$-local-green-raw: green(rgba($hex-color, 1));
|
17
|
+
$-local-blue-raw: blue(rgba($hex-color, 1));
|
18
|
+
|
19
|
+
$-local-red: _gamma($-local-red-raw / 255);
|
20
|
+
$-local-green: _gamma($-local-green-raw / 255);
|
21
|
+
$-local-blue: _gamma($-local-blue-raw / 255);
|
22
|
+
|
23
|
+
@return $-local-red * 0.2126 + $-local-green * 0.7152 + $-local-blue * 0.0722;
|
24
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Transforms shorthand that can range from 1-to-4 values to be 4 values.
|
4
|
+
///
|
5
|
+
/// @argument {list} $shorthand
|
6
|
+
///
|
7
|
+
/// @example scss
|
8
|
+
/// .element {
|
9
|
+
/// margin: _unpack-shorthand(1em 2em);
|
10
|
+
/// }
|
11
|
+
///
|
12
|
+
/// // CSS Output
|
13
|
+
/// .element {
|
14
|
+
/// margin: 1em 2em 1em 2em;
|
15
|
+
/// }
|
16
|
+
///
|
17
|
+
/// @access private
|
18
|
+
|
19
|
+
@function _unpack-shorthand($shorthand) {
|
20
|
+
@if length($shorthand) == 1 {
|
21
|
+
@return nth($shorthand, 1) nth($shorthand, 1) nth($shorthand, 1) nth($shorthand, 1);
|
22
|
+
} @else if length($shorthand) == 2 {
|
23
|
+
@return nth($shorthand, 1) nth($shorthand, 2) nth($shorthand, 1) nth($shorthand, 2);
|
24
|
+
} @else if length($shorthand) == 3 {
|
25
|
+
@return nth($shorthand, 1) nth($shorthand, 2) nth($shorthand, 3) nth($shorthand, 2);
|
26
|
+
} @else {
|
27
|
+
@return $shorthand;
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Checks if a list does not contain any values.
|
4
|
+
///
|
5
|
+
/// @argument {list} $list
|
6
|
+
/// The list to check against.
|
7
|
+
///
|
8
|
+
/// @return {boolean}
|
9
|
+
///
|
10
|
+
/// @access private
|
11
|
+
|
12
|
+
@function _contains-falsy($list) {
|
13
|
+
@each $item in $list {
|
14
|
+
@if not $item {
|
15
|
+
@return true;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
@return false;
|
20
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Checks if a list contains a value(s).
|
4
|
+
///
|
5
|
+
/// @argument {list} $list
|
6
|
+
/// The list to check against.
|
7
|
+
///
|
8
|
+
/// @argument {list} $values
|
9
|
+
/// A single value or list of values to check for.
|
10
|
+
///
|
11
|
+
/// @return {boolean}
|
12
|
+
///
|
13
|
+
/// @access private
|
14
|
+
|
15
|
+
@function _contains(
|
16
|
+
$list,
|
17
|
+
$values...
|
18
|
+
) {
|
19
|
+
@each $value in $values {
|
20
|
+
@if type-of(index($list, $value)) != "number" {
|
21
|
+
@return false;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
|
25
|
+
@return true;
|
26
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Checks for a valid CSS color.
|
4
|
+
///
|
5
|
+
/// @argument {string} $color
|
6
|
+
///
|
7
|
+
/// @return {boolean}
|
8
|
+
///
|
9
|
+
/// @access private
|
10
|
+
|
11
|
+
@function _is-color($color) {
|
12
|
+
@return (type-of($color) == color) or ($color == "currentColor");
|
13
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Checks for a valid CSS length.
|
4
|
+
///
|
5
|
+
/// @argument {string} $value
|
6
|
+
///
|
7
|
+
/// @return {boolean}
|
8
|
+
///
|
9
|
+
/// @access private
|
10
|
+
|
11
|
+
@function _is-length($value) {
|
12
|
+
@return type-of($value) != "null"
|
13
|
+
and (
|
14
|
+
str-slice($value + "", 1, 4) == "calc"
|
15
|
+
or str-slice($value + "", 1, 3) == "var"
|
16
|
+
or str-slice($value + "", 1, 3) == "env"
|
17
|
+
or index(auto inherit initial 0, $value)
|
18
|
+
or (type-of($value) == "number" and not(unitless($value)))
|
19
|
+
);
|
20
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Checks for a valid number.
|
4
|
+
///
|
5
|
+
/// @argument {number} $value
|
6
|
+
///
|
7
|
+
/// @require {function} _contains
|
8
|
+
///
|
9
|
+
/// @return {boolean}
|
10
|
+
///
|
11
|
+
/// @access private
|
12
|
+
|
13
|
+
@function _is-number($value) {
|
14
|
+
@return _contains("0" "1" "2" "3" "4" "5" "6" "7" "8" "9" 0 1 2 3 4 5 6 7 8 9, $value);
|
15
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
@charset "UTF-8";
|
2
|
+
|
3
|
+
/// Checks for a valid CSS size.
|
4
|
+
///
|
5
|
+
/// @argument {string} $value
|
6
|
+
///
|
7
|
+
/// @return {boolean}
|
8
|
+
///
|
9
|
+
/// @require {function} _contains
|
10
|
+
///
|
11
|
+
/// @require {function} _is-length
|
12
|
+
///
|
13
|
+
/// @access private
|
14
|
+
|
15
|
+
@function _is-size($value) {
|
16
|
+
@return _is-length($value)
|
17
|
+
or _contains("fill" "fit-content" "min-content" "max-content", $value);
|
18
|
+
}
|
@@ -0,0 +1,349 @@
|
|
1
|
+
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
|
2
|
+
|
3
|
+
/* Document
|
4
|
+
========================================================================== */
|
5
|
+
|
6
|
+
/**
|
7
|
+
* 1. Correct the line height in all browsers.
|
8
|
+
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
9
|
+
*/
|
10
|
+
|
11
|
+
html {
|
12
|
+
line-height: 1.15; /* 1 */
|
13
|
+
-webkit-text-size-adjust: 100%; /* 2 */
|
14
|
+
}
|
15
|
+
|
16
|
+
/* Sections
|
17
|
+
========================================================================== */
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Remove the margin in all browsers.
|
21
|
+
*/
|
22
|
+
|
23
|
+
body {
|
24
|
+
margin: 0;
|
25
|
+
}
|
26
|
+
|
27
|
+
/**
|
28
|
+
* Render the `main` element consistently in IE.
|
29
|
+
*/
|
30
|
+
|
31
|
+
main {
|
32
|
+
display: block;
|
33
|
+
}
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Correct the font size and margin on `h1` elements within `section` and
|
37
|
+
* `article` contexts in Chrome, Firefox, and Safari.
|
38
|
+
*/
|
39
|
+
|
40
|
+
h1 {
|
41
|
+
font-size: 2em;
|
42
|
+
margin: 0.67em 0;
|
43
|
+
}
|
44
|
+
|
45
|
+
/* Grouping content
|
46
|
+
========================================================================== */
|
47
|
+
|
48
|
+
/**
|
49
|
+
* 1. Add the correct box sizing in Firefox.
|
50
|
+
* 2. Show the overflow in Edge and IE.
|
51
|
+
*/
|
52
|
+
|
53
|
+
hr {
|
54
|
+
box-sizing: content-box; /* 1 */
|
55
|
+
height: 0; /* 1 */
|
56
|
+
overflow: visible; /* 2 */
|
57
|
+
}
|
58
|
+
|
59
|
+
/**
|
60
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
61
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
62
|
+
*/
|
63
|
+
|
64
|
+
pre {
|
65
|
+
font-family: monospace, monospace; /* 1 */
|
66
|
+
font-size: 1em; /* 2 */
|
67
|
+
}
|
68
|
+
|
69
|
+
/* Text-level semantics
|
70
|
+
========================================================================== */
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Remove the gray background on active links in IE 10.
|
74
|
+
*/
|
75
|
+
|
76
|
+
a {
|
77
|
+
background-color: transparent;
|
78
|
+
}
|
79
|
+
|
80
|
+
/**
|
81
|
+
* 1. Remove the bottom border in Chrome 57-
|
82
|
+
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
|
83
|
+
*/
|
84
|
+
|
85
|
+
abbr[title] {
|
86
|
+
border-bottom: none; /* 1 */
|
87
|
+
text-decoration: underline; /* 2 */
|
88
|
+
text-decoration: underline dotted; /* 2 */
|
89
|
+
}
|
90
|
+
|
91
|
+
/**
|
92
|
+
* Add the correct font weight in Chrome, Edge, and Safari.
|
93
|
+
*/
|
94
|
+
|
95
|
+
b,
|
96
|
+
strong {
|
97
|
+
font-weight: bolder;
|
98
|
+
}
|
99
|
+
|
100
|
+
/**
|
101
|
+
* 1. Correct the inheritance and scaling of font size in all browsers.
|
102
|
+
* 2. Correct the odd `em` font sizing in all browsers.
|
103
|
+
*/
|
104
|
+
|
105
|
+
code,
|
106
|
+
kbd,
|
107
|
+
samp {
|
108
|
+
font-family: monospace, monospace; /* 1 */
|
109
|
+
font-size: 1em; /* 2 */
|
110
|
+
}
|
111
|
+
|
112
|
+
/**
|
113
|
+
* Add the correct font size in all browsers.
|
114
|
+
*/
|
115
|
+
|
116
|
+
small {
|
117
|
+
font-size: 80%;
|
118
|
+
}
|
119
|
+
|
120
|
+
/**
|
121
|
+
* Prevent `sub` and `sup` elements from affecting the line height in
|
122
|
+
* all browsers.
|
123
|
+
*/
|
124
|
+
|
125
|
+
sub,
|
126
|
+
sup {
|
127
|
+
font-size: 75%;
|
128
|
+
line-height: 0;
|
129
|
+
position: relative;
|
130
|
+
vertical-align: baseline;
|
131
|
+
}
|
132
|
+
|
133
|
+
sub {
|
134
|
+
bottom: -0.25em;
|
135
|
+
}
|
136
|
+
|
137
|
+
sup {
|
138
|
+
top: -0.5em;
|
139
|
+
}
|
140
|
+
|
141
|
+
/* Embedded content
|
142
|
+
========================================================================== */
|
143
|
+
|
144
|
+
/**
|
145
|
+
* Remove the border on images inside links in IE 10.
|
146
|
+
*/
|
147
|
+
|
148
|
+
img {
|
149
|
+
border-style: none;
|
150
|
+
}
|
151
|
+
|
152
|
+
/* Forms
|
153
|
+
========================================================================== */
|
154
|
+
|
155
|
+
/**
|
156
|
+
* 1. Change the font styles in all browsers.
|
157
|
+
* 2. Remove the margin in Firefox and Safari.
|
158
|
+
*/
|
159
|
+
|
160
|
+
button,
|
161
|
+
input,
|
162
|
+
optgroup,
|
163
|
+
select,
|
164
|
+
textarea {
|
165
|
+
font-family: inherit; /* 1 */
|
166
|
+
font-size: 100%; /* 1 */
|
167
|
+
line-height: 1.15; /* 1 */
|
168
|
+
margin: 0; /* 2 */
|
169
|
+
}
|
170
|
+
|
171
|
+
/**
|
172
|
+
* Show the overflow in IE.
|
173
|
+
* 1. Show the overflow in Edge.
|
174
|
+
*/
|
175
|
+
|
176
|
+
button,
|
177
|
+
input { /* 1 */
|
178
|
+
overflow: visible;
|
179
|
+
}
|
180
|
+
|
181
|
+
/**
|
182
|
+
* Remove the inheritance of text transform in Edge, Firefox, and IE.
|
183
|
+
* 1. Remove the inheritance of text transform in Firefox.
|
184
|
+
*/
|
185
|
+
|
186
|
+
button,
|
187
|
+
select { /* 1 */
|
188
|
+
text-transform: none;
|
189
|
+
}
|
190
|
+
|
191
|
+
/**
|
192
|
+
* Correct the inability to style clickable types in iOS and Safari.
|
193
|
+
*/
|
194
|
+
|
195
|
+
button,
|
196
|
+
[type="button"],
|
197
|
+
[type="reset"],
|
198
|
+
[type="submit"] {
|
199
|
+
-webkit-appearance: button;
|
200
|
+
}
|
201
|
+
|
202
|
+
/**
|
203
|
+
* Remove the inner border and padding in Firefox.
|
204
|
+
*/
|
205
|
+
|
206
|
+
button::-moz-focus-inner,
|
207
|
+
[type="button"]::-moz-focus-inner,
|
208
|
+
[type="reset"]::-moz-focus-inner,
|
209
|
+
[type="submit"]::-moz-focus-inner {
|
210
|
+
border-style: none;
|
211
|
+
padding: 0;
|
212
|
+
}
|
213
|
+
|
214
|
+
/**
|
215
|
+
* Restore the focus styles unset by the previous rule.
|
216
|
+
*/
|
217
|
+
|
218
|
+
button:-moz-focusring,
|
219
|
+
[type="button"]:-moz-focusring,
|
220
|
+
[type="reset"]:-moz-focusring,
|
221
|
+
[type="submit"]:-moz-focusring {
|
222
|
+
outline: 1px dotted ButtonText;
|
223
|
+
}
|
224
|
+
|
225
|
+
/**
|
226
|
+
* Correct the padding in Firefox.
|
227
|
+
*/
|
228
|
+
|
229
|
+
fieldset {
|
230
|
+
padding: 0.35em 0.75em 0.625em;
|
231
|
+
}
|
232
|
+
|
233
|
+
/**
|
234
|
+
* 1. Correct the text wrapping in Edge and IE.
|
235
|
+
* 2. Correct the color inheritance from `fieldset` elements in IE.
|
236
|
+
* 3. Remove the padding so developers are not caught out when they zero out
|
237
|
+
* `fieldset` elements in all browsers.
|
238
|
+
*/
|
239
|
+
|
240
|
+
legend {
|
241
|
+
box-sizing: border-box; /* 1 */
|
242
|
+
color: inherit; /* 2 */
|
243
|
+
display: table; /* 1 */
|
244
|
+
max-width: 100%; /* 1 */
|
245
|
+
padding: 0; /* 3 */
|
246
|
+
white-space: normal; /* 1 */
|
247
|
+
}
|
248
|
+
|
249
|
+
/**
|
250
|
+
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
|
251
|
+
*/
|
252
|
+
|
253
|
+
progress {
|
254
|
+
vertical-align: baseline;
|
255
|
+
}
|
256
|
+
|
257
|
+
/**
|
258
|
+
* Remove the default vertical scrollbar in IE 10+.
|
259
|
+
*/
|
260
|
+
|
261
|
+
textarea {
|
262
|
+
overflow: auto;
|
263
|
+
}
|
264
|
+
|
265
|
+
/**
|
266
|
+
* 1. Add the correct box sizing in IE 10.
|
267
|
+
* 2. Remove the padding in IE 10.
|
268
|
+
*/
|
269
|
+
|
270
|
+
[type="checkbox"],
|
271
|
+
[type="radio"] {
|
272
|
+
box-sizing: border-box; /* 1 */
|
273
|
+
padding: 0; /* 2 */
|
274
|
+
}
|
275
|
+
|
276
|
+
/**
|
277
|
+
* Correct the cursor style of increment and decrement buttons in Chrome.
|
278
|
+
*/
|
279
|
+
|
280
|
+
[type="number"]::-webkit-inner-spin-button,
|
281
|
+
[type="number"]::-webkit-outer-spin-button {
|
282
|
+
height: auto;
|
283
|
+
}
|
284
|
+
|
285
|
+
/**
|
286
|
+
* 1. Correct the odd appearance in Chrome and Safari.
|
287
|
+
* 2. Correct the outline style in Safari.
|
288
|
+
*/
|
289
|
+
|
290
|
+
[type="search"] {
|
291
|
+
-webkit-appearance: textfield; /* 1 */
|
292
|
+
outline-offset: -2px; /* 2 */
|
293
|
+
}
|
294
|
+
|
295
|
+
/**
|
296
|
+
* Remove the inner padding in Chrome and Safari on macOS.
|
297
|
+
*/
|
298
|
+
|
299
|
+
[type="search"]::-webkit-search-decoration {
|
300
|
+
-webkit-appearance: none;
|
301
|
+
}
|
302
|
+
|
303
|
+
/**
|
304
|
+
* 1. Correct the inability to style clickable types in iOS and Safari.
|
305
|
+
* 2. Change font properties to `inherit` in Safari.
|
306
|
+
*/
|
307
|
+
|
308
|
+
::-webkit-file-upload-button {
|
309
|
+
-webkit-appearance: button; /* 1 */
|
310
|
+
font: inherit; /* 2 */
|
311
|
+
}
|
312
|
+
|
313
|
+
/* Interactive
|
314
|
+
========================================================================== */
|
315
|
+
|
316
|
+
/*
|
317
|
+
* Add the correct display in Edge, IE 10+, and Firefox.
|
318
|
+
*/
|
319
|
+
|
320
|
+
details {
|
321
|
+
display: block;
|
322
|
+
}
|
323
|
+
|
324
|
+
/*
|
325
|
+
* Add the correct display in all browsers.
|
326
|
+
*/
|
327
|
+
|
328
|
+
summary {
|
329
|
+
display: list-item;
|
330
|
+
}
|
331
|
+
|
332
|
+
/* Misc
|
333
|
+
========================================================================== */
|
334
|
+
|
335
|
+
/**
|
336
|
+
* Add the correct display in IE 10+.
|
337
|
+
*/
|
338
|
+
|
339
|
+
template {
|
340
|
+
display: none;
|
341
|
+
}
|
342
|
+
|
343
|
+
/**
|
344
|
+
* Add the correct display in IE 10.
|
345
|
+
*/
|
346
|
+
|
347
|
+
[hidden] {
|
348
|
+
display: none;
|
349
|
+
}
|