(22 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
<head> | <head> | ||
− | |||
− | |||
<style> | <style> | ||
− | . | + | @font-face { |
+ | font-family: 'Montserrat'; | ||
+ | src: url('https://static.igem.org/mediawiki/2018/3/30/T--TPHS_San_Diego--Montserrat.ttf') format('truetype'); | ||
+ | } | ||
+ | |||
+ | #navbar | ||
{ | { | ||
− | + | margin: auto; | |
− | + | margin-top:0px; | |
− | + | width: 100%; | |
− | + | text-align: center; | |
− | + | box-shadow: 0 0 20px #333333; | |
− | + | position: fixed; | |
− | + | top: 15px; | |
− | + | z-index: 10; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | + | #navbar-fill { | |
− | + | width:100%; | |
− | { | + | margin-top: 0px; |
− | + | background-color: #333333; | |
− | + | z-index: 2; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | + | .dropbtn { | |
− | . | + | background-color: #333333; |
− | { | + | color: white; |
+ | width: 180px; | ||
+ | padding: 13px; | ||
+ | font-size: 16px; | ||
+ | border: none; | ||
+ | cursor: pointer; | ||
+ | font-family: 'Montserrat', sans-serif; | ||
+ | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | + | button.dropbtn:hover | |
− | . | + | |
{ | { | ||
− | + | background-color: black; | |
− | + | } | |
+ | .dropdown { | ||
+ | position: relative; | ||
+ | display: inline-block; | ||
+ | font-family: 'Montserrat', sans-serif; | ||
} | } | ||
− | + | .dropdown-content { | |
− | .dropdown | + | display: none; |
− | { | + | position: absolute; |
− | + | width: 180px; | |
− | + | background-color: #333333; | |
− | + | box-shadow: 0px 0px 20px #333333; | |
− | + | z-index: 2; | |
− | + | text-align: center; | |
− | + | font-family: 'Montserrat', sans-serif; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | + | ||
− | + | #title | |
{ | { | ||
− | + | color: white; | |
+ | text-decoration: none; | ||
+ | } | ||
+ | |||
+ | .dropdown-content a { | ||
+ | color: white; | ||
+ | border-bottom-style: solid; | ||
+ | border-bottom-color: white; | ||
+ | border-bottom-width: 1px; | ||
+ | padding: 12px 16px; | ||
+ | text-decoration: none; | ||
+ | display: block; | ||
+ | font-family: 'Montserrat', sans-serif; | ||
+ | } | ||
+ | |||
+ | .dropdown-content a:hover { | ||
+ | background-color: #6e6e6e | ||
+ | } | ||
+ | |||
+ | .dropdown:hover .dropdown-content { | ||
+ | display: block; | ||
+ | } | ||
+ | |||
+ | .dropdown:hover .dropbtn { | ||
+ | background-color: #333333; | ||
} | } | ||
− | + | div.animation a:before | |
− | . | + | |
{ | { | ||
− | + | position: absolute; | |
− | + | top: 0px; | |
− | + | left: 0px; | |
− | + | width: 1px; | |
− | + | height: 0px; | |
− | + | background: #FFF; | |
+ | content: ""; | ||
+ | opacity: 1; | ||
+ | transition: all 0.3s; | ||
} | } | ||
− | + | div.animation a:after | |
− | . | + | |
{ | { | ||
− | + | position: absolute; | |
− | + | top: 0px; | |
− | + | left: 0px; | |
− | + | width: 100%; | |
− | + | height: 1px; | |
− | + | background: #FFF; | |
+ | content: ""; | ||
+ | opacity: 1; | ||
+ | transition: all 0.3s; | ||
} | } | ||
− | + | div.animation a:hover:before | |
− | . | + | |
{ | { | ||
− | + | height: 100%; | |
} | } | ||
− | + | div.animation a:hover:after | |
− | . | + | |
{ | { | ||
− | + | opacity: 0; | |
+ | top: 10%; | ||
} | } | ||
− | |||
Line 125: | Line 133: | ||
</head> | </head> | ||
<body> | <body> | ||
− | + | <div id = "navbar"> | |
− | + | <div id="navbar-fill"> | |
− | + | <div class="dropdown nav-animation"> | |
− | + | <a href = "https://2018.igem.org/Team:TPHS_San_Diego"> <button class = "dropbtn" class id = "title" style = "color: white"> Home </button> </a> | |
− | + | ||
− | + | </div> | |
− | + | ||
− | + | <div class="dropdown"> | |
− | + | <button class="dropbtn"> Project </button> | |
− | + | <div class="dropdown-content" style="left:0;"> | |
− | + | <a style="font-family: 'Montserrat', sans-serif;" href="https://2018.igem.org/Team:TPHS_San_Diego/Description">Description</a> | |
− | + | <a style="font-family: 'Montserrat', sans-serif;" href="https://2018.igem.org/Team:TPHS_San_Diego/Model">Modeling</a> | |
− | + | ||
− | + | <a style="font-family: 'Montserrat', sans-serif;" href="https://2018.igem.org/Team:TPHS_San_Diego/Parts">Parts</a> | |
− | + | ||
− | + | <a style="font-family: 'Montserrat', sans-serif;" href="https://2018.igem.org/Team:TPHS_San_Diego/Results">Results</a> | |
− | + | ||
− | + | <a style="font-family: 'Montserrat', sans-serif;" href="https://2018.igem.org/Team:TPHS_San_Diego/Safety">Safety</a> | |
− | + | ||
− | + | </div> | |
− | + | </div> | |
− | + | ||
− | + | <div class="dropdown"> | |
− | + | <button class="dropbtn"> Notebook </button> | |
− | + | <div class="dropdown-content"> | |
− | + | <a style="font-family: 'Montserrat', sans-serif;" href="https://2018.igem.org/Team:TPHS_San_Diego/Notebook">Lab Notebook</a> | |
− | + | <a style="font-family: 'Montserrat', sans-serif;" href="https://2018.igem.org/Team:TPHS_San_Diego/Experiments">Experiments</a> | |
− | + | <a style="font-family: 'Montserrat', sans-serif;" href="https://2018.igem.org/Team:TPHS_San_Diego/Improve">Part Improvements</a> | |
− | + | </div> | |
− | + | </div> | |
− | + | ||
− | + | <div class="dropdown"> | |
− | + | <button class="dropbtn"> Human Practices </button> | |
− | + | <div class="dropdown-content"> | |
− | + | <a style="font-family: 'Montserrat', sans-serif;" href="https://2018.igem.org/Team:TPHS_San_Diego/Human_Practices">Integrated Human Practices</a> | |
− | + | <a style="font-family: 'Montserrat', sans-serif;" href="https://2018.igem.org/Team:TPHS_San_Diego/Collaborations">Collaborations</a> | |
− | + | ||
− | + | </div> | |
− | + | </div> | |
− | + | ||
− | + | <div class="dropdown"> | |
− | + | <button class="dropbtn"> Team </button> | |
− | + | <div class="dropdown-content"> | |
− | + | <a style="font-family: 'Montserrat', sans-serif;" href="https://2018.igem.org/Team:TPHS_San_Diego/Team">Team</a> | |
− | + | <a style="font-family: 'Montserrat', sans-serif;" href="https://2018.igem.org/Team:TPHS_San_Diego/Attributions">Attributions</a> | |
− | + | </div> | |
− | + | </div> | |
− | + | ||
− | + | <div class="dropdown"> | |
+ | <button class="dropbtn"> Judging </button> | ||
+ | <div class="dropdown-content"> | ||
+ | <a style="font-family: 'Montserrat', sans-serif;" href="https://2018.igem.org/Team:TPHS_San_Diego/Medal_Criteria">Medal Criteria</a> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | </div> | ||
+ | |||
− | + | </div> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</body> | </body> | ||
</html> | </html> |
Latest revision as of 22:16, 17 October 2018