Difference between revisions of "Team:TP-CC San Diego/Templates/NavBar"

 
(237 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<!-- <html onmouseover="show()">
+
{{:Team:TP-CC_San_Diego/Templates/MainCSS}}
 +
<html>
 
<head>
 
<head>
<style>
 
/* Clear the default wiki settings */
 
 
#home_logo, #sideMenu { display:none; }
 
#sideMenu, #top_title, .patrollink  {display:none;}
 
#content { width:100%; padding:0px;  margin-top:-7px; margin-left:0px;}
 
body {background-color:white; }
 
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
 
  
body
+
<link href="https://fonts.googleapis.com/css?family=Raleway" rel="stylesheet">
{
+
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans:600" rel="stylesheet">
background-color: #201E54;
+
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
text-color: black;
+
align: center;
+
}
+
  
h1
+
<style>
{
+
float: center;
+
text-align: center;
+
color: blue;
+
border: solid blue 2px;
+
width: 300px;
+
}
+
 
+
a.button {
+
    -webkit-appearance: button;
+
    -moz-appearance: button;
+
    appearance: button;
+
    text-decoration: none;
+
    color: #5396ac;
+
}
+
  
#nav-item
+
#navbar
 
{
 
{
display: inline-block;
+
    margin: auto;
color: black;
+
    width: 100%;
text-align: center;
+
    text-align: center;
  padding: 14px 50px;
+
  text-decoration: none;
+
font-family: "Open Sans Condensed";
+
font-size: 18px;
+
 
}
 
}
  
#nav-item:hover
+
#navbar-fill {
{
+
  width:100%;
background-color: #BOB4B7;
+
  margin-top: 0px;
color: green;
+
  background-color: #333333;
 +
  z-index: 2;
 
}
 
}
  
                nav
 
{
 
top: 15px;
 
                        width: 100%;
 
                        margin-bottom: 20px;
 
width: 101%;
 
position: fixed;
 
display: block;
 
margin-top: 0px;
 
                        margin-left:0px;
 
padding: 0px;
 
 
}
 
 
.dropbutton
 
{
 
background-color: #000066;
 
color: white;
 
padding: 10px;
 
font-size: 16px;
 
border: none;
 
float: left;
 
                        width: 16%;
 
}
 
 
.dropbutton:hover, .dropbutton:focus
 
{
 
background-color: black;
 
}
 
 
.drop-content
 
{
 
                        margin-top: 37px;
 
display: none;
 
position: absolute;
 
background-color: #000066;
 
z-index: 1;
 
                        padding-left: 5%;
 
                        padding-right: 5%;
 
}
 
 
.drop-contentlate
 
{
 
                        margin-right: 50px;
 
}
 
 
.drop-content a
 
{
 
color: white;
 
padding: 12px 16px;
 
text-decoration: none;
 
display: block;
 
}
 
 
                .drop-content a:hover
 
{
 
color: white;
 
                        background-color: black;
 
padding: 12px 16px;
 
text-decoration: none;
 
display: block;
 
}
 
 
.show
 
{
 
display: inline;
 
}
 
.show2
 
{
 
display: inline;
 
}
 
.show3
 
{
 
display: inline;
 
}
 
.show4
 
{
 
display: inline;
 
}
 
.show5
 
{
 
display: inline;
 
}
 
.show6
 
{
 
display: block;
 
}
 
 
h1
 
{
 
padding-top: 60px;
 
}
 
</style>
 
<script>
 
function show()
 
{
 
document.getElementById("myDropdown").classList.toggle("show");
 
}
 
function show2()
 
{
 
document.getElementById("myDropdown2").classList.toggle("show2");
 
}
 
function show3()
 
{
 
document.getElementById("myDropdown3").classList.toggle("show3");
 
}
 
function show4()
 
{
 
document.getElementById("myDropdown4").classList.toggle("show4");
 
}
 
function show5()
 
{
 
document.getElementById("myDropdown5").classList.toggle("show5");
 
}
 
function show6()
 
{
 
document.getElementById("myDropdown6").classList.toggle("show6");
 
}
 
 
window.onclick = function(event) {
 
if (!event.target.matches('.dropbutton')) {
 
var dropdowns = document.getElementsByClassName("dropdown-content");
 
var i;
 
for (i = 0; i < dropdowns.length; i++) {
 
var openDropdown = dropdowns[i];
 
if (openDropdown.classList.contains('show')) {
 
openDropdown.classList.remove('show');
 
}
 
}
 
}
 
}
 
</script>
 
</head>
 
 
 
<nav>
 
<button onmouseover="show6()" onmouseout="show6()" class="dropbutton">Project</button>
 
<div id="myDropdown3" onmouseover="show3()" onmouseout="show3()" class="drop-content">
 
<a href="https://2017.igem.org/Team:TP-CC_San_Diego/LabBook">Lab Notebook</a>
 
<a href="https://2017.igem.org/Team:TP-CC_San_Diego/Protocols">Protocols</a>
 
