Team:Alberta/Templates/Header
From 2012.igem.org
(Difference between revisions)
Rick24568509 (Talk | contribs) |
Rick24568509 (Talk | contribs) |
||
(142 intermediate revisions not shown) | |||
Line 20: | Line 20: | ||
overflow: hidden; | overflow: hidden; | ||
display: block; | display: block; | ||
- | left: | + | left: -10px; |
width: 900px; | width: 900px; | ||
} | } | ||
Line 39: | Line 39: | ||
body { | body { | ||
- | background-color: # | + | background-color: #004a1f; |
- | + | padding: 0; | |
- | + | ||
- | + | ||
} | } | ||
Line 51: | Line 49: | ||
position: absolute; | position: absolute; | ||
top: -10px; | top: -10px; | ||
- | |||
z-layer: 1; | z-layer: 1; | ||
Line 77: | Line 74: | ||
.mainBody { | .mainBody { | ||
- | + | margin-left: 170px; | |
+ | } | ||
+ | |||
+ | .headerMenu { | ||
} | } | ||
.subMenu { | .subMenu { | ||
+ | width: 200px; | ||
+ | background: #077e39; | ||
+ | position: absolute; | ||
+ | left: 150px; | ||
+ | top: 0px; | ||
+ | z-index: 2; | ||
display : none; | display : none; | ||
} | } | ||
Line 86: | Line 92: | ||
.sideBar { | .sideBar { | ||
- | width: | + | width:150px; |
height:100%; | height:100%; | ||
Line 92: | Line 98: | ||
top:0px; | top:0px; | ||
- | |||
background: #077e39; | background: #077e39; | ||
- | position: | + | position: absolute; |
} | } | ||
Line 160: | Line 165: | ||
-moz-border-radius: 15px; | -moz-border-radius: 15px; | ||
border-radius: 15px; | border-radius: 15px; | ||
- | background-color: # | + | background-color: #E5DDDD; |
- | padding: | + | padding: 5px; |
} | } | ||
Line 168: | Line 173: | ||
border-radius: 15px; | border-radius: 15px; | ||
background-color: #FFF; | background-color: #FFF; | ||
- | padding: 1px; | + | padding: 7px; |
+ | } | ||
+ | |||
+ | .underline | ||
+ | { | ||
+ | border-bottom:solid; | ||
+ | border-width:1px; | ||
} | } | ||
Line 191: | Line 202: | ||
</script> | </script> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
+ | <table cellpadding="0" cellspacing="0" style="width: 100%;"> | ||
+ | <tr> | ||
+ | <td style="width: 150px;"> | ||
<div class="sideBar"> | <div class="sideBar"> | ||
<a href="http://www.ualberta.ca/"><img src="https://static.igem.org/mediawiki/2012/6/67/UofaLogo.png" /></a> | <a href="http://www.ualberta.ca/"><img src="https://static.igem.org/mediawiki/2012/6/67/UofaLogo.png" /></a> | ||
- | <ul> | + | <ul id="menu"> |
- | <li><a href="/Team:Alberta"><span>Home</span></a></li> | + | <li class="headerMenu" onMouseOver="showSubMenu(null, this);"><a href="/Team:Alberta"><span>Home</span></a></li> |
- | <li | + | <li class="headerMenu" onMouseOver="showSubMenu(null, this);"><a href="https://2012.igem.org/Team:Alberta/Team"><span>Team</span></a></li> |
- | |||
- | |||
- | |||
- | |||
- | <li | + | <li class="headerMenu" onMouseOver="showSubMenu(null, this);"><a href="/Team:Alberta/Project"><span>Project</span></a></li> |
<div class="subMenu" id="contactSub"> | <div class="subMenu" id="contactSub"> | ||
- | <li><a style="padding:8px 20px 0 35px;" href=" | + | <li><a style="padding:8px 20px 0 35px;" href="/Team:Alberta/Project"><span>Overview</span></a></li> |
- | <li><a style="padding:8px 20px 0 35px;" href=" | + | <li><a style="padding:8px 20px 0 35px;" href="/Team:Alberta/Project/colours"><span>The Colours</span></a></li> |
- | <li><a style="padding:8px 20px 0 35px;" href=" | + | <li><a style="padding:8px 20px 0 35px;" href="/Team:Alberta/Project/gradient"><span>Spatial gradients</span></a></li> |
- | <li><a style="padding:8px 20px 0 35px;" href=" | + | <li><a style="padding:8px 20px 0 35px;" href="/Team:Alberta/Project/controlelement"><span>Control elements</span></a></li> |
- | <li><a style="padding:8px 20px 0 35px;" href=" | + | <li><a style="padding:8px 20px 0 35px;" href="/Team:Alberta/Project/plasmidcontrol"><span>Controling copy number</span></a></li> |
- | <li><a style="padding:8px 20px 0 35px;" href=" | + | <li><a style="padding:8px 20px 0 35px;" href="/Team:Alberta/Project/integrateddesign"><span>Integrated design</span></a></li> |
- | <li><a style="padding:8px 20px 0 35px;" href=" | + | <li><a style="padding:8px 20px 0 35px;" href="/Team:Alberta/Project/achievements"><span>Achievements</span></a></li> |
- | + | ||
</div> | </div> | ||
- | <li | + | <li class="headerMenu" onMouseOver="showSubMenu(null, this);"><a href="/Team:Alberta/Parts"><span>Parts</span></a></li> |
<div class="subMenu" id="partsSub"> | <div class="subMenu" id="partsSub"> | ||
- | <li><a style="padding:8px 20px 0 35px;" href=" | + | <li><a style="padding:8px 20px 0 35px;" href="/Team:Alberta/Parts"><span>Parts Submitted</span></a></li> |
- | <li><a style="padding:8px 20px 0 35px;" href=" | + | <li><a style="padding:8px 20px 0 35px;" href="/Team:Alberta/Attributions"><span>Attributions</span></a></li> |
</div> | </div> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | <li | + | |
+ | <li class="headerMenu" onMouseOver="showSubMenu(null, this);"><a href="/Team:Alberta/Humanpractices"><span>Human Practice</span></a></li> | ||
<div class="subMenu" id="outreachSub"> | <div class="subMenu" id="outreachSub"> | ||
- | <li><a style="padding:8px 20px 0 35px;" href=" | + | <li><a style="padding:8px 20px 0 35px;" href="/Team:Alberta/socialexperiment"><span>A social experiment</span></a></li> |
- | <li><a style="padding:8px 20px 0 35px;" href=" | + | <li><a style="padding:8px 20px 0 35px;" href="/Team:Alberta/Outreach"><span>Outreach</span></a></li> |
+ | <li><a style="padding:8px 20px 0 35px;" href="/Team:Alberta/collaborations"><span>Collaborations</span></a></li> | ||
+ | <li><a style="padding:8px 20px 0 35px;" href="/Team:Alberta/Safety"><span>Safety</span></a></li> | ||
+ | <li><a style="padding:8px 20px 0 35px;" href="/Team:Alberta/Attributions"><span>Attributions</span></a></li> | ||
</div> | </div> | ||
- | <li | + | |
+ | <li class="headerMenu" onMouseOver="showSubMenu(null, this);"><a href="/Team:Alberta/Safety"><span>Safety</span></a></li> | ||
+ | |||
+ | <li class="headerMenu" onMouseOver="showSubMenu(null, this);"><a href="/Team:Alberta/Sponsors"><span>Sponsors</span></a></li> | ||
<div class="subMenu" id="sponsorsSub"> | <div class="subMenu" id="sponsorsSub"> | ||
- | <li><a style="padding:8px 20px 0 35px;" href | + | <li><a style="padding:8px 20px 0 35px;" href#"><span>About Sponsors</span></a></li> |
- | + | ||
</div> | </div> | ||
Line 261: | Line 255: | ||
</div> | </div> | ||
- | < | + | </td> |
+ | <td> | ||
+ | |||
<div class="mainBannerUnder"> | <div class="mainBannerUnder"> | ||
</div> | </div> | ||
<div class="mainBanner"> | <div class="mainBanner"> | ||
- | <p class="title"> | + | <a href="/Team:Alberta"><p class="title"> |
Team Alberta | Team Alberta | ||
- | </p> | + | </p></a> |
- | <a href="https://2012.igem.org/"><img style="height: 60px; top: -10px; | + | <a href="https://2012.igem.org/"><img style="height: 60px; top: -10px; left: 650px; |
position: absolute; z-layer: 99;" src="https://static.igem.org/mediawiki/2012/9/96/IGEM_white.png" /></a> | position: absolute; z-layer: 99;" src="https://static.igem.org/mediawiki/2012/9/96/IGEM_white.png" /></a> | ||
</div> | </div> | ||
+ | |||
+ | </td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | |||
+ | <script> | ||
+ | |||
+ | function showSubMenu(menu, parent) { | ||
+ | |||
+ | var show = false; | ||
+ | if($(menu).is(':hidden') ) { | ||
+ | show = true; | ||
+ | } | ||
+ | |||
+ | $(".subMenu").css("display","none"); | ||
+ | $(menu).css("display","block"); | ||
+ | $(menu). offset({top: 100 + 30 * $('.headerMenu').index($(parent) )} ); | ||
+ | |||
+ | $(menu).mouseleave( function() { | ||
+ | |||
+ | $(".subMenu").css("display","none"); | ||
+ | |||
+ | }); | ||
+ | |||
+ | } | ||
+ | |||
+ | </script> | ||
+ | |||
+ | <div class="mainBody"> | ||
<br/> | <br/> | ||
<br/> | <br/> | ||
<br/> | <br/> |
Latest revision as of 17:51, 2 October 2012
|