normalize.css 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424
  1. /*! normalize.css v4.0.0 | 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. * Remove the gray background on active links in IE 10.
  72. */
  73. a {
  74. background-color: transparent;
  75. }
  76. /**
  77. * Remove the outline on focused links when they are also active or hovered
  78. * in all browsers (opinionated).
  79. */
  80. a:active,
  81. a:hover {
  82. outline-width: 0;
  83. }
  84. /* Text-level semantics
  85. ========================================================================== */
  86. /**
  87. * 1. Remove the bottom border in Firefox 39-.
  88. * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
  89. */
  90. abbr[title] {
  91. border-bottom: none; /* 1 */
  92. text-decoration: underline; /* 2 */
  93. text-decoration: underline dotted; /* 2 */
  94. }
  95. /**
  96. * Prevent the duplicate application of `bolder` by the next rule in Safari 6.
  97. */
  98. b,
  99. strong {
  100. font-weight: inherit;
  101. }
  102. /**
  103. * Add the correct font weight in Chrome, Edge, and Safari.
  104. */
  105. b,
  106. strong {
  107. font-weight: bolder;
  108. }
  109. /**
  110. * Add the correct font style in Android 4.3-.
  111. */
  112. dfn {
  113. font-style: italic;
  114. }
  115. /**
  116. * Correct the font size and margin on `h1` elements within `section` and
  117. * `article` contexts in Chrome, Firefox, and Safari.
  118. */
  119. h1 {
  120. font-size: 2em;
  121. margin: 0.67em 0;
  122. }
  123. /**
  124. * Add the correct background and color in IE 9-.
  125. */
  126. mark {
  127. background-color: #ff0;
  128. color: #000;
  129. }
  130. /**
  131. * Add the correct font size in all browsers.
  132. */
  133. small {
  134. font-size: 80%;
  135. }
  136. /**
  137. * Prevent `sub` and `sup` elements from affecting the line height in
  138. * all browsers.
  139. */
  140. sub,
  141. sup {
  142. font-size: 75%;
  143. line-height: 0;
  144. position: relative;
  145. vertical-align: baseline;
  146. }
  147. sub {
  148. bottom: -0.25em;
  149. }
  150. sup {
  151. top: -0.5em;
  152. }
  153. /* Embedded content
  154. ========================================================================== */
  155. /**
  156. * Remove the border on images inside links in IE 10-.
  157. */
  158. img {
  159. border-style: none;
  160. }
  161. /**
  162. * Hide the overflow in IE.
  163. */
  164. svg:not(:root) {
  165. overflow: hidden;
  166. }
  167. /* Grouping content
  168. ========================================================================== */
  169. /**
  170. * 1. Correct the inheritance and scaling of font size in all browsers.
  171. * 2. Correct the odd `em` font sizing in all browsers.
  172. */
  173. code,
  174. kbd,
  175. pre,
  176. samp {
  177. font-family: monospace, monospace; /* 1 */
  178. font-size: 1em; /* 2 */
  179. }
  180. /**
  181. * Add the correct margin in IE 8.
  182. */
  183. figure {
  184. margin: 1em 40px;
  185. }
  186. /**
  187. * 1. Add the correct box sizing in Firefox.
  188. * 2. Show the overflow in Edge and IE.
  189. */
  190. hr {
  191. box-sizing: content-box; /* 1 */
  192. height: 0; /* 1 */
  193. overflow: visible; /* 2 */
  194. }
  195. /* Forms
  196. ========================================================================== */
  197. /**
  198. * Change font properties to `inherit` in all browsers (opinionated).
  199. */
  200. button,
  201. input,
  202. select,
  203. textarea {
  204. font: inherit;
  205. }
  206. /**
  207. * Restore the font weight unset by the previous rule.
  208. */
  209. optgroup {
  210. font-weight: bold;
  211. }
  212. /**
  213. * Show the overflow in IE.
  214. * 1. Show the overflow in Edge.
  215. * 2. Show the overflow in Edge, Firefox, and IE.
  216. */
  217. button,
  218. input, /* 1 */
  219. select { /* 2 */
  220. overflow: visible;
  221. }
  222. /**
  223. * Remove the margin in Safari.
  224. * 1. Remove the margin in Firefox and Safari.
  225. */
  226. button,
  227. input,
  228. select,
  229. textarea { /* 1 */
  230. margin: 0;
  231. }
  232. /**
  233. * Remove the inheritence of text transform in Edge, Firefox, and IE.
  234. * 1. Remove the inheritence of text transform in Firefox.
  235. */
  236. button,
  237. select { /* 1 */
  238. text-transform: none;
  239. }
  240. /**
  241. * Change the cursor in all browsers (opinionated).
  242. */
  243. button,
  244. [type="button"],
  245. [type="reset"],
  246. [type="submit"] {
  247. cursor: pointer;
  248. }
  249. /**
  250. * Restore the default cursor to disabled elements unset by the previous rule.
  251. */
  252. [disabled] {
  253. cursor: default;
  254. }
  255. /**
  256. * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video`
  257. * controls in Android 4.
  258. * 2. Correct the inability to style clickable types in iOS.
  259. */
  260. button,
  261. html [type="button"], /* 1 */
  262. [type="reset"],
  263. [type="submit"] {
  264. -webkit-appearance: button; /* 2 */
  265. }
  266. /**
  267. * Remove the inner border and padding in Firefox.
  268. */
  269. button::-moz-focus-inner,
  270. input::-moz-focus-inner {
  271. border: 0;
  272. padding: 0;
  273. }
  274. /**
  275. * Restore the focus styles unset by the previous rule.
  276. */
  277. button:-moz-focusring,
  278. input:-moz-focusring {
  279. outline: 1px dotted ButtonText;
  280. }
  281. /**
  282. * Change the border, margin, and padding in all browsers (opinionated).
  283. */
  284. fieldset {
  285. border: 1px solid #c0c0c0;
  286. margin: 0 2px;
  287. padding: 0.35em 0.625em 0.75em;
  288. }
  289. /**
  290. * 1. Correct the text wrapping in Edge and IE.
  291. * 2. Correct the color inheritance from `fieldset` elements in IE.
  292. * 3. Remove the padding so developers are not caught out when they zero out
  293. * `fieldset` elements in all browsers.
  294. */
  295. legend {
  296. box-sizing: border-box; /* 1 */
  297. color: inherit; /* 2 */
  298. display: table; /* 1 */
  299. max-width: 100%; /* 1 */
  300. padding: 0; /* 3 */
  301. white-space: normal; /* 1 */
  302. }
  303. /**
  304. * Remove the default vertical scrollbar in IE.
  305. */
  306. textarea {
  307. overflow: auto;
  308. }
  309. /**
  310. * 1. Add the correct box sizing in IE 10-.
  311. * 2. Remove the padding in IE 10-.
  312. */
  313. [type="checkbox"],
  314. [type="radio"] {
  315. box-sizing: border-box; /* 1 */
  316. padding: 0; /* 2 */
  317. }
  318. /**
  319. * Correct the cursor style of increment and decrement buttons in Chrome.
  320. */
  321. [type="number"]::-webkit-inner-spin-button,
  322. [type="number"]::-webkit-outer-spin-button {
  323. height: auto;
  324. }
  325. /**
  326. * Correct the odd appearance of search inputs in Chrome and Safari.
  327. */
  328. [type="search"] {
  329. -webkit-appearance: textfield;
  330. }
  331. /**
  332. * Remove the inner padding and cancel buttons in Chrome on OS X and
  333. * Safari on OS X.
  334. */
  335. [type="search"]::-webkit-search-cancel-button,
  336. [type="search"]::-webkit-search-decoration {
  337. -webkit-appearance: none;
  338. }