normalize.css 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
  2. /**
  3. * 1. Set default font family to sans-serif.
  4. * 2. Prevent iOS text size adjust after orientation change, without disabling
  5. * user zoom.
  6. */
  7. html {
  8. font-family: sans-serif;
  9. /* 1 */
  10. -ms-text-size-adjust: 100%;
  11. /* 2 */
  12. -webkit-text-size-adjust: 100%;
  13. /* 2 */ }
  14. /**
  15. * Remove default margin.
  16. */
  17. body {
  18. margin: 0; }
  19. /* HTML5 display definitions
  20. ========================================================================== */
  21. /**
  22. * Correct `block` display not defined for any HTML5 element in IE 8/9.
  23. * Correct `block` display not defined for `details` or `summary` in IE 10/11
  24. * and Firefox.
  25. * Correct `block` display not defined for `main` in IE 11.
  26. */
  27. article,
  28. aside,
  29. details,
  30. figcaption,
  31. figure,
  32. footer,
  33. header,
  34. hgroup,
  35. main,
  36. menu,
  37. nav,
  38. section,
  39. summary {
  40. display: block; }
  41. /**
  42. * 1. Correct `inline-block` display not defined in IE 8/9.
  43. * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
  44. */
  45. audio,
  46. canvas,
  47. progress,
  48. video {
  49. display: inline-block;
  50. /* 1 */
  51. vertical-align: baseline;
  52. /* 2 */ }
  53. /**
  54. * Prevent modern browsers from displaying `audio` without controls.
  55. * Remove excess height in iOS 5 devices.
  56. */
  57. audio:not([controls]) {
  58. display: none;
  59. height: 0; }
  60. /**
  61. * Address `[hidden]` styling not present in IE 8/9/10.
  62. * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
  63. */
  64. [hidden],
  65. template {
  66. display: none; }
  67. /* Links
  68. ========================================================================== */
  69. /**
  70. * Remove the gray background color from active links in IE 10.
  71. */
  72. a {
  73. background-color: transparent; }
  74. /**
  75. * Improve readability when focused and also mouse hovered in all browsers.
  76. */
  77. a:active,
  78. a:hover {
  79. outline: 0; }
  80. /* Text-level semantics
  81. ========================================================================== */
  82. /**
  83. * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
  84. */
  85. abbr[title] {
  86. border-bottom: 1px dotted; }
  87. /**
  88. * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
  89. */
  90. b,
  91. strong {
  92. font-weight: bold; }
  93. /**
  94. * Address styling not present in Safari and Chrome.
  95. */
  96. dfn {
  97. font-style: italic; }
  98. /**
  99. * Address variable `h1` font-size and margin within `section` and `article`
  100. * contexts in Firefox 4+, Safari, and Chrome.
  101. */
  102. h1 {
  103. font-size: 2em;
  104. margin: 0.67em 0; }
  105. /**
  106. * Address styling not present in IE 8/9.
  107. */
  108. mark {
  109. background: #ff0;
  110. color: #000; }
  111. /**
  112. * Address inconsistent and variable font size in all browsers.
  113. */
  114. small {
  115. font-size: 80%; }
  116. /**
  117. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  118. */
  119. sub,
  120. sup {
  121. font-size: 75%;
  122. line-height: 0;
  123. position: relative;
  124. vertical-align: baseline; }
  125. sup {
  126. top: -0.5em; }
  127. sub {
  128. bottom: -0.25em; }
  129. /* Embedded content
  130. ========================================================================== */
  131. /**
  132. * Remove border when inside `a` element in IE 8/9/10.
  133. */
  134. img {
  135. border: 0; }
  136. /**
  137. * Correct overflow not hidden in IE 9/10/11.
  138. */
  139. svg:not(:root) {
  140. overflow: hidden; }
  141. /* Grouping content
  142. ========================================================================== */
  143. /**
  144. * Address margin not present in IE 8/9 and Safari.
  145. */
  146. figure {
  147. margin: 1em 40px; }
  148. /**
  149. * Address differences between Firefox and other browsers.
  150. */
  151. hr {
  152. -moz-box-sizing: content-box;
  153. box-sizing: content-box;
  154. height: 0; }
  155. /**
  156. * Contain overflow in all browsers.
  157. */
  158. pre {
  159. overflow: auto; }
  160. /**
  161. * Address odd `em`-unit font size rendering in all browsers.
  162. */
  163. code,
  164. kbd,
  165. pre,
  166. samp {
  167. font-family: monospace, monospace;
  168. font-size: 1em; }
  169. /* Forms
  170. ========================================================================== */
  171. /**
  172. * Known limitation: by default, Chrome and Safari on OS X allow very limited
  173. * styling of `select`, unless a `border` property is set.
  174. */
  175. /**
  176. * 1. Correct color not being inherited.
  177. * Known issue: affects color of disabled elements.
  178. * 2. Correct font properties not being inherited.
  179. * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
  180. */
  181. button,
  182. input,
  183. optgroup,
  184. select,
  185. textarea {
  186. color: inherit;
  187. /* 1 */
  188. font: inherit;
  189. /* 2 */
  190. margin: 0;
  191. /* 3 */ }
  192. /**
  193. * Address `overflow` set to `hidden` in IE 8/9/10/11.
  194. */
  195. button {
  196. overflow: visible; }
  197. /**
  198. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  199. * All other form control elements do not inherit `text-transform` values.
  200. * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
  201. * Correct `select` style inheritance in Firefox.
  202. */
  203. button,
  204. select {
  205. text-transform: none; }
  206. /**
  207. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  208. * and `video` controls.
  209. * 2. Correct inability to style clickable `input` types in iOS.
  210. * 3. Improve usability and consistency of cursor style between image-type
  211. * `input` and others.
  212. */
  213. button,
  214. html input[type="button"],
  215. input[type="reset"],
  216. input[type="submit"] {
  217. -webkit-appearance: button;
  218. /* 2 */
  219. cursor: pointer;
  220. /* 3 */ }
  221. /**
  222. * Re-set default cursor for disabled elements.
  223. */
  224. button[disabled],
  225. html input[disabled] {
  226. cursor: default; }
  227. /**
  228. * Remove inner padding and border in Firefox 4+.
  229. */
  230. button::-moz-focus-inner,
  231. input::-moz-focus-inner {
  232. border: 0;
  233. padding: 0; }
  234. /**
  235. * Address Firefox 4+ setting `line-height` on `input` using `!important` in
  236. * the UA stylesheet.
  237. */
  238. input {
  239. line-height: normal; }
  240. /**
  241. * It's recommended that you don't attempt to style these elements.
  242. * Firefox's implementation doesn't respect box-sizing, padding, or width.
  243. *
  244. * 1. Address box sizing set to `content-box` in IE 8/9/10.
  245. * 2. Remove excess padding in IE 8/9/10.
  246. */
  247. input[type="checkbox"],
  248. input[type="radio"] {
  249. box-sizing: border-box;
  250. /* 1 */
  251. padding: 0;
  252. /* 2 */ }
  253. /**
  254. * Fix the cursor style for Chrome's increment/decrement buttons. For certain
  255. * `font-size` values of the `input`, it causes the cursor style of the
  256. * decrement button to change from `default` to `text`.
  257. */
  258. input[type="number"]::-webkit-inner-spin-button,
  259. input[type="number"]::-webkit-outer-spin-button {
  260. height: auto; }
  261. /**
  262. * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
  263. * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
  264. * (include `-moz` to future-proof).
  265. */
  266. input[type="search"] {
  267. -webkit-appearance: textfield;
  268. /* 1 */
  269. -moz-box-sizing: content-box;
  270. -webkit-box-sizing: content-box;
  271. /* 2 */
  272. box-sizing: content-box; }
  273. /**
  274. * Remove inner padding and search cancel button in Safari and Chrome on OS X.
  275. * Safari (but not Chrome) clips the cancel button when the search input has
  276. * padding (and `textfield` appearance).
  277. */
  278. input[type="search"]::-webkit-search-cancel-button,
  279. input[type="search"]::-webkit-search-decoration {
  280. -webkit-appearance: none; }
  281. /**
  282. * Define consistent border, margin, and padding.
  283. */
  284. fieldset {
  285. border: 1px solid #c0c0c0;
  286. margin: 0 2px;
  287. padding: 0.35em 0.625em 0.75em; }
  288. /**
  289. * 1. Correct `color` not being inherited in IE 8/9/10/11.
  290. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  291. */
  292. legend {
  293. border: 0;
  294. /* 1 */
  295. padding: 0;
  296. /* 2 */ }
  297. /**
  298. * Remove default vertical scrollbar in IE 8/9/10/11.
  299. */
  300. textarea {
  301. overflow: auto; }
  302. /**
  303. * Don't inherit the `font-weight` (applied by a rule above).
  304. * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
  305. */
  306. optgroup {
  307. font-weight: bold; }
  308. /* Tables
  309. ========================================================================== */
  310. /**
  311. * Remove most spacing between table cells.
  312. */
  313. table {
  314. border-collapse: collapse;
  315. border-spacing: 0; }
  316. td,
  317. th {
  318. padding: 0; }
  319. /*# sourceMappingURL=normalize.css.map */