normalize.css 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504
  1. /*! normalize.css v1.0.1 | MIT License | git.io/normalize */
  2. /* ==========================================================================
  3. HTML5 display definitions
  4. ========================================================================== */
  5. /*
  6. * Corrects `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. nav,
  17. section,
  18. summary {
  19. display: block;
  20. }
  21. /*
  22. * Corrects `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
  23. */
  24. audio,
  25. canvas,
  26. video {
  27. display: inline-block;
  28. *display: inline;
  29. *zoom: 1;
  30. }
  31. /*
  32. * Prevents modern browsers from displaying `audio` without controls.
  33. * Remove excess height in iOS 5 devices.
  34. */
  35. audio:not([controls]) {
  36. display: none;
  37. height: 0;
  38. }
  39. /*
  40. * Addresses styling for `hidden` attribute not present in IE 7/8/9, Firefox 3,
  41. * and Safari 4.
  42. * Known issue: no IE 6 support.
  43. */
  44. [hidden] {
  45. display: none;
  46. }
  47. /* ==========================================================================
  48. Base
  49. ========================================================================== */
  50. /*
  51. * 1. Corrects text resizing oddly in IE 6/7 when body `font-size` is set using
  52. * `em` units.
  53. * 2. Prevents 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. * Addresses `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. * Addresses margins handled incorrectly in IE 6/7.
  74. */
  75. body {
  76. margin: 0;
  77. }
  78. /* ==========================================================================
  79. Links
  80. ========================================================================== */
  81. /*
  82. * Addresses `outline` inconsistency between Chrome and other browsers.
  83. */
  84. a:focus {
  85. outline: thin dotted;
  86. }
  87. /*
  88. * Improves 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. * Addresses font sizes and margins set differently in IE 6/7.
  99. * Addresses 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.75em;
  124. margin: 2.33em 0;
  125. }
  126. /*
  127. * Addresses styling not present in IE 7/8/9, Safari 5, and Chrome.
  128. */
  129. abbr[title] {
  130. border-bottom: 1px dotted;
  131. }
  132. /*
  133. * Addresses 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. * Addresses styling not present in Safari 5 and Chrome.
  144. */
  145. dfn {
  146. font-style: italic;
  147. }
  148. /*
  149. * Addresses styling not present in IE 6/7/8/9.
  150. */
  151. mark {
  152. background: #ff0;
  153. color: #000;
  154. }
  155. /*
  156. * Addresses margins set differently in IE 6/7.
  157. */
  158. p,
  159. pre {
  160. margin: 1em 0;
  161. }
  162. /*
  163. * Corrects font family set oddly in IE 6, Safari 4/5, and Chrome.
  164. */
  165. code,
  166. kbd,
  167. pre,
  168. samp {
  169. font-family: monospace, serif;
  170. _font-family: 'courier new', monospace;
  171. font-size: 1em;
  172. }
  173. /*
  174. * Improves readability of pre-formatted text in all browsers.
  175. */
  176. pre {
  177. white-space: pre;
  178. white-space: pre-wrap;
  179. word-wrap: break-word;
  180. }
  181. /*
  182. * Addresses CSS quotes not supported in IE 6/7.
  183. */
  184. q {
  185. quotes: none;
  186. }
  187. /*
  188. * Addresses `quotes` property not supported in Safari 4.
  189. */
  190. q:before,
  191. q:after {
  192. content: '';
  193. content: none;
  194. }
  195. /*
  196. * Addresses inconsistent and variable font size in all browsers.
  197. */
  198. small {
  199. font-size: 80%;
  200. }
  201. /*
  202. * Prevents `sub` and `sup` affecting `line-height` in all browsers.
  203. */
  204. sub,
  205. sup {
  206. font-size: 75%;
  207. line-height: 0;
  208. position: relative;
  209. vertical-align: baseline;
  210. }
  211. sup {
  212. top: -0.5em;
  213. }
  214. sub {
  215. bottom: -0.25em;
  216. }
  217. /* ==========================================================================
  218. Lists
  219. ========================================================================== */
  220. /*
  221. * Addresses margins set differently in IE 6/7.
  222. */
  223. dl,
  224. menu,
  225. ol,
  226. ul {
  227. margin: 1em 0;
  228. }
  229. dd {
  230. margin: 0 0 0 40px;
  231. }
  232. /*
  233. * Addresses paddings set differently in IE 6/7.
  234. */
  235. menu,
  236. ol,
  237. ul {
  238. padding: 0 0 0 40px;
  239. }
  240. /*
  241. * Corrects list images handled incorrectly in IE 7.
  242. */
  243. nav ul,
  244. nav ol {
  245. list-style: none;
  246. list-style-image: none;
  247. }
  248. /* ==========================================================================
  249. Embedded content
  250. ========================================================================== */
  251. /*
  252. * 1. Removes border when inside `a` element in IE 6/7/8/9 and Firefox 3.
  253. * 2. Improves image quality when scaled in IE 7.
  254. */
  255. img {
  256. border: 0; /* 1 */
  257. -ms-interpolation-mode: bicubic; /* 2 */
  258. }
  259. /*
  260. * Corrects overflow displayed oddly in IE 9.
  261. */
  262. svg:not(:root) {
  263. overflow: hidden;
  264. }
  265. /* ==========================================================================
  266. Figures
  267. ========================================================================== */
  268. /*
  269. * Addresses margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
  270. */
  271. figure {
  272. margin: 0;
  273. }
  274. /* ==========================================================================
  275. Forms
  276. ========================================================================== */
  277. /*
  278. * Corrects margin displayed oddly in IE 6/7.
  279. */
  280. form {
  281. margin: 0;
  282. }
  283. /*
  284. * Define consistent border, margin, and padding.
  285. */
  286. fieldset {
  287. border: 1px solid #c0c0c0;
  288. margin: 0 2px;
  289. padding: 0.35em 0.625em 0.75em;
  290. }
  291. /*
  292. * 1. Corrects color not being inherited in IE 6/7/8/9.
  293. * 2. Corrects text not wrapping in Firefox 3.
  294. * 3. Corrects alignment displayed oddly in IE 6/7.
  295. */
  296. legend {
  297. border: 0; /* 1 */
  298. padding: 0;
  299. white-space: normal; /* 2 */
  300. *margin-left: -7px; /* 3 */
  301. }
  302. /*
  303. * 1. Corrects font size not being inherited in all browsers.
  304. * 2. Addresses margins set differently in IE 6/7, Firefox 3+, Safari 5,
  305. * and Chrome.
  306. * 3. Improves appearance and consistency in all browsers.
  307. */
  308. button,
  309. input,
  310. select,
  311. textarea {
  312. font-size: 100%; /* 1 */
  313. margin: 0; /* 2 */
  314. vertical-align: baseline; /* 3 */
  315. *vertical-align: middle; /* 3 */
  316. }
  317. /*
  318. * Addresses Firefox 3+ setting `line-height` on `input` using `!important` in
  319. * the UA stylesheet.
  320. */
  321. button,
  322. input {
  323. line-height: normal;
  324. }
  325. /*
  326. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  327. * and `video` controls.
  328. * 2. Corrects inability to style clickable `input` types in iOS.
  329. * 3. Improves usability and consistency of cursor style between image-type
  330. * `input` and others.
  331. * 4. Removes inner spacing in IE 7 without affecting normal text inputs.
  332. * Known issue: inner spacing remains in IE 6.
  333. */
  334. button,
  335. html input[type="button"], /* 1 */
  336. input[type="reset"],
  337. input[type="submit"] {
  338. -webkit-appearance: button; /* 2 */
  339. cursor: pointer; /* 3 */
  340. *overflow: visible; /* 4 */
  341. }
  342. /*
  343. * Re-set default cursor for disabled elements.
  344. */
  345. button[disabled],
  346. input[disabled] {
  347. cursor: default;
  348. }
  349. /*
  350. * 1. Addresses box sizing set to content-box in IE 8/9.
  351. * 2. Removes excess padding in IE 8/9.
  352. * 3. Removes excess padding in IE 7.
  353. * Known issue: excess padding remains in IE 6.
  354. */
  355. input[type="checkbox"],
  356. input[type="radio"] {
  357. box-sizing: border-box; /* 1 */
  358. padding: 0; /* 2 */
  359. *height: 13px; /* 3 */
  360. *width: 13px; /* 3 */
  361. }
  362. /*
  363. * 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome.
  364. * 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome
  365. * (include `-moz` to future-proof).
  366. */
  367. input[type="search"] {
  368. -webkit-appearance: textfield; /* 1 */
  369. -moz-box-sizing: content-box;
  370. -webkit-box-sizing: content-box; /* 2 */
  371. box-sizing: content-box;
  372. }
  373. /*
  374. * Removes inner padding and search cancel button in Safari 5 and Chrome
  375. * on OS X.
  376. */
  377. input[type="search"]::-webkit-search-cancel-button,
  378. input[type="search"]::-webkit-search-decoration {
  379. -webkit-appearance: none;
  380. }
  381. /*
  382. * Removes inner padding and border in Firefox 3+.
  383. */
  384. button::-moz-focus-inner,
  385. input::-moz-focus-inner {
  386. border: 0;
  387. padding: 0;
  388. }
  389. /*
  390. * 1. Removes default vertical scrollbar in IE 6/7/8/9.
  391. * 2. Improves readability and alignment in all browsers.
  392. */
  393. textarea {
  394. overflow: auto; /* 1 */
  395. vertical-align: top; /* 2 */
  396. }
  397. /* ==========================================================================
  398. Tables
  399. ========================================================================== */
  400. /*
  401. * Remove most spacing between table cells.
  402. */
  403. table {
  404. border-collapse: collapse;
  405. border-spacing: 0;
  406. }