Difference between revisions of "Template:Melbourne"

 
(72 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 9: Line 12:
 
function scrollFunction() {
 
function scrollFunction() {
 
   if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
 
   if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
     document.getElementById("navbar").style.top = "0";
+
     document.getElementById("navbar").style.top = "18px";
 
   }
 
   }
 
 
}
 
}
  
Line 78: Line 80:
 
.judges-will-not-evaluate { border: 4px solid #e4dede; padding: 2% !important; width: 92%!important;}
 
.judges-will-not-evaluate { border: 4px solid #e4dede; padding: 2% !important; width: 92%!important;}
  
 +
 +
.nav_text{
 +
font-size: 18px;
 +
margin-top: 10px;
 +
padding-top: 35px;
 +
padding-bottom: 35px;
 +
}
 +
 +
.nav_icon {
 +
padding-top: 10px;
 +
padding-bottom: 5px;
 +
}
  
  
Line 84: Line 98:
 
     background-color: #333; /* Black background color */
 
     background-color: #333; /* Black background color */
 
     position: fixed; /* Make it stick/fixed */
 
     position: fixed; /* Make it stick/fixed */
     top: 35px; /* Hide the navbar 50 px outside of the top view */
+
     top: 19px; /* Hide the navbar 50 px outside of the top view */
 
     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) */
    padding-left: 50px;
 
 
}
 
}
  
Line 95: Line 108:
 
     display: block;
 
     display: block;
 
     color: white;
 
     color: white;
    text-align: center;
 
    padding: 15px;
 
 
     text-decoration: none;
 
     text-decoration: none;
 +
width: 20%;
 +
text-align: center;
 +
 
}
 
}
  
Line 104: Line 118:
 
     color: black;
 
     color: black;
 
}
 
}
 +
 +
 +
 +
 +
 +
  
  
Line 559: Line 579:
 
<!--- Menu --->
 
<!--- Menu --->
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 +
 +
 
<div id="navbar">
 
<div id="navbar">
  <a href="#home">Home</a>
+
 
   <a href="#news">News</a>
+
 
   <a href="#contact">Contact</a>
+
 
 +
 
 +
<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>
 +
 
 +
 
 +
 
 
</div>
 
</div>
  
Line 570: 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