Difference between revisions of "Template:NWU-CHINA"

 
(213 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<html>
 
<html>
<script>
 
 
// This is the jquery part of your template. 
 
// Try not modify any of this code too much since it makes your menu work.
 
 
$(document).ready(function() {
 
 
$("#HQ_page").attr('id','');
 
 
// call the functions that control the menu
 
menu_functionality();
 
hide_show_menu();
 
 
 
 
//this function controls the expand and collapse buttons of the menu and changes the +/- symbols
 
function menu_functionality() {
 
 
//when clicking on a "menu_button", it will change the "+/-" accordingly and it will show/hide the corresponding submenu
 
$(".menu_button").click(function(){
 
 
// add or remove the class "open" , this class holds the "-"
 
$(this).children().toggleClass("open");
 
// show or hide the submenu
 
$(this).next('.submenu_wrapper').fadeToggle(400);
 
});
 
 
// when the screen size is smaller than 800px, the display_menu_control button appears and will show/hide the whole menu
 
$("#display_menu_control").click(function(){
 
$('#menu_content').fadeToggle(400);
 
});
 
 
// call the current page highlight function
 
highlight_current_page();
 
}
 
 
 
// call the highlight current page function to show it on the menu with a different background color
 
function highlight_current_page() {
 
 
// select a page from the menu based on the id assigned to it and the current page name and add the class "current page" to make it change background color
 
$("#"+  wgPageName.substring(wgPageName.lastIndexOf("/")+1, wgPageName.length ) + "_page").addClass("current_page");
 
 
// now that the current_page class has been added to a menu item, make the submenu fade in
 
$(".current_page").parents(".submenu_wrapper").fadeIn(400);
 
// change the +/- symbol of the corresponding menu button
 
$(".current_page").parents(".submenu_wrapper").prev().children().toggleClass("open");
 
 
}
 
 
 
 
// allow button on the black menu bar to show/hide the side menu
 
function hide_show_menu() {
 
 
// in case you preview mode is selected, the menu is hidden for better visibility
 
if (window.location.href.indexOf("submit") >= 0) {
 
$(".igem_2017_menu_wrapper").hide();
 
}
 
 
// if the black menu bar has been loaded
 
  if (document.getElementById('bars_item')) {
 
 
// when the "bars_item" has been clicked
 
$("#bars_item").click(function() {
 
$("#sideMenu").hide();
 
 
// show/hide the menu wrapper
 
$(".igem_2017_menu_wrapper").fadeToggle("100");
 
});
 
  }
 
 
// because the black menu bars loads at a different time than the rest of the page, this function is set on a time out so it can run again in case it has not been loaded yet
 
else {
 
    setTimeout(hide_show_menu, 15);
 
}
 
}
 
 
 
});
 
 
 
</script>
 
  
 
<style>
 
<style>
Line 89: Line 6:
 
 
 
/* Clear the default wiki settings */
 
/* Clear the default wiki settings */
 +
#home_logo, #sideMenu { display:none; }
 +
#sideMenu, #top_title, .patrollink  {display:none;}
 +
#content { width:100%; padding:0px;  margin-top:-7px; margin-left:0px;}
 +
body {background-color:white; }
 +
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
 +
 
 
  
#content { width:100%; }
+
body {background-color:white; }
+
  
  
Line 99: Line 21:
 
/**************************************************************** MENU ***************************************************************/
 
/**************************************************************** MENU ***************************************************************/
  
 +
 
 
     /* Wrapper for the menu */
 
     /* Wrapper for the menu */
 
     .igem_2017_menu_wrapper {
 
     .igem_2017_menu_wrapper {
 
  width: 100%;
 
  width: 100%;
  height:20px;  
+
  height:60px;
 +
 
 +
  left:0;
 
  position:fixed;
 
  position:fixed;
  padding-left:160px;
+
  padding-left:16.5%;
      overflow-y: auto;
+
  margin:0px;
 +
          border-color:
 
  overflow-x: auto;
 
  overflow-x: auto;
 
  background-color:#514050;   
 
  background-color:#514050;   
 +
          z-index:99;
 +
 
     }
 
     }
 
 
 
 
 
Line 117: Line 44:
 
}  
 
}  
  
   
+
  .down{
     /* styling for links in the menu, removes the line under text */
+
  width: 100%;
    .igem_2017_menu_wrapper a {
+
  height:120px;
text-decoration: none;  
+
  background-color:#514050;
 +
          margin-top:100px;    
 +
  left:-10;
 +
 +
          border-bottom-style:outset;
 +
          border-width:5px;
 +
          margin-bottom:-17px;
 +
    }
 +
 
 +
  .logo{
 +
      padding-top:20px
 +
}   
 +
 
 +
 
 +
     /*自定义按钮吧....原版的太难用了....*/
 +
ul li{
 +
  list-style:none;
 +
  margin:0;
 +
  padding-top:20px;
 +
  padding-left:0px;
 +
  padding-down:6px;
 +
          float: left;
 +
         
 
}
 
}
  
 
+
li a,.dropbtn,a:link,a:visited{
    /* styling for the images in the menu */
+
    text-decoration: none;
+
    font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
/* styling for the menu buttons */
+
    color:#cbd0d0;
.igem_2017_menu_wrapper .menu_button {  
+
    padding:20px;
    width: 180px;  
+
    text-align:center;
height: 50px
+
    text-transform:uppercase;
padding: 20px 0px 20px 10px;  
+
            font-size:16px;
float:left;  
+
 
border: 1px solid #d3d3d3;  
+
    font-size:60px
+
font-weight: bold;  
+
color: white;
+
cursor: pointer;
+
+
+
 
}
 
}
 
 
.menu_button.direct_to_page {  
+
li a:hover,.dropdown:hover.dropbtn{
+
    color:#cbd0d0;
text-indent: 30px;
+
    text-shadow:2px 2px 2px #399;
 
}
 
}
 
 
 
