new black and blue theme and other CSS fixes

This commit is contained in:
Ted Serbinski 2007-11-22 19:26:04 +00:00
parent 5c6bec1d8a
commit 0dd46f5214
6 changed files with 62 additions and 10 deletions

View File

@ -42,4 +42,5 @@ jQuery Superfish: http://users.tpg.com.au/j_birch/plugins/superfish/
- #180106 - fix missing translatable strings" - #180106 - fix missing translatable strings"
- #144742 - don't show annoying A titles - #144742 - don't show annoying A titles
- remove dependency on menu module, now works with menu module off - remove dependency on menu module, now works with menu module off
- - new black & blue theme, design by Jeremy Caldwell (http://nerdliness.com/article/2007/11/01/simplemenu-module-customizations)
- alter height of menu and rollover to fix gaps

View File

@ -89,7 +89,7 @@ function simplemenu_admin_settings() {
$form['default_menu']['simplemenu_theme'] = array( $form['default_menu']['simplemenu_theme'] = array(
'#type' => 'select', '#type' => 'select',
'#title' => t('Theme'), '#title' => t('Theme'),
'#options' => drupal_map_assoc(array('original', 'custom')), '#options' => array('original' => 'original', 'blackblue' => 'black & blue', 'custom' => 'custom'),
'#default_value' => variable_get('simplemenu_theme', 'original'), '#default_value' => variable_get('simplemenu_theme', 'original'),
'#description' => t('Select which theme to use. If you specify custom, you need to define CSS in your theme.') '#description' => t('Select which theme to use. If you specify custom, you need to define CSS in your theme.')
); );

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 B

View File

@ -0,0 +1,51 @@
/* $Id$ */
body.simplemenu-enabled {
margin-top: 21px;
}
#simplemenu {
background:#000;
color:#fff;
font:11px Verdana, Helvetica, sans-serif;
left:0;
position:absolute;
top:0;
width:100%;
z-index:9999;
}
#simplemenu a {
color:#fff;
text-decoration:none;
padding:3px 12px 5px 12px;
height:13px;
width:auto;
}
#simplemenu li {
background:transparent;
}
#simplemenu li.expanded > a {
background:url(arrow_right.gif) no-repeat 94%;
padding-right:18px;
}
#simplemenu li.root > a {
background:url(arrow_down.gif) no-repeat 94%;
padding-right:18px;
}
#simplemenu li:hover, #simplemenu li.sfHover,
#simplemenu a:focus, #simplemenu a:hover, #simplemenu a:active {
background: #4c77b3;
color:#fff;
}
#simplemenu li ul {
border:1px solid #ccc;
background:#fafcff;
}
#simplemenu li ul a {
color:#4e4e4e;
height:auto;
}
#simplemenu li ul li:hover, #simplemenu li ul li.sfHover,
#simplemenu li ul a:focus, #simplemenu li ul a:hover, #simplemenu li ul a:active {
background-color:#cde;
color:#4e4e4e;
}

View File

@ -1,7 +1,7 @@
/* $Id$ */ /* $Id$ */
body.simplemenu-enabled { body.simplemenu-enabled {
margin-top: 20px; margin-top: 21px;
} }
#simplemenu { #simplemenu {
background:#ddd; background:#ddd;
@ -12,7 +12,6 @@ body.simplemenu-enabled {
position:absolute; position:absolute;
top:0; top:0;
width:100%; width:100%;
height:20px;
z-index:9999; z-index:9999;
} }
#simplemenu a { #simplemenu a {
@ -22,20 +21,18 @@ body.simplemenu-enabled {
border-right:1px solid #999; border-right:1px solid #999;
border-left:1px solid #eee; border-left:1px solid #eee;
padding:2px 6px 3px 6px; padding:2px 6px 3px 6px;
height:15px;
width:auto; width:auto;
} }
#simplemenu li { #simplemenu li {
background:#ddd; background:#ddd;
text-align: left; text-align: left;
} }
#simplemenu li.expanded > a #simplemenu li.expanded > a {
{
background:url(right-green.gif) no-repeat 97%; background:url(right-green.gif) no-repeat 97%;
padding-right:2em; padding-right:2em;
} }
#simplemenu li.root > a {
#simplemenu li.root > a
{
font-weight:700; font-weight:700;
background:url(down-green.gif) no-repeat 97%; background:url(down-green.gif) no-repeat 97%;
} }
@ -48,3 +45,6 @@ body.simplemenu-enabled {
ul#simplemenu li.sfHover ul { ul#simplemenu li.sfHover ul {
border-bottom:1px solid #999; border-bottom:1px solid #999;
} }
#simplemenu li ul a {
height:auto;
}