reset.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. /**
  2. * Reset CSS styles.
  3. *
  4. * Based on Eric Meyer's "Reset CSS 1.0" tool from
  5. * http://meyerweb.com/eric/tools/css/reset
  6. */
  7. html,
  8. body,
  9. div,
  10. span,
  11. applet,
  12. object,
  13. iframe,
  14. h1,
  15. h2,
  16. h3,
  17. h4,
  18. h5,
  19. h6,
  20. p,
  21. blockquote,
  22. pre,
  23. a,
  24. abbr,
  25. acronym,
  26. address,
  27. big,
  28. cite,
  29. code,
  30. del,
  31. dfn,
  32. em,
  33. font,
  34. img,
  35. ins,
  36. kbd,
  37. q,
  38. s,
  39. samp,
  40. small,
  41. strike,
  42. strong,
  43. sub,
  44. sup,
  45. tt,
  46. var,
  47. b,
  48. u,
  49. i,
  50. center,
  51. dl,
  52. dt,
  53. dd,
  54. ol,
  55. ul,
  56. li,
  57. fieldset,
  58. form,
  59. input,
  60. select,
  61. textarea,
  62. label,
  63. legend,
  64. table,
  65. caption,
  66. tbody,
  67. tfoot,
  68. thead,
  69. tr,
  70. th,
  71. td,
  72. /* Drupal: system-menus.css */
  73. td.menu-disabled,
  74. ul.links,
  75. ul.links.inline,
  76. ul.links li,
  77. .block ul,
  78. /* Drupal: admin.css */
  79. div.admin,
  80. /* Drupal: system.css */
  81. tr.even,
  82. tr.odd,
  83. tr.drag,
  84. tbody,
  85. tbody th,
  86. thead th,
  87. .breadcrumb,
  88. .item-list .icon,
  89. .item-list .title,
  90. .item-list ul,
  91. .item-list ul li,
  92. ol.task-list li.active,
  93. .form-item,
  94. tr.odd .form-item,
  95. tr.even .form-item,
  96. .form-item .description,
  97. .form-item label,
  98. .form-item label.option,
  99. .form-checkboxes,
  100. .form-radios,
  101. .form-checkboxes .form-item,
  102. .form-radios .form-item,
  103. .marker,
  104. .form-required,
  105. .more-link,
  106. .more-help-link,
  107. .item-list .pager,
  108. .item-list .pager li,
  109. .pager-current,
  110. .tips,
  111. ul.primary,
  112. ul.primary li,
  113. ul.primary li a,
  114. ul.primary li.active a,
  115. ul.primary li a:hover,
  116. ul.secondary,
  117. ul.secondary li,
  118. ul.secondary a,
  119. ul.secondary a.active,
  120. .resizable-textarea {
  121. margin: 0;
  122. padding: 0;
  123. border: 0;
  124. vertical-align: baseline;
  125. }
  126. /* Drupal: system-menus.css */
  127. ul.links,
  128. ul.links.inline,
  129. ul.links li,
  130. .block ul,
  131. ol,
  132. ul,
  133. .item-list ul,
  134. .item-list ul li {
  135. list-style: none;
  136. }
  137. blockquote,
  138. q {
  139. quotes: none;
  140. }
  141. blockquote:before,
  142. blockquote:after,
  143. q:before,
  144. q:after {
  145. content: '';
  146. content: none;
  147. }
  148. /* Remember to highlight inserts somehow! */
  149. ins {
  150. text-decoration: none;
  151. }
  152. del {
  153. text-decoration: line-through;
  154. }
  155. /* Tables still need 'cellspacing="0"' in the markup. */
  156. table {
  157. border-collapse: collapse;
  158. border-spacing: 0;
  159. }
  160. /**
  161. * Font reset.
  162. *
  163. * Specifically targets form elements which browsers often times give
  164. * special treatment.
  165. */
  166. input,
  167. select,
  168. textarea {
  169. font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  170. }
  171. textarea {
  172. font-size: 1em;
  173. line-height: 1.538em;
  174. }
  175. /**
  176. * Markup free clearing.
  177. *
  178. * Consider adding your own selectors to this instead of finding ways
  179. * to sneak the clearfix class into Drupal's markup.
  180. * From http://perishablepress.com/press/2009/12/06/new-clearfix-hack
  181. */
  182. ul.links:after,
  183. div.admin-panel .body:after,
  184. .clearfix:after {
  185. content: ".";
  186. display: block;
  187. height: 0;
  188. clear: both;
  189. visibility: hidden;
  190. }
  191. /* Exclude inline links from clearfix behavior */
  192. ul.inline:after {
  193. content: "";
  194. display: none;
  195. clear: none;
  196. }
  197. /* IE6 */
  198. * html .form-item,
  199. * html ul.links,
  200. * html div.admin-panel .body,
  201. * html .clearfix {
  202. height: 1%;
  203. }
  204. /* IE7 */
  205. *:first-child + html .form-item,
  206. *:first-child + html ul.links,
  207. *:first-child + html div.admin-panel .body,
  208. *:first-child + html .clearfix {
  209. min-height: 1%;
  210. }