Line 51: | Line 51: | ||
.navbar { | .navbar { | ||
font-size:16px; | font-size:16px; | ||
+ | } | ||
+ | #navbarSupportedContent{ | ||
+ | height: 100px; | ||
} | } | ||
nav.navbar.shrink { | nav.navbar.shrink { | ||
Line 58: | Line 61: | ||
-webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); | -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); | ||
-moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); | -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); | ||
− | |||
} | } | ||
a.navbar-brand { | a.navbar-brand { | ||
Line 68: | Line 70: | ||
.navbar-light .navbar-brand { | .navbar-light .navbar-brand { | ||
color: #fff; | color: #fff; | ||
− | font-weight: | + | font-weight: 100; |
} | } | ||
.navbar-light .navbar-brand:hover, .navbar-light .navbar-brand:focus { | .navbar-light .navbar-brand:hover, .navbar-light .navbar-brand:focus { | ||
Line 74: | Line 76: | ||
} | } | ||
li.nav-item { | li.nav-item { | ||
− | margin: | + | margin: 10px; |
} | } | ||
.navbar-light .navbar-nav .nav-link { | .navbar-light .navbar-nav .nav-link { | ||
− | |||
color: #fff; | color: #fff; | ||
background: transparent; | background: transparent; | ||
Line 108: | Line 109: | ||
/*---*/ | /*---*/ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
li.nav-item.active,li.nav-item:hover { | li.nav-item.active,li.nav-item:hover { | ||
border-bottom: 2px solid #4c6ef5; | border-bottom: 2px solid #4c6ef5; | ||
+ | display: inline-block; | ||
} | } | ||
Line 140: | Line 133: | ||
<body> | <body> | ||
− | + | <nav class="navbar navbar-expand-lg navbar-light fixed-top shrink"> | |
− | + | <a class="navbar-brand" href="index.html"> | |
− | + | <img src="https://static.igem.org/mediawiki/2019/c/ca/T--CSU_CHINA--LOGOWITHWORDS.png" alt="logo" style="height:90px;"> | |
− | + | </a> | |
− | + | <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"> | |
− | + | <span class="navbar-toggler-icon"></span> | |
− | + | </button> | |
− | + | <div class="collapse navbar-collapse" id="navbarSupportedContent"> | |
− | + | <ul class="navbar-nav ml-lg-auto text-center"> | |
− | + | <li class="nav-item active"> | |
− | + | <a class="nav-link" href="index.html">HOME</a> | |
− | + | </li> | |
− | + | <li class="nav-item dropdown"> | |
− | + | <a class="nav-link dropdown-toggle" href="https://2019.igem.org/Team:CSU_CHINA/Team" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">TEAM</a> | |
− | + | <div class="dropdown-menu" aria-labelledby="navbarDropdown"> | |
− | + | <a class="dropdown-item" href="about.html" title="">TEAM1</a> | |
− | + | <a class="dropdown-item" href="projects.html" title="">TEAM2</a> | |
− | + | </div> | |
− | + | </li> | |
− | + | <li class="nav-item"> | |
− | + | <a class="nav-link" href="features.html">MODEL</a> | |
− | + | </li> | |
− | + | <li class="nav-item"> | |
− | + | <a class="nav-link" href="team.html">HP</a> | |
− | + | </li> | |
− | + | <li class="nav-item"> | |
− | + | <a class="nav-link" href="contact.html">LAB</a> | |
− | + | </li> | |
− | + | <li class="nav-item dropdown"> | |
− | + | <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown1" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">PARTS</a> | |
− | + | <div class="dropdown-menu" aria-labelledby="navbarDropdown"> | |
− | + | <a class="dropdown-item" href="pricing.html">MODEL1</a> | |
− | + | <a class="dropdown-item" href="pricing_light.html">MODEL2</a> | |
− | + | <a class="dropdown-item" href="pricing.html">MODEL3</a> | |
− | + | </div> | |
− | + | </li> | |
− | + | <li class="nav-item"> | |
− | + | <a class="nav-link" href="contact.html">SAFETY</a> | |
− | + | </li> | |
− | + | <li class="nav-item dropdown"> | |
− | + | <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown1" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">PROJECT</a> | |
− | + | <div class="dropdown-menu" aria-labelledby="navbarDropdown"> | |
− | + | <a class="dropdown-item" href="pricing.html"> DESCRIPTION</a> | |
− | + | <a class="dropdown-item" href="pricing_light.html"> DESIGN</a> | |
− | + | <a class="dropdown-item" href="pricing.html">RESULTS</a> | |
− | + | </div> | |
− | + | </li> | |
− | + | <li class="nav-item"> | |
− | + | <a class="nav-link" href="contact.html">JUDGING</a> | |
− | + | </li> | |
− | + | </ul> | |
− | + | </div> | |
− | + | </nav> | |
− | + | ||
− | + | ||
<script> | <script> | ||
$(document).ready(function() { | $(document).ready(function() { |
Revision as of 12:16, 22 September 2019