.igem_2017_menu_wrapper .menu_button .expand_collapse_icon {
+
.dropdown {
width:15%;
+
    position: relative;
float:left;
+
    display: inline-block;
padding-left:10px
+
    float: left;
}
+
 
+
.igem_2017_menu_wrapper .menu_button .expand_collapse_icon::before {
+
content: "+";
+
 
}
 
}
 
 
.open::before {
+
.dropdown-content {
content: "-" !important;
+
    display: none;
 +
    position: absolute;
 +
    background-color: #514050;
 +
    min-width: 200px;
 +
            border-bottom: 5px outset;
 +
            border-left: 5px outset;
 +
            border-right: 5px outset;
 +
 
}
 
}
 
 
 
 
/* styling for the menu buttons on hover */
+
.dropdown-content a {
.igem_2017_menu_wrapper .menu_button:hover, .igem_2017_menu_wrapper .submenu_button:hover ,  .submenu_button.current_page:hover {  
+
    color:#cbd0d0;
background-color: #3399ff;
+
    padding: 12px 16px;
text-decoration: none;
+
    text-decoration: none;
color:#ffffff;  
+
    display: block;
 
}
 
}
 
/* styling for the menu button when it is the current page */
 
.current_page {
 
background-color:#7fc1f7  !important;
 
color:#5e5f5f !important;
 
}
 
 
 
    /* styling for the submenu buttons */
 
.igem_2017_menu_wrapper .submenu_button {
 
width: 100%;
 
padding: 10px 0px 10px 34px;
 
float:left;
 
background-color:#f2f2f2;
 
border-bottom: 1px solid #d3d3d3;
 
font-size: 12px;
 
color: #5e5f5f;
 
cursor: pointer;
 
}
 
 
    /* wrapper for the submenu items, they are hidden by default*/
 
.igem_2017_menu_wrapper .submenu_wrapper {
 
display:none;
 
}
 
 
/* when the page size is bigger than 800px, this show/hide control is hidden by default */
 
.igem_2017_menu_wrapper #display_menu_control {
 
display:none;
 
text-align:center;
 
}
 
 
 
 
/***************************************************** CONTENT OF THE PAGE ****************************************************/
 
 
/* Wrapper for the content */
 
.igem_2017_content_wrapper {
 
 
background-color:white;
 
}
 
 
/********************************* HTML STYLING  *********************************/
 
 
    /* styling for the titles h1 h2 */
 
 
 
 
+
.dropdown-content a:hover {
 
+
    background-color: transparent;}
/* styling for the titles  h3 h4 h5 h6*/
+
 
 
 
+
.dropdown:hover .dropdown-content {
 
+
    display: block;
/* font and text */
+
.igem_2017_content_wrapper p {  
+
padding: 0px 15px;
+
font-size: 13px;
+
 
}
 
}
 
/* Links */
 
 
 
 
/* hover for the links */
 
 
 
 
/* non numbered lists */
 
 
 
 +
/***************************************************** CONTENT OF THE PAGE ****************************************************/
  
/* numbered lists */
 
 
 
 
+
   
