Template:UIUC Illinois Software TopMenu
From 2010.igem.org
(Difference between revisions)
Sordfysh48 (Talk | contribs) (Created top menu) |
Sordfysh48 (Talk | contribs) (drop menu... 'nuff said) |
||
Line 1: | Line 1: | ||
<html> | <html> | ||
+ | <head> | ||
<style type="text/css"> | <style type="text/css"> | ||
+ | |||
+ | /* Layout */ | ||
img.TopMenu{ | img.TopMenu{ | ||
display:block; | display:block; | ||
Line 6: | Line 9: | ||
margin-right:auto | margin-right:auto | ||
} | } | ||
- | + | ul.dropdown, | |
- | + | ul.dropdown li, | |
- | + | ul.dropdown ul { | |
- | + | list-style: none; | |
- | + | margin: 0; | |
+ | padding: 0; | ||
} | } | ||
- | + | ||
- | + | ul.dropdown { | |
- | + | position: relative; | |
- | + | z-index: 597; | |
- | + | float: left; | |
} | } | ||
- | + | ||
- | + | ul.dropdown li { | |
- | + | float: left; | |
- | + | line-height: 1.3em; | |
- | + | vertical-align: middle; | |
- | + | zoom: 1; | |
} | } | ||
- | + | ||
- | + | ul.dropdown li.hover, | |
- | + | ul.dropdown li:hover { | |
- | padding:0; | + | position: relative; |
+ | z-index: 599; | ||
+ | cursor: default; | ||
+ | } | ||
+ | |||
+ | ul.dropdown ul { | ||
+ | visibility: hidden; | ||
+ | position: absolute; | ||
+ | top: 100%; | ||
+ | left: 0; | ||
+ | z-index: 598; | ||
+ | width: 100%; | ||
+ | } | ||
+ | |||
+ | ul.dropdown ul li { | ||
+ | float: none; | ||
+ | } | ||
+ | |||
+ | ul.dropdown ul ul { | ||
+ | top: 1px; | ||
+ | left: 99%; | ||
+ | } | ||
+ | |||
+ | ul.dropdown li:hover > ul { | ||
+ | visibility: visible; | ||
+ | } | ||
+ | |||
+ | /* Theme */ | ||
+ | ul.dropdown { | ||
+ | font-weight: bold; | ||
+ | background:url('https://static.igem.org/mediawiki/2010/7/7b/UIUC_Illinois_Software_MenuButton.png'); | ||
+ | } | ||
+ | |||
+ | ul.dropdown li { | ||
+ | padding: 0; | ||
+ | border-width: 0px; | ||
+ | } | ||
+ | |||
+ | ul.dropdown a:link, | ||
+ | ul.dropdown a:visited {text-decoration: none; } | ||
+ | ul.dropdown a:active { color: #ffa500; } | ||
+ | |||
+ | |||
+ | /* -- level mark -- */ | ||
+ | |||
+ | ul.dropdown ul { | ||
+ | width: 150px; | ||
+ | margin-top: 0px; | ||
+ | } | ||
+ | |||
+ | ul.dropdown ul li { | ||
+ | font-weight: normal; | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | /*-------------------------------------------------/ | ||
+ | * @section Support Class `dir` | ||
+ | * @level sep ul, .class | ||
+ | */ | ||
+ | |||
+ | |||
+ | ul.dropdown *.dir { | ||
+ | padding-right: 20px; | ||
+ | background-image: url(images/nav-arrow-down.png); | ||
+ | background-position: 100% 50%; | ||
+ | background-repeat: no-repeat; | ||
+ | } | ||
+ | |||
+ | |||
+ | /* -- Components override -- */ | ||
+ | |||
+ | ul.dropdown-horizontal ul *.dir { | ||
+ | padding-right: 15px; | ||
+ | background-image: url(images/nav-arrow-right.png); | ||
+ | background-position: 100% 50%; | ||
+ | background-repeat: no-repeat; | ||
} | } | ||
div.topmenuright{ | div.topmenuright{ | ||
Line 37: | Line 117: | ||
background:url('https://static.igem.org/mediawiki/2010/8/88/UIUC_Illinois_Software_Buttonfaderight.png'); | background:url('https://static.igem.org/mediawiki/2010/8/88/UIUC_Illinois_Software_Buttonfaderight.png'); | ||
width:120px; | width:120px; | ||
- | height: | + | height:36px; |
text-align:center; | text-align:center; | ||
padding:0px; | padding:0px; | ||
Line 48: | Line 128: | ||
background:url('https://static.igem.org/mediawiki/2010/5/58/UIUC_Illinois_Software_Buttonfadeleft.png'); | background:url('https://static.igem.org/mediawiki/2010/5/58/UIUC_Illinois_Software_Buttonfadeleft.png'); | ||
width:120px; | width:120px; | ||
- | height: | + | height:36px; |
text-align:center; | text-align:center; | ||
padding:0px; | padding:0px; | ||
Line 60: | Line 140: | ||
background:url('https://static.igem.org/mediawiki/2010/7/7b/UIUC_Illinois_Software_MenuButton.png'); | background:url('https://static.igem.org/mediawiki/2010/7/7b/UIUC_Illinois_Software_MenuButton.png'); | ||
text-align:center; | text-align:center; | ||
- | padding: | + | padding:10px; |
text-decoration:none; | text-decoration:none; | ||
text-transform:uppercase; | text-transform:uppercase; | ||
Line 68: | Line 148: | ||
color:#fa6a07; | color:#fa6a07; | ||
} | } | ||
- | + | a.dropmenu:link,a.dropmenu:visited | |
- | a. | + | |
{ | { | ||
+ | width:134px; | ||
display:block; | display:block; | ||
font-weight:bold; | font-weight:bold; | ||
- | font-size: | + | font-size:14px; |
color:#ffffff; | color:#ffffff; | ||
- | background: | + | background:url('https://static.igem.org/mediawiki/2010/3/30/UIUC_Illinois_Software_Button2.png'); |
text-align:center; | text-align:center; | ||
padding:8px; | padding:8px; | ||
Line 81: | Line 161: | ||
text-transform:uppercase; | text-transform:uppercase; | ||
} | } | ||
- | a. | + | a.dropmenu:hover,a.dropmenu:active |
{ | { | ||
- | |||
color:#fa6a07; | color:#fa6a07; | ||
} | } | ||
- | + | td.topmenu{ | |
- | + | border-collapse:collapse; | |
+ | padding:0; | ||
+ | spacing:0; | ||
+ | width:auto; | ||
} | } | ||
- | + | tr.topmenu{ | |
- | + | border-collapse:collapse; | |
+ | padding:0; | ||
+ | spacing:0; | ||
+ | width:auto; | ||
} | } | ||
- | -- | + | table.topmenu{ |
+ | margin-left:auto; | ||
+ | margin-right:auto; | ||
+ | text-align:center; | ||
+ | border-collapse:collapse; | ||
+ | padding: 0; | ||
+ | } | ||
+ | |||
</style> | </style> | ||
+ | <!--[if lte IE 7]> | ||
+ | <script type="text/javascript" src="/generic/js/jquery.js"></script> | ||
+ | <script type="text/javascript" src="js/jquery.helper.js"></script> | ||
+ | <![endif]--> | ||
+ | </head> | ||
+ | <body> | ||
<table class="topmenu" cellspacing="0" cellpadding="0"> | <table class="topmenu" cellspacing="0" cellpadding="0"> | ||
- | |||
<tr class="topmenu"> | <tr class="topmenu"> | ||
- | <td colspan=" | + | <td colspan="3"><img class="TopMenu" src="https://static.igem.org/mediawiki/2010/8/8a/UIUC_Illinois_Software_Topbar.png" alt="presenting the 2010 UIUC Software Team!" /></td></tr> |
- | <tr class="topmenu"> | + | <tr class="topmenu"><td class="topmenu"> |
- | <td class="topmenu"><div class="topmenuleft"></div></td> | + | <div class="topmenuleft"></div> |
- | <td class="topmenu"><a class="topmenu" href="https://2010.igem.org/Team:UIUC-Illinois-Software">Home</a></ | + | </td> |
- | < | + | <td class="topmenu"> |
- | + | <ul id="nav" class="dropdown dropdown-horizontal"> | |
- | + | <li><a class="topmenu" href="https://2010.igem.org/Team:UIUC-Illinois-Software">Home</a></li> | |
- | + | <li><a class="topmenu" href="https://2010.igem.org/Team:UIUC-Illinois-Software/Team">Team</a> | |
- | + | <ul> | |
- | + | <li><a class="dropmenu" href="https://2010.igem.org/User:Sordfysh48">Colin Hoffman</a></li> | |
- | + | <li><a class="dropmenu" href="https://2010.igem.org/User:jkemball">Jeremy Kemball</a></li> | |
- | + | <li class="dir"><a class="dropmenu" style="font-size:12px" href="https://2010.igem.org/User:akropor2">Anna Kropornicka</a></li> | |
- | + | <li><a class="dropmenu" href="https://2010.igem.org/User:Bhadidi">Bobak Hadidi</a></li> | |
+ | </ul> | ||
+ | </li> | ||
+ | <li><a class="topmenu" href="https://igem.org/Team.cgi?id=335">Team Profile</a></li> | ||
+ | <li><a class="topmenu" href="https://2010.igem.org/Team:UIUC-Illinois-Software/Project">Project</a> | ||
+ | <ul> | ||
+ | <li class="dir"><a class="dropmenu" href="">IMPtools</a> | ||
+ | <ul> | ||
+ | <li><a class="dropmenu" href="">Overview</a></li> | ||
+ | <li><a class="dropmenu" href="">Website</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="dir"><a class="dropmenu" href="">Strain Designer</a> | ||
+ | <ul> | ||
+ | <li><a class="dropmenu" href="">Overview</a></li> | ||
+ | <li><a class="dropmenu" href="http://abe-bhaleraolab.age.uiuc.edu/imptools/">Website</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a class="dropmenu" href="./">BioMORTAR</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li><a class="topmenu" href="https://2010.igem.org/Team:UIUC-Illinois-Software/Parts">Parts</a></li> | ||
+ | <li><a class="topmenu" href="https://2010.igem.org/Team:UIUC-Illinois-Software/Modeling">Modeling</a></li> | ||
+ | <li><a class="topmenu" href="https://2010.igem.org/Team:UIUC-Illinois-Software/Notebook">Notebook</a></li> | ||
+ | <li><a class="topmenu" href="https://2010.igem.org/Team:UIUC-Illinois-Software/Safety">Safety</a></li> | ||
+ | </ul></td> | ||
+ | <td class="topmenu"> | ||
+ | <div class="topmenuright"></div> | ||
</td> | </td> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
</tr></table> | </tr></table> | ||
- | + | </body> | |
- | + | ||
</html> | </html> |
Revision as of 00:56, 19 June 2010