diff options
author | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-08-14 07:14:50 +0000 |
---|---|---|
committer | Neil Drumm <drumm@3064.no-reply.drupal.org> | 2006-08-14 07:14:50 +0000 |
commit | 3cc2b1e3d78d7e82572d59939507bb3eddce53b4 (patch) | |
tree | 9a31e74cff3d628bb918f1bc2887b6a433f91aba /modules/menu | |
parent | 4b65446fb63496a12486ed8616ba84186e82f74c (diff) | |
download | brdo-3cc2b1e3d78d7e82572d59939507bb3eddce53b4.tar.gz brdo-3cc2b1e3d78d7e82572d59939507bb3eddce53b4.tar.bz2 |
#77183 by m3avrck and timcn, split up drupal.css by module.
Diffstat (limited to 'modules/menu')
-rw-r--r-- | modules/menu/menu.css | 88 | ||||
-rw-r--r-- | modules/menu/menu.module | 5 |
2 files changed, 93 insertions, 0 deletions
diff --git a/modules/menu/menu.css b/modules/menu/menu.css new file mode 100644 index 000000000..51e54869d --- /dev/null +++ b/modules/menu/menu.css @@ -0,0 +1,88 @@ +/* $Id$ */ + +ul.menu { + list-style: none; + border: none; + text-align:left; +} +ul.menu li { + margin: 0 0 0 0.5em; +} +li.expanded { + list-style-type: circle; + list-style-image: url(menu-expanded.png); + padding: 0.2em 0.5em 0 0; + margin: 0; +} +li.collapsed { + list-style-type: disc; + list-style-image: url(menu-collapsed.png); + padding: 0.2em 0.5em 0 0; + margin: 0; +} +li.leaf { + list-style-type: square; + list-style-image: url(menu-leaf.png); + padding: 0.2em 0.5em 0 0; + margin: 0; +} +li a.active { + color: #000; +} +td.menu-disabled { + background: #ccc; +} + +/* +** Tab navigation +*/ +ul.primary { + border-collapse: collapse; + padding: 0 0 0 1em; + white-space: nowrap; + list-style: none; + margin: 5px; + height: auto; + line-height: normal; + border-bottom: 1px solid #bbb; +} +ul.primary li { + display: inline; +} +ul.primary li a { + background-color: #ddd; + border-color: #bbb; + border-width: 1px; + border-style: solid solid none solid; + height: auto; + margin-right: 0.5em; + padding: 0 1em; + text-decoration: none; +} +ul.primary li.active a { + background-color: #fff; + border: 1px solid #bbb; + border-bottom: #fff 1px solid; +} +ul.primary li a:hover { + background-color: #eee; + border-color: #ccc; + border-bottom-color: #eee; +} +ul.secondary { + border-bottom: 1px solid #bbb; + padding: 0.5em 1em; + margin: 5px; +} +ul.secondary li { + display: inline; + padding: 0 1em; + border-right: 1px solid #ccc; +} +ul.secondary a { + padding: 0; + text-decoration: none; +} +ul.secondary a.active { + border-bottom: 4px solid #999; +} diff --git a/modules/menu/menu.module b/modules/menu/menu.module index 3936ba821..d0167119d 100644 --- a/modules/menu/menu.module +++ b/modules/menu/menu.module @@ -112,6 +112,11 @@ function menu_menu($may_cache) { 'weight' => 5, ); } + else { + // Add the CSS for this module + // We put this in !$may_cache so it's only added once per request + drupal_add_css(drupal_get_path('module', 'menu') .'/menu.css'); + } return $items; } |