reset.css

Same filename in other branches
  1. 10 core/misc/dialog/off-canvas/css/reset.css
  2. 11.x core/misc/dialog/off-canvas/css/reset.css
/**
 * Reset CSS styles.
 *
 * Based on Eric Meyer's "Reset CSS 1.0" tool from
 * http://meyerweb.com/eric/tools/css/reset
 */

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
input,
select,
textarea,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
/* Drupal: system-menus.css */
td.menu-disabled,
ul.links,
ul.links.inline,
ul.links li,
.block ul,
/* Drupal: admin.css */
div.admin,
/* Drupal: system.css */
tr.even,
tr.odd,
tr.drag,
tbody,
tbody th,
thead th,
.breadcrumb,
.item-list .icon,
.item-list .title,
.item-list ul,
.item-list ul li,
ol.task-list li.active,
.form-item,
tr.odd .form-item,
tr.even .form-item,
.form-item .description,
.form-item label,
.form-item label.option,
.form-checkboxes,
.form-radios,
.form-checkboxes .form-item,
.form-radios .form-item,
.marker,
.form-required,
.more-link,
.more-help-link,
.item-list .pager,
.item-list .pager li,
.pager-current,
.tips,
ul.primary,
ul.primary li,
ul.primary li a,
ul.primary li.active a,
ul.primary li a:hover,
ul.secondary,
ul.secondary li,
ul.secondary a,
ul.secondary a.active,
.resizable-textarea {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
}
/* Drupal: system-menus.css */
ul.links,
ul.links.inline,
ul.links li,
.block ul,
ol,
ul,
.item-list ul,
.item-list ul li {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

/* Remember to highlight inserts somehow! */
ins {
  text-decoration: none;
}
del {
  text-decoration: line-through;
}

/* Tables still need 'cellspacing="0"' in the markup. */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/**
 * Font reset.
 *
 * Specifically targets form elements which browsers often times give
 * special treatment.
 */
input,
select,
textarea {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
textarea {
  font-size: 1em;
  line-height: 1.538em;
}
/**
 * Markup free clearing.
 *
 * Consider adding your own selectors to this instead of finding ways
 * to sneak the clearfix class into Drupal's markup.
 * From http://perishablepress.com/press/2009/12/06/new-clearfix-hack
 */
ul.links:after,
div.admin-panel .body:after,
.clearfix:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}

/* Exclude inline links from clearfix behavior */
ul.inline:after {
  content: "";
  display: none;
  clear: none;
}
/* IE6 */
* html .form-item,
* html ul.links,
* html div.admin-panel .body,
* html .clearfix {
  height: 1%;
}
/* IE7 */
*:first-child + html .form-item,
*:first-child + html ul.links,
*:first-child + html div.admin-panel .body,
*:first-child + html .clearfix {
  min-height: 1%;
}

File

themes/seven/reset.css

View source
  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. }

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.