normalize.css 9.3 KB

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