Difference between revisions of "Template:Austin UTexas"

Line 73: Line 73:
 
   
 
   
 
/*----- Bottom Level -----*/
 
/*----- Bottom Level -----*/
 +
.menu li:hover .sub-menu {
 +
    z-index:1;
 +
    opacity:1;
 +
}
 
   
 
   
 
.sub-menu {
 
.sub-menu {
Line 88: Line 92:
 
   
 
   
 
.sub-menu li {
 
.sub-menu li {
     display:none;
+
     display:block;
 
     font-size:13px;
 
     font-size:13px;
 
}
 
}
Line 101: Line 105:
 
}
 
}
  
.show {display:block;}
+
 
 +
 
  
 
/* Wrapper for the menu */
 
/* Wrapper for the menu */
Line 504: Line 509:
  
  
<li> <a href="" onclick="myFunction(team)">TEAM <span class="arrow">&#9660;</span></a>
+
<li> <a href="">TEAM <span class="arrow">&#9660;</span></a>
<ul class="sub-menu" id="team">
+
<ul class="sub-menu">
 
<li> <a href=" https://2016.igem.org/Team:Austin_UTexas/Team"> Team  </a> </li>
 
<li> <a href=" https://2016.igem.org/Team:Austin_UTexas/Team"> Team  </a> </li>
 
<li> <a href="https://2016.igem.org/Team:Austin_UTexas/Collaborations">★  Collaborations </a> </li>
 
<li> <a href="https://2016.igem.org/Team:Austin_UTexas/Collaborations">★  Collaborations </a> </li>
Line 651: Line 656:
 
});
 
});
  
 
/* When the user clicks on the button,
 
toggle between hiding and showing the dropdown content */
 
function showSubMenu(menu) {
 
    document.getElementById(menu).classList.toggle("show");
 
}
 
  
  

Revision as of 06:02, 18 October 2016