Ver código fonte

bring back fixed position menu, but fix it from overlapping the theme

Ted Serbinski 18 anos atrás
pai
commit
a5022b38fc
2 arquivos alterados com 2 adições e 1 exclusões
  1. 1 1
      simplemenu.css
  2. 1 0
      simplemenu.js

+ 1 - 1
simplemenu.css

@@ -14,7 +14,7 @@ background:#ddd;
 border-bottom:1px solid #999;
 font:11px Verdana, Helvetica, sans-serif;
 left:0;
-position:static;
+position:fixed;
 top:0;
 width:100%;
 height:21px;

+ 1 - 0
simplemenu.js

@@ -6,6 +6,7 @@ $(document).ready(function() {
                               
   // insert extra <br /> so menu doesn't overlap theme
   $('<ul id="simplemenu" class="clear-block"></ul>').prependTo('body');
+  $('body').css('margin-top', '23px');
   
   // Drupal menu callback
   $('#simplemenu').load(basePath + 'simplemenu/menu', function() {