From f9b542c391425af916e9d81ae4a7f3d2a8a1a1d3 Mon Sep 17 00:00:00 2001 From: Ted Serbinski Date: Thu, 22 Nov 2007 05:03:10 +0000 Subject: [PATCH] add missing theme, fix hardcoded CSS --- README.txt | 6 ++-- simplemenu.js | 2 +- themes/original/down-green.gif | Bin 0 -> 179 bytes themes/original/original.css | 50 ++++++++++++++++++++++++++++++++ themes/original/right-green.gif | Bin 0 -> 893 bytes 5 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 themes/original/down-green.gif create mode 100644 themes/original/original.css create mode 100644 themes/original/right-green.gif 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 0000000000000000000000000000000000000000..215ecc33b5ee70fa925caf59e06d4d0eeff2bac4 GIT binary patch literal 179 zcmZ?wbhEHb6krfwI3mH&w8SZUx=!glhyCYQ%-L32KG&#ZuJN)xHI)l&j$T@oJV~p6 zb@0*4>(?LZ&z)hg{!s7Ct;OZ@oTqNeSbwN(`j&z%C#J97-?{nt)c^ngGhhRXKUo+V z7$g{UK$0Lk8CVSz)cR5~=Vh!~m$TZ6O^AgxVLn%=>9wgo3?VE=6$X6VQyUBvSi+e+ P4~iB 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 0000000000000000000000000000000000000000..1513ee277e8643f692fb4c70d3c1a4df132a9dc0 GIT binary patch literal 893 zcmZ?wbhEHb6krfw_^!p^+$KJ2SHb?v%PN=H-Fta+&G9K|vveBP#Dq`Q?%$lc`Sk3t zNpkb{*0-$oE?i(%y)y9Sho>FuB6plyu>5eRPme_GROMN_${SX=MNZax`u0KAZ2f85 zvpd)L@4mQb>zTPr54O~;Amp&T+E8x|aF<`CA3i4Zu-+QuZ!Vlh#GwVh4eti&UM zA(5F;!P@78!=WPwxtZ*01QHKAb+C)@@V!tt*v!tR=%HZo!lAj5i=Rv8#?Asp4jzGE OhK3VcG>