<a href="https://2017.igem.org/Team:TP-CC_San_Diego/MedalCriteria">Medal Criteria</a>
 
                                <a href="https://2017.igem.org/Team:TP-CC_San_Diego/BrainStorm">Brainstorm</a>
 
</div>
 
 
 
<button onmouseover="show3()" onmouseout="show3()" class="dropbutton">Notebook</button>
 
<div id="myDropdown4" onmouseover="show4()" onmouseout="show4()" class="drop-content">
 
<a href="https://2017.igem.org/Team:TP-CC_San_Diego/HumanPractices">Human Practices</a>
 
<a href="https://2017.igem.org/Team:TP-CC_San_Diego/IntegratedPractices">Integrated Practices</a>
 
<a href="https://2017.igem.org/Team:TP-CC_San_Diego/PublicEngagement">Public Engagement</a>
 
                                <a href="https://2017.igem.org/Team:TP-CC_San_Diego/Collaborations">Collaborations</a>
 
</div>
 
 
<button onmouseover="show4()" onmouseout="show4()" class="dropbutton">Human Practices</button>
 
<div id="myDropdown5" onmouseover="show5()" onmouseout="show5()" class="drop-content">
 
<a href="https://2017.igem.org/Team:TP-CC_San_Diego/Team"></a>Team</a>
 
                                <a href="https://2017.igem.org/Team:TP-CC_San_Diego/Attributions"></a>Attributions</a>
 
 
 
</div>
 
 
<button onmouseover="show5()" onmouseout="show5()" class="dropbutton">Team</button>
 
<div id="myDropdown6" onmouseover="show6()" onmouseout="show6()" class="drop-content">
 
<a href="https://2017.igem.org/Team:TP-CC_San_Diego/Description">Description</a>
 
<a href="https://2017.igem.org/Team:TP-CC_San_Diego/Results">Results</a>
 
                                <a href="https://2017.igem.org/Team:TP-CC_San_Diego/Proof">Proof</a>
 
                                <a href="https://2017.igem.org/Team:TP-CC_San_Diego/BasicParts">Basic Parts</a>
 
                                <a href="https://2017.igem.org/Team:TP-CC_San_Diego/Modelling">Modelling</a>
 
</div>
 
                      </nav>
 
*/
 
 
-->
 
<!-- Jodie's Code -->
 
<html>
 
<head>
 
<style>
 
 
.dropbtn {
 
.dropbtn {
     background-color: #4CAF50;
+
     background-color: #333333;
 
     color: white;
 
     color: white;
     padding: 16px;
+
    width: 180px;
 +
     padding: 13px;
 
     font-size: 16px;
 
     font-size: 16px;
 
     border: none;
 
     border: none;
 
     cursor: pointer;
 
     cursor: pointer;
 +
font-family: 'Montserrat', sans-serif;
 +
 +
 
 +
}
 +
 +
button.dropbtn:hover
 +
{
 +
  background-color: black;
 
}
 
}
  
Line 240: Line 44:
 
     position: relative;
 
     position: relative;
 
     display: inline-block;
 
     display: inline-block;
 +
    font-family: 'Montserrat', sans-serif;
 
}
 
}
  
Line 245: Line 50:
 
     display: none;
 
     display: none;
 
     position: absolute;
 
     position: absolute;
     right: 0;
+
     width: 180px;
     background-color: #f9f9f9;
+
     background-color: #333333;
    min-width: 160px;
+
 
     box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
 
     box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
     z-index: 1;
+
     z-index: 2;
 +
    text-align: center;
 +
    font-family: 'Montserrat', sans-serif;
 
}
 
}
  
.dropdown-content a {
 
    color: black;
 
    padding: 12px 16px;
 
    text-decoration: none;
 
    display: block;
 
}
 
  
 
#title
 
#title
 
{
 
{
     color:white;
+
     color: white;
 
     text-decoration: none;
 
     text-decoration: none;
 
}
 
}
  
