normalize.css 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528
  1. /*! normalize.css v1.1.0 | MIT License | git.io/normalize */
  2. /* ==========================================================================
  3. HTML5 display definitions
  4. ========================================================================== */
  5. /**
  6. * Correct `block` display not defined in IE 6/7/8/9 and Firefox 3.
  7. */
  8. article,
  9. aside,
  10. details,
  11. figcaption,
  12. figure,
  13. footer,
  14. header,
  15. hgroup,
  16. main,
  17. nav,
  18. section,
  19. summary {
  20. display: block;
  21. }
  22. /**
  23. * Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
  24. */
  25. audio,
  26. canvas,
  27. video {
  28. display: inline-block;
  29. *display: inline;
  30. *zoom: 1;
  31. }
  32. /**
  33. * Prevent modern browsers from displaying `audio` without controls.
  34. * Remove excess height in iOS 5 devices.
  35. */
  36. audio:not([controls]) {
  37. display: none;
  38. height: 0;
  39. }
  40. /**
  41. * Address styling not present in IE 7/8/9, Firefox 3, and Safari 4.
  42. * Known issue: no IE 6 support.
  43. */
  44. [hidden] {
  45. display: none;
  46. }
  47. /* ==========================================================================
  48. Base
  49. ========================================================================== */
  50. /**
  51. * 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
  52. * `em` units.
  53. * 2. Prevent iOS text size adjust after orientation change, without disabling
  54. * user zoom.
  55. */
  56. html {
  57. font-size: 100%; /* 1 */
  58. -webkit-text-size-adjust: 100%; /* 2 */
  59. -ms-text-size-adjust: 100%; /* 2 */
  60. }
  61. /**
  62. * Address `font-family` inconsistency between `textarea` and other form
  63. * elements.
  64. */
  65. html,
  66. button,
  67. input,
  68. select,
  69. textarea {
  70. font-family: sans-serif;
  71. outline: none;
  72. }
  73. /**
  74. * Address margins handled incorrectly in IE 6/7.
  75. */
  76. body {
  77. margin: 0;
  78. }
  79. /* ==========================================================================
  80. Links
  81. ========================================================================== */
  82. /**
  83. * Address `outline` inconsistency between Chrome and other browsers.
  84. */
  85. a:focus {
  86. outline: thin dotted;
  87. }
  88. /**
  89. * Improve readability when focused and also mouse hovered in all browsers.
  90. */
  91. a:active,
  92. a:hover {
  93. outline: 0;
  94. }
  95. /* ==========================================================================
  96. Typography
  97. ========================================================================== */
  98. /**
  99. * Address font sizes and margins set differently in IE 6/7.
  100. * Address font sizes within `section` and `article` in Firefox 4+, Safari 5,
  101. * and Chrome.
  102. */
  103. h1 {
  104. font-size: 2em;
  105. margin: 0.67em 0;
  106. }
  107. h2 {
  108. font-size: 1.5em;
  109. margin: 0.83em 0;
  110. }
  111. h3 {
  112. font-size: 1.17em;
  113. margin: 1em 0;
  114. }
  115. h4 {
  116. font-size: 1em;
  117. margin: 1.33em 0;
  118. }
  119. h5 {
  120. font-size: 0.83em;
  121. margin: 1.67em 0;
  122. }
  123. h6 {
  124. font-size: 0.67em;
  125. margin: 2.33em 0;
  126. }
  127. /**
  128. * Address styling not present in IE 7/8/9, Safari 5, and Chrome.
  129. */
  130. abbr[title] {
  131. border-bottom: 1px dotted;
  132. }
  133. /**
  134. * Address style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome.
  135. */
  136. b,
  137. strong {
  138. font-weight: bold;
  139. }
  140. blockquote {
  141. margin: 1em 40px;
  142. }
  143. /**
  144. * Address styling not present in Safari 5 and Chrome.
  145. */
  146. dfn {
  147. font-style: italic;
  148. }
  149. /**
  150. * Address differences between Firefox and other browsers.
  151. * Known issue: no IE 6/7 normalization.
  152. */
  153. hr {
  154. -moz-box-sizing: content-box;
  155. box-sizing: content-box;
  156. height: 0;
  157. }
  158. /**
  159. * Address styling not present in IE 6/7/8/9.
  160. */
  161. mark {
  162. background: #ff0;
  163. color: #000;
  164. }
  165. /**
  166. * Address margins set differently in IE 6/7.
  167. */
  168. p,
  169. pre {
  170. margin: 1em 0;
  171. }
  172. /**
  173. * Correct font family set oddly in IE 6, Safari 4/5, and Chrome.
  174. */
  175. code,
  176. kbd,
  177. pre,
  178. samp {
  179. font-family: monospace, serif;
  180. _font-family: 'courier new', monospace;
  181. font-size: 1em;
  182. }
  183. /**
  184. * Improve readability of pre-formatted text in all browsers.
  185. */
  186. pre {
  187. white-space: pre;
  188. white-space: pre-wrap;
  189. word-wrap: break-word;
  190. }
  191. /**
  192. * Address CSS quotes not supported in IE 6/7.
  193. */
  194. q {
  195. quotes: none;
  196. }
  197. /**
  198. * Address `quotes` property not supported in Safari 4.
  199. */
  200. q:before,
  201. q:after {
  202. content: '';
  203. content: none;
  204. }
  205. /**
  206. * Address inconsistent and variable font size in all browsers.
  207. */
  208. small {
  209. font-size: 80%;
  210. }
  211. /**
  212. * Prevent `sub` and `sup` affecting `line-height` in all browsers.
  213. */
  214. sub,
  215. sup {
  216. font-size: 75%;
  217. line-height: 0;
  218. position: relative;
  219. vertical-align: baseline;
  220. }
  221. sup {
  222. top: -0.5em;
  223. }
  224. sub {
  225. bottom: -0.25em;
  226. }
  227. /* ==========================================================================
  228. Lists
  229. ========================================================================== */
  230. /**
  231. * Address margins set differently in IE 6/7.
  232. */
  233. dl,
  234. menu,
  235. ol,
  236. ul {
  237. margin: 1em 0;
  238. }
  239. dd {
  240. margin: 0 0 0 40px;
  241. }
  242. /**
  243. * Address paddings set differently in IE 6/7.
  244. */
  245. menu,
  246. ol,
  247. ul {
  248. padding: 0 0 0 40px;
  249. }
  250. /**
  251. * Correct list images handled incorrectly in IE 7.
  252. */
  253. nav ul,
  254. nav ol {
  255. list-style: none;
  256. list-style-image: none;
  257. }
  258. /* ==========================================================================
  259. Embedded content
  260. ========================================================================== */
  261. /**
  262. * 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3.
  263. * 2. Improve image quality when scaled in IE 7.
  264. */
  265. img {
  266. border: 0; /* 1 */
  267. -ms-interpolation-mode: bicubic; /* 2 */
  268. }
  269. /**
  270. * Correct overflow displayed oddly in IE 9.
  271. */
  272. svg:not(:root) {
  273. overflow: hidden;
  274. }
  275. /* ==========================================================================
  276. Figures
  277. ========================================================================== */
  278. /**
  279. * Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
  280. */
  281. figure {
  282. margin: 0;
  283. }
  284. /* ==========================================================================
  285. Forms
  286. ========================================================================== */
  287. /**
  288. * Correct margin displayed oddly in IE 6/7.
  289. */
  290. form {
  291. margin: 0;
  292. }
  293. /**
  294. * Define consistent border, margin, and padding.
  295. */
  296. fieldset {
  297. border: 1px solid #c0c0c0;
  298. margin: 0 2px;
  299. padding: 0.35em 0.625em 0.75em;
  300. }
  301. /**
  302. * 1. Correct color not being inherited in IE 6/7/8/9.
  303. * 2. Correct text not wrapping in Firefox 3.
  304. * 3. Correct alignment displayed oddly in IE 6/7.
  305. */
  306. legend {
  307. border: 0; /* 1 */
  308. padding: 0;
  309. white-space: normal; /* 2 */
  310. *margin-left: -7px; /* 3 */
  311. }
  312. /**
  313. * 1. Correct font size not being inherited in all browsers.
  314. * 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5,
  315. * and Chrome.
  316. * 3. Improve appearance and consistency in all browsers.
  317. */
  318. button,
  319. input,
  320. select,
  321. textarea {
  322. font-size: 100%; /* 1 */
  323. margin: 0; /* 2 */
  324. vertical-align: baseline; /* 3 */
  325. *vertical-align: middle; /* 3 */
  326. }
  327. /**
  328. * Address Firefox 3+ setting `line-height` on `input` using `!important` in
  329. * the UA stylesheet.
  330. */
  331. button,
  332. input {
  333. line-height: normal;
  334. }
  335. /**
  336. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  337. * All other form control elements do not inherit `text-transform` values.
  338. * Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+.
  339. * Correct `select` style inheritance in Firefox 4+ and Opera.
  340. */
  341. button,
  342. select {
  343. text-transform: none;
  344. }
  345. /**
  346. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  347. * and `video` controls.
  348. * 2. Correct inability to style clickable `input` types in iOS.
  349. * 3. Improve usability and consistency of cursor style between image-type
  350. * `input` and others.
  351. * 4. Remove inner spacing in IE 7 without affecting normal text inputs.
  352. * Known issue: inner spacing remains in IE 6.
  353. */
  354. button,
  355. html input[type="button"], /* 1 */
  356. input[type="reset"],
  357. input[type="submit"] {
  358. -webkit-appearance: button; /* 2 */
  359. cursor: pointer; /* 3 */
  360. *overflow: visible; /* 4 */
  361. }
  362. /**
  363. * Re-set default cursor for disabled elements.
  364. */
  365. button[disabled],
  366. html input[disabled] {
  367. cursor: default;
  368. }
  369. /**
  370. * 1. Address box sizing set to content-box in IE 8/9.
  371. * 2. Remove excess padding in IE 8/9.
  372. * 3. Remove excess padding in IE 7.
  373. * Known issue: excess padding remains in IE 6.
  374. */
  375. input[type="checkbox"],
  376. input[type="radio"] {
  377. box-sizing: border-box; /* 1 */
  378. padding: 0; /* 2 */
  379. *height: 13px; /* 3 */
  380. *width: 13px; /* 3 */
  381. }
  382. /**
  383. * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
  384. * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
  385. * (include `-moz` to future-proof).
  386. */
  387. input[type="search"] {
  388. -webkit-appearance: textfield; /* 1 */
  389. -moz-box-sizing: content-box;
  390. -webkit-box-sizing: content-box; /* 2 */
  391. box-sizing: content-box;
  392. }
  393. /**
  394. * Remove inner padding and search cancel button in Safari 5 and Chrome
  395. * on OS X.
  396. */
  397. input[type="search"]::-webkit-search-cancel-button,
  398. input[type="search"]::-webkit-search-decoration {
  399. -webkit-appearance: none;
  400. }
  401. /**
  402. * Remove inner padding and border in Firefox 3+.
  403. */
  404. button::-moz-focus-inner,
  405. input::-moz-focus-inner {
  406. border: 0;
  407. padding: 0;
  408. }
  409. /**
  410. * 1. Remove default vertical scrollbar in IE 6/7/8/9.
  411. * 2. Improve readability and alignment in all browsers.
  412. */
  413. textarea {
  414. overflow: auto; /* 1 */
  415. vertical-align: top; /* 2 */
  416. }
  417. /* ==========================================================================
  418. Tables
  419. ========================================================================== */
  420. /**
  421. * Remove most spacing between table cells.
  422. */
  423. table {
  424. border-collapse: collapse;
  425. border-spacing: 0;
  426. }