Template:WashU/Layout
From 2014.igem.org
(Difference between revisions)
(CSS) |
|||
(83 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | + | <!-- Thanks to 2013 Team Tokyo for drop down menu template https://2013.igem.org/Template:Team:TMU-Tokyo/drop-menu.css --> | |
- | # | + | |
- | + | <html> | |
- | + | <style> | |
- | margin: | + | |
+ | #dropmenu { | ||
+ | list-style: none; | ||
+ | align: center; | ||
+ | width:828px; | ||
+ | height: 40px; | ||
+ | margin: 30px auto 40px; | ||
+ | z-index: 9999; | ||
padding: 0px; | padding: 0px; | ||
- | + | background: #FFCCE0; | |
- | + | border-radius: 0 0 0 0; | |
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | # | + | |
- | margin- | + | #dropmenu li { |
+ | position: relative; | ||
+ | width: 137px; | ||
+ | float: left; | ||
+ | margin: 0px; | ||
+ | padding: 0; | ||
+ | text-align: center; | ||
+ | z-index: 9999; | ||
+ | border-right: 1px solid #fff; | ||
} | } | ||
- | + | ||
- | + | ||
- | + | #dropmenu li a { | |
- | + | display: block; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
margin: 0; | margin: 0; | ||
- | padding: 0; | + | padding: 5px 0 5px; |
+ | color: #000; | ||
+ | font-family: "calibri",sans-serif ; | ||
+ | font-size: 18px; | ||
+ | font-weight: bold ; | ||
+ | line-height: 1.63; | ||
+ | z-index: 9999; | ||
+ | border-bottom: 1px solid #FFFFFF; | ||
+ | text-decoration: none; | ||
} | } | ||
- | # | + | #dropmenu li:hover > a{ |
- | + | background: #F08080; | |
- | + | color:#00000; | |
- | + | z-index: 9999; | |
- | + | ||
} | } | ||
- | # | + | #dropmenu > li:hover > a{ |
- | + | border-radius: 0 0 0 0; | |
} | } | ||
- | # | + | #dropmenu li ul { |
- | + | position: absolute; | |
- | + | top: 100%; | |
+ | left: 0; | ||
+ | list-style: none; | ||
+ | margin: 0; | ||
+ | z-index: 9999; | ||
+ | border-radius: 0 0 0 0; | ||
} | } | ||
- | # | + | |
- | + | ||
- | + | #dropmenu li ul li{ | |
+ | overflow: hidden; | ||
+ | width: 100%; | ||
+ | height: 0px; | ||
+ | background: #FFCCE0; | ||
+ | color: #000000; | ||
+ | -moz-transition: .2s; | ||
+ | -webkit-transition: .2s; | ||
+ | -o-transition: .2s; | ||
+ | -ms-transition: .2s; | ||
+ | transition: .2s; | ||
} | } | ||
- | # | + | |
- | + | #dropmenu li ul li a{ | |
- | + | padding: 5px 5px; | |
- | + | background: #FFCCE0; <!--F08080--> | |
- | + | ||
- | + | ||
text-align: center; | text-align: center; | ||
- | + | font-size: 10px; | |
+ | z-index: 9999; | ||
+ | font-weight: normal; | ||
} | } | ||
- | # | + | |
- | + | #dropmenu li:hover ul li{ | |
- | + | overflow: visible; | |
+ | z-index: 9999; | ||
+ | height: 40px; | ||
+ | border-bottom: 1px solid #FFFFFF; | ||
+ | border-radius: 0 0 0 0; | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
+ | #dropmenu li:hover ul li:hover a{ | ||
+ | z-index: 9999; | ||
+ | background: #F08080; | ||
+ | color:#00000 | ||
+ | border-radius: 0 0 0 0; | ||
} | } | ||
- | # | + | |
- | + | #dropmenu li:hover ul li:first-child{ | |
+ | border-top: 1px solid #fff; | ||
} | } | ||
- | # | + | #dropmenu li:hover ul li:last-child{ |
- | + | border-bottom: 1px solid #fff; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | # | + | #dropmenu li:hover ul li:last-child a{ |
- | + | border-radius: 0 0 0 0; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
- | + | ||
- | + | <!-- Floating Menu --> | |
- | + | div.floating-menu { | |
- | + | position:fixed; | |
- | + | background:#fff4c8; | |
+ | border:1px solid #ffcc00; | ||
+ | width:150px; | ||
+ | height:auto; | ||
+ | z-index:100; | ||
} | } | ||
- | + | ||
- | + | div.floating-menu a, div.floating-menu h3 { | |
- | + | display:block; | |
- | + | text-align: center; | |
- | + | margin:0 0.5em; | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
} | } | ||
+ | |||
+ | <!-- End floating Menu --> | ||
+ | </style> | ||
+ | </html> | ||
+ | |||
+ | <html> | ||
+ | <div id="content"> | ||
+ | <ul id="dropmenu"> | ||
+ | |||
+ | <li><a href="https://2014.igem.org/Team:WashU_StLouis">Home</a> | ||
+ | </li> | ||
+ | |||
+ | <li><a href="https://2014.igem.org/Team:WashU_StLouis/Team">Team</a> | ||
+ | <ul> | ||
+ | <li><a href="https://2014.igem.org/Team:WashU_StLouis/Team/Members">Members</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:WashU_StLouis/Attributions">Attributions</a></li> | ||
+ | <li><a href="https://igem.org/Team.cgi?year=2014&team_name=WashU_StLouis" target="_blank">Team Profile</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | |||
+ | <li><a href="https://2014.igem.org/Team:WashU_StLouis/Project">Project</a> | ||
+ | <ul> | ||
+ | <li><a href="https://2014.igem.org/Team:WashU_StLouis/Project/nif">Nitrogenase</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:WashU_StLouis/Project/light">Light Regulation</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:WashU_StLouis/Project/collaboration">Collaboration</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:WashU_StLouis/Parts">Parts</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | |||
+ | <li><a href="https://2014.igem.org/Team:WashU_StLouis/Notebook">Notebook</a> | ||
+ | <ul> | ||
+ | <li><a href="https://2014.igem.org/Team:WashU_StLouis/Notebook/September"> Post Summer </a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:WashU_StLouis/Protocol">Protocols</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | |||
+ | <li><a href="https://2014.igem.org/Team:WashU_StLouis/Outreach">Outreach</a> | ||
+ | <ul> | ||
+ | <li><a href="https://2014.igem.org/Team:WashU_StLouis/Web_Series">Video Series</a></li> | ||
+ | <li><a href="https://2014.igem.org/Team:WashU_StLouis/Safety">Lab safety</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | |||
+ | <li> | ||
+ | <a href="https://igem.org/Main_Page" target="_blank"> <img src="https://static.igem.org/mediawiki/igem.org/6/60/Igemlogo_300px.png" width="29px"></a> | ||
+ | </li> | ||
+ | |||
+ | </div> | ||
+ | |||
+ | </html> |
Latest revision as of 22:19, 17 October 2014