Difference between revisions of "Template:SZU-China/Nav"

 
(32 intermediate revisions by the same user not shown)
Line 7: Line 7:
  
 
     <link rel="stylesheet" type="text/css" href="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/CSS/Fluent&action=raw&ctype=text/css" />
 
     <link rel="stylesheet" type="text/css" href="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/CSS/Fluent&action=raw&ctype=text/css" />
 +
 +
    <link rel="stylesheet" type="text/css" href="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/CSS/FontAwesome&action=raw&ctype=text/css" />
 +
 +
    <link rel="stylesheet" type="text/css" href="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/CSS/Custom&action=raw&ctype=text/css" />
  
  
Line 20: Line 24:
  
  
<script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/JS/jquery3.2.1&action=raw&ctype=text/javascript"></script>
+
    <script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/JS/jquery3.2.1&action=raw&ctype=text/javascript"></script>
  
 
     <script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/JS/bootstrap&action=raw&ctype=text/javascript"></script>
 
     <script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/JS/bootstrap&action=raw&ctype=text/javascript"></script>
Line 27: Line 31:
  
 
     <script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/JS/popper&action=raw&ctype=text/javascript"></script>
 
     <script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/JS/popper&action=raw&ctype=text/javascript"></script>
 +
 +
    <script type="text/javascript" src="https://2018.igem.org/wiki/index.php?title=Template:SZU-China/JS/smooth-scroll&action=raw&ctype=text/javascript"></script>
 +
 
     <title></title>
 
     <title></title>
 
</head>
 
</head>
  
 
<style>
 
<style>
     #sideMenu, #top_title {
+
     #sideMenu, #top_title, #toc, .toc {
 
         display: none;
 
         display: none;
 
         }
 
         }
Line 53: Line 60:
 
}
 
}
  
body {
+
 
font-family: 'Segoe UI', sans-serif !important;
+
#HQ_page p{
font-weight: 400;
+
font-size: 20px;
 +
color: #393939;
 +
}
 +
body{
 +
padding-top: 40px;
 +
}
 +
h2 h3 h4 {
 +
font-weight: bold;
 
}
 
}
+
 
@font-face {
+
.row {
font-family: 'Segoe UI';
+
padding: 36px;
src: url('https://static.igem.org/mediawiki/2018/b/b8/T--SZU-China--segoeui.ttf');
+
 
}
 
}
 +
hr {
 +
width: auto;
 +
border-top: 1px solid rgba(0, 0, 0, 0.125);
 +
}
 +
 
     </style>
 
     </style>
  
Line 69: Line 87:
  
 
     <!-- Navbar -->
 
     <!-- Navbar -->
     <nav class="navbar navbar-expand-lg fixed-top navbar-dark bg-primary ">
+
     <nav class="navbar navbar-expand-lg fixed-top navbar-dark" style="background-color: #212529;">
 
         <a class="navbar-brand" href="https://2018.igem.org/Team:SZU-China">
 
         <a class="navbar-brand" href="https://2018.igem.org/Team:SZU-China">
             <img src="https://mdbootstrap.com/img/logo/mdb-transparent.png" height="20" alt="Route 66 in navbar">
+
             <img src="https://static.igem.org/mediawiki/2018/1/15/T--SZU-China--logo.png" height="50" alt="Route 66 in navbar">
             <span class="d-inline-block align-top ml-2">SZU-China</span>
+
             <span class="d-inline-block ml-2"><b>SZU-China</b></span>
 
         </a>
 
         </a>
 
         <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarExample" aria-controls="navbarExample"
 
         <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarExample" aria-controls="navbarExample"
Line 81: Line 99:
 
         <div class="collapse navbar-collapse" id="navbarExample">
 
         <div class="collapse navbar-collapse" id="navbarExample">
 
             <ul class="navbar-nav ml-auto">
 
             <ul class="navbar-nav ml-auto">
                 <li class="nav-item active">
+
                 <li class="nav-item dropdown">
                     <a class="nav-link" href="https://2018.igem.org/Team:SZU-China">Home
+
                     <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
                         <span class="sr-only">(current)</span>
+
                         aria-haspopup="true" aria-expanded="false">
 +
                        Awards
 
                     </a>
 
                     </a>
 +
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown">
 +
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Achievement">Achievement</a>
 +
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Applied_Design">Applied
 +
                            Design</a>
 +
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Human_Practices">Human
 +
                            Practices</a>
 +
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Public_Engagement">Public
 +
                            Engagement</a>
 +
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Model">Model</a>
 +
 +
                    </div>
 
                 </li>
 
                 </li>
 +
 
                 <li class="nav-item dropdown">
 
                 <li class="nav-item dropdown">
 
                     <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
 
                     <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
