UNPKG

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