normalize.js 3.4 KB

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