/* Table */
+
        .main{
.igem_2017_content_wrapper table {
+
margin-left:17em;
width: 97%;  
+
margin-right:17em;
margin:15px 10px;  
+
        padding-left:4%;
border: 1px solid #d3d3d3;  
+
        padding-right:4%;
border-collapse: collapse;  
+
        padding-down:40px;
 +
margin-top:55px;
 +
        background-color:white;
 +
        border-style:groove;
 +
        border-width:7px;
 +
        opacity: 0.9;
 
}
 
}
 +
 +
        body{
 +
        padding:0;
 +
        margin:0;
 +
     
 +
        }
 +
       
  
/* table cells */
+
        .tittle{
.igem_2017_content_wrapper  td {  
+
padding-top:53px;
padding: 10px;
+
margin-left:10em;
vertical-align: text-top;  
+
margin-right:10em;
border: 1px solid #d3d3d3;  
+
        border-style:ridge;
border-collapse: collapse;  
+
        border-width:7px;
}
+
}
 +
       
  
/* table headers */
+
        .color{
.igem_2017_content_wrapper th {  
+
        background-image:url(https://static.igem.org/mediawiki/2017/3/30/NWU-Background.jpg);
padding: 10px;
+
        background-repeat:no-repeat;  
vertical-align: text-top;  
+
        background-attachment:fixed;
border: 1px solid #d3d3d3;
+
       
border-collapse: collapse;  
+
        }
background-color:#f2f2f2;  
+
}
+
/**********************************LAYOUT CLASSES **********************************/
+
  
/* general class for column divs */
 
.igem_2017_content_wrapper .column  {
 
padding: 10px 0px;
 
float:left;
 
}
 
  
/* class for a full width column */
 
.column .full_size {
 
width:100%;
 
}
 
  
/* styling for images in a full width column*/
+
/***************************************PICTURE AND TEXT**********************************************/
.column.full_size img {  
+
        .box1{
width:97%;  
+
margin:0 auto;
padding: 10px 15px;
+
width:97%;
 +
padding:3%;
 +
}
 +
 +
 +
.fix{
 +
clear:both;
 
}
 
}
 +
 +
.leftpic{
 +
width:15%;
 +
left:0;
 +
float:left;
 +
 +
 
 +
}
 +
 +
.rightpic{
 +
width:15%;
 +
right:0;
 +
        float:right;
 +
 +
}
 +
 +
.righttext{
 +
width:75%;
 +
right:0;
 +
float:right;
 +
border-style:double;
 +
padding:4%;
 +
}
 +
 +
.lefttext:hover{
 +
  background-color:#ECECEC;
 +
  border-style:dotted;
 +
  }
 +
 +
.lefttext{
 +
width:75%;
 +
left:0;
 +
float:left;
 +
border-style:double;
 +
padding:4%;
 +
}
 +
   
 +
.righttext:hover{
 +
  background-color:#ECECEC;
 +
  border-style:dotted;
 +
  }
 +
 
 +
.lineleft{
 +
width:38.5%;
 +
left:0;
 +
float:left;
 +
border-style:double;
 +
padding:4%;
 +
}
 +
       
 +
       
 +
   
  
/* class for a half width column */
+
        .lineright{
.column.half_size {
+
width:40%;
width: 50%;  
+
right:0;
}
+
float:right;
/* styling for images in a half width column*/
+
border-style:double;
.column.half_size img {
+
padding:4%;
width: 94.5%;
+
}
padding: 10px 15px;
+
}
+
  
 +
     
  
  
 +
/********************************* HTML STYLING  *********************************/
  
/********************************* SUPPORT CLASSES ********************************/
+
p{
 
+
text-indent:2em;
/* class that clears content below*/
+
line-height:30px;
.igem_2017_content_wrapper .clear {
+
clear:both;
+
 
}
 
}
 
 
 +
h1{
 +
font-size:50px;
 +
        line-height:60px;
 +
        align:center;
 +
        color:#514050;
 +
}
 
 
/* adds extra spacing when clearing content */
+
h2{
.igem_2017_content_wrapper  .clear.extra_space {
+
font-size:41.5px;
height: 30px;
+
        line-height:50px;
 
}
 
}
 
+
 
+
h3{
/* highlight class, makes content slightly smaller */
+
font-size:32px;
.igem_2017_content_wrapper .highlight {  
+
        line-height:42px;
margin: 0px 15px;
+
        color:#869F89;
padding: 15px 0px;
+
 
}
 
}
 
+
 
+
h4{
/* highlight class, adds a gray background */
+
font-size:30px;
.igem_2017_content_wrapper .highlight.gray {
+
        line-height:35px;
background-color: #f2f2f2;  
+
 
}
 
}
 +
 +
 +
  
/* highlight with decoration blue line on top */
+
.igem_2017_content_wrapper .highlight.blue_top {
+
    border-top: 4px solid #3399ff;
+
}
+
  
/* highlight with a full blue border decoration */
 
.igem_2017_content_wrapper .highlight.blue_border {
 
    border: 4px solid  #3399ff;
 
}
 
 
 
/* button class */
 
.igem_2017_content_wrapper .button{
 
max-width: 35%;
 
margin: 30px auto;
 
padding: 12px 10px;
 
    background-color: #3399ff;
 
    text-align: center;
 
  color: #ffffff;
 
-webkit-transition: all 0.4s ease;
 
-moz-transition: all 0.4s ease;
 
-ms-transition: all 0.4s ease;
 
-o-transition: all 0.4s ease; transition: all 0.4s ease; 
 
}
 
 
/* styling for button on hover */
 
.igem_2017_content_wrapper .button:hover{
 
background-color: #3399ff;
 
    color: #000000;
 
}
 
 
 
 
 
 
 
</style>
 
</style>
  
Line 378: Line 298:
  
  
 
+
    <ul>
 +
<li>
 
<a href="https://2017.igem.org/Team:NWU-CHINA">
 
<a href="https://2017.igem.org/Team:NWU-CHINA">
<div class="menu_button direct_to_page">
+
 
HOME
 
HOME
</div>
+
 
</a>
 
</a>
 +
    </li>
  
  
 
+
<li>
<div class="menu_button">
+
    <a href="https://2017.igem.org/Team:NWU-CHINA/Team">
<div class="expand_collapse_icon">  </div> TEAM
+
</div>
+
 
+
<div class="submenu_wrapper" id="team_submenu">
+
 
 
<a href="https://2017.igem.org/Team:NWU-CHINA/Team">
+
Team
<div class="submenu_button" id="Team_page">
+
</a>
Team  
+
    </li>
</div>
+
<li>
</a>
+
    <div class="dropdown">
 
+
    <a href="#" class="dropbtn" >Project</a>
<a href="https://2017.igem.org/Team:NWU-CHINA/Collaborations">
+
    <div class="dropdown-content">
<div class="submenu_button" id="Collaborations_page">
+
            <a href="https://2017.igem.org/Team:NWU-CHINA/Project-Home" >Project-Home</a>
Collaborations
+
            <hr>
</div>
+
            <a href="https://2017.igem.org/Team:NWU-CHINA/Preparation" >Preparation</a>
</a>
+
            <a href="https://2017.igem.org/Team:NWU-CHINA/Sense" >Sense</a>
 +
            <a href="https://2017.igem.org/Team:NWU-CHINA/Expression" >Expression</a>
 +
            <a href="https://2017.igem.org/Team:NWU-CHINA/Description">Description</a>
 +
<a href="https://2017.igem.org/Team:NWU-CHINA/Notebook">Notebook</a>
 +
<a href="https://2017.igem.org/Team:NWU-CHINA/InterLab">Interlab</a>
 +
<a href="https://2017.igem.org/Team:NWU-CHINA/Attributions">Attributions</a>
 +
    </div>
 +
        </div>
 
 
 +
</li>
 
 
</div>
+
  
 
+
<li>
+
    <a href="https://2017.igem.org/Team:NWU-CHINA/Parts">Parts</a>
+
    </li>
 
+
<div class="menu_button">
+
<div class="expand_collapse_icon">  </div> PROJECT
+
</div>
+
 
+
<!-- project submenu -->
+
<div class="submenu_wrapper">
+
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Description">
+
<div class="submenu_button"  id="Description_page">
+
Description
+
</div>
+
</a>
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Design">
+
<div class="submenu_button"  id="Design_page">
+
Design
+
</div>
+
</a>
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Experiments">
+
<div class="submenu_button"  id="Experiments_page">
+
Experiments
+
</div>
+
</a>
+
 
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Notebook">
+
<div class="submenu_button"  id="Notebook_page">
+
Notebook
+
</div>
+
</a>
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/InterLab">
+
<div class="submenu_button"  id="InterLab_page">
+
InterLab
+
</div>
+
</a>
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Contribution">
+
<div class="submenu_button"  id="Contribution_page">
+
Contribution
+
</div>
+
</a>
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Model">
+
<div class="submenu_button"  id="Model_page">
+
Model
+
</div>
+
</a>
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Results">
+
<div class="submenu_button"  id="Results_page">
+
Results
+
</div>
+
</a>
+
 
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Demonstrate">
+
<div class="submenu_button"  id="Demonstrate_page">
+
Demonstrate
+
</div>
+
</a>
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Improve">
+
<div class="submenu_button"  id="Improve_page">
+
Improve
+
</div>
+
</a>
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Attributions">
+
<div class="submenu_button"  id="Attributions_page">
+
Attributions
+
</div>
+
</a>
+
 
+
</div>
+
 
+
+
+
+
+
 
+
<div class="menu_button">
+
<div class="expand_collapse_icon">  </div> PARTS
+
</div>
+
+
<!-- parts submenu -->
+
<div class="submenu_wrapper">
+
 
 
<a href="https://2017.igem.org/Team:NWU-CHINA/Parts">
+
<li>
<div class="submenu_button"  id="Parts_page">
+
        <a href="https://2017.igem.org/Team:NWU-CHINA/Safety"> Safety</a>
Parts
+
</li>
</div>
+
</a>
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Basic_Part">
+
<div class="submenu_button"  id="Basic_Part_page">
+
Basic Parts
+
</div>
+
</a>
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Composite_Part">
+
<div class="submenu_button"  id="Composite_Part_page">
+
Composite Parts
+
</div>
+
</a>
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Part_Collection">
+
<div class="submenu_button"  id="Part_Collection_page">
+
Part Collection
+
</div>
+
</a>
+
</div>
+
 
+
+
+
+
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Safety">
+
<div class="menu_button direct_to_page">
+
SAFETY
+
</div>
+
</a>
+
 
+
 
+
 
+
 
+
 
+
 
+
 
+
<div class="menu_button" >
+
<div class="expand_collapse_icon">  </div> HUMAN PRACTICES
+
</div>
+
 
+
<!-- human practices submenu -->
+
<div class="submenu_wrapper">
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/HP/Silver">
+
<div class="submenu_button"  id="Silver_page">
+
Silver HP
+
</div>
+
</a>
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/HP/Gold_Integrated">
+
<div class="submenu_button" id="Gold_Integrated_page">
+
Integrated and Gold
+
</div>
+
</a>
+
 
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Engagement">
+
<div class="submenu_button"  id="Engagement_page">
+
Public Engagement
+
</div>
+
</a>
+
 
+
</div>
+
 
+
 
+
<div class="menu_button">
+
<div class="expand_collapse_icon">  </div> AWARDS
+
</div>
+
 
+
<!-- awards submenu -->
+
<div class="submenu_wrapper">
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Applied_Design">
+
<div class="submenu_button"  id="Applied_Design_page">
+
Applied Design
+
</div>
+
</a>
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Entrepreneurship">
+
<div class="submenu_button"  id="Entrepreneurship_page">
+
Entrepreneurship
+
</div>
+
</a>
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Hardware">
+
<div class="submenu_button"  id="Hardware_page">
+
Hardware
+
</div>
+
</a>
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Measurement">
+
<div class="submenu_button"  id="Measurement_page">
+
Measurement
+
</div>
+
</a>
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Model">
+
<div class="submenu_button"  id="Model_page">
+
Model
+
</div>
+
</a>
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Plant">
+
<div class="submenu_button"  id="Plant_page">
+
Plant
+
</div>
+
</a>
+
 
+
 
+
<a href="https://2017.igem.org/Team:NWU-CHINA/Software">
+
<div class="submenu_button"  id="Software_page">
+
Software
+
</div>
+
</a>
+
 
+
</div>
+
 
+
<a href="https://igem.org/2017_Judging_Form?team=NWU-CHINA">
+
<div class="menu_button direct_to_page">
+
JUDGING FORM
+
</div>
+
</a>
+
 
+
 
+
+
<div class="menu_bottom_padding" >
+
</div>
+
+
 
 
 
+
<li>
 
+
    <div class="dropdown">
 
+
    <a href="#" class="dropbtn" >Human practice</a>
 +
    <div class="dropdown-content">
 +
            <a href="https://2017.igem.org/Team:NWU-CHINA/HP/Silver">Silver HP</a>
 +
        <a href="https://2017.igem.org/Team:NWU-CHINA/HP/Gold_Integrated">Integrated HP</a>
 +
<a href="https://2017.igem.org/Team:NWU-CHINA/Collaborations">Collaboration</a>
 +
    </div>
 +
        </div>
 +
 +
</li>
 +
 +
<li>
 +
    <a href="https://2017.igem.org/Team:NWU-CHINA/Achievement">Achievement</a>
 +
</li>
 +
       
 +
</div>
  
 
</div>
 
</div>

Latest revision as of 06:57, 1 November 2017