normalize.css 8.3 KB

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