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.

433 lines
7.8 KiB

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