(46 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
<html> | <html> | ||
<style> | <style> | ||
+ | .navbar-custom { | ||
+ | top: 12px !important; | ||
+ | background-color: #f5f5f5; | ||
+ | margin-bottom: 500px; | ||
+ | } | ||
+ | /* change the brand and text color */ | ||
+ | .navbar-custom .navbar-brand, | ||
+ | .navbar-custom .navbar-text { | ||
+ | color: #3c3c3c; | ||
+ | font-size: 30px; | ||
+ | padding-left: 20px; | ||
+ | padding-right: 20px; | ||
+ | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | .navbar- | + | .navbar-nav>li { |
− | + | margin-left: 20px; | |
− | + | margin-right: 35px; | |
− | margin | + | } |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | .navbar-nav | + | /* change the link color */ |
− | + | .navbar-custom .navbar-nav .nav-link { | |
− | + | color: #3c3c3c; | |
− | } | + | font-size: 17px !important; |
+ | font-family: Montserrat !important; | ||
+ | } | ||
− | /* change the link color */ | + | /* change the link color */ |
− | .navbar-custom .navbar-nav .nav-link { | + | .navbar-custom .navbar-nav .nav-link.active { |
− | + | color: #705BA0; | |
− | + | font-weight: 600; | |
− | + | ||
− | + | ||
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | /* change the color of active or hovered links */ | |
+ | .navbar-custom .nav-item.active .nav-link, | ||
+ | .navbar-custom .nav-item:hover .nav-link { | ||
+ | color: #705BA0; | ||
+ | opacity: 0.85; | ||
+ | font-weight: 600; | ||
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | .dropdown-box { | |
+ | background-color: #f5f5f5 !important; | ||
− | + | } | |
− | + | ||
− | + | .dropdown:hover>.dropdown-menu { | |
− | + | display: block; | |
− | .dropdown:hover>.dropdown-menu { | + | transition-delay: 1s; |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
+ | .dropdown-item { | ||
+ | color: #3c3c3c !important; | ||
+ | font-size: 15px !important; | ||
+ | padding-top:8px; | ||
+ | padding-bottom:8px; | ||
+ | padding-left:15px; | ||
+ | padding-right:15px; | ||
+ | font-family: Montserrat !important; | ||
+ | } | ||
</style> | </style> | ||
Line 72: | Line 70: | ||
<script> | <script> | ||
− | + | $(function () { | |
− | + | $('.navbar-nav li').click(function () { | |
− | + | $(this).addClass('active').siblings().removeClass('active'); | |
− | + | }); | |
− | + | }) | |
</script> | </script> | ||
<header> | <header> | ||
− | <nav class="navbar navbar-expand-md fixed-top navbar-custom shadow " style="margin-bottom:500px;"> | + | <nav class="navbar navbar-expand-md fixed-top navbar-custom shadow " style="margin-bottom:500px;"> |
− | + | <div style="width:11%; margin-right:20px; margin-left:50px; "> | |
− | <img src="https://static.igem.org/mediawiki/2019/8/8d/T--Costa_Rica--logo-diff-easy.png" class="img-fluid"> | + | <a href="/Team:Costa_Rica"><img src="https://static.igem.org/mediawiki/2019/8/8d/T--Costa_Rica--logo-diff-easy.png" class="img-fluid"></image></a> |
− | + | </div> | |
− | + | <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample04" | |
− | + | aria-controls="navbarsExample04" aria-expanded="false" aria-label="Toggle navigation"> | |
− | + | <span class="navbar-toggler-icon"></span> | |
+ | </button> | ||
+ | |||
+ | <div class="collapse navbar-collapse navbar-right" id="navbarsExample04" style="padding-left:4%;"> | ||
+ | <ul class="navbar-nav mr-auto"> | ||
+ | |||
+ | |||
+ | <li class="nav-item"> | ||
+ | <a class="nav-link" href="/Team:Costa_Rica">Home</a> | ||
+ | </li> | ||
+ | |||
+ | <li class="nav-item dropdown" style="cursor:pointer;"> | ||
+ | <a class="nav-link " data-toggle="dropdown" > | ||
+ | Team | ||
+ | </a> | ||
+ | <div class="dropdown-menu shadow " style="margin-top: -3px; left:-65%;"> | ||
+ | <a class="dropdown-item" href="/Team:Costa_Rica/Team">iGEM Costa Rica</a> | ||
+ | <a class="dropdown-item" href="/Team:Costa_Rica/Attributions">Attributions</a> | ||
+ | </div> | ||
+ | </li> | ||
− | |||
− | |||
+ | <li class="nav-item dropdown" style="cursor:pointer;"> | ||
+ | <a class="nav-link " data-toggle="dropdown"> | ||
+ | Project | ||
+ | </a> | ||
+ | <div class="dropdown-menu shadow" style="margin-top: -3px; left:-65%;"> | ||
+ | <a class="dropdown-item" href="/Team:Costa_Rica/Description">Description</a> | ||
+ | <a class="dropdown-item" href="/Team:Costa_Rica/Model">Mathematical Model</a> | ||
+ | <a class="dropdown-item" href="/Team:Costa_Rica/Computational_Model">Protein Prediction</a> | ||
+ | <a class="dropdown-item" href="/Team:Costa_Rica/Results">Results</a> | ||
+ | <a class="dropdown-item" href="/Team:Costa_Rica/Supplementary_Material">Supplementary Material</a> | ||
+ | </div> | ||
+ | </li> | ||
− | + | <li class="nav-item"> | |
− | + | <a class="nav-link" href="/Team:Costa_Rica/Parts">Parts</a> | |
− | + | </li> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | <li class="nav-item dropdown" style="cursor:pointer;"> | |
− | + | <a class="nav-link " data-toggle="dropdown"> | |
− | + | Human Practice | |
− | + | </a> | |
− | + | <div class="dropdown-menu shadow" style="margin-top: -3px; left:-5%;"> | |
− | + | <a class="dropdown-item" href="/Team:Costa_Rica/Public_Engagement">Public Engagement</a> | |
− | + | <a class="dropdown-item" href="/Team:Costa_Rica/Human_Practices">Integrated</a> | |
− | + | <a class="dropdown-item" href="/Team:Costa_Rica/Collaborations">Collaborations</a> | |
− | + | </div> | |
− | + | </li> | |
− | + | ||
− | + | ||
− | + | <li class="nav-item dropdown" style="cursor:pointer;"> | |
− | + | <a class="nav-link " data-toggle="dropdown"> | |
− | + | WetLab | |
− | + | </a> | |
− | + | <div class="dropdown-menu shadow" style="margin-top: -3px; left:-5%;"> | |
− | + | <a class="dropdown-item" href="/Team:Costa_Rica/WetLab">Protocols</a> | |
− | + | <a class="dropdown-item" href="/Team:Costa_Rica/Notebook">Notebook</a> | |
− | + | </div> | |
− | + | </li> | |
− | + | <li class="nav-item"> | |
− | + | <a class="nav-link" href="/Team:Costa_Rica/Judging">Judging form</a> | |
− | + | </li> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | </ul> | |
− | + | </div> | |
</nav> | </nav> | ||
</header> | </header> |
Latest revision as of 02:10, 22 October 2019