Difference between revisions of "Template:UC Davis/header"

 
(98 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<html>
 
<html>
 +
<!DOCTYPE html>
 
<head>
 
<head>
 
   <title>iGEM</title>
 
   <title>iGEM</title>
Line 19: Line 20:
 
   #content {
 
   #content {
 
     margin-left: 0px;
 
     margin-left: 0px;
     margin-top: -7px;
+
     margin-top: -20px;
 
     padding: 0px;
 
     padding: 0px;
 
     width: 100%;
 
     width: 100%;
Line 26: Line 27:
 
   /*-------------------------------------------------------------------*/
 
   /*-------------------------------------------------------------------*/
  
/*----------------------Header Styling-------------------------*/
+
  /*----------------------Header Styling-------------------------*/
  
.header {
+
  #topnav {
   overflow: hidden;
+
   z-index: 1000;
 +
font-family: 'proxima-nova', sans-serif;
 +
font-size:8px;
 +
    display: flex;
 +
    justify-content: center;
 +
    align-items: center;
 +
    background-color: #002855;
 +
    list-style: none;
 +
    padding: 40px;
 +
    margin: 0;
 +
  }
  
   background-color: #000000;
+
   #topnav li,
   padding: 20px 10px;
+
   a {
  margin: 0 0 0 0;
+
    text-decoration: none;
   width: 100%;
+
   }
}
+
  
.dropdown-main, .nav-item, .logo {
+
  #topnav .nav-item:visited {
  float: left;
+
    color: white;
  color: white;
+
   }
   text-align: center;
+
  padding: 12px;
+
  text-decoration: none;
+
  font-size: 14px;
+
  line-height: 35px;
+
  border-radius: 4px;
+
}
+
  
.header a.logo {
+
  #topnav .b-dropdown-main:visited {
  font-size: 15px;
+
    color: #525b65;
   font-weight: bold;
+
   }
}
+
  
 +
  #topnav li:hover,
 +
  a:hover {
 +
    text-decoration: none;
 +
  }
  
@media screen and (max-width: 500px) {
+
  .dropdown {
   .header a {
+
    flex-grow: 1;
 +
    max-width: 150px;
 +
    white-space: nowrap;
 +
    text-align: center;
 +
  }
 +
 
 +
  .dropdown-main,
 +
  .nav-item {
 +
    font-size: 15px;
 +
    color: white;
 +
  }
 +
 
 +
   .dropdown-content {
 +
    display: none;
 +
    position: absolute;
 +
    background-color: #f9f9f9;
 +
    min-width: 200px;
 +
    border-radius: 4px;
 +
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
 +
    z-index: 1;
 +
  }
 +
 
 +
  .dropdown-content a {
 
     float: none;
 
     float: none;
     display: inline-block;
+
    font-size: 14px;
     text-align: none;
+
    color: #525b65;
 +
    padding: 12px 16px;
 +
     display: block;
 +
     text-align: left;
 
   }
 
   }
}
 
  
/**/
+
   .dropdown:hover .dropdown-content {
#topnav {
+
    display: block;
   text-align: center;
+
  }
  
}
+
   .dropdown-content a:hover {
#topnav li ul{
+
    color:#48fb47;
   position: absolute;
+
   }
  width: 150px;
+
  display: none;
+
}
+
#topnav li ul li a {display:block !important;}
+
/* The dropdown container */
+
.dropdown {
+
   display: inline-block
+
}
+
  
/* Dropdown button */
+
   #navlogo {
.dropdown .dropbtn {
+
    flex-grow: 2;
   font-size: 15px;
+
    max-width: 300px;
  border: none;
+
  }
  outline: none;
+
  color: white;
+
  padding: 14px 16px;
+
  background-color: inherit;
+
  font-family: inherit; /* Important for vertical align on mobile phones */
+
  margin: 0; /* Important for vertical align on mobile phones */
