Difference between revisions of "Template:Melbourne"

 
(65 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 = "19px";
+
     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 87: 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) */
    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;
 
}
 
}
 
 
 
/********/
 
 
/* The dropdown container */
 
.dropdown {
 
  float: left;
 
  overflow: hidden;
 
}
 
 
/* Dropdown button */
 
.dropdown .dropbtn {
 
  font-size: 16px;
 
  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 */
 
}
 
 
/* Add a red background color to navbar links on hover */
 
.dropdown:hover .dropbtn {
 
  background-color: red;
 
}
 
 
/* Dropdown content (hidden by default) */
 
.dropdown-content {
 
  display: none;
 
  position: absolute;
 
  background-color: #f9f9f9;
 
  min-width: 160px;
 
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
 
  z-index: 1;
 
}
 
 
/* Links inside the dropdown */
 
.dropdown-content a {
 
  float: none;
 
  color: black;
 
  padding: 12px 16px;
 
  text-decoration: none;
 
  display: block;
 
  text-align: left;
 
}
 
 
/* Add a grey background color to dropdown links on hover */
 
.dropdown-content a:hover {
 
  background-color: #ddd;
 
}
 
 
/* Show the dropdown menu on hover */
 
.dropdown:hover .dropdown-content {
 
  display: block;
 
}
 
 
 
  
  
Line 624: Line 579:
 
<!--- Menu --->
 
<!--- Menu --->
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
 
<!------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------->
<div class="navbar">
+
 
  <a href="#home">Home</a>
+
 
   <a href="#news">News</a>
+
<div id="navbar">
  <div class="dropdown">
+
 
    <button class="dropbtn">Dropdown
+
 
      <i class="fa fa-caret-down"></i>
+
 
    </button>
+
 
    <div class="dropdown-content">
+
<a href="https://2018.igem.org/Team:Melbourne" class="nav_item, nav_text">Home</a>
      <a href="#">Link 1</a>
+
   <a href="https://2018.igem.org/Team:Melbourne/Team" class="nav_item, nav_text">Team</a>
      <a href="#">Link 2</a>
+
<a href="https://igem.org/2018_Judging_Form?team=Melbourne" class="nav_item, nav_icon">
      <a href="#">Link 3</a>
+
<img src="http://www.ampc.ms.unimelb.edu.au/srg/index_files/UOM.png" width="115px", height="95px">
    </div>
+
</a>
  </div>
+
  <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 644: 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