Template:SandboxUp
From 2014.igem.org
(Difference between revisions)
Line 1: | Line 1: | ||
+ | <!doctype HTML> | ||
<html> | <html> | ||
<head> | <head> | ||
- | <meta charset="utf-8"></ | + | <meta charset="utf-8" /> |
+ | <title>new</title> | ||
+ | |||
<style> | <style> | ||
- | + | ||
- | width: | + | nav { |
+ | width: 768px; | ||
+ | margin-left:auto; | ||
+ | margin-right:auto; | ||
+ | display: block; | ||
} | } | ||
- | + | ||
- | # | + | nav ul { |
- | + | background: #e7e7e7; | |
+ | background: linear-gradient(top, #e7e7e7 0%, #f7f7f7 100%); | ||
+ | background: -moz-linear-gradient(top, #e7e7e7 0%, #f7f7f7 100%); | ||
+ | background: -webkit-linear-gradient(top, #e7e7e7 0%, #f7f7f7 100%); | ||
+ | */ box-shadow: 0px 0px 9px rgba(0,0,0,0.15); */ | ||
+ | -webkit-border-radius: 10px; | ||
+ | -moz-border-radius: 10px; | ||
+ | border-radius: 10px; | ||
+ | padding: 0 20px; | ||
+ | list-style: none; | ||
+ | position: relative; | ||
+ | display: block; | ||
+ | margin-right: 15px; | ||
+ | margin-left: 15px; | ||
+ | } | ||
+ | |||
+ | nav ul ul { | ||
+ | display: none; | ||
+ | background: #e7e7e7; | ||
+ | border-radius: 0; | ||
+ | padding: 0; | ||
+ | position: absolute; | ||
+ | top: 100%; | ||
+ | margin: 0; | ||
+ | margin-top: -1px; | ||
+ | } | ||
+ | |||
+ | nav ul li:hover > ul { | ||
+ | display: block; | ||
+ | } | ||
+ | |||
+ | nav ul li { | ||
+ | float: left; | ||
+ | } | ||
+ | |||
+ | nav ul li:hover { | ||
+ | background: #e7e7e7; | ||
+ | background: linear-gradient(top, #e7e7e7 0%, #f7f7f7 100%); | ||
+ | background: -moz-linear-gradient(top, #e7e7e7 0%, #f7f7f7 100%); | ||
+ | background: -webkit-linear-gradient(top, #e7e7e7 0%, #f7f7f7 100%); | ||
+ | } | ||
+ | |||
+ | .red:hover, .red:focus { | ||
+ | background-color: #f3d3d3; | ||
} | } | ||
- | + | .yellow:hover, .yellow:focus { | |
- | color: # | + | background-color: #f3f3d3; |
} | } | ||
- | . | + | .green:hover, .green:focus { |
- | + | background-color: #d3f3d3; | |
- | + | ||
- | + | ||
- | + | ||
- | background-color: # | + | |
} | } | ||
- | blue:hover { | + | .blue:hover, .blue:focus { |
background-color: #d3d3f3; | background-color: #d3d3f3; | ||
} | } | ||
- | + | .cyan:hover, .cyan:focus { | |
- | + | background-color: #d3f3f3; | |
- | + | } | |
+ | |||
+ | .pink:hover, .pink:focus { | ||
+ | background-color: #f3d3f3; | ||
+ | } | ||
+ | |||
+ | nav ul li:hover a { | ||
+ | color: #000000; | ||
+ | } | ||
- | + | nav ul li:first-child:hover { | |
- | + | background-color: #e7e7e7; | |
- | + | } | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | nav ul li:last-child:hover { | |
- | + | background-color: #e7e7e7; | |
- | + | } | |
- | + | ||
- | + | nav ul li a { | |
+ | display: block; | ||
+ | padding: 25px 34px; | ||
+ | color: #000000; | ||
+ | text-decoration: none; | ||
+ | } | ||
- | + | nav ul ul li { | |
- | + | float: none; | |
+ | border-bottom: 1px solid #f0f0f0; | ||
+ | border-right: 1px solid #f0f0f0; | ||
+ | border-left: 1px solid #f0f0f0; | ||
+ | position: relative; | ||
+ | } | ||
- | + | nav ul ul li:first-child { | |
- | + | border-top: 1px solid #f0f0f0; | |
+ | } | ||
- | + | nav ul ul li a { | |
- | + | padding: 15px 30px; | |
+ | color: #000000; | ||
+ | } | ||
- | + | nav ul ul li a:hover { | |
- | + | background: #d3d3d3; | |
+ | } | ||
+ | nav ul ul ul { | ||
+ | position: absolute; | ||
+ | left: 100%; | ||
+ | top:0; | ||
+ | } | ||
- | + | nav ul:after { | |
- | + | content: ""; | |
+ | clear: both; | ||
+ | display: block; | ||
+ | } | ||
- | + | </style> | |
- | + | ||
- | + | </head> | |
- | + | <body> | |
- | < | + | <!-- |
- | + | <a href="http://www.chalmers.se/en/Pages/default.aspx" target="_blank"> | |
+ | <img src="http://www.chalmers.se/_layouts/ChalmersPublicWeb/Images/chalmers-avancez.png"width="55px" height="49px" /> | ||
+ | </a> | ||
+ | <a href="https://2014.igem.org/Main_Page" target="_blank"> | ||
+ | <img src="https://static.igem.org/mediawiki/igem.org/6/60/Igemlogo_300px.png" width="55px" height="55px"> | ||
+ | </a> | ||
+ | --> | ||
+ | |||
+ | <nav> | ||
+ | <ul> | ||
+ | <li> | ||
+ | <a class="red" href="https://2014.igem.org/Team:Gothenburg">Home</a> | ||
+ | </li> | ||
+ | |||
+ | <li><a class="yellow" href="https://2014.igem.org/Team:Gothenburg/Project">Project</a> | ||
+ | <ul> | ||
+ | <li><a class="yellow" href="#">Submeny 1</a></li> | ||
+ | <li><a class="yellow" href="#">Submeny 2</a></li> | ||
+ | <li><a class="yellow" href="#">Submeny 3</a> | ||
+ | <ul> | ||
+ | <li><a class="yellow" href="#">Submeny 3.1</a></li> | ||
+ | <li><a class="yellow" href="#">Submeny 3.2</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | |||
+ | <li><a class="green" href="https://2014.igem.org/Team:Gothenburg/Team">Team</a> | ||
+ | <ul> | ||
+ | <li><a class="green" href="#">Official Team profile</a></li> | ||
+ | <li><a class="green" href="#">Unofficial Team profile</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | |||
+ | <li><a class="cyan" href="https://2014.igem.org/Team:Gothenburg/Notebook">Notebook</a> | ||
+ | <ul> | ||
+ | <li><a class="cyan" href="https://2014.igem.org/Team:Gothenburg/Safety">Safety</a></li> | ||
+ | <li><a class="cyan" href="https://2014.igem.org/Team:Gothenburg/Modeling">Modeling</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | |||
+ | <li><a class="blue" href="https://2014.igem.org/Team:Gothenburg/Parts">Parts</a> | ||
+ | <ul> | ||
+ | <li><a class="blue" href="#">Part 1</a></li> | ||
+ | <li><a class="blue" href="#">Part 2</a></li> | ||
+ | <li><a class="blue" href="#">Part 3</a></li> | ||
+ | <li><a class="blue" href="#">Part 4</a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | |||
+ | <li><a class="pink" href="https://2014.igem.org/Team:Gothenburg/Attributions">Attributions</a></li> | ||
- | + | </ul> | |
- | </ | + | </nav> |
- | </ | + | |
- | + | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 13:23, 9 July 2014
<!doctype HTML>