(16 intermediate revisions by 2 users not shown) | |||
Line 19: | Line 19: | ||
<style> | <style> | ||
#navigator{ margin-top: 16px; z-index: 10000;} | #navigator{ margin-top: 16px; z-index: 10000;} | ||
− | #navigator:hover{ background-color: rgb(52,58,64) | + | #navigator:hover{ background-color: rgb(52,58,64);} |
#navigator .navbar-brand img{ height: 45px; } | #navigator .navbar-brand img{ height: 45px; } | ||
− | #navigator a{ font-size: 16px !important; color: rgb(151,155,158) !important;} | + | #navigator a{ font-size: 16px !important; color: rgb(151,155,158);} |
− | #navigator .nav-link:hover{ color: white !important;} | + | #navigator #sp{color:#E17E84!important;} |
− | #navigator .dropdown-item{ color: #262626 | + | #navigator .nav-link:hover{ color: white;} |
− | #navigator .dropdown-item:hover{ color: #999999 | + | #navigator #sp:hover{ color: #D4577E!important;} |
− | #navigator .dropdown-menu:hover .nav-link{ color: white | + | #navigator .dropdown-item{ color: #262626;} |
+ | #navigator .dropdown-item:hover{ color: #999999;} | ||
+ | #navigator .dropdown-menu:hover .nav-link{ color: white;} | ||
.trans{ background-color: rgba(0, 0, 0, 0.1); } | .trans{ background-color: rgba(0, 0, 0, 0.1); } | ||
#navigator .nav-item:hover .dropdown-toggle::after{ | #navigator .nav-item:hover .dropdown-toggle::after{ | ||
Line 48: | Line 50: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
− | |||
$(document).ready(function(){ | $(document).ready(function(){ | ||
+ | // 若文档高度小于窗口高度,赞助框位于页面最底部 | ||
$(".dropdown").hover(function() { | $(".dropdown").hover(function() { | ||
− | $('.dropdown-menu', this). | + | $('.dropdown-menu', this).slideToggle("fast"); |
+ | }); | ||
+ | // 改导航栏css | ||
+ | $(".dropdown-menu").mouseenter(function(){ | ||
+ | $(this).prev().css("color","white"); | ||
+ | }); | ||
+ | $(".dropdown-menu").mouseleave(function(){ | ||
+ | $(this).prev().css("color","rgb(151,155,158)"); | ||
}); | }); | ||
// 滚动渐隐 | // 滚动渐隐 | ||
Line 72: | Line 81: | ||
<div class="collapse navbar-collapse" id="collapsibleNavId"> | <div class="collapse navbar-collapse" id="collapsibleNavId"> | ||
<ul class="navbar-nav ml-md-auto "> | <ul class="navbar-nav ml-md-auto "> | ||
+ | <li class="nav-item"> | ||
+ | <a id="sp" class="nav-link" href="/Team:CSU_CHINA/Special_Page">SPECIAL PAGE</a> | ||
+ | </li> | ||
<li class="nav-item"> | <li class="nav-item"> | ||
<a class="nav-link" href="/Team:CSU_CHINA">HOME</a> | <a class="nav-link" href="/Team:CSU_CHINA">HOME</a> | ||
Line 78: | Line 90: | ||
<a class="nav-link dropdown-toggle" href="#" id="navbar_PROJECT" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">PROJECT</a> | <a class="nav-link dropdown-toggle" href="#" id="navbar_PROJECT" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">PROJECT</a> | ||
<div class="dropdown-menu bg-light " aria-labelledby="navbarDropdown"> | <div class="dropdown-menu bg-light " aria-labelledby="navbarDropdown"> | ||
− | <a class="dropdown-item" href="">DESCRIPTION</a> | + | <a class="dropdown-item" href="/Team:CSU_CHINA/Description">DESCRIPTION</a> |
− | <a class="dropdown-item" href="">DESIGN</a> | + | <a class="dropdown-item" href="/Team:CSU_CHINA/Design">DESIGN</a> |
<a class="dropdown-item" href="/Team:CSU_CHINA/Demonstrate">DEMONSTRATION</a> | <a class="dropdown-item" href="/Team:CSU_CHINA/Demonstrate">DEMONSTRATION</a> | ||
</div> | </div> | ||
Line 86: | Line 98: | ||
<a class="nav-link dropdown-toggle" href="#" id="navbar_PARTS" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">PARTS</a> | <a class="nav-link dropdown-toggle" href="#" id="navbar_PARTS" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">PARTS</a> | ||
<div class="dropdown-menu bg-light" aria-labelledby="navbarDropdown"> | <div class="dropdown-menu bg-light" aria-labelledby="navbarDropdown"> | ||
− | <a class="dropdown-item" href=" | + | <a class="dropdown-item" href="/Team:CSU_CHINA/Basic_Part">BASIC PARTS</a> |
− | <a class="dropdown-item" href=" | + | <a class="dropdown-item" href="/Team:CSU_CHINA/Composite_Part">COMPOSITE PARTS</a> |
− | <a class="dropdown-item" href=" | + | <a class="dropdown-item" href="/Team:CSU_CHINA/Part_Collection">IMPROVED PART</a> |
</div> | </div> | ||
</li> | </li> | ||
Line 109: | Line 121: | ||
<a class="dropdown-item" href="/Team:CSU_CHINA/LabTasks">LABTASK</a> | <a class="dropdown-item" href="/Team:CSU_CHINA/LabTasks">LABTASK</a> | ||
<a class="dropdown-item" href="/Team:CSU_CHINA/Notebook">NOTEBOOK</a> | <a class="dropdown-item" href="/Team:CSU_CHINA/Notebook">NOTEBOOK</a> | ||
− | <a class="dropdown-item" href="/Team:CSU_CHINA/Protocols"> | + | <a class="dropdown-item" href="/Team:CSU_CHINA/Protocols">PROTOCALS</a> |
</div> | </div> | ||
</li> | </li> | ||
Line 127: | Line 139: | ||
</nav> | </nav> | ||
+ | <style> | ||
+ | #labLoad, | ||
+ | #labLoad img, | ||
+ | #labLoad div{ | ||
+ | display: flex; | ||
+ | justify-content: center; | ||
+ | align-items: center; | ||
+ | } | ||
+ | #labLoad div{ | ||
+ | width: 300px; | ||
+ | height: 300px; | ||
+ | } | ||
+ | #labload h1, | ||
+ | #labLoad img, | ||
+ | #labLoad .lodt, | ||
+ | #labLoad .lodo, | ||
+ | #labLoad .lodb{ | ||
+ | position: absolute; | ||
+ | } | ||
+ | #labLoad .lodt{ | ||
+ | border-top: 10px solid tomato; | ||
+ | } | ||
+ | #labLoad .lodo{ | ||
+ | border-top: 10px solid orange; | ||
+ | transform: rotate(120deg); | ||
+ | } | ||
+ | #labLoad .lodb{ | ||
+ | border-top: 10px solid dodgerblue; | ||
+ | transform: rotate(240deg); | ||
+ | } | ||
+ | #labLoad img{ | ||
+ | width: 200px; | ||
+ | height: 200px; | ||
+ | overflow: hidden; | ||
+ | } | ||
+ | #labLoad .lodt, | ||
+ | #labLoad .lodo, | ||
+ | #labLoad .lodb{ | ||
+ | animation: loading linear 0.5s infinite; | ||
+ | } | ||
+ | @keyframes loading { to{ transform: rotate(360deg); }} | ||
+ | </style> | ||
+ | |||
+ | <div class="container-fluid bg-dark align-middle fixed-top h-100" id="labLoad"> | ||
+ | <div> | ||
+ | <img class="rounded-circle" src="https://static.igem.org/mediawiki/2019/8/8a/T--CSU_CHINA--SGoldMedal.png" alt=""> | ||
+ | <div class="rounded-circle lodt"></div> | ||
+ | <div class="rounded-circle lodo"></div> | ||
+ | <div class="rounded-circle lodb"></div> | ||
+ | </div> | ||
+ | <h1 class="text-center text-light display-3 font-weight-bold ml-5 display-3">loading……</h1> | ||
+ | </div> | ||
+ | <script> $(document).ready(()=>{ setTimeout(()=>{ $("#labLoad").hide(); }, 800) });</script> | ||
</body> | </body> | ||
</html> | </html> |
Latest revision as of 03:48, 9 December 2019
![](https://static.igem.org/mediawiki/2019/8/8a/T--CSU_CHINA--SGoldMedal.png)