base.css 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. /**
  2. * Eric Meyer's Reset CSS v2.0 (http://meyerweb.com/eric/tools/css/reset/)
  3. * http://cssreset.com
  4. */
  5. html, body, iframe,
  6. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  7. a, abbr, address, big, cite, code,
  8. del, dfn, em, img, ins, q, s, samp,
  9. small, strike, strong, sub, sup,
  10. b, u, i, center,
  11. dl, dt, dd, ol, ul, li,
  12. fieldset, form, label, legend,
  13. table, caption, tbody, tfoot, thead, tr, th, td,
  14. article, aside, details, embed,
  15. figure, figcaption, footer, header, hgroup,
  16. menu, nav, output, ruby, section, summary,
  17. time, mark, audio, video {
  18. margin: 0;
  19. padding: 0;
  20. border: 0;
  21. vertical-align: baseline;
  22. }
  23. /* HTML5 display-role reset for older browsers */
  24. article, aside, details, figcaption, figure,
  25. footer, header, hgroup, menu, nav, section {
  26. display: block;
  27. }
  28. *, *::before, *::after {
  29. box-sizing: border-box;
  30. }
  31. ul {
  32. list-style: none;
  33. }
  34. table {
  35. border-collapse: collapse;
  36. border-spacing: 0;
  37. }
  38. a{
  39. text-decoration: none;
  40. color:inherit;
  41. }
  42. input, textarea, button, a, select, div{
  43. -webkit-tap-highlight-color: rgba(255,255,255,0);
  44. }
  45. html{
  46. font-family: sans-serif;
  47. -webkit-text-size-adjust:100%;/*-webkit-user-select:none;*/
  48. }
  49. a,img,label {
  50. -webkit-tap-highlight-color:rgba(255,255,255,0);
  51. }
  52. button:focus, input:focus{
  53. outline:none;
  54. }
  55. input,
  56. input[type="checkbox"],
  57. input[type="radio"],
  58. input[type="search"],
  59. textarea {
  60. box-sizing: border-box;
  61. }
  62. input[type="text"],
  63. input[type="tel"],
  64. input[type="number"] {
  65. -webkit-appearance: none;
  66. -webkit-box-shadow: none;
  67. box-shadow:none
  68. }
  69. input[type="search"]::-webkit-search-cancel-button,
  70. input[type="search"]::-webkit-search-decoration {
  71. -webkit-appearance: none;
  72. }
  73. input::-webkit-input-placeholder {
  74. line-height: .4rem;
  75. }
  76. button:focus{
  77. outline:none;
  78. }
  79. .clearfix::after{
  80. content: "\0020";
  81. display: block;
  82. height: 0;
  83. clear: both;
  84. visibility: hidden;
  85. }
  86. .clearfix {
  87. *zoom: 1;
  88. }