Line 21: | Line 21: | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | <meta name="viewport" content="width=device-width, initial-scale=1"> | ||
</head> | </head> | ||
+ | <!-- ////////////////////// START TOP HEADER /////////////////////// --> | ||
<head> | <head> | ||
<style> | <style> | ||
− | nav | + | .ccsticky-nav { |
− | + | width: 100%; | |
+ | height: 80px; | ||
+ | position: fixed; | ||
+ | top: 0px; | ||
+ | background: #139ed8; | ||
+ | z-index:+1; | ||
} | } | ||
− | + | .ccsticky-nav ul { | |
− | + | padding: 20px; | |
− | + | margin: 20px auto; | |
− | + | list-style: none; | |
− | + | text-align: center; | |
− | + | position: relative; | |
− | + | left: 150px; | |
− | + | z-index:+1; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | + | .ccsticky-nav ul:after { | |
− | content: ""; clear: both; display: | + | content: ""; clear: both; display: #2828FF; |
} | } | ||
− | nav ul li { | + | .ccsticky-nav ul li { |
− | + | display: inline-block; | |
+ | margin: 0 10px; | ||
+ | z-index:+1; | ||
+ | float: left; | ||
} | } | ||
− | + | .ccsticky-nav ul li:hover { | |
− | background: # | + | background: #2828FF; |
− | + | padding: 20px; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
position: relative; | position: relative; | ||
− | + | top:-20px; | |
− | + | border-radius: 4px; | |
− | + | font-color: white; | |
− | padding: | + | } |
− | + | .ccsticky-nav ul li:hover a { | |
− | + | color: white; | |
− | + | } | |
− | + | .ccsticky-nav ul li a { | |
− | + | padding: 10px 0; | |
− | + | color: #fff; | |
− | + | font-size: 1rem; | |
+ | text-decoration: none; | ||
+ | font-weight: bold; | ||
+ | transition: all 0.2s ease; | ||
+ | z-index:+1; | ||
+ | } | ||
+ | .ccsticky-nav ul li:hover > ul { | ||
+ | display: #2828FF; | ||
+ | } | ||
+ | .ccsticky-nav ul li a:hover { | ||
+ | color: white; | ||
+ | z-index:+1; | ||
+ | } | ||
+ | .new li.dropdown { | ||
+ | display: inline-block; | ||
+ | } | ||
+ | .new li a, .dropbtn { | ||
+ | display: inline-block; | ||
+ | color: white; | ||
+ | text-align: center; | ||
+ | padding: 14px 16px; | ||
+ | text-decoration: none; | ||
+ | } | ||
+ | .new li a:hover, .dropdown:hover | ||
+ | <!-- ////////////////////// START SUBMENUE /////////////////////// --> | ||
+ | .dropdown-content { | ||
+ | display: none; | ||
+ | position fixed; | ||
+ | background-color: rgba(0,0,0,0); | ||
+ | min-width: 160px; | ||
+ | box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2); | ||
+ | z-index:-1; | ||
+ | } | ||
+ | |||
+ | .dropdown-content a { | ||
+ | color: black; | ||
+ | padding: 12px 16px; | ||
+ | text-decoration: none; | ||
+ | display: block; | ||
+ | z-index:-1; | ||
+ | } | ||
+ | |||
+ | .dropdown-content a:hover { | ||
+ | background-color: #46A3FF; padding: 20px; border-radius: 4px; | ||
+ | z-index:+1; | ||
+ | } | ||
+ | |||
+ | .dropdown-content { | ||
+ | display: block; | ||
+ | z-index:-1; | ||
+ | } | ||
</style> | </style> | ||
− | <nav> | + | <nav class="ccsticky-nav"> |
<ul> | <ul> | ||
− | <li><a href="https://2016.igem.org/Team:CGU_Taiwan/Home">HOME</a></li> | + | <li><a class="dropbtn" href="https://2016.igem.org/Team:CGU_Taiwan/Home">HOME</a></li> |
− | <li><a | + | <li><a class="dropbtn" href="https://2016.igem.org/Team:CGU_Taiwan/Team">TEAM</a></li> |
− | + | <li class="dropdown"><a class="dropbtn" href="https://2016.igem.org/Team:CGU_Taiwan/Project">PROJECT</a> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</li> | </li> | ||
− | <li | + | <li class="dropdown"><a class="dropbtn" href="https://2016.igem.org/Team:CGU_Taiwan/Wet Lab">WET LAB</a> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</li> | </li> | ||
− | <li><a href="https://2016.igem.org/Team:CGU_Taiwan/Model">MODELING</a> | + | <li class="dropdown"><a class="dropbtn" href="https://2016.igem.org/Team:CGU_Taiwan/Model">MODELING</a> |
− | + | ||
− | + | ||
− | + | ||
</li> | </li> | ||
− | <li><a href="https://2016.igem.org/Team:CGU_Taiwan/Human_Practices">HUMAN PRACTICES</a></li> | + | <li><a class="dropbtn" href="https://2016.igem.org/Team:CGU_Taiwan/Human_Practices">HUMAN PRACTICES</a></li> |
− | <li><a href="https://2016.igem.org/Team:CGU_Taiwan/Attributions">ATTRIBUTION</a></li> | + | <li><a class="dropbtn" href="https://2016.igem.org/Team:CGU_Taiwan/Attributions">ATTRIBUTION</a></li> |
− | <li | + | <li class="dropdown"><a class="dropbtn" href="https://2016.igem.org/Team:CGU_Taiwan/Notebook">NOTEBOOK</a> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</li> | </li> | ||
</ul> | </ul> | ||
</nav> | </nav> | ||
+ | <!-- ////////////////////// END OF HEADER /////////////////////// --> | ||
<style type="text/css"> | <style type="text/css"> | ||
body{ | body{ |
Revision as of 16:44, 10 August 2016