Line 94: Line 125:
 
                         <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Team">Team Members</a>
 
                         <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Team">Team Members</a>
 
                         <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Collaborations">Collaborations</a>
 
                         <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Collaborations">Collaborations</a>
 +
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Attributions">Attributions</a>
 
                     </div>
 
                     </div>
  
Line 104: Line 136:
 
                     <div class="dropdown-menu" aria-labelledby="navbarDropdown">
 
                     <div class="dropdown-menu" aria-labelledby="navbarDropdown">
 
                         <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Description">Description</a>
 
                         <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Description">Description</a>
                         <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Design
+
                         <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Demonstrate
                            ">Design</a>
+
                                ">Demonstrate</a>
 +
 
 
                         <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Model
 
                         <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Model
 
                             ">Model</a>
 
                             ">Model</a>
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Parts
 
                            ">Biobricks</a>
 
 
                         <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Improve
 
                         <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Improve
 
                             ">Improve</a>
 
                             ">Improve</a>
 +
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Parts
 +
                            ">Parts</a>
 +
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Safety
 +
                            ">Safety</a>
 
                     </div>
 
                     </div>
 
                 </li>
 
                 </li>
Line 121: Line 156:
 
                     </a>
 
                     </a>
 
                     <div class="dropdown-menu" aria-labelledby="navbarDropdown">
 
                     <div class="dropdown-menu" aria-labelledby="navbarDropdown">
                         <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Demonstrate
+
                         <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Design
                                ">Demonstrate</a>
+
                            ">Design</a>
 +
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Procedure
 +
                            ">Procedure</a>
 +
 
 +
 
 +
 
 
                         <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Results
 
                         <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Results
 
                                 ">Results</a>
 
                                 ">Results</a>
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Safety
+
 
                                ">Safety</a>
+
 
                         <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/InterLab
 
                         <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/InterLab
 
                                 ">InterLab</a>
 
                                 ">InterLab</a>
 +
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Notebook
 +
                                ">Notebook</a>
 +
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Protocol
 +
                                ">Protocol</a>
  
 
                     </div>
 
                     </div>
Line 137: Line 180:
 
                         Practices</a>
 
                         Practices</a>
 
                 </li>
 
                 </li>
                 <li class="nav-item dropdown">
+
                 <li class="nav-item">
                     <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown"
+
                     <a class="nav-link" href="https://2018.igem.org/Team:SZU-China/Applet
                        aria-haspopup="true" aria-expanded="false">
+
                            ">Applet</a>
                        Judging
+
                </li>
                    </a>
+
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown">
+
                        <a class="dropdown-item" href="https://igem.org/2018_Judging_Form?team=SZU-China">Form</a>
+
                        <a class="dropdown-item" href="https://2018.igem.org/Team:SZU-China/Software
+
                                ">Awards</a>
+
  
                    </div>
 
                </li>
 
 
             </ul>
 
             </ul>
         
 
            <script>
 
                $('.dropdown').hover(function () {
 
                    $('.dropdown-toggle', this).trigger('click');
 
                });
 
  
                // Add slideDown animation to Bootstrap dropdown when expanding.
+
           
                $('.dropdown').on('show.bs.dropdown', function () {
+
<style>
                    $(this).find('.dropdown-menu').first().stop(true, true).slideDown();
+
.dropdown:hover .dropdown-menu {
                });
+
    display: block;
 +
    margin-top: 0; // remove the gap so it doesn't close
 +
}
 +
</style>
 +
<!--
 +
<script>
 +
 +
 +
$('.dropdown').hover(function() {
 +
$('.dropdown-toggle', this).trigger('click');
 +
});
  
                // Add slideUp animation to Bootstrap dropdown when collapsing.
+
// Add slideDown animation to Bootstrap dropdown when expanding.
                $('.dropdown').on('hide.bs.dropdown', function () {
+
$('.dropdown').on('show.bs.dropdown', function() {
                    $(this).find('.dropdown-menu').first().stop(true, true).slideUp();
+
$(this).find('.dropdown-menu').first().stop(true, true).slideDown();
                });
+
});
            </script>
+
  
 +
// Add slideUp animation to Bootstrap dropdown when collapsing.
 +
$('.dropdown').on('hide.bs.dropdown', function() {
 +
$(this).find('.dropdown-menu').first().stop(true, true).deslideUp();
 +
});
 +
</script>
 +
-->
 
         </div>
 
         </div>
 
     </nav>
 
     </nav>
 
     <!-- Navbar -->
 
     <!-- Navbar -->
  
   
+
 
  
  

Latest revision as of 14:09, 11 October 2018