UNPKG

3.48 kBJavaScriptView Raw
1"use strict";
2
3exports.__esModule = true;
4exports["default"] = normalize;
5/**
6 * CSS to normalize abnormalities across browsers (normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css)
7 *
8 * @example
9 * // Styles as object usage
10 * const styles = {
11 * ...normalize(),
12 * }
13 *
14 * // styled-components usage
15 * const GlobalStyle = createGlobalStyle`${normalize()}`
16 *
17 * // CSS as JS Output
18 *
19 * html {
20 * lineHeight: 1.15,
21 * textSizeAdjust: 100%,
22 * } ...
23 */
24function normalize() {
25 var _ref;
26 return [(_ref = {
27 html: {
28 lineHeight: '1.15',
29 textSizeAdjust: '100%'
30 },
31 body: {
32 margin: '0'
33 },
34 main: {
35 display: 'block'
36 },
37 h1: {
38 fontSize: '2em',
39 margin: '0.67em 0'
40 },
41 hr: {
42 boxSizing: 'content-box',
43 height: '0',
44 overflow: 'visible'
45 },
46 pre: {
47 fontFamily: 'monospace, monospace',
48 fontSize: '1em'
49 },
50 a: {
51 backgroundColor: 'transparent'
52 },
53 'abbr[title]': {
54 borderBottom: 'none',
55 textDecoration: 'underline'
56 }
57 }, _ref["b,\n strong"] = {
58 fontWeight: 'bolder'
59 }, _ref["code,\n kbd,\n samp"] = {
60 fontFamily: 'monospace, monospace',
61 fontSize: '1em'
62 }, _ref.small = {
63 fontSize: '80%'
64 }, _ref["sub,\n sup"] = {
65 fontSize: '75%',
66 lineHeight: '0',
67 position: 'relative',
68 verticalAlign: 'baseline'
69 }, _ref.sub = {
70 bottom: '-0.25em'
71 }, _ref.sup = {
72 top: '-0.5em'
73 }, _ref.img = {
74 borderStyle: 'none'
75 }, _ref["button,\n input,\n optgroup,\n select,\n textarea"] = {
76 fontFamily: 'inherit',
77 fontSize: '100%',
78 lineHeight: '1.15',
79 margin: '0'
80 }, _ref["button,\n input"] = {
81 overflow: 'visible'
82 }, _ref["button,\n select"] = {
83 textTransform: 'none'
84 }, _ref["button,\n html [type=\"button\"],\n [type=\"reset\"],\n [type=\"submit\"]"] = {
85 WebkitAppearance: 'button'
86 }, _ref["button::-moz-focus-inner,\n [type=\"button\"]::-moz-focus-inner,\n [type=\"reset\"]::-moz-focus-inner,\n [type=\"submit\"]::-moz-focus-inner"] = {
87 borderStyle: 'none',
88 padding: '0'
89 }, _ref["button:-moz-focusring,\n [type=\"button\"]:-moz-focusring,\n [type=\"reset\"]:-moz-focusring,\n [type=\"submit\"]:-moz-focusring"] = {
90 outline: '1px dotted ButtonText'
91 }, _ref.fieldset = {
92 padding: '0.35em 0.625em 0.75em'
93 }, _ref.legend = {
94 boxSizing: 'border-box',
95 color: 'inherit',
96 display: 'table',
97 maxWidth: '100%',
98 padding: '0',
99 whiteSpace: 'normal'
100 }, _ref.progress = {
101 verticalAlign: 'baseline'
102 }, _ref.textarea = {
103 overflow: 'auto'
104 }, _ref["[type=\"checkbox\"],\n [type=\"radio\"]"] = {
105 boxSizing: 'border-box',
106 padding: '0'
107 }, _ref["[type=\"number\"]::-webkit-inner-spin-button,\n [type=\"number\"]::-webkit-outer-spin-button"] = {
108 height: 'auto'
109 }, _ref['[type="search"]'] = {
110 WebkitAppearance: 'textfield',
111 outlineOffset: '-2px'
112 }, _ref['[type="search"]::-webkit-search-decoration'] = {
113 WebkitAppearance: 'none'
114 }, _ref['::-webkit-file-upload-button'] = {
115 WebkitAppearance: 'button',
116 font: 'inherit'
117 }, _ref.details = {
118 display: 'block'
119 }, _ref.summary = {
120 display: 'list-item'
121 }, _ref.template = {
122 display: 'none'
123 }, _ref['[hidden]'] = {
124 display: 'none'
125 }, _ref), {
126 'abbr[title]': {
127 textDecoration: 'underline dotted'
128 }
129 }];
130}
131module.exports = exports.default;
\No newline at end of file