1
0

normalize.css 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. /* normalize.css 2012-02-07T12:37 UTC - http://github.com/necolas/normalize.css */
  2. /* =============================================================================
  3. HTML5 display definitions
  4. ========================================================================== */
  5. /*
  6. * Corrects block display not defined in IE6/7/8/9 & FF3
  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 IE6/7/8/9 & FF3
  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. */
  34. audio:not([controls]) {
  35. display: none;
  36. }
  37. /*
  38. * Addresses styling for 'hidden' attribute not present in IE7/8/9, FF3, S4
  39. * Known issue: no IE6 support
  40. */
  41. [hidden] {
  42. display: none;
  43. }
  44. /* =============================================================================
  45. Base
  46. ========================================================================== */
  47. /*
  48. * 1. Corrects text resizing oddly in IE6/7 when body font-size is set using em units
  49. * http://clagnut.com/blog/348/#c790
  50. * 2. Prevents iOS text size adjust after orientation change, without disabling user zoom
  51. * www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
  52. */
  53. html {
  54. font-size: 100%;
  55. /* 1 */
  56. -webkit-text-size-adjust: 100%;
  57. /* 2 */
  58. -ms-text-size-adjust: 100%;
  59. /* 2 */
  60. }
  61. /*
  62. * Addresses font-family inconsistency between 'textarea' and other form elements.
  63. */
  64. html,
  65. button,
  66. input,
  67. select,
  68. textarea {
  69. font-family: sans-serif;
  70. }
  71. /*
  72. * Addresses margins handled incorrectly in IE6/7
  73. */
  74. body {
  75. margin: 0;
  76. }
  77. /* =============================================================================
  78. Links
  79. ========================================================================== */
  80. /*
  81. * Addresses outline displayed oddly in Chrome
  82. */
  83. a:focus {
  84. outline: thin dotted;
  85. }
  86. /*
  87. * Improves readability when focused and also mouse hovered in all browsers
  88. * people.opera.com/patrickl/experiments/keyboard/test
  89. */
  90. a:hover,
  91. a:active {
  92. outline: 0;
  93. }
  94. /* =============================================================================
  95. Typography
  96. ========================================================================== */
  97. /*
  98. * Addresses font sizes and margins set differently in IE6/7
  99. * Addresses font sizes within 'section' and 'article' in FF4+, Chrome, S5
  100. */
  101. h1 {
  102. font-size: 2em;
  103. margin: 0.67em 0;
  104. }
  105. h2 {
  106. font-size: 1.5em;
  107. margin: 0.83em 0;
  108. }
  109. h3 {
  110. font-size: 1.17em;
  111. margin: 1em 0;
  112. }
  113. h4 {
  114. font-size: 1em;
  115. margin: 1.33em 0;
  116. }
  117. h5 {
  118. font-size: 0.83em;
  119. margin: 1.67em 0;
  120. }
  121. h6 {
  122. font-size: 0.75em;
  123. margin: 2.33em 0;
  124. }
  125. /*
  126. * Addresses styling not present in IE7/8/9, S5, Chrome
  127. */
  128. abbr[title] {
  129. border-bottom: 1px dotted;
  130. }
  131. /*
  132. * Addresses style set to 'bolder' in FF3+, S4/5, Chrome
  133. */
  134. b,
  135. strong {
  136. font-weight: bold;
  137. }
  138. blockquote {
  139. margin: 1em 40px;
  140. }
  141. /*
  142. * Addresses styling not present in S5, Chrome
  143. */
  144. dfn {
  145. font-style: italic;
  146. }
  147. /*
  148. * Addresses styling not present in IE6/7/8/9
  149. */
  150. mark {
  151. background: #ff0;
  152. color: #000;
  153. }
  154. /*
  155. * Addresses margins set differently in IE6/7
  156. */
  157. p,
  158. pre {
  159. margin: 1em 0;
  160. }
  161. /*
  162. * Corrects font family set oddly in IE6, S4/5, Chrome
  163. * en.wikipedia.org/wiki/User:Davidgothberg/Test59
  164. */
  165. pre,
  166. code,
  167. kbd,
  168. samp {
  169. font-family: monospace, serif;
  170. _font-family: 'courier new', monospace;
  171. font-size: 1em;
  172. }
  173. /*
  174. * 1. Addresses CSS quotes not supported in IE6/7
  175. * 2. Addresses quote property not supported in S4
  176. */
  177. /* 1 */
  178. q {
  179. quotes: none;
  180. }
  181. /* 2 */
  182. q:before,
  183. q:after {
  184. content: '';
  185. content: none;
  186. }
  187. small {
  188. font-size: 75%;
  189. }
  190. /*
  191. * Prevents sub and sup affecting line-height in all browsers
  192. * gist.github.com/413930
  193. */
  194. sub,
  195. sup {
  196. font-size: 75%;
  197. line-height: 0;
  198. position: relative;
  199. vertical-align: baseline;
  200. }
  201. sup {
  202. top: -0.5em;
  203. }
  204. sub {
  205. bottom: -0.25em;
  206. }
  207. /* =============================================================================
  208. Lists
  209. ========================================================================== */
  210. /*
  211. * Addresses margins set differently in IE6/7
  212. */
  213. dl,
  214. menu,
  215. ol,
  216. ul {
  217. margin: 1em 0;
  218. }
  219. dd {
  220. margin: 0 0 0 40px;
  221. }
  222. /*
  223. * Addresses paddings set differently in IE6/7
  224. */
  225. menu,
  226. ol,
  227. ul {
  228. padding: 0 0 0 40px;
  229. }
  230. /*
  231. * Corrects list images handled incorrectly in IE7
  232. */
  233. nav ul,
  234. nav ol {
  235. list-style: none;
  236. list-style-image: none;
  237. }
  238. /* =============================================================================
  239. Embedded content
  240. ========================================================================== */
  241. /*
  242. * 1. Removes border when inside 'a' element in IE6/7/8/9, FF3
  243. * 2. Improves image quality when scaled in IE7
  244. * code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/
  245. */
  246. img {
  247. border: 0;
  248. /* 1 */
  249. -ms-interpolation-mode: bicubic;
  250. /* 2 */
  251. }
  252. /*
  253. * Corrects overflow displayed oddly in IE9
  254. */
  255. svg:not(:root) {
  256. overflow: hidden;
  257. }
  258. /* =============================================================================
  259. Figures
  260. ========================================================================== */
  261. /*
  262. * Addresses margin not present in IE6/7/8/9, S5, O11
  263. */
  264. figure {
  265. margin: 0;
  266. }
  267. /* =============================================================================
  268. Forms
  269. ========================================================================== */
  270. /*
  271. * Corrects margin displayed oddly in IE6/7
  272. */
  273. form {
  274. margin: 0;
  275. }
  276. /*
  277. * Define consistent border, margin, and padding
  278. */
  279. fieldset {
  280. border: 1px solid #c0c0c0;
  281. margin: 0 2px;
  282. padding: 0.35em 0.625em 0.75em;
  283. }
  284. /*
  285. * 1. Corrects color not being inherited in IE6/7/8/9
  286. * 2. Corrects text not wrapping in FF3
  287. * 3. Corrects alignment displayed oddly in IE6/7
  288. */
  289. legend {
  290. border: 0;
  291. /* 1 */
  292. padding: 0;
  293. white-space: normal;
  294. /* 2 */
  295. *margin-left: -7px;
  296. /* 3 */
  297. }
  298. /*
  299. * 1. Corrects font size not being inherited in all browsers
  300. * 2. Addresses margins set differently in IE6/7, FF3+, S5, Chrome
  301. * 3. Improves appearance and consistency in all browsers
  302. */
  303. button,
  304. input,
  305. select,
  306. textarea {
  307. font-size: 100%;
  308. /* 1 */
  309. margin: 0;
  310. /* 2 */
  311. vertical-align: baseline;
  312. /* 3 */
  313. *vertical-align: middle;
  314. /* 3 */
  315. }
  316. /*
  317. * Addresses FF3/4 setting line-height on 'input' using !important in the UA stylesheet
  318. */
  319. button,
  320. input {
  321. line-height: normal;
  322. /* 1 */
  323. }
  324. /*
  325. * 1. Improves usability and consistency of cursor style between image-type 'input' and others
  326. * 2. Corrects inability to style clickable 'input' types in iOS
  327. * 3. Removes inner spacing in IE7 without affecting normal text inputs
  328. * Known issue: inner spacing remains in IE6
  329. */
  330. button,
  331. input[type="button"],
  332. input[type="reset"],
  333. input[type="submit"] {
  334. cursor: pointer;
  335. /* 1 */
  336. -webkit-appearance: button;
  337. /* 2 */
  338. *overflow: visible;
  339. /* 3 */
  340. }
  341. /*
  342. * Re-set default cursor for disabled elements
  343. */
  344. button[disabled],
  345. input[disabled] {
  346. cursor: default;
  347. }
  348. /*
  349. * 1. Addresses box sizing set to content-box in IE8/9
  350. * 2. Removes excess padding in IE8/9
  351. * 3. Removes excess padding in IE7
  352. Known issue: excess padding remains in IE6
  353. */
  354. input[type="checkbox"],
  355. input[type="radio"] {
  356. box-sizing: border-box;
  357. /* 1 */
  358. padding: 0;
  359. /* 2 */
  360. *height: 13px;
  361. /* 3 */
  362. *width: 13px;
  363. /* 3 */
  364. }
  365. /*
  366. * 1. Addresses appearance set to searchfield in S5, Chrome
  367. * 2. Addresses box-sizing set to border-box in S5, Chrome (include -moz to future-proof)
  368. */
  369. input[type="search"] {
  370. -webkit-appearance: textfield;
  371. /* 1 */
  372. -moz-box-sizing: content-box;
  373. -webkit-box-sizing: content-box;
  374. /* 2 */
  375. box-sizing: content-box;
  376. }
  377. /*
  378. * Removes inner padding and search cancel button in S5, Chrome on OS X
  379. */
  380. input[type="search"]::-webkit-search-decoration,
  381. input[type="search"]::-webkit-search-cancel-button {
  382. -webkit-appearance: none;
  383. }
  384. /*
  385. * Removes inner padding and border in FF3+
  386. * www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/
  387. */
  388. button::-moz-focus-inner,
  389. input::-moz-focus-inner {
  390. border: 0;
  391. padding: 0;
  392. }
  393. /*
  394. * 1. Removes default vertical scrollbar in IE6/7/8/9
  395. * 2. Improves readability and alignment in all browsers
  396. */
  397. textarea {
  398. overflow: auto;
  399. /* 1 */
  400. vertical-align: top;
  401. /* 2 */
  402. }
  403. /* =============================================================================
  404. Tables
  405. ========================================================================== */
  406. /*
  407. * Remove most spacing between table cells
  408. */
  409. table {
  410. border-collapse: collapse;
  411. border-spacing: 0;
  412. }