normalize.css 7.9 KB

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