reset.css 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  1. body,
  2. h1,
  3. h2,
  4. h3,
  5. h4,
  6. h5,
  7. h6,
  8. hr,
  9. p,
  10. blockquote,
  11. dl,
  12. dt,
  13. dd,
  14. ul,
  15. ol,
  16. li,
  17. pre,
  18. form,
  19. fieldset,
  20. legend,
  21. button,
  22. input,
  23. textarea,
  24. th,
  25. td,
  26. select {
  27. margin: 0;
  28. padding: 0;
  29. }
  30. body,
  31. button,
  32. input,
  33. select,
  34. textarea {
  35. font-size: 0.3rem;
  36. line-height: 1.5;
  37. }
  38. h1,
  39. h2,
  40. h3,
  41. h4,
  42. h5,
  43. h6 {
  44. font-size: 100%;
  45. }
  46. address,
  47. cite,
  48. dfn,
  49. em,
  50. var {
  51. font-style: normal;
  52. }
  53. code,
  54. kbd,
  55. pre,
  56. samp {
  57. font-family: couriernew, courier, monospace;
  58. }
  59. small {
  60. font-size: 12px;
  61. }
  62. ul,
  63. ol {
  64. list-style: none;
  65. }
  66. sup {
  67. vertical-align: text-top;
  68. }
  69. sub {
  70. vertical-align: text-bottom;
  71. }
  72. legend {
  73. color: #000;
  74. }
  75. fieldset,
  76. img {
  77. border: 0;
  78. }
  79. button,
  80. input,
  81. select,
  82. textarea {
  83. font-size: 100%;
  84. }
  85. table {
  86. border-collapse: collapse;
  87. border-spacing: 0;
  88. }
  89. /* HTML5 display-role reset for older browsers */
  90. article,
  91. aside,
  92. details,
  93. figcaption,
  94. figure,
  95. footer,
  96. header,
  97. menu,
  98. nav,
  99. section {
  100. display: block;
  101. }
  102. input,
  103. input[type="search"],
  104. button,
  105. select,
  106. option,
  107. textarea,
  108. a {
  109. outline: none;
  110. border: 0;
  111. -webkit-appearance: none;
  112. border-radius: 0;
  113. background: none;
  114. -webkit-box-sizing: border-box;
  115. -moz-box-sizing: border-box;
  116. box-sizing: border-box;
  117. }
  118. /* custom */
  119. a {
  120. text-decoration: none;
  121. -webkit-backface-visibility: hidden;
  122. color: #333;
  123. }
  124. body,
  125. input,
  126. textarea {
  127. -webkit-text-size-adjust: none;
  128. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  129. font-family: "PingFang SC", "STHeitiSC-Light", "Helvetica-Light", arial,
  130. sans-serif, "Droid Sans Fallback";
  131. color: #333;
  132. }
  133. div,
  134. section,
  135. header,
  136. footer {
  137. -webkit-box-sizing: border-box;
  138. -moz-box-sizing: border-box;
  139. box-sizing: border-box;
  140. }
  141. input {
  142. line-height: normal;
  143. -webkit-box-sizing: border-box;
  144. -moz-box-sizing: border-box;
  145. box-sizing: border-box;
  146. }
  147. .fl {
  148. float: left;
  149. }
  150. .fr {
  151. float: right;
  152. }
  153. .clear {
  154. clear: both;
  155. height: 0;
  156. line-height: 0;
  157. font-size: 0;
  158. }
  159. .clearfix:after {
  160. content: ".";
  161. display: block;
  162. height: 0;
  163. visibility: hidden;
  164. clear: both;
  165. overflow: hidden;
  166. }
  167. .flex {
  168. display: -webkit-box;
  169. display: -webkit-flex;
  170. display: -moz-box;
  171. display: -ms-flexbox;
  172. display: flex;
  173. }
  174. .con-cell {
  175. display: table-cell;
  176. height: 100%;
  177. vertical-align: middle;
  178. }
  179. .old-price {
  180. text-decoration: line-through;
  181. }
  182. .icon {
  183. width: 1em;
  184. height: 1em;
  185. vertical-align: -0.15em;
  186. fill: currentColor;
  187. overflow: hidden;
  188. }
  189. @font-face {
  190. font-family: "GuildfordProBook 5";
  191. src: url("GuildfordProBook 5.otf");
  192. }
  193. [v-cloak] {
  194. display: none !important;
  195. }
  196. .iconfont {
  197. font-size: 0.36rem;
  198. }
  199. /* 一像素边框 */
  200. @media (-webkit-min-device-pixel-ratio: 1.5), (min-device-pixel-ratio: 1.5) {
  201. .border-1px::after {
  202. -webkit-transform: scaleY(0.7);
  203. -moz-transform: scaleY(0.7);
  204. -o-transform: scaleY(0.7);
  205. -ms-transform: scaleY(0.7);
  206. transform: scaleY(0.7);
  207. }
  208. .border-1px::before {
  209. -webkit-transform: scaleY(0.7);
  210. -moz-transform: scaleY(0.7);
  211. -o-transform: scaleY(0.7);
  212. -ms-transform: scaleY(0.7);
  213. transform: scaleY(0.7);
  214. }
  215. }
  216. @media (-webkit-min-device-pixel-ratio: 2), (min-device-pixel-ratio: 2) {
  217. .border-1px::after {
  218. -webkit-transform: scaleY(0.5);
  219. -moz-transform: scaleY(0.5);
  220. -o-transform: scaleY(0.5);
  221. -ms-transform: scaleY(0.5);
  222. transform: scaleY(0.5);
  223. }
  224. .border-1px::before {
  225. -webkit-transform: scaleY(0.5);
  226. -moz-transform: scaleY(0.5);
  227. -o-transform: scaleY(0.5);
  228. -ms-transform: scaleY(0.5);
  229. transform: scaleY(0.5);
  230. }
  231. }
  232. @media (-webkit-min-device-pixel-ratio: 3), (min-device-pixel-ratio: 3) {
  233. .border-1px::after {
  234. -webkit-transform: scaleY(0.33);
  235. -moz-transform: scaleY(0.33);
  236. -o-transform: scaleY(0.33);
  237. -ms-transform: scaleY(0.33);
  238. transform: scaleY(0.33);
  239. }
  240. .border-1px::before {
  241. -webkit-transform: scaleY(0.33);
  242. -moz-transform: scaleY(0.33);
  243. -o-transform: scaleY(0.33);
  244. -ms-transform: scaleY(0.33);
  245. transform: scaleY(0.33);
  246. }
  247. }
  248. .line1 {
  249. overflow: hidden;
  250. -o-text-overflow: ellipsis;
  251. text-overflow: ellipsis;
  252. white-space: nowrap;
  253. }
  254. .line2 {
  255. word-break: break-all;
  256. display: -webkit-box;
  257. -webkit-line-clamp: 2;
  258. -webkit-box-orient: vertical;
  259. overflow: hidden;
  260. }
  261. .mask {
  262. background-color: rgba(0, 0, 0, 0.6);
  263. position: fixed;
  264. top: 0;
  265. left: 0;
  266. bottom: 0;
  267. right: 0;
  268. z-index: 55;
  269. }
  270. .yd-cityselect-nav .yd-cityselect-nav-active,
  271. .yd-cityselect-item-box .yd-cityselect-item-active {
  272. color: #191C6E !important;
  273. }
  274. .yd-cityselect-nav-active:after {
  275. background-color: #191C6E !important;
  276. }