+
}
+
/* Adds navy blue color to backgroup to navbar links
+
#topnav li a:hover, .dropdown:hover .dropbtn {
+
background-color: #123b68;
+
}*/
+
/* Dropdown content (hidden by default) */
+
.dropdown-content {
+
display: none;
+
position: absolute;
+
background-color: #eff1f2;
+
min-width: 200px;
+
border-radius: 8px;
+
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
+
z-index: 1;
+
}
+
  
/* Links inside the dropdown */
+
  .navlogo {
.dropdown-content a {
+
    display: flex;
float: none;
+
    justify-content: center;
color: black;
+
    align-items: center;
padding: 12px 16px;
+
  }
text-decoration: none;
+
display: block;
+
text-align:left;
+
}
+
  
/* Add a grey background color to dropdown links on hover */
+
  .navlogo-img {
.dropdown-content a:hover {
+
    width: 125px;
background-color: #ddd;
+
    margin-left: -43px;
}
+
    margin-right: -35px;
 +
    margin-bottom: -7px;
 +
  }
  
/* Show the dropdown menu on hover */
+
  .logo-word {
.dropdown:hover .dropdown-content {
+
    text-decoration: none;
display: block;
+
    color: #d9a900;
}
+
    font-size: 30px;
hr {
+
     font-weight: normal;
     border-width: 0.05px;
+
  }
  
}
+
  /*-----------Burger Menu Styling-------------*/
  
</style>
+
  #topnav .burger {
<body>
+
    display: none;
  <!--______________Top Navigation Bar____________-->
+
    margin-right: 20px;
   <div class="header">
+
    color: #d9a900;
  <ul id="topnav">
+
    font-size: 22px;
 +
   }
  
      <!--______________Logo____________-->
+
  .burger-content {
      <!--______________Cenozoic____________-->
+
    display: none;
      
+
    position: absolute;
 +
    background-color: #f9f9f9;
 +
    border-radius: 7px;
 +
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
 +
    z-index: 1;
 +
     width: 200px;
 +
    margin-left: -185px;
  
      <!--______________Project____________-->
+
  }
      <div class="dropdown">
+
      <button class="dropbtn">Project</button>
+
      <div class="dropdown-content">
+
      <a href="https://2018.igem.org/Team:UC_Davis/InterLab">Interlab</a>
+
      <a href="#">Link 2</a>
+
      <a href="#">Link 3</a>
+
      </div>
+
      </div>
+
  
      <!--______________Human Resources____________-->
+
  .b-dropdown-main {
     <div class="dropdown">
+
     font-weight: bold;
     <button class="dropbtn">Human Resources</button>
+
     font-size: 15px;
    <div class="dropdown-content">
+
     color: #525b65;
     <a href="#">Link 1</a>
+
     padding: 12px 16px;
     <a href="#">Link 2</a>
+
     display: block;
     <a href="#">Link 3</a>
+
     text-align: left;
     </div>
+
     overflow: hidden;
     </div>
+
  }
  
    <!--______________Tools____________-->
+
  .b-dropdown-content {
    <div class="dropdown">
+
     display: none;
    <button class="dropbtn">Tools</button>
+
     position: block;
    <div class="dropdown-content">
+
     color: #525b65;
     <a href="#">Link 1</a>
+
     padding: 12px;
     <a href="#">Link 2</a>
+
  }
     <a href="#">Link 3</a>
+
     </div>
+
    </div>
+
   
+
  
       <!--______________Safety____________-->
+
  .b-dropdown-content a {
      <div class="dropdown">
+
    display: block;
      <button class="dropbtn">Safety</button>
+
    padding: 5px;
 +
    color: #525b65;
 +
    font-weight: normal;
 +
    font-size: 14px;
 +
 
 +
  }
 +
 
 +
  #topnav .b-dropdown-content a:visited {
 +
       color: #525b65;
 +
    }
 +
 
 +
  #topnav .b-dropdown:hover .b-dropdown-content {
 +
    display: block;
 +
  }
 +
 
 +
  #topnav .b-dropdown-content a:hover {
 +
    color:#525b65;
 +
  }
 +
 
 +
  input[type=checkbox] {
 +
    display: none;
 +
  }
 +
 
 +
  input[type=checkbox]:checked~.burger-content {
 +
    display: block;
 +
  }
 +
 
 +
  @media screen and (max-width:730px) {
 +
    #topnav li {
 +
      display: none;
 +
    }
 +
    #topnav {
 +
      justify-content: space-between;
 +
    }
 +
 
 +
    #topnav li.burger {
 +
      display: block;
 +
    }
 +
    #topnav li#navlogo {
 +
      display: block;
 +
      flex-grow: 0;
 +
    }
 +
  }
 +
