_reset.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. *, *:before, *:after
  2. {
  3. -webkit-box-sizing: border-box;
  4. -moz-box-sizing: border-box;
  5. box-sizing: border-box;
  6. -webkit-tap-highlight-color: rgba( 0, 0, 0, 0 );
  7. -webkit-overflow-scrolling: touch;
  8. }
  9. html, body,
  10. h1, h2, h3, h4, h5, h6,
  11. p, blockquote, pre, a, abbr, acronym, address, big, cite, code,
  12. del, dfn, em, font, img, ins, kbd, q, s,
  13. samp, small, strike, strong, sup, sub, tt, var, b, u, i, center,
  14. ul, ol, li, dl, dt, dd,
  15. table, tr, th, td, thead, tbody, tfoot, caption,
  16. form, fieldset, legend, input, button, textarea, select, label,
  17. applet, object, iframe, audio, video, canvas,
  18. article, aside, canvas, details, figcaption, figure,
  19. footer, header, hgroup, menu, nav, section, summary
  20. {
  21. font-size: 100%;
  22. font-family: inherit;
  23. font-weight: inherit;
  24. font-style: inherit;
  25. line-height: inherit;
  26. vertical-align: baseline;
  27. border: 0;
  28. outline: 0;
  29. padding: 0;
  30. margin: 0;
  31. }
  32. html
  33. {
  34. font-size: 100%;
  35. font-size-adjust: auto;
  36. -webkit-text-size-adjust: 100%;
  37. -moz-text-size-adjust: 100%;
  38. -ms-text-size-adjust: 100%;
  39. -o-text-size-adjust: 100%;
  40. text-size-adjust: 100%;
  41. }
  42. body
  43. {
  44. font-family: Helvetica, Arial, sans-serif;
  45. line-height: 1;
  46. color: #000;
  47. background-color: #111
  48. }
  49. article, aside, canvas,
  50. details, figcaption,
  51. figure, footer, header,
  52. hgroup, menu, nav,
  53. section, summary { display: block; }
  54. audio, canvas, video { display: inline-block; *display: inline; *zoom: 1; }
  55. audio:not( [controls] ) { display: none; }
  56. canvas { -ms-touch-action: double-tap-zoom; touch-action: double-tap-zoom; }
  57. [hidden] { display: none; }
  58. a { text-decoration: underline; color: #000; }
  59. a:hover { text-decoration: none; }
  60. a:active { background: none; } /* removes grey background in IE>=10 */
  61. small { font-size: 75%; }
  62. big { font-size: 125%; }
  63. em { font-style: italic; }
  64. strong { font-weight: bold; }
  65. ins { text-decoration: none; }
  66. del { text-decoration: line-through; }
  67. sup, sub { font-size: 75%; line-height: 0; }
  68. sup { vertical-align: super; }
  69. sub { vertical-align: sub; }
  70. pre { display: block; overflow: auto; }
  71. code { font-family: 'Courier New', Courier, monospace; }
  72. ul, ol { list-style: none; }
  73. table { table-layout: auto; border-collapse: separate; border-spacing: 0; empty-cells: show; }
  74. img { vertical-align: middle; -ms-interpolation-mode: bicubic; }
  75. svg:not(:root) { overflow: hidden; }
  76. blockquote, q { quotes: none; }
  77. blockquote:before,
  78. blockquote:after,
  79. q:before,
  80. q:after { content: ''; content: none; }
  81. input, textarea, select, button { vertical-align: baseline; *vertical-align: middle; -webkit-border-radius: 0; }
  82. input, button { line-height: normal; *overflow: visible; }
  83. table input, table button { *overflow: auto; }
  84. input[type='submit'], input[type='reset'], input[type='button'], button { cursor: pointer; -webkit-appearance: button; }
  85. textarea { overflow: auto; vertical-align: top; }
  86. input, textarea { -webkit-appearance: none; }
  87. input[type='radio'] { -webkit-appearance: radio; }
  88. input[type='checkbox'] { -webkit-appearance: checkbox; }
  89. input[type='search']::-webkit-search-decoration,
  90. input[type='search']::-webkit-search-cancel-button,
  91. input[type='search']::-webkit-search-results-button,
  92. input[type='search']::-webkit-search-results-decoration,
  93. input[type='number']::-webkit-inner-spin-button,
  94. input[type='number']::-webkit-outer-spin-button { display: none; }
  95. input[type='password']::-ms-reveal { display: none; }
  96. input::-ms-clear { display: none; }
  97. .clearfix:after { visibility: hidden; display: block; font-size: 0; content: ' '; clear: both; height: 0; }
  98. * html .clearfix { zoom: 1; }
  99. *:first-child+html .clearfix { zoom: 1; }
  100. .cleaner { height: 0; line-height: 0; clear: both; }