Browse Source

add missing theme, fix hardcoded CSS

Ted Serbinski 17 years ago
parent
commit
f9b542c391
5 changed files with 55 additions and 3 deletions
  1. 4 2
      README.txt
  2. 1 1
      simplemenu.js
  3. BIN
      themes/original/down-green.gif
  4. 50 0
      themes/original/original.css
  5. BIN
      themes/original/right-green.gif

+ 4 - 2
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
+- new option to select which theme to style SimpleMenu with, or provide a custom one
+- #184051 - don't hardcode CSS, add class to body

+ 1 - 1
simplemenu.js

@@ -19,7 +19,7 @@ $(document).ready(function() {
       break;
   }  
   
-  $('body').css('margin-top', '20px');
+  $('body').addClass('simplemenu-enabled')  
   
   // Build menu        
   $('#simplemenu')

BIN
themes/original/down-green.gif


+ 50 - 0
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;
+}

BIN
themes/original/right-green.gif