normalize.css 7.1 KB

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