normalize.css 7.2 KB

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