diff --git a/README.txt b/README.txt index 4bd47195..1fd13c1b 100644 --- a/README.txt +++ b/README.txt @@ -34,6 +34,8 @@ jQuery Superfish: http://users.tpg.com.au/j_birch/plugins/superfish/ ---------------------- - new CHANGELOG to keep track of changes - #156256 upgrade to SuperFish 1.3 -- upgrade to bgIframe 2.1.1 (for IE6 compatibility with forms) +- upgrade to bgIframe 2.1.1 (for IE6 compatibility with forms) +- #136478 - fix Opera compatibility - remove RTL option; this conflicts with other changes and is properly implemented in Drupal 6 -- new option to select which theme to style SimpleMenu with, or provide a custom one \ No newline at end of file +- new option to select which theme to style SimpleMenu with, or provide a custom one +- #184051 - don't hardcode CSS, add class to body \ No newline at end of file diff --git a/simplemenu.js b/simplemenu.js index 92cae848..a5f15784 100644 --- a/simplemenu.js +++ b/simplemenu.js @@ -19,7 +19,7 @@ $(document).ready(function() { break; } - $('body').css('margin-top', '20px'); + $('body').addClass('simplemenu-enabled') // Build menu $('#simplemenu') diff --git a/themes/original/down-green.gif b/themes/original/down-green.gif new file mode 100644 index 00000000..215ecc33 Binary files /dev/null and b/themes/original/down-green.gif differ diff --git a/themes/original/original.css b/themes/original/original.css new file mode 100644 index 00000000..02beaecf --- /dev/null +++ b/themes/original/original.css @@ -0,0 +1,50 @@ +/* $Id$ */ + +body.simplemenu-enabled { + margin-top: 20px; +} +#simplemenu { + background:#ddd; + color:#333; + border-bottom:1px solid #999; + font:11px Verdana, Helvetica, sans-serif; + left:0; + position:absolute; + top:0; + width:100%; + height:20px; + z-index:9999; +} +#simplemenu a { + color:#333; + text-decoration:none; + background:#ddd; + border-right:1px solid #999; + border-left:1px solid #eee; + padding:2px 6px 3px 6px; + width:auto; +} +#simplemenu li { + background:#ddd; + text-align: left; +} +#simplemenu li.expanded > a +{ + background:url(right-green.gif) no-repeat 97%; + padding-right:2em; +} + +#simplemenu li.root > a +{ + font-weight:700; + background:url(down-green.gif) no-repeat 97%; +} +#simplemenu li:hover, #simplemenu li.sfHover, +#simplemenu a:focus, #simplemenu a:hover, #simplemenu a:active { + background:#3875d7; + color:#fff; +} +#simplemenu li:hover ul, +ul#simplemenu li.sfHover ul { + border-bottom:1px solid #999; +} diff --git a/themes/original/right-green.gif b/themes/original/right-green.gif new file mode 100644 index 00000000..1513ee27 Binary files /dev/null and b/themes/original/right-green.gif differ