(45 intermediate revisions by 3 users not shown) | |||
Line 6: | Line 6: | ||
<!-- bootstrap --> | <!-- bootstrap --> | ||
<link rel="stylesheet" href="https://2019.igem.org/Template:CSU_CHINA/CSS/Bootstrap4?action=raw&ctype=text/css" type="text/css"> | <link rel="stylesheet" href="https://2019.igem.org/Template:CSU_CHINA/CSS/Bootstrap4?action=raw&ctype=text/css" type="text/css"> | ||
− | |||
− | |||
<!-- jquery.min.js --> | <!-- jquery.min.js --> | ||
<script src="https://2019.igem.org/Template:CSU_CHINA/JS/jquery?action=raw&ctype=text/javascript"></script> | <script src="https://2019.igem.org/Template:CSU_CHINA/JS/jquery?action=raw&ctype=text/javascript"></script> | ||
Line 20: | Line 18: | ||
<body> | <body> | ||
<style> | <style> | ||
− | #navigator{ margin-top: 16px; } | + | #navigator{ margin-top: 16px; z-index: 10000;} |
− | #navigator:hover{ background-color: | + | #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; } | + | #navigator a{ font-size: 16px !important; color: rgb(151,155,158);} |
− | #navigator | + | #navigator #sp{color:#E17E84!important;} |
+ | #navigator .nav-link:hover{ color: white;} | ||
+ | #navigator #sp:hover{ color: #D4577E!important;} | ||
+ | #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{ | |
+ | /* 下拉菜单后面的小箭头消失 */ | ||
+ | color: rgba(0, 0, 0, 0); | ||
+ | transition: color 0.15s; | ||
+ | -webkit-transition: color 0.15s; /* Safari */ | ||
+ | } | ||
+ | .dropdown-menu{ margin-top: -1px; } | ||
#top_title{ display:none; } | #top_title{ display:none; } | ||
#content{ | #content{ | ||
Line 35: | Line 44: | ||
} | } | ||
#bodyContent a[href ^="https://"], | #bodyContent a[href ^="https://"], | ||
− | .link-https | + | .link-https |
− | + | { padding: 8px 8px 8px 8px; } | |
− | + | ||
</style> | </style> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function(){ | ||
+ | // 若文档高度小于窗口高度,赞助框位于页面最底部 | ||
+ | $(".dropdown").hover(function() { | ||
+ | $('.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)"); | ||
+ | }); | ||
+ | // 滚动渐隐 | ||
+ | $(window).scroll(function(){ | ||
+ | if ($(document).scrollTop() > 50) | ||
+ | $("#navigator").removeClass("bg-dark").addClass("trans"); | ||
+ | else | ||
+ | $("#navigator").removeClass("trans").addClass("bg-dark"); | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
<nav class="navbar navbar-expand-lg navbar-dark py-0 fixed-top bg-dark" id="navigator" > | <nav class="navbar navbar-expand-lg navbar-dark py-0 fixed-top bg-dark" id="navigator" > | ||
Line 49: | 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> | ||
</li> | </li> | ||
<li class="nav-item dropdown"> | <li class="nav-item dropdown"> | ||
− | <a class="nav-link dropdown-toggle" href="#" id=" | + | <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> | ||
</li> | </li> | ||
<li class="nav-item dropdown"> | <li class="nav-item dropdown"> | ||
− | <a class="nav-link dropdown-toggle" href="#" id=" | + | <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 72: | Line 107: | ||
</li> | </li> | ||
<li class="nav-item dropdown"> | <li class="nav-item dropdown"> | ||
− | <a class="nav-link dropdown-toggle" href="#" id=" | + | <a class="nav-link dropdown-toggle" href="#" id="navbar_HUMAN_PRACTICES" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">HUMAN PRACTICES</a> |
<div class="dropdown-menu bg-light" aria-labelledby="navbarDropdown"> | <div class="dropdown-menu bg-light" aria-labelledby="navbarDropdown"> | ||
<a class="dropdown-item" href="/Team:CSU_CHINA/Human_Practices">INTERGRATED</a> | <a class="dropdown-item" href="/Team:CSU_CHINA/Human_Practices">INTERGRATED</a> | ||
Line 81: | Line 116: | ||
<a class="nav-link" href="/Team:CSU_CHINA/Safety">SAFETY</a> | <a class="nav-link" href="/Team:CSU_CHINA/Safety">SAFETY</a> | ||
</li> | </li> | ||
− | <li class="nav-item"> | + | <li class="nav-item dropdown"> |
− | + | <a class="nav-link dropdown-toggle" href="#" id="navbar_LAB" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">LAB</a> | |
+ | <div class="dropdown-menu bg-light" aria-labelledby="navbarDropdown"> | ||
+ | <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/Protocols">PROTOCALS</a> | ||
+ | </div> | ||
</li> | </li> | ||
<li class="nav-item dropdown"> | <li class="nav-item dropdown"> | ||
− | <a class="nav-link dropdown-toggle" href="" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">TEAM</a> | + | <a class="nav-link dropdown-toggle" href="#" id="navbar_TEAM" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">TEAM</a> |
<div class="dropdown-menu bg-light" aria-labelledby="navbarDropdown"> | <div class="dropdown-menu bg-light" aria-labelledby="navbarDropdown"> | ||
<a class="dropdown-item" href="/Team:CSU_CHINA/Collaborations" title="">COLLABORATIONS</a> | <a class="dropdown-item" href="/Team:CSU_CHINA/Collaborations" title="">COLLABORATIONS</a> | ||
Line 93: | Line 133: | ||
</li> | </li> | ||
<li class="nav-item"> | <li class="nav-item"> | ||
− | <a class="nav-link" href="">JUDGING</a> | + | <a class="nav-link" href="/Team:CSU_CHINA/Judging">JUDGING</a> |
</li> | </li> | ||
</ul> | </ul> | ||
</div> | </div> | ||
</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)