reset.css 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. /* http://meyerweb.com/eric/tools/css/reset/
  2. v2.0-modified | 20110126
  3. License: none (public domain)
  4. */
  5. html, body, div, span, applet, object, iframe,
  6. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  7. a, abbr, acronym, address, big, cite, code,
  8. del, dfn, em, img, ins, kbd, q, s, samp,
  9. small, strike, strong, sub, sup, tt, var,
  10. b, u, i, center,
  11. dl, dt, dd, ol, ul, li,
  12. fieldset, form, label, legend,
  13. table, caption, tbody, tfoot, thead, tr, th, td,
  14. article, aside, canvas, details, embed,
  15. figure, figcaption, footer, header, hgroup,
  16. menu, nav, output, ruby, section, summary,
  17. time, mark, audio, video {
  18. margin: 0;
  19. padding: 0;
  20. border: 0;
  21. font-size: 100%;
  22. font: inherit;
  23. vertical-align: baseline;
  24. }
  25. /* make sure to set some focus styles for accessibility */
  26. :focus {
  27. outline: 0;
  28. }
  29. /* HTML5 display-role reset for older browsers */
  30. article, aside, details, figcaption, figure,
  31. footer, header, hgroup, menu, nav, section {
  32. display: block;
  33. }
  34. body {
  35. line-height: 1;
  36. }
  37. ol, ul {
  38. list-style: none;
  39. }
  40. blockquote, q {
  41. quotes: none;
  42. }
  43. blockquote:before, blockquote:after,
  44. q:before, q:after {
  45. content: '';
  46. content: none;
  47. }
  48. table {
  49. border-collapse: collapse;
  50. border-spacing: 0;
  51. }
  52. input[type=search]::-webkit-search-cancel-button,
  53. input[type=search]::-webkit-search-decoration,
  54. input[type=search]::-webkit-search-results-button,
  55. input[type=search]::-webkit-search-results-decoration {
  56. -webkit-appearance: none;
  57. -moz-appearance: none;
  58. }
  59. input[type=search] {
  60. -webkit-appearance: none;
  61. -moz-appearance: none;
  62. -webkit-box-sizing: content-box;
  63. -moz-box-sizing: content-box;
  64. box-sizing: content-box;
  65. }
  66. textarea {
  67. overflow: auto;
  68. vertical-align: top;
  69. resize: vertical;
  70. }
  71. /**
  72. * Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
  73. */
  74. audio,
  75. canvas,
  76. video {
  77. display: inline-block;
  78. *display: inline;
  79. *zoom: 1;
  80. max-width: 100%;
  81. }
  82. /**
  83. * Prevent modern browsers from displaying `audio` without controls.
  84. * Remove excess height in iOS 5 devices.
  85. */
  86. audio:not([controls]) {
  87. display: none;
  88. height: 0;
  89. }
  90. /**
  91. * Address styling not present in IE 7/8/9, Firefox 3, and Safari 4.
  92. * Known issue: no IE 6 support.
  93. */
  94. [hidden] {
  95. display: none;
  96. }
  97. /**
  98. * 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
  99. * `em` units.
  100. * 2. Prevent iOS text size adjust after orientation change, without disabling
  101. * user zoom.
  102. */
  103. html {
  104. font-size: 100%; /* 1 */
  105. -webkit-text-size-adjust: 100%; /* 2 */
  106. -ms-text-size-adjust: 100%; /* 2 */
  107. }
  108. /**
  109. * Address `outline` inconsistency between Chrome and other browsers.
  110. */
  111. a:focus {
  112. outline: thin dotted;
  113. }
  114. /**
  115. * Improve readability when focused and also mouse hovered in all browsers.
  116. */
  117. a:active,
  118. a:hover {
  119. outline: 0;
  120. }
  121. /**
  122. * 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3.
  123. * 2. Improve image quality when scaled in IE 7.
  124. */
  125. img {
  126. border: 0; /* 1 */
  127. -ms-interpolation-mode: bicubic; /* 2 */
  128. }
  129. /**
  130. * Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
  131. */
  132. figure {
  133. margin: 0;
  134. }
  135. /**
  136. * Correct margin displayed oddly in IE 6/7.
  137. */
  138. form {
  139. margin: 0;
  140. }
  141. /**
  142. * Define consistent border, margin, and padding.
  143. */
  144. fieldset {
  145. border: 1px solid #c0c0c0;
  146. margin: 0 2px;
  147. padding: 0.35em 0.625em 0.75em;
  148. }
  149. /**
  150. * 1. Correct color not being inherited in IE 6/7/8/9.
  151. * 2. Correct text not wrapping in Firefox 3.
  152. * 3. Correct alignment displayed oddly in IE 6/7.
  153. */
  154. legend {
  155. border: 0; /* 1 */
  156. padding: 0;
  157. white-space: normal; /* 2 */
  158. *margin-left: -7px; /* 3 */
  159. }
  160. /**
  161. * 1. Correct font size not being inherited in all browsers.
  162. * 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5,
  163. * and Chrome.
  164. * 3. Improve appearance and consistency in all browsers.
  165. */
  166. button,
  167. input,
  168. select,
  169. textarea {
  170. font-size: 100%; /* 1 */
  171. margin: 0; /* 2 */
  172. vertical-align: baseline; /* 3 */
  173. *vertical-align: middle; /* 3 */
  174. }
  175. /**
  176. * Address Firefox 3+ setting `line-height` on `input` using `!important` in
  177. * the UA stylesheet.
  178. */
  179. button,
  180. input {
  181. line-height: normal;
  182. }
  183. /**
  184. * Address inconsistent `text-transform` inheritance for `button` and `select`.
  185. * All other form control elements do not inherit `text-transform` values.
  186. * Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+.
  187. * Correct `select` style inheritance in Firefox 4+ and Opera.
  188. */
  189. button,
  190. select {
  191. text-transform: none;
  192. }
  193. /**
  194. * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
  195. * and `video` controls.
  196. * 2. Correct inability to style clickable `input` types in iOS.
  197. * 3. Improve usability and consistency of cursor style between image-type
  198. * `input` and others.
  199. * 4. Remove inner spacing in IE 7 without affecting normal text inputs.
  200. * Known issue: inner spacing remains in IE 6.
  201. */
  202. button,
  203. html input[type="button"], /* 1 */
  204. input[type="reset"],
  205. input[type="submit"] {
  206. -webkit-appearance: button; /* 2 */
  207. cursor: pointer; /* 3 */
  208. *overflow: visible; /* 4 */
  209. }
  210. /**
  211. * Re-set default cursor for disabled elements.
  212. */
  213. button[disabled],
  214. html input[disabled] {
  215. cursor: default;
  216. }
  217. /**
  218. * 1. Address box sizing set to content-box in IE 8/9.
  219. * 2. Remove excess padding in IE 8/9.
  220. * 3. Remove excess padding in IE 7.
  221. * Known issue: excess padding remains in IE 6.
  222. */
  223. input[type="checkbox"],
  224. input[type="radio"] {
  225. box-sizing: border-box; /* 1 */
  226. padding: 0; /* 2 */
  227. *height: 13px; /* 3 */
  228. *width: 13px; /* 3 */
  229. }
  230. /**
  231. * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
  232. * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
  233. * (include `-moz` to future-proof).
  234. */
  235. input[type="search"] {
  236. -webkit-appearance: textfield; /* 1 */
  237. -moz-box-sizing: content-box;
  238. -webkit-box-sizing: content-box; /* 2 */
  239. box-sizing: content-box;
  240. }
  241. /**
  242. * Remove inner padding and search cancel button in Safari 5 and Chrome
  243. * on OS X.
  244. */
  245. input[type="search"]::-webkit-search-cancel-button,
  246. input[type="search"]::-webkit-search-decoration {
  247. -webkit-appearance: none;
  248. }
  249. /**
  250. * Remove inner padding and border in Firefox 3+.
  251. */
  252. button::-moz-focus-inner,
  253. input::-moz-focus-inner {
  254. border: 0;
  255. padding: 0;
  256. }
  257. /**
  258. * 1. Remove default vertical scrollbar in IE 6/7/8/9.
  259. * 2. Improve readability and alignment in all browsers.
  260. */
  261. textarea {
  262. overflow: auto; /* 1 */
  263. vertical-align: top; /* 2 */
  264. }
  265. /**
  266. * Remove most spacing between table cells.
  267. */
  268. table {
  269. border-collapse: collapse;
  270. border-spacing: 0;
  271. }
  272. html,
  273. button,
  274. input,
  275. select,
  276. textarea {
  277. color: #222;
  278. }
  279. ::-moz-selection {
  280. background: #b3d4fc;
  281. text-shadow: none;
  282. }
  283. ::selection {
  284. background: #b3d4fc;
  285. text-shadow: none;
  286. }
  287. img {
  288. vertical-align: middle;
  289. }
  290. fieldset {
  291. border: 0;
  292. margin: 0;
  293. padding: 0;
  294. }
  295. textarea {
  296. resize: vertical;
  297. }
  298. .chromeframe {
  299. margin: 0.2em 0;
  300. background: #ccc;
  301. color: #000;
  302. padding: 0.2em 0;
  303. }