.dropdown-content a:hover {background-color: #f1f1f1}
+
.dropdown-content a {
 +
  color: white;
 +
  border-bottom-style: solid;
 +
  border-bottom-color: white;
 +
  border-bottom-width: 1px;
 +
  padding: 12px 16px;
 +
  text-decoration: none;
 +
  display: block;
 +
  font-family: 'Raleway', sans-serif;
 +
}
 +
 
 +
.dropdown-content a:hover {
 +
background-color: #6e6e6e
 +
}
  
 
.dropdown:hover .dropdown-content {
 
.dropdown:hover .dropdown-content {
Line 272: Line 85:
  
 
.dropdown:hover .dropbtn {
 
.dropdown:hover .dropbtn {
     background-color: #3e8e41;
+
     background-color: #333333;
 
}
 
}
 +
 +
div.animation a:before
 +
{
 +
    position: absolute;
 +
    top: 0px;
 +
    left: 0px;
 +
    width: 1px;
 +
    height: 0px;
 +
    background: #FFF;
 +
    content: "";
 +
    opacity: 1;
 +
    transition: all 0.3s;
 +
}
 +
 +
div.animation a:after
 +
{
 +
    position: absolute;
 +
    top: 0px;
 +
    left: 0px;
 +
    width: 100%;
 +
    height: 1px;
 +
    background: #FFF;
 +
    content: "";
 +
    opacity: 1;
 +
    transition: all 0.3s;
 +
}
 +
 +
div.animation a:hover:before
 +
{
 +
    height: 100%;
 +
}
 +
 +
div.animation a:hover:after
 +
{
 +
    opacity: 0;
 +
    top: 10%;
 +
}
 +
 +
 
</style>
 
</style>
 
</head>
 
</head>
 
<body>
 
<body>
 +
<div id = "navbar">
 +
<div id="navbar-fill">
 +
<div class="dropdown nav-animation">
 +
  <a href = "https://2017.igem.org/Team:TP-CC_San_Diego"> <button class = "dropbtn" class id = "title" style = "color: white"> Home </button> </a>
  
<div class="dropdown">
 
  <a class = "dropbtn" class id = "title" href="https://2017.igem.org/Team:TP-CC_San_Diego">Home </a>
 
 
</div>
 
</div>
  
 
<div class="dropdown">
 
<div class="dropdown">
   <button class="dropbtn">First </button>
+
   <button class="dropbtn"> Project </button>
 
   <div class="dropdown-content" style="left:0;">
 
   <div class="dropdown-content" style="left:0;">
    <a href="#">Link 1</a>
+
<a style="font-family: 'Montserrat', sans-serif;" href="https://2017.igem.org/Team:TP-CC_San_Diego/Description">Description</a>
    <a href="#">Link 2</a>
+
<a style="font-family: 'Montserrat', sans-serif;" href="https://2017.igem.org/Team:TP-CC_San_Diego/Results">Results</a>
    <a href="#">Link 3</a>
+
 
 +
        <a style="font-family: 'Montserrat', sans-serif;" href="https://2017.igem.org/Team:TP-CC_San_Diego/Model">Modeling</a>
 
   </div>
 
   </div>
 
</div>
 
</div>
  
 
<div class="dropdown">
 
<div class="dropdown">
   <button class="dropbtn">Second </button>
+
   <button class="dropbtn"> Notebook </button>
 
   <div class="dropdown-content">
 
   <div class="dropdown-content">
    <a href="#">Link 1</a>
+
<a style="font-family: 'Montserrat', sans-serif;" href="https://2017.igem.org/Team:TP-CC_San_Diego/LabBook">Lab Notebook</a>
    <a href="#">Link 2</a>
+
<a style="font-family: 'Montserrat', sans-serif;" href="https://2017.igem.org/Team:TP-CC_San_Diego/InterLab">Interlab Study</a>
    <a href="#">Link 3</a>
+
<a style="font-family: 'Montserrat', sans-serif;" href="https://2017.igem.org/Team:TP-CC_San_Diego/Protocols">Protocols</a>
 +
<a style="font-family: 'Montserrat', sans-serif;" href="https://2017.igem.org/Team:TP-CC_San_Diego/MedalCriteria">Medal Criteria</a>
 
   </div>
 
   </div>
 
</div>
 
</div>
  
 
<div class="dropdown">
 
<div class="dropdown">
   <button class="dropbtn">Third </button>
+
   <button class="dropbtn"> Human Practices </button>
 
   <div class="dropdown-content">
 
   <div class="dropdown-content">
    <a href="#">Link 1</a>
+
<a style="font-family: 'Montserrat', sans-serif;" href="https://2017.igem.org/Team:TP-CC_San_Diego/HP/Silver">Human Practices</a>
    <a href="#">Link 2</a>
+
<a style="font-family: 'Montserrat', sans-serif;" href="https://2017.igem.org/Team:TP-CC_San_Diego/HP/Gold_Integrated">Integrated Practices</a>
    <a href="#">Link 3</a>
+
<a style="font-family: 'Montserrat', sans-serif;" href="https://2017.igem.org/Team:TP-CC_San_Diego/Collaborations">Collaborations</a>
 
   </div>
 
   </div>
 
</div>
 
</div>
  
 
<div class="dropdown">
 
<div class="dropdown">
   <button class="dropbtn">Fourth</button>
+
   <button class="dropbtn"> Team </button>
 
   <div class="dropdown-content">
 
   <div class="dropdown-content">
    <a href="#">Link 1</a>
+
<a style="font-family: 'Montserrat', sans-serif;" href="https://2017.igem.org/Team:TP-CC_San_Diego/Team">Team</a>
    <a href="#">Link 2</a>
+
        <a style="font-family: 'Montserrat', sans-serif;" href="https://2017.igem.org/Team:TP-CC_San_Diego/Attributions">Attributions</a>
    <a href="#">Link 3</a>
+
 
   </div>
 
   </div>
 
</div>
 
</div>
  
 +
</div>
 +
 +
 +
</div>
 
</body>
 
</body>
 
</html>
 
</html>

Latest revision as of 12:57, 1 November 2017