style.css 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. /*
  2. style.css contains a reset, font normalization and some base styles.
  3. credit is left where credit is due.
  4. additionally, much inspiration was taken from these projects:
  5. yui.yahooapis.com/2.8.1/build/base/base.css
  6. camendesign.com/design/
  7. praegnanz.de/weblog/htmlcssjs-kickstart
  8. */
  9. /*
  10. html5doctor.com Reset Stylesheet (Eric Meyer's Reset Reloaded + HTML5 baseline)
  11. v1.4 2009-07-27 | Authors: Eric Meyer & Richard Clark
  12. html5doctor.com/html-5-reset-stylesheet/
  13. */
  14. html, body, div, span, object, iframe,
  15. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  16. abbr, address, cite, code,
  17. del, dfn, em, img, ins, kbd, q, samp,
  18. small, strong, sub, sup, var,
  19. b, i,
  20. dl, dt, dd, ol, ul, li,
  21. fieldset, form, label, legend,
  22. table, caption, tbody, tfoot, thead, tr, th, td,
  23. article, aside, figure, footer, header,
  24. hgroup, menu, nav, section, menu,
  25. time, mark, audio, video {
  26. margin:0;
  27. padding:0;
  28. border:0;
  29. outline:0;
  30. font-size:100%;
  31. vertical-align:baseline;
  32. background:transparent;
  33. }
  34. article, aside, figure, footer, header,
  35. hgroup, nav, section { display:block; }
  36. nav ul { list-style:none; }
  37. blockquote, q { quotes:none; }
  38. blockquote:before, blockquote:after,
  39. q:before, q:after { content:''; content:none; }
  40. a { margin:0; padding:0; font-size:100%; vertical-align:baseline; background:transparent; }
  41. ins { background-color:#ff9; color:#000; text-decoration:none; }
  42. mark { background-color:#ff9; color:#000; font-style:italic; font-weight:bold; }
  43. del { text-decoration: line-through; }
  44. abbr[title], dfn[title] { border-bottom:1px dotted #000; cursor:help; }
  45. /* tables still need cellspacing="0" in the markup */
  46. table { border-collapse:collapse; border-spacing:0; }
  47. hr { display:block; height:1px; border:0; border-top:1px solid #ccc; margin:1em 0; padding:0; }
  48. input, select { vertical-align:middle; }
  49. /* END RESET CSS */
  50. /*
  51. * Fix overflow in IE
  52. */
  53. html {
  54. *overflow-x:hidden;
  55. }
  56. /*
  57. fonts.css from the YUI Library: developer.yahoo.com/yui/
  58. Please refer to developer.yahoo.com/yui/fonts/ for font sizing percentages
  59. There are three custom edits:
  60. * remove arial, helvetica from explicit font stack
  61. * make the line-height relative and unit-less
  62. * remove the pre, code styles
  63. */
  64. body { font:13px sans-serif; *font-size:small; *font:x-small; line-height:1.22; }
  65. table { font-size:inherit; font:100%; }
  66. select, input, textarea { font:99% sans-serif; }
  67. /* normalize monospace sizing
  68. * en.wikipedia.org/wiki/MediaWiki_talk:Common.css/Archive_11#Teletype_style_fix_for_Chrome
  69. */
  70. pre, code, kbd, samp { font-family: monospace, sans-serif; }
  71. /*
  72. * minimal base styles
  73. */
  74. /* #444 looks better than black: twitter.com/H_FJ/statuses/11800719859 */
  75. body, select, input, textarea { color:#444; }
  76. /* Headers (h1,h2,etc) have no default font-size or margin,
  77. you'll want to define those yourself. */
  78. /* www.aestheticallyloyal.com/public/optimize-legibility/ */
  79. h1,h2,h3,h4,h5,h6 { font-weight: bold; text-rendering: optimizeLegibility; }
  80. /* maxvoltar.com/archive/-webkit-font-smoothing */
  81. html { -webkit-font-smoothing: antialiased; }
  82. /* Accessible focus treatment: people.opera.com/patrickl/experiments/keyboard/test */
  83. a:hover, a:active { outline: none; }
  84. a, a:active, a:visited { color:#607890; }
  85. a:hover { color:#036; }
  86. ul { margin-left:30px; }
  87. ol { margin-left:30px; list-style-type: decimal; }
  88. small { font-size:85%; }
  89. strong, th { font-weight: bold; }
  90. td, td img { vertical-align:top; }
  91. sub { vertical-align: sub; font-size: smaller; }
  92. sup { vertical-align: super; font-size: smaller; }
  93. pre {
  94. padding: 15px;
  95. /* www.pathf.com/blogs/2008/05/formatting-quoted-code-in-blog-posts-css21-white-space-pre-wrap/ */
  96. white-space: pre; /* CSS2 */
  97. white-space: pre-wrap; /* CSS 2.1 */
  98. white-space: pre-line; /* CSS 3 (and 2.1 as well, actually) */
  99. word-wrap: break-word; /* IE */
  100. }
  101. /* align checkboxes, radios, text inputs with their label
  102. by: Thierry Koblentz tjkdesign.com/ez-css/css/base.css */
  103. input[type="radio"] { vertical-align: text-bottom; }
  104. input[type="checkbox"] { margin:0; vertical-align:-2px; }
  105. .ie6 input { vertical-align: text-bottom; }
  106. /* hand cursor on clickable input elements */
  107. label, input[type=button], input[type=submit], button { cursor: pointer; }
  108. /* These selection declarations have to be separate.
  109. No text-shadow: twitter.com/miketaylr/status/12228805301
  110. Also: hot pink. */
  111. ::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }
  112. ::selection { background:#FF5E99; color:#fff; text-shadow: none; }
  113. /* j.mp/webkit-tap-highlight-color */
  114. a:link { -webkit-tap-highlight-color: #FF5E99; }
  115. /* make buttons play nice in IE:
  116. www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
  117. button { width: auto; overflow: visible; }
  118. /* bicubic resizing for non-native sized IMG:
  119. code.flickr.com/blog/2008/11/12/on-ui-quality-the-little-things-client-side-image-resizing/ */
  120. .ie7 img { -ms-interpolation-mode: bicubic; }