normalize.css 8.0 KB

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