Difference between revisions of "Template:GlasgowNavbar"
Line 3: | Line 3: | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta charset="utf-8"> | <meta charset="utf-8"> | ||
− | + | <meta name="viewport" content="width=device-width, initial-scale=1"> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
<head> | <head> | ||
<style> | <style> | ||
Line 13: | Line 9: | ||
/*===== Navigation Bar =====*/ | /*===== Navigation Bar =====*/ | ||
− | + | .mainNav { | |
− | + | background-image: url(https://static.igem.org/mediawiki/2015/2/29/Dna_banner.png); | |
− | + | background-size: cover; | |
− | + | background-color:black; | |
− | + | height:50px; | |
− | + | padding: 0px; | |
− | + | margin: 0px; | |
− | + | position: fixed; | |
− | + | width:100%; | |
− | + | top:16px; | |
− | + | left:0; | |
+ | } | ||
− | + | nav ul { | |
− | + | height:50px; | |
− | + | width: 1120px; | |
− | + | margin: 0 auto; | |
− | + | padding: 0px; | |
− | + | } | |
− | + | li a img { | |
− | + | height:42px; | |
− | + | width: 67px; | |
− | + | padding: 0px; | |
+ | display:block; | ||
+ | margin: auto; | ||
+ | margin-top:4px; | ||
+ | } | ||
− | + | nav ul li { | |
− | + | list-style: none; | |
− | + | width:160px; | |
− | + | max-height: 50px; | |
− | + | float: left; | |
− | + | text-align: center; | |
− | + | padding: 0px; | |
− | + | margin: 0px; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | nav ul li a, nav ul li a:active, nav ul li a:visited { | |
− | + | text-decoration: none; | |
− | + | color: white; | |
− | + | line-height: 50px; | |
− | + | display:block; | |
− | + | padding: 0px; | |
+ | margin: 0px; | ||
+ | font-family: sans-serif; | ||
+ | } | ||
+ | /* | ||
+ | li a:hover { | ||
+ | background-color:white; | ||
+ | color:black; | ||
+ | height:50px; | ||
+ | }*/ | ||
− | + | li .ball { | |
− | + | height: 45px; | |
− | + | width: 45px; | |
− | + | background-color: yellow; | |
− | + | position:absolute; | |
− | + | border-radius:50%; | |
− | + | margin-top:2px; | |
− | + | opacity: 0; | |
− | + | } | |
− | + | ||
− | + | .dropNav { | |
− | + | background-color:black; | |
− | + | width:1400px; | |
− | + | height:20px; | |
− | + | display:none; | |
− | + | position:absolute; | |
− | } | + | left:0; |
+ | margin:0px auto; | ||
+ | } | ||
+ | |||
+ | /* | ||
+ | .dropNav ul li { | ||
+ | float:left; | ||
+ | text-align: center; | ||
+ | margin: 0px auto; | ||
+ | position:relative; | ||
+ | padding:5px; | ||
+ | } | ||
+ | |||
+ | .dropNav ul { | ||
+ | margin: 0px auto; | ||
+ | border: 1px solid red; | ||
+ | width:450px; | ||
+ | height:25px; | ||
+ | }*/ | ||
+ | |||
+ | |||
+ | |||
+ | span.project { | ||
+ | margin-right: 10px; | ||
+ | } | ||
+ | |||
+ | span.team { | ||
+ | margin-right: 10px; | ||
+ | } | ||
+ | |||
+ | span.journal { | ||
+ | margin-right: 5px; | ||
+ | } | ||
+ | |||
+ | span.modelling { | ||
+ | margin-left: 7px; | ||
+ | } | ||
+ | |||
+ | span.application { | ||
+ | margin-left: 10px; | ||
+ | } | ||
+ | |||
+ | span.contact { | ||
+ | margin-left: 15px; | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | div.project { | ||
+ | margin-left: 20px; | ||
+ | } | ||
+ | |||
+ | div.team { | ||
+ | margin-left: 22px; | ||
+ | } | ||
+ | |||
+ | div.journal { | ||
+ | margin-left: 25px; | ||
+ | } | ||
+ | |||
+ | div.modelling { | ||
+ | margin-left: 30px; | ||
+ | } | ||
+ | |||
+ | div.application { | ||
+ | margin-left: 33px; | ||
+ | } | ||
+ | |||
+ | div.contact { | ||
+ | margin-left: 36px; | ||
+ | } | ||
+ | |||
+ | ul li ul { | ||
+ | display:none; | ||
+ | position:relative; | ||
+ | |||
+ | } | ||
+ | |||
+ | ul li ul li { | ||
+ | list-style: none; | ||
+ | display:block; | ||
+ | width:140px; | ||
+ | float:none; | ||
+ | background-color:black; | ||
+ | color:white; | ||
+ | padding:10px; | ||
+ | } | ||
+ | /* | ||
+ | ul li:hover .dropNav { | ||
+ | display: block; | ||
+ | }*/ | ||
+ | |||
+ | ul li:hover ul { | ||
+ | display:block; | ||
+ | } | ||
+ | |||
+ | .dim { | ||
+ | opacity:0.3; | ||
+ | } | ||
+ | |||
+ | .dim:hover { | ||
+ | opacity:1; | ||
+ | } | ||
/*===== //Navigation Bar ====*/ | /*===== //Navigation Bar ====*/ | ||
Line 91: | Line 193: | ||
<!-- Navigation bar --> | <!-- Navigation bar --> | ||
− | + | ||
+ | <nav class="mainNav"> | ||
<ul> | <ul> | ||
− | <li><div></div><a class="project" href= | + | <li><!--<div class="ball project"></div>--><a href='#'><span class="project">Project</span></a> |
− | <li><div></div><a class="team" href= | + | <nav><ul> |
− | + | <li><a href="#">Description</a></li> | |
− | <li><a | + | <li><a href="#">Biology</a></li> |
− | <li><div></div><a class="modelling" href='#'>Modelling</a></li> | + | <li><a href="#">More Biology</a></li> |
− | + | </ul></nav> | |
− | <li><div></div><a class="contact" | + | |
+ | </li> | ||
+ | <li><!--<div class="ball team"></div>--><a href='pages/team/team.html'><span class="team">About Us</span></a> | ||
+ | <nav><ul> | ||
+ | <li><a href="https://2015.igem.org/Team:Glasgow/Team">Team</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:Glasgow/Attributions">Attributions</a></li> | ||
+ | <li><a href="https://2015.igem.org/Team:Glasgow/Sponsors">Sponsors</a></li> | ||
+ | </ul></nav> | ||
+ | </li> | ||
+ | <li><!--<div class="ball journal"></div>--><a href='https://2015.igem.org/Team:Glasgow/Notebook'><span class="journal">Notebook</span></a> | ||
+ | </li> | ||
+ | |||
+ | <li><a href='https://2015.igem.org/Team:Glasgow'><img class="main" src="https://static.igem.org/mediawiki/2015/0/0b/Uni-inverted.jpg"/></a></li> | ||
+ | |||
+ | <li><!--<div class="ball modelling"></div>--><a href='#'><span class="modelling">Modelling</span></a> | ||
+ | <nav><ul> | ||
+ | <li><a href='#'>Modelling</a></li> | ||
+ | <li><a href='#'>Top Modelling</a></li> | ||
+ | <li><a href="#">Super Top Modelling</a></li> | ||
+ | </ul></nav> | ||
+ | </li> | ||
+ | |||
+ | <li><!--<div class="ball application"></div>--><a href='#'><span class="application">Application</span></a></li> | ||
+ | <li><!--<div class="ball contact"></div>--><a href='#'><span class="contact">Contact</span></a></li> | ||
</ul> | </ul> | ||
</nav> | </nav> | ||
+ | |||
<!-- //Navigation bar --> | <!-- //Navigation bar --> | ||
Line 122: | Line 249: | ||
</body> | </body> | ||
+ | </html> |
Revision as of 11:20, 19 August 2015