reset.css 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. html, body, div, span, applet, object, iframe,
  2. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  3. a, abbr, acronym, address, big, cite, code,
  4. del, dfn, em, img, ins, kbd, q, s, samp,
  5. small, strike, strong, sub, sup, tt, var,
  6. b, u, i, center,
  7. dl, dt, dd, ol, ul, li,
  8. fieldset, form, label, legend,
  9. table, caption, tbody, tfoot, thead, tr, th, td,
  10. article, aside, canvas, details, embed,
  11. figure, figcaption, footer, header, hgroup,
  12. main, menu, nav, output, ruby, section, summary,
  13. time, mark, audio, video {
  14. margin: 0;
  15. padding: 0;
  16. border: 0;
  17. font-size: 100%;
  18. font: inherit;
  19. vertical-align: baseline;
  20. }
  21. /* HTML5 display-role reset for older browsers */
  22. article, aside, details, figcaption, figure,
  23. footer, header, hgroup, main, menu, nav, section {
  24. display: block;
  25. }
  26. /* HTML5 hidden-attribute fix for newer browsers */
  27. *[hidden] {
  28. display: none;
  29. }
  30. body {
  31. line-height: 1;
  32. }
  33. ol, ul {
  34. list-style: none;
  35. }
  36. blockquote, q {
  37. quotes: none;
  38. }
  39. blockquote:before, blockquote:after,
  40. q:before, q:after {
  41. content: '';
  42. content: none;
  43. }
  44. table {
  45. border-collapse: collapse;
  46. border-spacing: 0;
  47. }
  48. /* http://www.paulirish.com/2012/box-sizing-border-box-ftw/ (2015/04/28)*/
  49. html {
  50. box-sizing: border-box;
  51. }
  52. *, *:before, *:after {
  53. box-sizing: inherit;
  54. }
  55. /* Additional resets */
  56. a {
  57. text-decoration: none;
  58. color: inherit;
  59. }
  60. button {
  61. border: none;
  62. margin: 0;
  63. padding: 0;
  64. width: auto;
  65. overflow: visible;
  66. background: transparent;
  67. color: inherit;
  68. font: inherit;
  69. text-align: inherit;
  70. outline: none;
  71. line-height: inherit;
  72. -webkit-appearance: none;
  73. }
  74. /* Fix antialiasing */
  75. *, *:before, *:after {
  76. -webkit-font-smoothing: antialiased;
  77. -moz-osx-font-smoothing: grayscale;
  78. }
  79. /* Disable user select on everything but texts */
  80. *, *:before, *:after {
  81. user-select: none;
  82. }
  83. p, h1, h2, h3, h4, h5, h6, blockquote, pre, ul, ol, li, table, tr, th, td {
  84. user-select: all;
  85. }