basic.css 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. /* http://meyerweb.com/eric/tools/css/reset/ */
  2. /* v1.0 | 20080212 */
  3. html, body, div, span, applet, object, iframe,
  4. h1, h2, h3, h4, h5, h6, p, blockquote, pre,
  5. a, abbr, acronym, address, big, cite, code,
  6. del, dfn, em, font, img, ins, kbd, q, s, samp,
  7. small, strike, strong, sub, sup, tt, var,
  8. b, u, i, center,
  9. dl, dt, dd, ol, ul, li,
  10. fieldset, form, label, legend,
  11. table, caption, tbody, tfoot, thead, tr, th, td {
  12. margin: 0;
  13. padding: 0;
  14. border: 0;
  15. outline: 0;
  16. font-size: 100%;
  17. vertical-align: baseline;
  18. background: transparent;
  19. }
  20. body {
  21. line-height: 1.5;
  22. }
  23. ol, ul {
  24. list-style: none;
  25. }
  26. blockquote, q {
  27. quotes: none;
  28. }
  29. blockquote:before, blockquote:after,
  30. q:before, q:after {
  31. content: '';
  32. content: none;
  33. }
  34. /* remember to define focus styles! */
  35. :focus {
  36. outline: 0;
  37. }
  38. /* remember to highlight inserts somehow! */
  39. ins {
  40. text-decoration: none;
  41. }
  42. del {
  43. text-decoration: line-through;
  44. }
  45. /* tables still need 'cellspacing="0"' in the markup */
  46. table {
  47. border-collapse: collapse;
  48. border-spacing: 0;
  49. }
  50. /* --------------------------------------------------------------
  51. typography.css
  52. * Sets up some sensible default typography.
  53. -------------------------------------------------------------- */
  54. /* Default font settings.
  55. The font-size percentage is of 16px. (0.75 * 16px = 12px) */
  56. html { font-size:100.01%; }
  57. body {
  58. font-size: 75%;
  59. color: #222;
  60. background: #fff;
  61. font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  62. }
  63. /* Headings
  64. -------------------------------------------------------------- */
  65. h1,h2,h3,h4,h5,h6 { font-weight: normal; color: #333; }
  66. h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; }
  67. h2 { font-size: 2em; margin-bottom: 0.75em; }
  68. h3 { font-size: 1.5em; line-height: 1; margin-bottom: 1em; }
  69. h4 { font-size: 1.2em; line-height: 1.25; margin-bottom: 1.25em; }
  70. h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; }
  71. h6 { font-size: 1em; font-weight: bold; }
  72. h1 img, h2 img, h3 img,
  73. h4 img, h5 img, h6 img {
  74. margin: 0;
  75. }
  76. /* Text elements
  77. -------------------------------------------------------------- */
  78. p { margin: 0 0 1.5em; }
  79. p img.left { float: left; margin: 1.5em 1.5em 1.5em 0; padding: 0; }
  80. p img.right { float: right; margin: 1.5em 0 1.5em 1.5em; }
  81. a:focus,
  82. a:hover { color: #000; }
  83. a { color: #009; text-decoration: underline; }
  84. blockquote { margin: 1.5em; color: #666; font-style: italic; }
  85. strong { font-weight: bold; }
  86. em,dfn { font-style: italic; }
  87. dfn { font-weight: bold; }
  88. sup, sub { line-height: 0; }
  89. abbr,
  90. acronym { border-bottom: 1px dotted #666; }
  91. address { margin: 0 0 1.5em; font-style: italic; }
  92. del { color:#666; }
  93. pre { margin: 1.5em 0; white-space: pre; }
  94. pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height: 1.5; }
  95. /* Lists
  96. -------------------------------------------------------------- */
  97. li ul,
  98. li ol { margin: 0; }
  99. ul, ol { margin: 0 1.5em 1.5em 0; padding-left: 3.333em; }
  100. ul { list-style-type: disc; }
  101. ol { list-style-type: decimal; }
  102. dl { margin: 0 0 1.5em 0; }
  103. dl dt { font-weight: bold; }
  104. dd { margin-left: 1.5em;}
  105. /* Tables
  106. -------------------------------------------------------------- */
  107. table { margin-bottom: 1.4em; width:100%; }
  108. th { font-weight: bold; }
  109. thead th { background: #c3d9ff; }
  110. th,td,caption { padding: 4px 10px 4px 5px; }
  111. tr.even { background: #e5ecf9; }
  112. tfoot { font-style: italic; }
  113. caption { background: #eee; }
  114. /* Misc classes
  115. -------------------------------------------------------------- */
  116. .small { font-size: .8em; margin-bottom: 1.875em; line-height: 1.875em; }
  117. .large { font-size: 1.2em; line-height: 2.5em; margin-bottom: 1.25em; }
  118. .hide { display: none; }
  119. .quiet { color: #666; }
  120. .loud { color: #000; }
  121. .highlight { background:#ff0; }
  122. .added { background:#060; color: #fff; }
  123. .removed { background:#900; color: #fff; }
  124. .first { margin-left:0 !important; padding-left:0 !important; }
  125. .last { margin-right:0 !important; padding-right:0 !important; }
  126. .top { margin-top:0 !important; padding-top:0 !important; }
  127. .bottom { margin-bottom:0; padding-bottom:0; }
  128. /* `Clear Floated Elements
  129. ----------------------------------------------------------------------------------------------------*/
  130. /* http://sonspring.com/journal/clearing-floats */
  131. .clear {
  132. clear: both;
  133. display: block;
  134. overflow: hidden;
  135. visibility: hidden;
  136. width: 0;
  137. height: 0;
  138. }
  139. /* http://perishablepress.com/press/2009/12/06/new-clearfix-hack */
  140. .clearfix:after {
  141. clear: both;
  142. content: ' ';
  143. display: block;
  144. font-size: 0;
  145. line-height: 0;
  146. visibility: hidden;
  147. width: 0;
  148. height: 0;
  149. }
  150. /*
  151. The following zoom:1 rule is specifically for IE6 + IE7.
  152. Move to separate stylesheet if invalid CSS is a problem.
  153. */
  154. * html .clearfix,
  155. *:first-child+html .clearfix {
  156. zoom: 1;
  157. }