</style>
 +
 
 +
<body>
 +
  <!--______________Top Navigation Bar_________________________-->
 +
  <ul id="topnav">
 +
    <li class="dropdown"><div class="dropdown-main">PROJECT</div>
 
       <div class="dropdown-content">
 
       <div class="dropdown-content">
      <a href="#">Link 1</a>
+
        <a href="https://2018.igem.org/Team:UC_Davis/Design">Design</a>
      <a href="#">Link 2</a>
+
<a href="https://2018.igem.org/Team:UC_Davis/Measurement">Measurement</a>
      <a href="#">Link 3</a>
+
        <a href="https://2018.igem.org/Team:UC_Davis/Demonstrate">Results</a>
 +
        <a href="https://2018.igem.org/Team:UC_Davis/Modeling">Modeling</a>
 +
        <a href="https://2018.igem.org/Team:UC_Davis/InterLab">InterLab</a>
 +
   
 
       </div>
 
       </div>
 +
    </li>
 +
    <li class="dropdown"><div class="dropdown-main">HUMAN PRACTICES</div>
 +
      <div class="dropdown-content">
 +
        <a href="https://2018.igem.org/Team:UC_Davis/Human_Practices">Integrating Human Practices</a>
 +
   
 +
        <a href="https://2018.igem.org/Team:UC_Davis/Education">Education & Outreach</a>
 
       </div>
 
       </div>
 
+
    </li>
       <!--______________Acknowledgements____________-->
+
    <li class="dropdown"><a href="https://2018.igem.org/Team:UC_Davis/Parts" class="nav-item" class="dropdown-main">PARTS</a>
      <div class="dropdown">
+
 
      <button class="dropbtn">Acknowledgements</button>
+
    </li>
 +
    <li id="navlogo">
 +
       <a class="navlogo" href="https://2018.igem.org/Team:UC_Davis"><img src="https://static.igem.org/mediawiki/2018/7/73/T--UC_Davis--anchor.png" alt="DNA logo" class="navlogo-img"><b class="logo-word">Cenozoic</b></a>
 +
    </li>
 +
    <li class="dropdown"><div class="dropdown-main">LAB WORK</div>
 
       <div class="dropdown-content">
 
       <div class="dropdown-content">
      <a href="#">Link 1</a>
+
        <a href="https://2018.igem.org/Team:UC_Davis/Experiments">Experiments</a>
      <a href="#">Link 2</a>
+
        <a href="https://2018.igem.org/Team:UC_Davis/Notebook">Lab Notebook</a>
      <a href="#">Link 3</a>
+
  <a href="https://2018.igem.org/Team:UC_Davis/SupplementalMaterials">Supplementary Material</a>
 +
        <a href="https://2018.igem.org/Team:UC_Davis/Safety">Safety</a>
 
       </div>
 
       </div>
 +
    </li>
 +
    <li class="dropdown"><div class="nav-item">TEAM</div>
 +
      <div class="dropdown-content">
 +
        <a href="https://2018.igem.org/Team:UC_Davis/Team">Meet the Team</a>
 +
        <a href="https://2018.igem.org/Team:UC_Davis/Attributions">Attributions</a>
 +
        <a href="https://2018.igem.org/Team:UC_Davis/Sponsors">Sponsors</a>
 +
      </div>
 +
    </li>
 +
    <li class="dropdown"><div class="nav-item">ACHIEVEMENTS</div>
 +
      <div class="dropdown-content">
 +
        <a href="https://2018.igem.org/Team:UC_Davis/Medal_Requirements">Medal Requirements</a>
 +
