Difference between revisions of "Template:Pitt"
Line 127: | Line 127: | ||
})(jQuery); | })(jQuery); | ||
− | $("#menuContainer | + | $("#menuContainer li, #menuContainer td").hover( |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
function(){ | function(){ | ||
$(this).children().stop(true, false).animate({color: '#eac638'}, 250); | $(this).children().stop(true, false).animate({color: '#eac638'}, 250); | ||
Line 155: | Line 136: | ||
); | ); | ||
− | $("#menuContainer | + | $("#menuContainer td:has(ul)").hover( |
function(){ | function(){ | ||
$(this).children("ul").stop().slideDown(200); | $(this).children("ul").stop().slideDown(200); | ||
Line 164: | Line 145: | ||
); | ); | ||
− | $("#menuContainer | + | $("#menuContainer td:has(ul)").children("ul").each(function(){ |
var padding = parseInt($(this).parent().css("padding-left")) + parseInt($(this).parent().css("padding-right")); | var padding = parseInt($(this).parent().css("padding-left")) + parseInt($(this).parent().css("padding-right")); | ||
var newWidth = parseInt($(this).parent().css("width")) + padding; | var newWidth = parseInt($(this).parent().css("width")) + padding; | ||
Line 391: | Line 372: | ||
} | } | ||
− | #menuContainer | + | #menuContainer td { |
− | + | ||
position: relative; | position: relative; | ||
text-align: center; | text-align: center; | ||
+ | background-color: #172368; | ||
+ | color: #ffffff; | ||
+ | margin: 0px; | ||
+ | white-space: nowrap; | ||
} | } | ||
− | #menuContainer | + | #menuContainer table { |
+ | background-color: #172368; | ||
+ | width: 100%; | ||
+ | } | ||
+ | |||
+ | #menuContainer ul { | ||
position:absolute; | position:absolute; | ||
left:0; | left:0; | ||
Line 439: | Line 428: | ||
<div id="menuContainer" class="floatyMenu"> | <div id="menuContainer" class="floatyMenu"> | ||
− | < | + | <table><tr> |
− | < | + | <td> |
<a href="https://2015.igem.org/Team:Pitt">Home</a> | <a href="https://2015.igem.org/Team:Pitt">Home</a> | ||
− | </ | + | </td> |
− | < | + | <td> |
<a href="#">Project</a> | <a href="#">Project</a> | ||
Line 455: | Line 444: | ||
</li> | </li> | ||
</ul> | </ul> | ||
− | </ | + | </td> |
− | < | + | <td> |
<a href="#">Notebook</a> | <a href="#">Notebook</a> | ||
Line 468: | Line 457: | ||
</li> | </li> | ||
</ul> | </ul> | ||
− | </ | + | </td> |
− | < | + | <td> |
<a href="#">Team</a> | <a href="#">Team</a> | ||
Line 481: | Line 470: | ||
</li> | </li> | ||
</ul> | </ul> | ||
− | </ | + | </td> |
− | < | + | <td> |
<a href="#">Achievements</a> | <a href="#">Achievements</a> | ||
Line 494: | Line 483: | ||
</li> | </li> | ||
</ul> | </ul> | ||
− | </ | + | </td> |
− | < | + | <td> |
<a href="#">Other</a> | <a href="#">Other</a> | ||
Line 507: | Line 496: | ||
</li> | </li> | ||
</ul> | </ul> | ||
− | </ | + | </td> |
− | < | + | <td> |
<a href="#">Twitter</a> | <a href="#">Twitter</a> | ||
Line 520: | Line 509: | ||
</li> | </li> | ||
</ul> | </ul> | ||
− | </ | + | </td> |
− | < | + | <td> |
<a href="#">iGEM Home</a> | <a href="#">iGEM Home</a> | ||
Line 533: | Line 522: | ||
</li> | </li> | ||
</ul> | </ul> | ||
− | </ | + | </td> |
− | </ | + | </tr></table> |
</div> | </div> |
Revision as of 13:36, 22 May 2015