You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

374 lines
6.7 KiB

11 years ago
  1. /*! normalize.css v2.0.1 | MIT License | git.io/normalize */
  2. /* ==========================================================================
  3. HTML5 display definitions
  4. ========================================================================== */
  5. /*
  6. * Corrects `block` display not defined in IE 8/9.
  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 8/9.
  23. */
  24. audio,
  25. canvas,
  26. video {
  27. display: inline-block;
  28. }
  29. /*
  30. * Prevents modern browsers from displaying `audio` without controls.
  31. * Remove excess height in iOS 5 devices.
  32. */
  33. audio:not([controls]) {
  34. display: none;
  35. height: 0;
  36. }
  37. /*
  38. * Addresses styling for `hidden` attribute not present in IE 8/9.
  39. */
  40. [hidden] {
  41. display: none;
  42. }
  43. /* ==========================================================================
  44. Base
  45. ========================================================================== */
  46. /*
  47. * 1. Sets default font family to sans-serif.
  48. * 2. Prevents iOS text size adjust after orientation change, without disabling
  49. * user zoom.
  50. */
  51. html {
  52. font-family: sans-serif; /* 1 */
  53. -webkit-text-size-adjust: 100%; /* 2 */
  54. -ms-text-size-adjust: 100%; /* 2 */
  55. }
  56. /*
  57. * Removes default margin.
  58. */
  59. body {
  60. margin: 0;
  61. }
  62. /* ==========================================================================
  63. Links
  64. ========================================================================== */
  65. /*
  66. * Addresses `outline` inconsistency between Chrome and other browsers.
  67. */
  68. a:focus {
  69. outline: thin dotted;
  70. }
  71. /*
  72. * Improves readability when focused and also mouse hovered in all browsers.
  73. */
  74. a:active,
  75. a:hover {
  76. outline: 0;
  77. }
  78. /* ==========================================================================
  79. Typography
  80. ========================================================================== */
  81. /*
  82. * Addresses `h1` font sizes within `section` and `article` in Firefox 4+,
  83. * Safari 5, and Chrome.
  84. */
  85. h1 {
  86. font-size: 2em;
  87. }
  88. /*
  89. * Addresses styling not present in IE 8/9, Safari 5, and Chrome.
  90. */
  91. abbr[title] {
  92. border-bottom: 1px dotted;
  93. }
  94. /*
  95. * Addresses style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
  96. */
  97. b,
  98. strong {
  99. font-weight: bold;
  100. }
  101. /*
  102. * Addresses styling not present in Safari 5 and Chrome.
  103. */
  104. dfn {
  105. font-style: italic;
  106. }
  107. /*
  108. * Addresses styling not present in IE 8/9.
  109. */
  110. mark {
  111. background: #ff0;
  112. color: #000;
  113. }
  114. /*
  115. * Corrects font family set oddly in Safari 5 and Chrome.
  116. */
  117. code,
  118. kbd,
  119. pre,
  120. samp {
  121. font-family: monospace, serif;
  122. font-size: 1em;
  123. }
  124. /*
  125. * Improves readability of pre-formatted text in all browsers.
  126. */
  127. pre {
  128. white-space: pre;
  129. white-space: pre-wrap;
  130. word-wrap: break-word;
  131. }
  132. /*
  133. * Sets consistent quote types.
  134. */
  135. q {
  136. quotes: "\201C" "\201D" "\2018" "\2019";
  137. }
  138. /*
  139. * Addresses inconsistent and variable font size in all browsers.
  140. */
  141. small {
  142. font-size: 80%;
  143. }
  144. /*
  145. * Prevents `sub` and `sup` affecting `line-height` in all browsers.
  146. */
  147. sub,
  148. sup {
  149. font-size: 75%;
  150. line-height: 0;
  151. position: relative;
  152. vertical-align: baseline;
  153. }
  154. sup {
  155. top: -0.5em;
  156. }
  157. sub {
  158. bottom: -0.25em;
  159. }
  160. /* ==========================================================================
  161. Embedded content
  162. ========================================================================== */
  163. /*
  164. * Removes border when inside `a` element in IE 8/9.
  165. */
  166. img {
  167. border: 0;
  168. }
  169. /*
  170. * Corrects overflow displayed oddly in IE 9.
  171. */
  172. svg:not(:root) {
  173. overflow: hidden;
  174. }
  175. /* ==========================================================================
  176. Figures
  177. ========================================================================== */
  178. /*
  179. * Addresses margin not present in IE 8/9 and Safari 5.
  180. */
  181. figure {
  182. margin: 0;
  183. }
  184. /* ==========================================================================
  185. Forms
  186. ========================================================================== */
  187. /*
  188. * Define consistent border, margin, and padding.
  189. */
  190. fieldset {
  191. border: 1px solid #c0c0c0;
  192. margin: 0 2px;
  193. padding: 0.35em 0.625em 0.75em;
  194. }
  195. /*
  196. * 1. Corrects color not being inherited in IE 8/9.
  197. * 2. Remove padding so people aren't caught out if they zero out fieldsets.
  198. */
  199. legend {
  200. border: 0; /* 1 */
  201. padding: 0; /* 2 */
  202. }
  203. /*
  204. * 1. Corrects font family not being inherited in all browsers.
  205. * 2. Corrects font size not being inherited in all browsers.
  206. * 3. Addresses margins set differently in Firefox 4+, Safari 5, and Chrome
  207. */
  208. button,
  209. input,
  210. select,
  211. textarea {
  212. font-family: inherit; /* 1 */
  213. font-size: 100%; /* 2 */
  214. margin: 0; /* 3 */
  215. }
  216. /*
  217. * Addresses Firefox 4+ setting `line-height` on `input` using `!important` in
  218. * the UA stylesheet.
  219. */
  220. button,
  221. input {
  222. line-height: normal;
  223. }
  224. /*
  225. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  226. * and `video` controls.
  227. * 2. Corrects inability to style clickable `input` types in iOS.
  228. * 3. Improves usability and consistency of cursor style between image-type
  229. * `input` and others.
  230. */
  231. button,
  232. html input[type="button"], /* 1 */
  233. input[type="reset"],
  234. input[type="submit"] {
  235. -webkit-appearance: button; /* 2 */
  236. cursor: pointer; /* 3 */
  237. }
  238. /*
  239. * Re-set default cursor for disabled elements.
  240. */
  241. button[disabled],
  242. input[disabled] {
  243. cursor: default;
  244. }
  245. /*
  246. * 1. Addresses box sizing set to `content-box` in IE 8/9.
  247. * 2. Removes excess padding in IE 8/9.
  248. */
  249. input[type="checkbox"],
  250. input[type="radio"] {
  251. box-sizing: border-box; /* 1 */
  252. padding: 0; /* 2 */
  253. }
  254. /*
  255. * 1. Addresses `appearance` set to `searchfield` in Safari 5 and Chrome.
  256. * 2. Addresses `box-sizing` set to `border-box` in Safari 5 and Chrome
  257. * (include `-moz` to future-proof).
  258. */
  259. input[type="search"] {
  260. -webkit-appearance: textfield; /* 1 */
  261. -moz-box-sizing: content-box;
  262. -webkit-box-sizing: content-box; /* 2 */
  263. box-sizing: content-box;
  264. }
  265. /*
  266. * Removes inner padding and search cancel button in Safari 5 and Chrome
  267. * on OS X.
  268. */
  269. input[type="search"]::-webkit-search-cancel-button,
  270. input[type="search"]::-webkit-search-decoration {
  271. -webkit-appearance: none;
  272. }
  273. /*
  274. * Removes inner padding and border in Firefox 4+.
  275. */
  276. button::-moz-focus-inner,
  277. input::-moz-focus-inner {
  278. border: 0;
  279. padding: 0;
  280. }
  281. /*
  282. * 1. Removes default vertical scrollbar in IE 8/9.
  283. * 2. Improves readability and alignment in all browsers.
  284. */
  285. textarea {
  286. overflow: auto; /* 1 */
  287. vertical-align: top; /* 2 */
  288. }
  289. /* ==========================================================================
  290. Tables
  291. ========================================================================== */
  292. /*
  293. * Remove most spacing between table cells.
  294. */
  295. table {
  296. border-collapse: collapse;
  297. border-spacing: 0;
  298. }