normalize.css 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. @CHARSET "UTF-8";
  2. html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
  3. margin: 0;
  4. padding: 0;
  5. border: 0;
  6. outline: 0;
  7. background: transparent;
  8. }
  9. html {
  10. -webkit-text-size-adjust: 100%; /* 2 */
  11. }
  12. ol, ul {
  13. list-style: none;
  14. }
  15. :focus {
  16. outline: 0;
  17. }
  18. ins {
  19. text-decoration: none;
  20. }
  21. del {
  22. text-decoration: line-through;
  23. }
  24. table {
  25. border-collapse: collapse;
  26. border-spacing: 0;
  27. }
  28. h1 {
  29. font-size: 2em;
  30. margin: 0.67em 0;
  31. }
  32. hr {
  33. box-sizing: content-box; /* 1 */
  34. height: 0; /* 1 */
  35. overflow: visible; /* 2 */
  36. }
  37. pre {
  38. font-family: monospace, monospace; /* 1 */
  39. font-size: 1em; /* 2 */
  40. }
  41. a {
  42. background-color: transparent;
  43. }
  44. abbr[title] {
  45. border-bottom: none; /* 1 */
  46. text-decoration: underline; /* 2 */
  47. }
  48. b,
  49. strong {
  50. font-weight: bolder;
  51. }
  52. code,
  53. kbd,
  54. samp {
  55. font-family: monospace, monospace; /* 1 */
  56. font-size: 1em; /* 2 */
  57. }
  58. small {
  59. font-size: 80%;
  60. }
  61. sub,
  62. sup {
  63. font-size: 75%;
  64. line-height: 0;
  65. position: relative;
  66. vertical-align: baseline;
  67. }
  68. sub {
  69. bottom: -0.25em;
  70. }
  71. sup {
  72. top: -0.5em;
  73. }
  74. img {
  75. border-style: none;
  76. max-width: 100%;
  77. vertical-align: middle;
  78. }
  79. button,
  80. input { /* 1 */
  81. overflow: visible;
  82. }
  83. button,
  84. select { /* 1 */
  85. text-transform: none;
  86. }
  87. button,
  88. [type="button"],
  89. [type="reset"],
  90. [type="submit"] {
  91. -webkit-appearance: button;
  92. }
  93. button::-moz-focus-inner,
  94. [type="button"]::-moz-focus-inner,
  95. [type="reset"]::-moz-focus-inner,
  96. [type="submit"]::-moz-focus-inner {
  97. border-style: none;
  98. padding: 0;
  99. }
  100. button:-moz-focusring,
  101. [type="button"]:-moz-focusring,
  102. [type="reset"]:-moz-focusring,
  103. [type="submit"]:-moz-focusring {
  104. outline: 1px dotted ButtonText;
  105. }
  106. fieldset {
  107. padding: 0.35em 0.75em 0.625em;
  108. }
  109. legend {
  110. box-sizing: border-box; /* 1 */
  111. color: inherit; /* 2 */
  112. display: table; /* 1 */
  113. max-width: 100%; /* 1 */
  114. padding: 0; /* 3 */
  115. white-space: normal; /* 1 */
  116. }
  117. progress {
  118. vertical-align: baseline;
  119. }
  120. textarea {
  121. overflow: auto;
  122. }
  123. [type="checkbox"],
  124. [type="radio"] {
  125. box-sizing: border-box; /* 1 */
  126. padding: 0; /* 2 */
  127. }
  128. [type="number"]::-webkit-inner-spin-button,
  129. [type="number"]::-webkit-outer-spin-button {
  130. height: auto;
  131. }
  132. [type="search"] {
  133. -webkit-appearance: textfield; /* 1 */
  134. outline-offset: -2px; /* 2 */
  135. }
  136. [type="search"]::-webkit-search-decoration {
  137. -webkit-appearance: none;
  138. }
  139. ::-webkit-file-upload-button {
  140. -webkit-appearance: button; /* 1 */
  141. font: inherit; /* 2 */
  142. }
  143. [hidden] {
  144. display: none;
  145. }