diff --git a/core/themes/seven/reset.css b/core/themes/seven/reset.css new file mode 100644 index 0000000000000000000000000000000000000000..507955e2645cd01480ac1c19297b1fa41127c968 --- /dev/null +++ b/core/themes/seven/reset.css @@ -0,0 +1,201 @@ + +/** + * 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 */ +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; +} diff --git a/core/themes/seven/seven.info b/core/themes/seven/seven.info index 87edba394c1a8f6f5c469b1826a0793d8d426a89..969f7490bb07e9c99b3ead2cdbc631db64c37d4b 100644 --- a/core/themes/seven/seven.info +++ b/core/themes/seven/seven.info @@ -3,6 +3,7 @@ description = A simple one-column, tableless, fluid width administration theme. package = Core version = VERSION core = 8.x +stylesheets[screen][] = reset.css stylesheets[screen][] = style.css settings[shortcut_module_link] = 1 regions[content] = Content diff --git a/core/themes/seven/template.php b/core/themes/seven/template.php index f135c9591e24dfccfa31a95cbbed02720894be96..c44185c17fb356f75bd6db5f480a9902ee975623 100644 --- a/core/themes/seven/template.php +++ b/core/themes/seven/template.php @@ -21,7 +21,10 @@ function seven_preprocess_maintenance_page(&$vars) { * Implements hook_preprocess_HOOK() for html.tpl.php. */ function seven_preprocess_html(&$vars) { - drupal_add_library('system', 'normalize'); + // @todo Once core CSS is updated and fully tested for Normalize, remove + // Seven's reset.css and replace with the Normalize library in core. + // drupal_add_library('system', 'normalize'); + // Add conditional CSS for IE8 and below. drupal_add_css(path_to_theme() . '/ie.css', array('group' => CSS_THEME, 'browsers' => array('IE' => 'lte IE 8', '!IE' => FALSE), 'weight' => 999, 'preprocess' => FALSE)); }