reset.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. /* =Reset
  2. -----------------------------------------------------------------------------*/
  3. html, body, div, span, object, iframe,
  4. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  5. a, abbr, acronym, address, big, cite, code,
  6. del, dfn, em, img, ins, kbd, q, s, samp,
  7. small, strike, strong, sub, sup, tt, var,
  8. b, u, i,
  9. dl, dt, dd, ol, ul, li,
  10. fieldset, form, label, legend,
  11. table, caption, tbody, tfoot, thead, tr, th, td,
  12. article, aside, canvas, details, embed,
  13. figure, figcaption, footer, header, hgroup,
  14. menu, nav, output, section, summary,
  15. time, mark, audio, video {
  16. margin: 0;
  17. padding: 0;
  18. border: 0;
  19. vertical-align: baseline;
  20. box-sizing: border-box;
  21. }
  22. html, div, article, section, main, footer, header, form, fieldset, pre, code, p,
  23. input { box-sizing: border-box; }
  24. a:active,
  25. a:hover {
  26. outline: 0;
  27. }
  28. audio:not([controls]) {
  29. display: none;
  30. height: 0;
  31. }
  32. blockquote,
  33. q {
  34. quotes: none;
  35. }
  36. blockquote p:before,
  37. blockquote p:after,
  38. q:before,
  39. q:after {
  40. content: '';
  41. content: none;
  42. }
  43. table {
  44. border-collapse: collapse;
  45. border-spacing: 0;
  46. }
  47. caption,
  48. th,
  49. td {
  50. text-align: left;
  51. vertical-align: top;
  52. }
  53. thead th,
  54. thead td {
  55. font-weight: bold;
  56. vertical-align: bottom;
  57. }
  58. a img,
  59. th img,
  60. td img {
  61. vertical-align: top;
  62. }
  63. button,
  64. input,
  65. select,
  66. textarea {
  67. margin: 0;
  68. }
  69. textarea {
  70. overflow: auto;
  71. vertical-align: top;
  72. resize: vertical;
  73. }
  74. button {
  75. width: auto;
  76. overflow: visible;
  77. }
  78. input[type="reset"],
  79. input[type="submit"],
  80. input[type="file"],
  81. input[type="radio"],
  82. input[type="checkbox"],
  83. select,
  84. button,
  85. a {
  86. cursor: pointer;
  87. }
  88. button:active,
  89. button:focus {
  90. outline: none;
  91. }
  92. input::-moz-focus-inner,
  93. button::-moz-focus-inner {
  94. border: 0;
  95. padding: 0;
  96. }
  97. input[type="radio"],
  98. input[type="checkbox"] {
  99. font-size: 110%;
  100. position: relative;
  101. margin-right: 3px;
  102. padding: 0;
  103. }
  104. input[type="search"] {
  105. -webkit-appearance: textfield;
  106. }
  107. input[type="search"]::-webkit-search-decoration,
  108. input[type="search"]::-webkit-search-cancel-button {
  109. -webkit-appearance: none;
  110. }
  111. img,
  112. video,
  113. audio,
  114. embed,
  115. object {
  116. max-width: 100%;
  117. }
  118. img,
  119. video,
  120. embed,
  121. object {
  122. height: auto;
  123. }
  124. embed,
  125. object {
  126. height: 100%;
  127. }
  128. img {
  129. vertical-align: middle;
  130. -ms-interpolation-mode: bicubic;
  131. }