UNPKG

2.94 kBJavaScriptView Raw
1export const normalize = {
2 html: {
3 lineHeight: '1.15',
4 WebkitTextSizeAdjust: '100%',
5 },
6 body: {
7 margin: '0',
8 },
9 main: {
10 display: 'block',
11 },
12 h1: {
13 fontSize: '2em',
14 margin: '0.67em 0',
15 },
16 hr: {
17 boxSizing: 'content-box',
18 height: '0',
19 overflow: 'visible',
20 },
21 pre: {
22 fontFamily: 'monospace, monospace',
23 fontSize: '1em',
24 },
25 a: {
26 backgroundColor: 'transparent',
27 },
28 'abbr[title]': {
29 borderBottom: 'none',
30 textDecoration: 'underline dotted',
31 },
32 strong: {
33 fontWeight: 'bolder',
34 },
35 'code, kbd, samp': {
36 fontFamily: 'monospace, monospace',
37 fontSize: '1em',
38 },
39 small: {
40 fontSize: '80%',
41 },
42 'sub, sup': {
43 fontSize: '75%',
44 lineHeight: '0',
45 position: 'relative',
46 verticalAlign: 'baseline',
47 },
48 sub: {
49 bottom: '-0.25em',
50 },
51 sup: {
52 top: '-0.5em',
53 },
54 img: {
55 borderStyle: 'none',
56 },
57 'button, input, optgroup, select, textarea': {
58 fontFamily: 'inherit',
59 fontSize: '100%',
60 lineHeight: '1.15',
61 margin: '0',
62 },
63 'button, input': {
64 overflow: 'visible',
65 },
66 'button, select': {
67 textTransform: 'none',
68 },
69 'button, [type="button"], [type="reset"], [type="submit"]': {
70 WebkitAppearance: 'button',
71 },
72 'button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner': {
73 borderStyle: 'none',
74 padding: '0',
75 },
76 'button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring': {
77 outline: '1px dotted ButtonText',
78 },
79 fieldset: {
80 padding: '0.35em 0.75em 0.625em',
81 },
82 legend: {
83 boxSizing: 'border-box',
84 color: 'inherit',
85 display: 'table',
86 maxWidth: '100%',
87 padding: '0',
88 whiteSpace: 'normal',
89 },
90 progress: {
91 verticalAlign: 'baseline',
92 },
93 textarea: {
94 overflow: 'auto',
95 },
96 '[type="checkbox"], [type="radio"]': {
97 boxSizing: 'border-box',
98 padding: '0',
99 },
100 '[type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button': {
101 height: 'auto',
102 },
103 '[type="search"]': {
104 WebkitAppearance: 'textfield',
105 outlineOffset: '-2px',
106 },
107 '[type="search"]::-webkit-search-decoration': {
108 WebkitAppearance: 'none',
109 },
110 '::-webkit-file-upload-button': {
111 WebkitAppearance: 'button',
112 font: 'inherit',
113 },
114 details: {
115 display: 'block',
116 },
117 summary: {
118 display: 'list-item',
119 },
120 template: {
121 display: 'none',
122 },
123 '[hidden]': {
124 display: 'none',
125 },
126};