Line 1: | Line 1: | ||
<html> | <html> | ||
− | |||
<head> | <head> | ||
<title>iGEM</title> | <title>iGEM</title> | ||
Line 27: | Line 26: | ||
/*-------------------------------------------------------------------*/ | /*-------------------------------------------------------------------*/ | ||
− | + | /*----------------------Header Styling-------------------------*/ | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | /**/ | |
− | + | #topnav { | |
− | + | display: flex; | |
− | + | justify-content: center; | |
+ | align-items: center; | ||
+ | background-color: #002855; | ||
+ | margin: 0; | ||
+ | list-style: none; | ||
+ | padding: 40px; | ||
+ | width: 100%; | ||
+ | overflow: hidden; | ||
− | + | } | |
− | + | #topnav div, a { | |
− | + | text-decoration: none; | |
+ | } | ||
+ | #topnav li.logo { | ||
+ | display: inline-flex; | ||
+ | justify-content: center; | ||
− | + | } | |
− | + | #topnav .b-nav-item:visited { | |
− | } | + | color: #525b65; |
+ | } | ||
+ | .dropdown { | ||
+ | padding-left: 15px; | ||
+ | padding-right: 15px; | ||
+ | } | ||
+ | .dropdown-main, | ||
+ | .nav-item { | ||
+ | font-size: 15px; | ||
+ | color: white; | ||
+ | } | ||
− | + | .dropdown-content { | |
− | + | display: none; | |
− | + | position: absolute; | |
+ | background-color: #f9f9f9; | ||
+ | min-width: 200px; | ||
+ | border-radius: 7px; | ||
+ | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); | ||
+ | z-index: 1; | ||
+ | } | ||
− | + | .dropdown-content a { | |
− | + | float: none; | |
− | + | font-size: 14px; | |
− | + | color: #525b65; | |
+ | padding: 12px 16px; | ||
+ | display: block; | ||
+ | text-align:left; | ||
+ | } | ||
+ | .dropdown:hover .dropdown-content { | ||
+ | display: block; | ||
+ | } | ||
− | + | .dropdown-content a:hover { | |
− | + | color: black; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | /*-----------Burger Menu Styling-------------*/ | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | #topnav .burger { | |
− | + | display: none; | |
− | + | margin-right: 20px; | |
− | + | color: #d9a900; | |
− | + | font-size: 20px; | |
− | + | } | |
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | + | .burger-content { | |
− | + | display: none; | |
− | + | position: absolute; | |
+ | background-color: #f9f9f9; | ||
+ | border-radius: 7px; | ||
+ | box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2); | ||
+ | z-index: 1; | ||
+ | width: 200px; | ||
+ | margin-left: -200px; | ||
− | + | } | |
− | + | .b-dropdown-main { | |
− | + | font-weight: bold; | |
− | + | font-size: 18px; | |
− | + | color: #525b65; | |
− | + | padding: 12px 16px; | |
− | + | display: block; | |
+ | text-align: left; | ||
+ | overflow: hidden; | ||
+ | } | ||
+ | .b-dropdown-content { | ||
+ | display: none; | ||
+ | position: block; | ||
+ | color: #525b65; | ||
+ | padding: 12px; | ||
+ | } | ||
+ | .b-dropdown-content a { | ||
+ | display: block; | ||
+ | padding: 5px; | ||
+ | color: #525b65; | ||
+ | font-weight: normal; | ||
+ | font-size: 14px; | ||
− | + | } | |
− | + | #topnav .b-dropdown:hover .b-dropdown-content { | |
− | + | display: block; | |
− | + | } | |
− | + | #topnav .b-dropdown-content a:hover { | |
− | + | color: black; | |
− | + | } | |
− | + | #topnav .b-dropdown-content a:visited { | |
− | + | color: black; | |
+ | } | ||
− | } | + | input[type=checkbox]{ |
+ | display: none; | ||
+ | } | ||
+ | input[type=checkbox]:checked ~ .burger-content { | ||
+ | display: block; | ||
+ | } | ||
− | + | @media screen and (max-width:750px) { | |
− | + | #topnav li { | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
display: none; | display: none; | ||
− | |||
− | |||
− | |||
} | } | ||
+ | #topnav { | ||
+ | justify-content: space-between; | ||
+ | } | ||
− | . | + | #topnav li.burger { |
display: block; | display: block; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
+ | #topnav li.logo{ | ||
+ | display: block; } | ||
+ | } | ||
+ | .logolink { | ||
+ | display: flex; | ||
+ | justify-content: center; | ||
+ | align-items: center; | ||
+ | padding-right: 40px; | ||
+ | } | ||
</style> | </style> | ||
− | |||
<body> | <body> | ||
<!--______________Top Navigation Bar_________________________--> | <!--______________Top Navigation Bar_________________________--> | ||
− | + | <ul = id="topnav"> | |
− | + | <li class="dropdown"><a href="PROJECT" class="dropdown-main">PROJECT</a> | |
− | + | <div class="dropdown-content"> | |
− | <a href=" | + | <a href="https://2018.igem.org/Team:UC_Davis/Design">Design</a> |
<a href="#">Results</a> | <a href="#">Results</a> | ||
<a href="#">Modelling</a> | <a href="#">Modelling</a> | ||
− | <a href=" | + | <a href="https://2018.igem.org/Team:UC_Davis/InterLab">InterLab</a> |
− | + | <a href="https://2018.igem.org/Team:UC_Davis/SupplementalMaterials">Supplementary Material</a> | |
− | + | </div> | |
− | + | </li> | |
− | + | <li class="dropdown"><a href="Human-Resources" class="dropdown-main">HUMAN RESOURCES</a> | |
− | <a href="#"> | + | <div class="dropdown-content"> |
− | <a href="#"> | + | <a href="#">Human Practices</a> |
+ | <a href="#">Education & Engagement</a> | ||
<a href="#">Policy</a> | <a href="#">Policy</a> | ||
− | + | </div> | |
− | + | </li> | |
− | + | <li class="dropdown"><a href="Parts" class="dropdown-main">PARTS</a> | |
− | + | <div class="dropdown-content"> | |
+ | <a href="#">Parts Overview</a> | ||
<a href="#">Basic</a> | <a href="#">Basic</a> | ||
<a href="#">Composite</a> | <a href="#">Composite</a> | ||
<a href="#">Parts Collection</a> | <a href="#">Parts Collection</a> | ||
− | + | </div> | |
− | </li> | + | </li> |
+ | <!--______________Logo_________________________--> | ||
+ | <li class="logo" style="background-color: #002855"> | ||
+ | <a class="logolink" href="https://2018.igem.org/Team:UC_Davis"> | ||
+ | <img src="https://static.igem.org/mediawiki/2018/7/73/T--UC_Davis--anchor.png" alt="Cenozoic logo" style="width: 125px;";> | ||
+ | <div style = 'margin-left: -40px; font-size: 25px; color: #d9a900'; ><b>Cenozoic</b></div> | ||
+ | </a> | ||
+ | </li> | ||
<li class="navlogo"><img src="" alt=""></li> | <li class="navlogo"><img src="" alt=""></li> | ||
− | + | <li class="dropdown"><a href="Lab" class="dropdown-main">LAB WORK</a> | |
− | + | <div class="dropdown-content"> | |
− | <a href="#"> | + | <a href="#">Experiments</a> |
− | <a href="#"> | + | <a href="#">Lab Notebook</a> |
<a href="#">Safety</a> | <a href="#">Safety</a> | ||
− | + | </div> | |
− | + | </li> | |
− | + | <li class="dropdown"><a href="Team" class="nav-item">TEAM</a> | |
<div class="dropdown-content"> | <div class="dropdown-content"> | ||
<a href="#">Meet the Team</a> | <a href="#">Meet the Team</a> | ||
− | <a href="#"> | + | <a href="#">Attributions</a> |
− | <a href="#"> | + | <a href="#">Sponsors</a> |
− | + | </div> | |
− | + | </li> | |
− | + | <li class="dropdown"><a href="Achievements" class="nav-item">ACHIEVEMENTS</a> | |
− | + | <div class="dropdown-content"> | |
− | + | <a href="#">Medal Requirements</a> | |
− | + | <a href="#">Awards</a> | |
− | + | </div> | |
− | + | </li> | |
− | + | <!--___________________________________Burger Menu____________________________________________--> | |
− | + | <li class="burger"><input type="checkbox" id="b-control"><label for="b-control">☰</label> | |
− | + | <div class="burger-content"> | |
− | + | <div class="b-dropdown"><a href="PROJECT" class="b-dropdown-main">Project</a> | |
− | + | <div class="b-dropdown-content"> | |
− | <a href=" | + | <a href="https://2018.igem.org/Team:UC_Davis/Design">Design</a> |
<a href="#">Results</a> | <a href="#">Results</a> | ||
<a href="#">Modelling</a> | <a href="#">Modelling</a> | ||
− | <a href=" | + | <a href="https://2018.igem.org/Team:UC_Davis/InterLab">InterLab</a> |
− | + | <a href="https://2018.igem.org/Team:UC_Davis/SupplementalMaterials">Supplementary Material</a> | |
− | + | </div> | |
− | + | </div> | |
− | + | <div class="b-dropdown"><a href="Human-Resources" class="b-dropdown-main">Human Resources</a> | |
− | <a href="#"> | + | <div class="b-dropdown-content"> |
− | <a href="#"> | + | <a href="#">Human Practices</a> |
+ | <a href="#">Education & Engagement</a> | ||
<a href="#">Policy</a> | <a href="#">Policy</a> | ||
− | + | </div> | |
− | + | </div> | |
− | + | <div class="b-dropdown"><a href="Parts" class="b-dropdown-main">Parts</a> | |
− | + | <div class="b-dropdown-content"> | |
+ | <a href="#">Parts Overview</a> | ||
<a href="#">Basic</a> | <a href="#">Basic</a> | ||
<a href="#">Composite</a> | <a href="#">Composite</a> | ||
<a href="#">Parts Collection</a> | <a href="#">Parts Collection</a> | ||
− | + | </div> | |
− | + | </div> | |
− | + | <div class="b-dropdown"><a href="Lab" class="b-dropdown-main">Lab Work</a> | |
− | + | <div class="b-dropdown-content"> | |
− | <a href="#"> | + | <a href="#">Experiments</a> |
− | <a href="#"> | + | <a href="#">Lab Notebook</a> |
<a href="#">Safety</a> | <a href="#">Safety</a> | ||
− | + | </div> | |
− | + | </div> | |
<div class="b-dropdown"><a href="Team" class="b-dropdown-main">Team</a> | <div class="b-dropdown"><a href="Team" class="b-dropdown-main">Team</a> | ||
− | + | <div class="b-dropdown-content"> | |
<a href="#">Meet the Team</a> | <a href="#">Meet the Team</a> | ||
<a href="#">Advisors</a> | <a href="#">Advisors</a> | ||
<a href="#">Sposors</a> | <a href="#">Sposors</a> | ||
− | + | </div> | |
− | + | </div> | |
<div class="b-dropdown"><a href="Achievements" class="b-dropdown-main">Achievements</a> | <div class="b-dropdown"><a href="Achievements" class="b-dropdown-main">Achievements</a> | ||
− | + | <div class="b-dropdown-content"> | |
<a href="#">Medal Requirements</a> | <a href="#">Medal Requirements</a> | ||
− | <a href="#"> | + | <a href="#">Awards</a> |
− | + | </div> | |
− | + | </div> | |
− | + | </div> | |
− | + | </li> | |
− | + | </ul> | |
− | + | <!--__________________________________________________________________________________________--> | |
− | + | <!--______________________________________________________________________________--> | |
</body> | </body> |
Revision as of 18:20, 9 August 2018