diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-07-31 19:35:57 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-07-31 19:35:57 +0000 |
commit | 04d7eb4acb8b892e489a3abe49c9a98e5d863f7e (patch) | |
tree | 82e5c46fdc194150e3c75a4a9c346cbbb581e7df /themes | |
parent | d4228535043619ada5192001acde645238660b37 (diff) | |
download | brdo-04d7eb4acb8b892e489a3abe49c9a98e5d863f7e.tar.gz brdo-04d7eb4acb8b892e489a3abe49c9a98e5d863f7e.tar.bz2 |
- Patch #484860 by markboulton, Gábor Hojtsy, cwgordon7 et al: initial Drupal 7 admin theme. Yeaha!
Diffstat (limited to 'themes')
-rw-r--r-- | themes/seven/ie6.css | 9 | ||||
-rw-r--r-- | themes/seven/images/arrow-asc.png | bin | 0 -> 140 bytes | |||
-rw-r--r-- | themes/seven/images/arrow-desc.png | bin | 0 -> 140 bytes | |||
-rw-r--r-- | themes/seven/images/arrow-next.png | bin | 0 -> 994 bytes | |||
-rw-r--r-- | themes/seven/images/arrow-prev.png | bin | 0 -> 984 bytes | |||
-rw-r--r-- | themes/seven/images/buttons.png | bin | 0 -> 2972 bytes | |||
-rw-r--r-- | themes/seven/images/list-item.png | bin | 0 -> 1164 bytes | |||
-rw-r--r-- | themes/seven/page.tpl.php | 48 | ||||
-rw-r--r-- | themes/seven/reset.css | 260 | ||||
-rw-r--r-- | themes/seven/seven.info | 13 | ||||
-rw-r--r-- | themes/seven/style.css | 707 | ||||
-rw-r--r-- | themes/seven/template.php | 67 | ||||
-rw-r--r-- | themes/seven/vertical-tabs.css | 57 |
13 files changed, 1161 insertions, 0 deletions
diff --git a/themes/seven/ie6.css b/themes/seven/ie6.css new file mode 100644 index 000000000..b837fa776 --- /dev/null +++ b/themes/seven/ie6.css @@ -0,0 +1,9 @@ +/* $Id$ */ + +ul.menu li, +ul.menu li a, +ul.links li, +ul.links li a, +#page { + height: 1%; +} diff --git a/themes/seven/images/arrow-asc.png b/themes/seven/images/arrow-asc.png Binary files differnew file mode 100644 index 000000000..74f6fa34a --- /dev/null +++ b/themes/seven/images/arrow-asc.png diff --git a/themes/seven/images/arrow-desc.png b/themes/seven/images/arrow-desc.png Binary files differnew file mode 100644 index 000000000..dbcc8d9de --- /dev/null +++ b/themes/seven/images/arrow-desc.png diff --git a/themes/seven/images/arrow-next.png b/themes/seven/images/arrow-next.png Binary files differnew file mode 100644 index 000000000..3f6a12c1a --- /dev/null +++ b/themes/seven/images/arrow-next.png diff --git a/themes/seven/images/arrow-prev.png b/themes/seven/images/arrow-prev.png Binary files differnew file mode 100644 index 000000000..f43b68b0d --- /dev/null +++ b/themes/seven/images/arrow-prev.png diff --git a/themes/seven/images/buttons.png b/themes/seven/images/buttons.png Binary files differnew file mode 100644 index 000000000..5ef49fd5a --- /dev/null +++ b/themes/seven/images/buttons.png diff --git a/themes/seven/images/list-item.png b/themes/seven/images/list-item.png Binary files differnew file mode 100644 index 000000000..1ec17c843 --- /dev/null +++ b/themes/seven/images/list-item.png diff --git a/themes/seven/page.tpl.php b/themes/seven/page.tpl.php new file mode 100644 index 000000000..02ba7d9b7 --- /dev/null +++ b/themes/seven/page.tpl.php @@ -0,0 +1,48 @@ +<?php +// $Id$ +?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" + "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language->language; ?>" dir="<?php print $language->dir; ?>" + <?php print $rdf_namespaces; ?>> + <head profile="<?php print $grddl_profile; ?>"> + <title><?php print $head_title; ?></title> + <?php print $head; ?> + <?php print $styles; ?> + <?php print $scripts; ?> + <?php print $ie_styles; ?> + </head> + <body class="<?php print $classes; ?>"> + + <?php print $page_top; ?> + + <div id="branding" class="clearfix"> + <div class="back-to-site"><?php print $back_to_site; ?></div> + <?php if ($title): ?><h1 class="page-title"><?php print $title; ?></h1><?php endif; ?> + <?php if ($primary_local_tasks): ?><ul class="tabs primary"><?php print $primary_local_tasks; ?></ul><?php endif; ?> + </div> + + <div id="page"> + <?php if ($secondary_local_tasks): ?><ul class="tabs secondary"><?php print $secondary_local_tasks; ?></ul><?php endif; ?> + + <div id="content" class="clearfix"> + <?php if ($show_messages && $messages): ?> + <div id="console" class="clearfix"><?php print $messages; ?></div> + <?php endif; ?> + <?php if ($help): ?> + <div id="help"> + <?php print $help; ?> + </div> + <?php endif; ?> + <?php print $content; ?> + </div> + + <div id="footer"> + <?php print $feed_icons; ?> + </div> + + </div> + + <?php print $page_bottom; ?> + + </body> +</html> diff --git a/themes/seven/reset.css b/themes/seven/reset.css new file mode 100644 index 000000000..1d388cdbe --- /dev/null +++ b/themes/seven/reset.css @@ -0,0 +1,260 @@ +/* $Id$ */ + +/** + * Reset CSS styles. + * + * Based on Eric Meyer's "Reset CSS 1.0" tool from + * http://meyerweb.com/eric/tools/css/reset + */ + +html, +body, + +/* Structures */ +div, +span, +applet, +object, +iframe, + +/* Text */ +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, + +/* Lists */ +dl, +dt, +dd, +ol, +ul, +li, + +/* Forms */ +fieldset, +form, +input, +select, +textarea, +label, +legend, + +/* Tables */ +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, +dl.multiselect dd.b, +dl.multiselect dd.b .form-item, +dl.multiselect dd.b select, +dl.multiselect dd.a, +dl.multiselect dd.a .form-item, +dl.multiselect dt, +dl.multiselect dd, +dl.multiselect .form-item, +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; + outline: 0; + font-size: 100%; + vertical-align: baseline; + background: transparent; + line-height: inherit; + text-align: left; +} + + +/* 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 define focus styles! */ +:focus { + outline: 0; +} + +/* 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, +body { + font: 13px/20px "Helvetica Neue", Helvetica, Arial, sans-serif; +} + +/** + * 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://www.positioniseverything.net/easyclearing.html + */ +div.form-item:after, +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; +} + +div.form-item, +ul.links, +div.admin-panel .body, +.clearfix { + display: inline-block; +} + +/* Hides from IE-mac \*/ +* html div.form-item, +* html ul.links, +* html div.admin-panel .body, +* html .clearfix { + height: 1%; +} + +div.form-item, +ul.links, +div.admin-panel .body, +.clearfix { + display: block; +} +/* End hide from IE-mac */ diff --git a/themes/seven/seven.info b/themes/seven/seven.info new file mode 100644 index 000000000..6b3e9458a --- /dev/null +++ b/themes/seven/seven.info @@ -0,0 +1,13 @@ +; $Id$ +name = Seven +description = A simple one-column, tableless, fluid width administration theme. +core = 7.x +version = VERSION +engine = phptemplate +stylesheets[screen][] = reset.css +stylesheets[screen][] = style.css +stylesheets[all][] = vertical-tabs.css +regions[content] = Content +regions[help] = Help +regions[page_top] = Page top +regions[page_bottom] = Page bottom diff --git a/themes/seven/style.css b/themes/seven/style.css new file mode 100644 index 000000000..22f523348 --- /dev/null +++ b/themes/seven/style.css @@ -0,0 +1,707 @@ +/* $Id$ */ + +/** + * Generic elements + */ +body { + color: #000; + background: #fff; + font-style: normal; + line-height: 20px; + font-size: 0.8em; + font-family: Lucida Grande, Lucida Sans Unicode, sans-serif; +} + +a { + color: #0074BD; + text-decoration: none; +} + +div.box, p { + margin: 0 0 20px; +} + +hr { + display: none; +} + +legend { + font-weight: bold; +} + +#block-system-main h1, +#block-system-main h2, +#block-system-main h3, +#block-system-main h4, +#block-system-main h5, +#block-system-main h6 { + font-size: 15px; + font-weight: bold; + margin: 10px 0; +} + +#block-system-main dl { + margin: 0 0 20px; +} + +#block-system-main dl dd, +#block-system-main dl dl { + margin-left: 20px; + margin-bottom: 10px; +} + +/** + * Branding. + */ +#branding { + overflow: hidden; + padding: 20px 40px 0 40px; + position: relative; + background-color: #e0e0d8; +} + +#branding div.back-to-site { + background: url(images/arrow-prev.png) no-repeat left center; + padding-left: 8px; + font-size: 11px; +} + +#branding div.breadcrumb { + float: left; + font-size: 12px; +} + +#branding div.block { + position: relative; + float: right; + width: 240px; + padding-left: 10px; + background: #333; +} + +#branding div.block form label { + display: none; +} + +#branding div.block form div.form-item { + float: left; + border: 0; + margin: 0; + padding: 0; +} + +#branding div.block form input.form-text { + width: 140px; + margin-right: 10px; +} + +#branding div.block form input.form-submit { + text-align: center; + width: 80px; +} + +/** + * Breadcrumbs. + */ +div.breadcrumb a { + padding: 0 10px 0 0; + color: #fff; +} + +/** + * Help. + */ +#help { + font-size: 0.9em; + margin-top: 1em; +} + +#help p { + margin: 0 0 10px; +} + +#help div.more-help-link { + text-align: right; +} + +/** + * Console. + */ +#console div.messages { + padding: 9px; + margin: 1em 0; + color: #036; + background: #bdf; + border: 1px solid #ace; +} + +#console div.warning { + color: #840; + background: #fe6; + border-color: #ed5; +} + +#console div.error { + color: #fff; + background: #e63; + border-color: #d52; +} + +#console div.status { + color: #360; + background: #cf8; + border-color: #be7; +} + +/** + * Page title. + */ +#page-title { + background: #333; + padding-top: 20px; +} + +#branding h1.page-title { + color: #000; + padding-bottom: 10px; + font-size: 18px; + font-weight: normal; + float: left; +} + +/** + * Console. + */ +#page .console { + border-top: 1px solid #ccc; + padding: 9px 0 10px; +} + +/** + * Tabs. + */ +ul.primary { + float: right; + border-bottom: none; + margin: 0 0 -10px 0; + padding: 3px 0 0 8px; + line-height: 30px; + text-transform: uppercase; + font-size: 12px; +} + +ul.primary li { + display: inline; + list-style: none; +} + +ul.primary li a, +ul.primary li a:active, +ul.primary li a:visited, +ul.primary li a:hover { + background-color: #a6a7a2; + -moz-border-radius: 8px 8px 0 0; + -webkit-border-top-left-radius: 8px; + -webkit-border-top-right-radius: 8px; + border-radius: 8px 8px 0 0; + color: #000; + font-weight: bold; + padding: 7px 20px 5px 20px; + border-width: 1px 1px 0 1px; + border-style: solid; + border-color: #a6a7a2; +} + +ul.primary li.active a, +ul.primary li.active a.active, +ul.primary li.active a:active, +ul.primary li.active a:visited { + background-color: #fff; + border-color: #c9cac4; +} + +ul.primary li a:hover { + color: #fff; +} + +ul.primary li.active a:hover { + color: #000; +} + +ul.secondary { + float: none; + clear: both; + font-size: 12px; + padding: 5px 20px 4px; + line-height: 20px; + overflow: hidden; + border-bottom: 1px solid #ccc; + background: #fff; +} + +ul.secondary li { + float: right; + padding-left: 10px; +} + +ul.secondary li a { + color: #05a; +} + +ul.secondary li a, +ul.secondary li a:hover, +ul.secondary li.active a, +ul.secondary li.active a.active { + padding: 0 10px; + -moz-border-radius: 10px; + -webkit-border-radius: 7px; +} + +ul.secondary li.active a, +ul.secondary li.active a.active { + color: #fff; + background: #666; +} + +/** + * Page layout. + */ +#page { + padding-bottom: 40px; + margin-right: 40px; + margin-left: 40px; + position: relative; +} + +#footer { + text-align: right; + border-top: 1px solid #ccc; + padding: 5px; + font-size: 12px; +} + +#block-system-main { + min-height: 180px; + padding: 20px 0; + background: #fff; + color: #333; +} + +#block-system-main ul.menu li, +#block-system-main ul.menu li a, +#secondary-links ul.links li, +#secondary-links ul.links li a { + float: left; +} + +#block-system-main ul.menu li, +#secondary-links ul.links li { + padding: 0 10px 10px 0; +} + +#block-system-main ul.menu li a, +#secondary-links ul.links li a { + font-size: 9px; + line-height: 10px; + background: #777; + color: #fff; + text-align: center; + padding: 5px; + height: 55px; + width: 80px; + overflow: hidden; + -moz-border-radius: 5px; + -webkit-border-radius: 5px; +} + +#secondary-links ul.links li a:hover { + background: #999; +} + +#block-system-main ul.menu li a { + background: #f8f8f8; + color: #05a; +} + +#block-system-main ul.menu li a:hover { + background: #eee; +} + +#secondary-links ul.links li.active-trail a, +#secondary-links ul.links li a.active { + background: #333; +} + +#block-system-main ul.node-type-list li, +#block-system-main ul.admin-list li { + position: relative; + padding-left: 30px; + padding-bottom: 9px; + border-bottom: 1px solid #ccc; + margin-left: 0; + margin-bottom: 10px; + background: url(images/list-item.png) no-repeat; + list-style-type: none; + list-style-image: none; +} +#block-system-main ul.admin-list.compact li { + border: 0; + background: none; +} + +#block-system-main ul.admin-list li:last-child { + border-bottom: none; +} + +#block-system-main ul.node-type-list .label { + font-size: 15px; +} + +/** + * Tables. + */ +table { + width: 100%; + font-size: 12px; + margin: 0 0 10px; + border: 1px solid #bebfb9; + border-top: 0; +} + +table.system-status-report th, +table td, +table th { + vertical-align: middle; + padding: 8px 5px 8px 10px; +} + +table.system-status-report th { + padding-left: 30px; +} + +table.system-status-report tr.ok > * { + background-color: #dfd; +} + +table.system-status-report tr.info > * { + background-color: #bdf; +} + +table.system-status-report tr.warning > * { + background-color: #ffd; +} + +table.system-status-report tr.error > * { + background-color: #fdd; +} + +tr.even, tr.odd { + border-width: 0 1px 0 1px; + border-style: solid; + border-color: #bebfb9; + background: #f3f4ee; +} + +tr.odd { + background: #fff; +} + +table th { + font-size: 12px; + text-transform: uppercase; + background: #e1e2dc; + font-weight: normal; + border-width: 0 1px 1px 1px; + border-style: solid; + border-color: #bebfb9; + padding: 3px 3px 3px 10px; +} + +table th.active { + background: #bdbeb9; +} + +table th a { + display: block; +} + +table th.active img { + float: right; + margin-top: 3px; +} + +table td.active { + background: #e9e9dd; +} + +table tr.odd td.active { + background: #f3f4ee; +} + +table tr.selected td.active, +table tr.selected td { + background: #ffc; + border-color: #eeb; +} + +/** + * Forms. + */ + +/* Fieldsets & Form items */ +fieldset { + border: 1px solid #ccc; + padding: 9px; + margin: 0 0 10px; +} + +fieldset.collapsed { + background: transparent; +} + +fieldset fieldset { + background: #fff; +} + +fieldset fieldset fieldset { + background: #f8f8f8; +} + +html.js fieldset.collapsible .fieldset-wrapper { + overflow: visible; +} + +div.form-item { + padding: 9px; + margin: 0 0 10px; +} + +.filter-wrapper div.form-item, +div.teaser-checkbox div.form-item, +div.form-item div.form-item, +fieldset div.form-item { + padding: 5px 0; + margin: 0; + border: 0; +} + +.text-format-wrapper .form-item { + padding-bottom: 0; +} + +div.form-item label { + margin: 0; + padding: 0; +} + +form label, +fieldset legend { + text-transform: uppercase; +} + +div.form-item label.option { + text-transform: none; +} + +div.form-item label.option { + font-size: 12px; +} +div.form-item label.option input { + vertical-align: middle; +} + +/* Filter */ +.filter-wrapper { + border-top: 0; + width: 95%; + padding: 10px 2px 10px 2px; +} + +.filter-wrapper > div { + padding-right: 6px; + padding-left: 6px; +} + +.filter-wrapper div.form-item, +.filter-wrapper .filter-guidelines, +.filter-wrapper .filter-help { + font-size: 12px; + padding: 0; +} + +ul.tips, +div.description, +div.form-item div.description { + margin: 5px 0; + line-height: 15px; + font-size: 12px; + color: #666; +} + +/* Buttons */ +input.form-submit { + cursor: pointer; + padding: 4px 17px; + color: #5a5a5a; + text-align: center; + font-weight: normal; + font-family: "Lucida Grande", Verdana, sans-serif; + border: 1px solid #e4e4e4; + border-bottom: 1px solid #b4b4b4; + border-left-color: #D2D2D2; + border-right-color: #D2D2D2; + background: url(images/buttons.png) 0 0 repeat-x; + -moz-border-radius: 20px; + -webkit-border-radius: 15px; + font-size: 1.1em; +} + +div.node-form input#edit-submit, +div.node-form input#edit-submit-1 { + border: 1px solid #8eB7cd; + border-left-color: #8eB7cd; + border-right-color: #8eB7cd; + border-bottom-color: #7691a2; + background: url(images/buttons.png) 0px -40px repeat-x; + color: #133B54; +} + +input.form-submit:active { + background: #666; + color: #fff; + border-color: #555; + text-shadow: #222 0px -1px 0px; +} + +form input#edit-delete { + background: #eee; + border-color: #fff #ddd #ccc; + text-shadow: none; + color: #999; +} + +input.form-autocomplete, +input.form-text, +textarea.form-textarea, +select.form-select { + padding: 2px; + border: 1px solid #ccc; + border-top-color: #999; + background: #fff; + color: #333; +} + +input.form-text:focus, +textarea.form-textarea:focus, +select.form-select:focus { + color: #000; + border-color: #ace; +} + +html.js input.form-autocomplete { + background-position: 100% 4px; +} + +html.js input.throbbing { + background-position: 100% -16px; +} + +/* Exceptions */ +#diff-inline-form select, +#block-system-main div.filter-options select { + padding: 0; +} + +/** + * System. + */ +div.admin .right, +div.admin .left { + width: 49%; + margin: 0; +} + +div.admin-panel, +div.admin-panel .body { + padding: 0; + clear: left; +} + +div.admin-panel { + margin: 0 0 20px; + padding: 9px; + background: #f8f8f8; + border: 1px solid #ccc; +} + +#block-system-main div.admin-panel h3 { + font-size: 12px; + text-transform: uppercase; + margin: 0 0 10px; + padding-bottom: 9px; + border-bottom: 1px solid #ccc; +} + +.container-inline fieldset { + display: block; +} + +/* admin/content/node and admin/user/user */ +#block-system-main dl.multiselect, +#block-system-main dl.multiselect dt, +#block-system-main dl.multiselect dd { + margin: 0 10px 0 0; +} + +#block-system-main dl.multiselect select { + font-size: 12px; + background: #fff; + border: 1px solid #ccc; +} + +/* Update options. */ +div.admin-options { + background: #f8f8f8; + line-height: 30px; + height: 30px; + padding: 9px; + border: 1px solid #ccc; + margin: 0 0 10px; +} + +div.admin-options label { + text-transform: uppercase; + font: 12px/30px Lucida Grande, Lucida Sans Unicode, sans-serif; +} + +div.admin-options label, +div.admin-options div.form-item { + margin-right: 10px; + float: left; +} + +div.admin-options div.form-item { + padding: 0; + border: 0; +} + +/* Overlay theming */ +body.overlay { + background: #fff; +} + +body.overlay #branding, +body.overlay #page-title, +body.overlay #page #left, +body.overlay #page #footer { + display: none; +} + +body.overlay #page { + margin: 0; + padding: 0; +} + +body.overlay #block-system-main { + padding: 20px; +} diff --git a/themes/seven/template.php b/themes/seven/template.php new file mode 100644 index 000000000..701b54c2a --- /dev/null +++ b/themes/seven/template.php @@ -0,0 +1,67 @@ +<?php +// $Id$ + +/** + * Override or insert variables into the page template. + */ +function seven_preprocess_page(&$vars) { + $vars['primary_local_tasks'] = menu_primary_local_tasks(); + $vars['secondary_local_tasks'] = menu_secondary_local_tasks(); + $vars['ie_styles'] = '<!--[if lt IE 7]><style type="text/css" media="screen">@import ' . path_to_theme() . '/ie6.css";</style><![endif]-->'; + $vars['back_to_site'] = l(t('Back to the live site'), ''); +} + +/** + * Display the list of available node types for node creation. + */ +function seven_node_add_list($content) { + $output = ''; + if ($content) { + $output = '<ul class="node-type-list">'; + foreach ($content as $item) { + $output .= '<li class="clearfix">'; + $output .= '<span class="label">' . l($item['title'], $item['href'], $item['localized_options']) . '</span>'; + $output .= '<div class="description">' . filter_xss_admin($item['description']) . '</div>'; + $output .= '</li>'; + } + $output .= '</ul>'; + } + return $output; +} + +/** + * Override of theme_admin_block_content(). + * + * Use unordered list markup in both compact and extended move. + */ +function seven_admin_block_content($content) { + $output = ''; + if (!empty($content)) { + $output = system_admin_compact_mode() ? '<ul class="admin-list compact">' : '<ul class="admin-list">'; + foreach ($content as $item) { + $output .= '<li class="leaf">'; + $output .= l($item['title'], $item['href'], $item['localized_options']); + if (!system_admin_compact_mode()) { + $output .= '<div class="description">' . $item['description'] . '</div>'; + } + $output .= '</li>'; + } + $output .= '</ul>'; + } + return $output; +} + +/** + * Override of theme_tablesort_indicator(). + * + * Use our own image versions, so they show up as black and not gray on gray. + */ +function seven_tablesort_indicator($style) { + $theme_path = drupal_get_path('theme', 'seven'); + if ($style == "asc") { + return theme('image', $theme_path . '/images/arrow-asc.png', t('sort icon'), t('sort ascending')); + } + else { + return theme('image', $theme_path . '/images/arrow-desc.png', t('sort icon'), t('sort descending')); + } +} diff --git a/themes/seven/vertical-tabs.css b/themes/seven/vertical-tabs.css new file mode 100644 index 000000000..4007e2883 --- /dev/null +++ b/themes/seven/vertical-tabs.css @@ -0,0 +1,57 @@ +/* $Id$ */ + +/** + * Override of misc/vertical-tabs.css. + */ +div.vertical-tabs { + margin: 10px 0; + padding: 9px; + border: 1px solid #ccc; + background: #f8f8f8; +} + +div.vertical-tabs fieldset { + border: 0; + padding: 0 0 0 20px; +} + +div.vertical-tabs .vertical-tabs-list { + line-height: 10px; + font-size: 11px; + width: 25%; + float: left; +} + +div.vertical-tabs ul li.vertical-tab-button a { + display: block; + border-right: 1px solid #ccc; + padding: 10px 9px 10px 10px; + -moz-border-radius-topleft: 5px; + -moz-border-radius-bottomleft: 5px; + -webkit-border-top-left-radius: 5px; + -webkit-border-bottom-left-radius: 5px; +} + +div.vertical-tabs ul li.vertical-tab-button .summary { + display: block; + font-size: 9px; + color: #666; +} + +div.vertical-tabs ul li.vertical-tab-button a:hover { + background: #fff; +} + +div.vertical-tabs ul li.selected a, +div.vertical-tabs ul li.selected a:hover { + background: #ddd; +} + +div.vertical-tabs .vertical-tabs-panes { + width: 75%; + float: right; +} + +div.vertical-tabs .vertical-tabs-panes legend { + display: none; +} |