normalize.css 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */
  2. /* Document
  3. ========================================================================== */
  4. /* add reset css */
  5. *,
  6. *:before,
  7. *:after {
  8. box-sizing: border-box;
  9. }
  10. body {
  11. -moz-osx-font-smoothing: grayscale;
  12. -webkit-font-smoothing: antialiased;
  13. text-rendering: optimizeLegibility;
  14. font-family: PingFang SC, Helvetica Neue, Helvetica, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  15. }
  16. a:focus,
  17. a:active {
  18. outline: none;
  19. }
  20. a,
  21. a:focus,
  22. a:hover {
  23. cursor: pointer;
  24. text-decoration: none;
  25. }
  26. ul {
  27. list-style: none;
  28. padding: 0;
  29. margin: 0;
  30. }
  31. p {
  32. padding: 0;
  33. margin: 0;
  34. }
  35. img {
  36. user-select: none;
  37. -webkit-user-select: none;
  38. -moz-user-select: none;
  39. -ms-user-select: none;
  40. -webkit-touch-callout: none;
  41. -webkit-user-drag: none;
  42. -moz-user-drag: none;
  43. -ms-user-drag: none;
  44. user-drag: none;
  45. }
  46. /**
  47. * 1. Correct the line height in all browsers.
  48. * 2. Prevent adjustments of font size after orientation changes in
  49. * IE on Windows Phone and in iOS.
  50. */
  51. html {
  52. line-height: 1; /* 1 */
  53. -ms-text-size-adjust: 100%; /* 2 */
  54. -webkit-text-size-adjust: 100%; /* 2 */
  55. }
  56. /* Sections
  57. ========================================================================== */
  58. /**
  59. * Remove the margin in all browsers (opinionated).
  60. */
  61. body {
  62. margin: 0;
  63. }
  64. /**
  65. * Add the correct display in IE 9-.
  66. */
  67. article,
  68. aside,
  69. footer,
  70. header,
  71. nav,
  72. section {
  73. display: block;
  74. }
  75. /**
  76. * Correct the font size and margin on `h1` elements within `section` and
  77. * `article` contexts in Chrome, Firefox, and Safari.
  78. */
  79. h1 {
  80. font-size: 2em;
  81. margin: 0.67em 0;
  82. }
  83. /* Grouping content
  84. ========================================================================== */
  85. /**
  86. * Add the correct display in IE 9-.
  87. * 1. Add the correct display in IE.
  88. */
  89. figcaption,
  90. figure,
  91. main {
  92. /* 1 */
  93. display: block;
  94. }
  95. /**
  96. * Add the correct margin in IE 8.
  97. */
  98. figure {
  99. margin: 1em 40px;
  100. }
  101. /**
  102. * 1. Add the correct box sizing in Firefox.
  103. * 2. Show the overflow in Edge and IE.
  104. */
  105. hr {
  106. box-sizing: content-box; /* 1 */
  107. height: 0; /* 1 */
  108. overflow: visible; /* 2 */
  109. }
  110. /**
  111. * 1. Correct the inheritance and scaling of font size in all browsers.
  112. * 2. Correct the odd `em` font sizing in all browsers.
  113. */
  114. pre {
  115. font-family: monospace, monospace; /* 1 */
  116. font-size: 1em; /* 2 */
  117. }
  118. /* Text-level semantics
  119. ========================================================================== */
  120. /**
  121. * 1. Remove the gray background on active links in IE 10.
  122. * 2. Remove gaps in links underline in iOS 8+ and Safari 8+.
  123. */
  124. a {
  125. background-color: transparent; /* 1 */
  126. -webkit-text-decoration-skip: objects; /* 2 */
  127. }
  128. /**
  129. * 1. Remove the bottom border in Chrome 57- and Firefox 39-.
  130. * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
  131. */
  132. abbr[title] {
  133. border-bottom: none; /* 1 */
  134. text-decoration: underline; /* 2 */
  135. text-decoration: underline dotted; /* 2 */
  136. }
  137. /**
  138. * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
  139. */
  140. b,
  141. strong {
  142. font-weight: inherit;
  143. }
  144. /**
  145. * Add the correct font weight in Chrome, Edge, and Safari.
  146. */
  147. b,
  148. strong {
  149. font-weight: bolder;
  150. }
  151. /**
  152. * 1. Correct the inheritance and scaling of font size in all browsers.
  153. * 2. Correct the odd `em` font sizing in all browsers.
  154. */
  155. code,
  156. kbd,
  157. samp {
  158. font-family: monospace, monospace; /* 1 */
  159. font-size: 1em; /* 2 */
  160. }
  161. /**
  162. * Add the correct font style in Android 4.3-.
  163. */
  164. dfn {
  165. font-style: italic;
  166. }
  167. /**
  168. * Add the correct background and color in IE 9-.
  169. */
  170. mark {
  171. background-color: #ff0;
  172. color: #000;
  173. }
  174. /**
  175. * Add the correct font size in all browsers.
  176. */
  177. small {
  178. font-size: 80%;
  179. }
  180. /**
  181. * Prevent `sub` and `sup` elements from affecting the line height in
  182. * all browsers.
  183. */
  184. sub,
  185. sup {
  186. font-size: 75%;
  187. line-height: 0;
  188. position: relative;
  189. vertical-align: baseline;
  190. }
  191. sub {
  192. bottom: -0.25em;
  193. }
  194. sup {
  195. top: -0.5em;
  196. }
  197. /* Embedded content
  198. ========================================================================== */
  199. /**
  200. * Add the correct display in IE 9-.
  201. */
  202. audio,
  203. video {
  204. display: inline-block;
  205. }
  206. /**
  207. * Add the correct display in iOS 4-7.
  208. */
  209. audio:not([controls]) {
  210. display: none;
  211. height: 0;
  212. }
  213. /**
  214. * Remove the border on images inside links in IE 10-.
  215. */
  216. img {
  217. border-style: none;
  218. }
  219. /**
  220. * Hide the overflow in IE.
  221. */
  222. svg:not(:root) {
  223. overflow: hidden;
  224. }
  225. /* Forms
  226. ========================================================================== */
  227. /**
  228. * 1. Change the font styles in all browsers (opinionated).
  229. * 2. Remove the margin in Firefox and Safari.
  230. */
  231. button,
  232. input,
  233. optgroup,
  234. select,
  235. textarea {
  236. font-family: sans-serif; /* 1 */
  237. font-size: 100%; /* 1 */
  238. line-height: 1.15; /* 1 */
  239. margin: 0; /* 2 */
  240. }
  241. /**
  242. * Show the overflow in IE.
  243. * 1. Show the overflow in Edge.
  244. */
  245. button,
  246. input {
  247. /* 1 */
  248. overflow: visible;
  249. }
  250. /**
  251. * Remove the inheritance of text transform in Edge, Firefox, and IE.
  252. * 1. Remove the inheritance of text transform in Firefox.
  253. */
  254. button,
  255. select {
  256. /* 1 */
  257. text-transform: none;
  258. }
  259. /**
  260. * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
  261. * controls in Android 4.
  262. * 2. Correct the inability to style clickable types in iOS and Safari.
  263. */
  264. button,
  265. html [type="button"], /* 1 */
  266. [type="reset"],
  267. [type="submit"] {
  268. -webkit-appearance: button; /* 2 */
  269. }
  270. /**
  271. * Remove the inner border and padding in Firefox.
  272. */
  273. button::-moz-focus-inner,
  274. [type="button"]::-moz-focus-inner,
  275. [type="reset"]::-moz-focus-inner,
  276. [type="submit"]::-moz-focus-inner {
  277. border-style: none;
  278. padding: 0;
  279. }
  280. /**
  281. * Restore the focus styles unset by the previous rule.
  282. */
  283. button:-moz-focusring,
  284. [type="button"]:-moz-focusring,
  285. [type="reset"]:-moz-focusring,
  286. [type="submit"]:-moz-focusring {
  287. outline: 1px dotted ButtonText;
  288. }
  289. /**
  290. * Correct the padding in Firefox.
  291. */
  292. fieldset {
  293. padding: 0.35em 0.75em 0.625em;
  294. }
  295. /**
  296. * 1. Correct the text wrapping in Edge and IE.
  297. * 2. Correct the color inheritance from `fieldset` elements in IE.
  298. * 3. Remove the padding so developers are not caught out when they zero out
  299. * `fieldset` elements in all browsers.
  300. */
  301. legend {
  302. box-sizing: border-box; /* 1 */
  303. color: inherit; /* 2 */
  304. display: table; /* 1 */
  305. max-width: 100%; /* 1 */
  306. padding: 0; /* 3 */
  307. white-space: normal; /* 1 */
  308. }
  309. /**
  310. * 1. Add the correct display in IE 9-.
  311. * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera.
  312. */
  313. progress {
  314. display: inline-block; /* 1 */
  315. vertical-align: baseline; /* 2 */
  316. }
  317. /**
  318. * Remove the default vertical scrollbar in IE.
  319. */
  320. textarea {
  321. overflow: auto;
  322. }
  323. /**
  324. * 1. Add the correct box sizing in IE 10-.
  325. * 2. Remove the padding in IE 10-.
  326. */
  327. [type="checkbox"],
  328. [type="radio"] {
  329. box-sizing: border-box; /* 1 */
  330. padding: 0; /* 2 */
  331. }
  332. /**
  333. * Correct the cursor style of increment and decrement buttons in Chrome.
  334. */
  335. [type="number"]::-webkit-inner-spin-button,
  336. [type="number"]::-webkit-outer-spin-button {
  337. height: auto;
  338. }
  339. /**
  340. * 1. Correct the odd appearance in Chrome and Safari.
  341. * 2. Correct the outline style in Safari.
  342. */
  343. [type="search"] {
  344. -webkit-appearance: textfield; /* 1 */
  345. outline-offset: -2px; /* 2 */
  346. }
  347. /**
  348. * Remove the inner padding and cancel buttons in Chrome and Safari on macOS.
  349. */
  350. [type="search"]::-webkit-search-cancel-button,
  351. [type="search"]::-webkit-search-decoration {
  352. -webkit-appearance: none;
  353. }
  354. /**
  355. * 1. Correct the inability to style clickable types in iOS and Safari.
  356. * 2. Change font properties to `inherit` in Safari.
  357. */
  358. ::-webkit-file-upload-button {
  359. -webkit-appearance: button; /* 1 */
  360. font: inherit; /* 2 */
  361. }
  362. /* Interactive
  363. ========================================================================== */
  364. /*
  365. * Add the correct display in IE 9-.
  366. * 1. Add the correct display in Edge, IE, and Firefox.
  367. */
  368. details, /* 1 */
  369. menu {
  370. display: block;
  371. }
  372. /*
  373. * Add the correct display in all browsers.
  374. */
  375. summary {
  376. display: list-item;
  377. }
  378. /* Scripting
  379. ========================================================================== */
  380. /**
  381. * Add the correct display in IE 9-.
  382. */
  383. canvas {
  384. display: inline-block;
  385. }
  386. /**
  387. * Add the correct display in IE.
  388. */
  389. template {
  390. display: none;
  391. }
  392. /* Hidden
  393. ========================================================================== */
  394. /**
  395. * Add the correct display in IE 10-.
  396. */
  397. [hidden] {
  398. display: none;
  399. }