reset.css 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td,select { margin:0; padding:0; }
  2. body, button, input, select, textarea {font-size:.24rem; line-height: 1; }
  3. h1, h2, h3, h4, h5, h6{ font-size:100%; }
  4. address, cite, dfn, em, var { font-style:normal; }
  5. code, kbd, pre, samp { font-family:couriernew, courier, monospace; }
  6. small{ font-size:12px; }
  7. ul, ol { list-style:none; }
  8. sup { vertical-align:text-top; }
  9. sub{ vertical-align:text-bottom; }
  10. legend { color:#000; }
  11. fieldset, img { border:0; }
  12. button, input, select, textarea { font-size:100%; }
  13. table { border-collapse:collapse; border-spacing:0; }
  14. /* HTML5 display-role reset for older browsers */
  15. article, aside, details, figcaption, figure,
  16. footer, header, menu, nav, section { display: block; }
  17. input,input[type="search"],button,select,option,textarea,a{ outline:none; border:0; -webkit-appearance:none;border-radius: 0; background:none;-webkit-box-sizing:border-box;box-sizing:border-box;}
  18. /* custom */
  19. a { text-decoration: none; -webkit-backface-visibility: hidden; color:#333; }
  20. body { -webkit-text-size-adjust: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); font-family: 'PingFang SC', 'STHeitiSC-Light', 'Helvetica-Light', arial, sans-serif, 'Droid Sans Fallback'; color:#333;}
  21. div,section,header{-webkit-box-sizing:border-box; box-sizing:border-box;}
  22. input{line-height: normal;}
  23. .fl{ float:left; }
  24. .fr{ float:right; }
  25. .clear{ clear:both; height: 0; line-height: 0; font-size: 0; }
  26. .clearfix:after{ content:"."; display:block; height:0; visibility:hidden; clear:both; overflow: hidden; }
  27. .flex{ display: -webkit-box;
  28. display: -moz-box;
  29. display: -ms-flexbox;
  30. display: -webkit-flex;
  31. display: flex;}
  32. .con-cell{ display: table-cell; height: 100%; vertical-align: middle; }
  33. .old-price{text-decoration: line-through;}
  34. [v-cloak] {
  35. display: none !important;
  36. }
  37. /* 一像素边框 */
  38. @media (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5) {
  39. .border-1px::after {
  40. -webkit-transform: scaleY(0.7);
  41. -moz-transform: scaleY(0.7);
  42. -o-transform: scaleY(0.7);
  43. -ms-transform: scaleY(0.7);
  44. transform: scaleY(0.7);
  45. }
  46. .border-top::before {
  47. -webkit-transform: scaleY(0.7);
  48. -moz-transform: scaleY(0.7);
  49. -o-transform: scaleY(0.7);
  50. -ms-transform: scaleY(0.7);
  51. transform: scaleY(0.7);
  52. }
  53. }
  54. @media (-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2) {
  55. .border-1px::after {
  56. -webkit-transform: scaleY(0.5);
  57. -moz-transform: scaleY(0.5);
  58. -o-transform: scaleY(0.5);
  59. -ms-transform: scaleY(0.5);
  60. transform: scaleY(0.5);
  61. }
  62. .border-top::before {
  63. -webkit-transform: scaleY(0.5);
  64. -moz-transform: scaleY(0.5);
  65. -o-transform: scaleY(0.5);
  66. -ms-transform: scaleY(0.5);
  67. transform: scaleY(0.5);
  68. }
  69. }
  70. @media (-webkit-min-device-pixel-ratio: 3), (min-device-pixel-ratio: 3) {
  71. .border-1px::after {
  72. -webkit-transform: scaleY(0.33);
  73. -moz-transform: scaleY(0.33);
  74. -o-transform: scaleY(0.33);
  75. -ms-transform: scaleY(0.33);
  76. transform: scaleY(0.33);
  77. }
  78. .border-top::before {
  79. -webkit-transform: scaleY(0.33);
  80. -moz-transform: scaleY(0.33);
  81. -o-transform: scaleY(0.33);
  82. -ms-transform: scaleY(0.33);
  83. transform: scaleY(0.33);
  84. }
  85. }