Difference between revisions of "Template:Melbourne"

(Adding drop down)
 
(44 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
<script>
 
<script>
 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
 +
 +
 +
  
 
// When the user scrolls down 20px from the top of the document, slide down the navbar
 
// When the user scrolls down 20px from the top of the document, slide down the navbar
Line 80: Line 83:
 
.nav_text{
 
.nav_text{
 
font-size: 18px;
 
font-size: 18px;
width: 15%;
+
margin-top: 10px;
margin-top: 20px;
+
padding-top: 35px;
text-align: left;
+
padding-bottom: 35px;
padding-left:25px;
+
 
}
 
}
  
.nav_icon{
+
.nav_icon {
 
padding-top: 10px;
 
padding-top: 10px;
 
padding-bottom: 5px;
 
padding-bottom: 5px;
padding-left:25px;
 
 
}
 
}
 +
  
  
Line 99: Line 101:
 
     width: 100%; /* Full width */
 
     width: 100%; /* Full width */
 
     transition: top 0.3s; /* Transition effect when sliding down (and up) */
 
     transition: top 0.3s; /* Transition effect when sliding down (and up) */
 
 
}
 
}
  
Line 108: Line 109:
 
     color: white;
 
     color: white;
 
     text-decoration: none;
 
     text-decoration: none;
 +
width: 20%;
 +
text-align: center;
 +
 
}
 
}
  
Line 120: Line 124:
  
  
 
 
 
 
 
/* The subnavigation menu */
 
.subnav {
 
  float: left;
 
  overflow: hidden;
 
}
 
 
/* Subnav button */
 
.subnav .subnavbtn {
 
  font-size: 16px;
 
  border: none;
 
  outline: none;
 
  color: white;
 
  padding: 14px 16px;
 
  background-color: inherit;
 
  font-family: inherit;
 
  margin: 0;
 
}
 
 
/* Add a red background color to navigation links on hover */
 
.subnav:hover .subnavbtn {
 
  background-color: red;
 
}
 
 
/* Style the subnav content - positioned absolute */
 
.subnav-content {
 
  display: none;
 
  position: absolute;
 
  left: 0;
 
  background-color: red;
 
  width: 100%;
 
  z-index: 1;
 
}
 
 
/* Style the subnav links */
 
.subnav-content a {
 
  float: left;
 
  color: white;
 
  text-decoration: none;
 
}
 
 
/* Add a grey background color on hover */
 
.subnav-content a:hover {
 
  background-color: #eee;
 
  color: black;
 
}
 
 
/* When you move the mouse over the subnav container, open the subnav content */
 
.subnav:hover .subnav-content {
 
  display: block;
 
}
 
  
  
Line 630: Line 579:
 
<!--- Menu --->
 
<!--- Menu --->
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
<div id="navbar">
 
  
<div class="subnav">
 
    <img class="subnavbtn" src="http://www.ampc.ms.unimelb.edu.au/srg/index_files/UOM.png" width="115px", height="95px"><i class="fa fa-caret-down"></i></img>
 
    <div class="subnav-content">
 
<a href="#home" class="nav_text">Parts</a>
 
<a href="#home" class="nav_text">Awards</a>
 
<a href="#home" class="nav_text">Human Practices</a>
 
<a href="#home" class="nav_text">Judging Form</a>
 
    </div>
 
  </div>
 
  
 +
<div id="navbar">
  
<a href="#home" class="nav_text">Home</a>
 
  <a href="#home" class="nav_text">Team</a>
 
  <a href="#home" class="nav_text">Project</a>
 
  <a href="#home" class="nav_text">Safety</a>
 
<br>
 
  
  
  
 +
<a href="https://2018.igem.org/Team:Melbourne" class="nav_item, nav_text">Home</a>
 +
  <a href="https://2018.igem.org/Team:Melbourne/Team" class="nav_item, nav_text">Team</a>
 +
<a href="https://igem.org/2018_Judging_Form?team=Melbourne" class="nav_item, nav_icon">
 +
<img src="http://www.ampc.ms.unimelb.edu.au/srg/index_files/UOM.png" width="115px", height="95px">
 +
</a>
 +
  <a href="https://2018.igem.org/Team:Melbourne/Project" class="nav_item, nav_text">Project</a>
 +
  <a href="https://2018.igem.org/Team:Melbourne/Experiment" class="nav_item, nav_text">Experiment</a>
  
 
 
  
  
Line 662: Line 603:
 
<!--- Content of the page  --->
 
<!--- Content of the page  --->
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 
 
<div class="igem_2018_team_content">
 
<div class="igem_2018_team_column_wrapper">
 
<div class="clear extra_space"></div>
 
<div class="clear extra_space"></div>
 

Latest revision as of 13:15, 17 October 2018