<a href="https://2018.igem.org/Team:UC_Davis/Collaborations">Collaborations</a>
 +
       
 
       </div>
 
       </div>
 +
    </li>
  
      <!--______________iGEM____________-->
+
    <!--___________________________________Burger Menu____________________________________________-->
       <div class="dropdown">
+
    <li class="burger"><input type="checkbox" id="b-control"><label for="b-control">&#9776;</label>
      <button class="dropbtn">iGEM</button>
+
       <div class="burger-content">
 +
        <div class="b-dropdown"><div class="b-dropdown-main">Project</div>
 +
          <div class="b-dropdown-content">
 +
            <a href="https://2018.igem.org/Team:UC_Davis/Design">Design</a>
 +
<a href="https://2018.igem.org/Team:UC_Davis/Measurement">Measurement</a>
 +
            <a href="https://2018.igem.org/Team:UC_Davis/Demonstrate">Results</a>
 +
            <a href="https://2018.igem.org/Team:UC_Davis/Modeling">Modeling</a>
 +
            <a href="https://2018.igem.org/Team:UC_Davis/InterLab">InterLab</a>
 +
           
 +
          </div>
 +
        </div>
 +
        <div class="b-dropdown"><div class="b-dropdown-main">Human Practices</div>
 +
          <div class="b-dropdown-content">
 +
            <a href="https://2018.igem.org/Team:UC_Davis/Human_Practices">Integrating Human Practices</a>
 +
         
 +
            <a href="https://2018.igem.org/Team:UC_Davis/Education">Education & Outreach</a>
 +
           
 +
          </div>
 +
        </div>
 +
        <div class="b-dropdown"><a href="https://2018.igem.org/Team:UC_Davis/Parts" class="b-dropdown-main">Parts</a>
 +
     
 +
          </div>
 +
        </div>
 +
        <div class="b-dropdown"><div class="b-dropdown-main">Lab Work</div>
 +
          <div class="b-dropdown-content">
 +
            <a href="https://2018.igem.org/Team:UC_Davis/Experiments">Experiments</a>
 +
            <a href="https://2018.igem.org/Team:UC_Davis/Notebook">Lab Notebook</a>
 +
<a href="https://2018.igem.org/Team:UC_Davis/SupplementalMaterials">Supplementary Material</a>
 +
            <a href="https://2018.igem.org/Team:UC_Davis/Safety">Safety</a>
 +
          </div>
 +
        </div>
 +
        <div class="b-dropdown"><div class="b-dropdown-main">Team</div>
 +
          <div class="b-dropdown-content">
 +
            <a href="https://2018.igem.org/Team:UC_Davis/Team">Meet the Team</a>
 +
            <a href="#">Advisors</a>
 +
            <a href="https://2018.igem.org/Team:UC_Davis/Sponsors">Sposors</a>
 +
          </div>
 +
        </div>
 +
        <div class="b-dropdown"><div class="b-dropdown-main">Achievements</div>
 +
          <div class="b-dropdown-content">
 +
            <a href="https://2018.igem.org/Team:UC_Davis/Medal_Requirements">Medal Requirements</a>
 +
<a href="https://2018.igem.org/Team:UC_Davis/Collaborations">Collaborations</a>
 +
         
 +
          </div>
 +
        </div>
 
       </div>
 
       </div>
 +
    </li>
 +
  </ul>
 +
  <!--__________________________________________________________________________________________-->
  
      </ul>
+
  <!--_________________________________________________________-->
  <!--_________________________________________________________-->
+
<script>
  </div>
+
$(document).ready(function() {
 
+
$("#HQ_page").attr('id','');
<div style='border-bottom: 1px solid #525B68'></div>
+
});
 
+
</script>
 
</body>
 
</body>
 
  
 
</html>
 
</html>

Latest revision as of 22:58, 17 October 2018

iGEM