reset.css 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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:.3rem; line-height: 1.5; }
  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,input,textarea{ -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,footer{-webkit-box-sizing:border-box; box-sizing:border-box;}
  22. input{line-height: normal; box-sizing:border-box;}
  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 {
  28. display: -webkit-box;
  29. display: -moz-box;
  30. display: -webkit-flex;
  31. display: -ms-flexbox;
  32. display: box;
  33. display: flex;
  34. }
  35. .con-cell{ display: table-cell; height: 100%; vertical-align: middle; }
  36. .old-price{text-decoration: line-through;}
  37. .icon {
  38. width: 1em; height: 1em;
  39. vertical-align: -0.15em;
  40. fill: currentColor;
  41. overflow: hidden;
  42. }
  43. @font-face {
  44. font-family: 'GuildfordProBook 5';
  45. src:url('GuildfordProBook 5.otf')
  46. }
  47. [v-cloak] {
  48. display: none !important;
  49. }
  50. .iconfont{
  51. font-size: .36rem;
  52. }
  53. /* 一像素边框 */
  54. @media (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5) {
  55. .border-1px::after {
  56. -webkit-transform: scaleY(0.7);
  57. -moz-transform: scaleY(0.7);
  58. -o-transform: scaleY(0.7);
  59. -ms-transform: scaleY(0.7);
  60. transform: scaleY(0.7);
  61. }
  62. .border-1px::before {
  63. -webkit-transform: scaleY(0.7);
  64. -moz-transform: scaleY(0.7);
  65. -o-transform: scaleY(0.7);
  66. -ms-transform: scaleY(0.7);
  67. transform: scaleY(0.7);
  68. }
  69. }
  70. @media (-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2) {
  71. .border-1px::after {
  72. -webkit-transform: scaleY(0.5);
  73. -moz-transform: scaleY(0.5);
  74. -o-transform: scaleY(0.5);
  75. -ms-transform: scaleY(0.5);
  76. transform: scaleY(0.5);
  77. }
  78. .border-1px::before {
  79. -webkit-transform: scaleY(0.5);
  80. -moz-transform: scaleY(0.5);
  81. -o-transform: scaleY(0.5);
  82. -ms-transform: scaleY(0.5);
  83. transform: scaleY(0.5);
  84. }
  85. }
  86. @media (-webkit-min-device-pixel-ratio: 3), (min-device-pixel-ratio: 3) {
  87. .border-1px::after {
  88. -webkit-transform: scaleY(0.33);
  89. -moz-transform: scaleY(0.33);
  90. -o-transform: scaleY(0.33);
  91. -ms-transform: scaleY(0.33);
  92. transform: scaleY(0.33);
  93. }
  94. .border-1px::before {
  95. -webkit-transform: scaleY(0.33);
  96. -moz-transform: scaleY(0.33);
  97. -o-transform: scaleY(0.33);
  98. -ms-transform: scaleY(0.33);
  99. transform: scaleY(0.33);
  100. }
  101. }
  102. .line1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  103. .line2{word-break:break-all;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
  104. .mask{background-color:rgba(0,0,0,0.4);position:fixed;top:0;left:0;bottom:0;right:0;z-index:55;}
  105. .yd-cityselect-nav .yd-cityselect-nav-active,
  106. .yd-cityselect-item-box .yd-cityselect-item-active {
  107. color: #2c8eff !important;
  108. }
  109. .yd-cityselect-nav-active:after {
  110. background-color: #2c8eff !important;
  111. }