Difference between revisions of "Template:William and Mary/NAV BAR"

 
(133 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<html lang='en'>   
 
<html lang='en'>   
<head>
+
 
<script>
+
$(document).ready(function() {
+
        // Transition effect for navbar
+
        $(window).scroll(function() {
+
          // checks if window is scrolled more than 500px, adds/removes solid class
+
          if($(this).scrollTop() > 100) {
+
              $('.navbar').addClass('solid');
+
          } else {
+
              $('.navbar').removeClass('solid');
+
          }
+
        });
+
});
+
</script>
+
  
 
<style>
 
<style>
.navbar {
+
 
  height: 80px;
+
.dropdown {
  background-color: transparent;
+
   z-index: 9999;
  border: none;
+
    
  color: white;
+
   z-index: 100;
+
   transition: background-color 1s ease 0s;
+
 
}
 
}
  
 +
#wnm-top-nav ul {
 +
  margin: 0 0 0 0;
 +
 +
#wnm-top-nav li {
 +
  margin: 0 0 0 0;
 +
}
  
.navbar-default {
+
#wnm-top-nav li {
 +
  display: inline-block;
 +
}
 +
#wnm-top-nav li:hover {
 +
  background: #ECECEC;
 +
}
 +
#wnm-top-nav li:hover ul {
 +
  display: block;
 +
}
 +
#wnm-top-nav li ul {
 +
  position: absolute;
 +
  width: 150px;
 +
  display: none;
 +
font-size: 15px;
 +
}
 +
#wnm-top-nav li ul li {  
 +
background: #ECECEC;
 
    
 
    
  .navbar-brand {
+
  display: block;  
    margin-top: 10px;
+
}
    color: white;
+
#wnm-top-nav li ul li a {display:block !important;}  
       
+
#wnm-top-nav li ul li:hover {background: #D0D0D0;}
      &:hover {
+
        color: #C57ED3;
+
        border: 1px solid #C57ED3;
+
      }
+
  }
+
 
+
  .navbar-nav {
+
   
+
    > li {
+
     
+
      > a {
+
        color: white;
+
        margin: 10px 5px 5px 5px;
+
       
+
      }
+
      > a:hover, > a:active, > a:focus {
+
        color: #C57ED3;
+
        border: 1px solid #C57ED3;
+
      }
+
      > a:visited {
+
        color: #C57ED3;
+
        text-decoration: none;
+
      }
+
  
     } //end li
+
.nav.navbar-nav.navbar-right li a {
 +
     color: black;
 +
}
 +
.dropdown-content ul li a {
 +
    color: black;
 +
    padding: 10px 13px;
 +
    text-decoration: none;
 +
    display: block;
 +
    font-size: 13px;
 +
}
  
    > .active {
+
</style>
  
      > a, > a:hover, > a:focus {
 
        background-color: transparent;
 
        color: #C57ED3;
 
      }
 
  
     }
+
<div class="dropdown">
 +
  <nav style="background-color: #FFFFFF" class="navbar navbar-default navbar-fixed-top" role="navigation">
 +
     <!-- navbar adjusted to fix full-screen issue on auxillary pages resulting in whitespace at top of screen. -->
 +
    <div class="container">
 +
      <div class="navbar-header"style='float: left;'>
 +
        <button id="menu-toggle" type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example">
 +
          <span class="sr-only">Toggle navigation</span>
 +
          <span class="icon-bar bar1"></span>
 +
          <span class="icon-bar bar2"></span>
 +
          <span class="icon-bar bar3"></span>
 +
        </button>
 +
        <a href='https://2018.igem.org/Team:William_and_Mary' class="navbar-brand">
 +
<div style='padding-top: 3px; padding-left: -10px;'>
 +
          <img src="https://static.igem.org/mediawiki/2018/e/ec/T--William_and_Mary--DecodeLogo1.jpg" height = "30px"/></div>
 +
        </a>
 +
      </div>
 +
   
 +
      <div class="collapse navbar-collapse">
 +
        <ul id = "wnm-top-nav" class="nav navbar-nav navbar-left navbar-uppercase dropdown">
 +
  
  } //end .navbar-nav
+
            <li>
 +
              <a href="https://2018.igem.org/Team:William_and_Mary/Description">
 +
                Project
 +
              </a>
  
  //Collapsed styles
 
  .navbar-toggle {
 
    border-color: #C57ED3;
 
  
      &:hover, &:focus {
+
<ul class="dropdown-content">
        background-color: #490D40;
+
             
      }
+
                <li> <center><a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Description">
 +
                Background
 +
                </a></center></li>
  
 +
                <li> <center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Results">
 +
                Results
 +
                </a></center></li>
  
  
      .icon-bar {
+
                </a></center></li>
        color: #C57ED3;
+
                <li> <center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Heat">
        background-color: #C57ED3;
+
                Temperature Systems
 +
                </a></center></li>
  
      }
+
                </a></center></li>
  }
+
                <li> <center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Experiments">
 +
                Methods and Data
 +
                </a></center></li>
  
  .navbar-collapse.collapse.in ul {
 
    background-color: #490D40;
 
  }
 
   
 
} //end .navbar-default
 
  
.navbar-normal{
+
</ul>
text-color: green;
+
</li>
background-color: white;
+
text-size: 15 px;
+
}
+
/* Solid class attached on scroll past first sectiont*/
+
  
.navbar.solid {
+
       
  background-color: #21610B;
+
          <li>
<!-- #490D40-->
+
            <a href="https://2018.igem.org/Team:William_and_Mary/3G">
  transition: background-color 1s ease 0s;
+
              3G Assembly
  box-shadow: 0 0 4px grey;
+
            </a>
 +
            <ul class="dropdown-content">
 +
             
 +
                <li> <center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/3G">
 +
                Method Overview
 +
                </a></center></li>
  
    .navbar-brand {
+
                <li> <center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Collaborations">
      color: #C57ED3;
+
                Collaborations
      transition: color 1s ease 0s;
+
                </a></center></li>
    }
+
  
    .navbar-nav {
+
                </a></center></li>
 +
                <li> <center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/3G_Mixed">
 +
                Parallel Circuit Testing
 +
                </a></center></li>
  
      > li {
+
                <li> <center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Part_Collection">
 +
                3G Parts
 +
                </a></center></li>
  
          > a {
+
                <li> <center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/3GProtocols">
            color: #C57ED3;
+
                Protocol
            transition: color 1s ease 0s;
+
                </a></center></li>
          }
+
  
      } //end li
 
  
    } //end .navbar-nav
+
               
 +
              </ul>
 +
            </li>
  
}
 
  
.dropdown {
+
            <li>
    position: relative;
+
              <a href="https://2018.igem.org/Team:William_and_Mary/Model">
    display: inline-block;
+
                Modeling
color: black;
+
              </a>
 +
            </li>
  
}
+
          <li>
 +
            <a href="https://2018.igem.org/Team:William_and_Mary/Public_Engagement">
 +
              Human Practices
 +
            </a>
 +
            <ul class="dropdown-content">
 +
             
  
.dropdown-content {
+
                <li><center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Public_Engagement">
    display: none;
+
                  Overview
    position: absolute;
+
                </a></center></li>
    background-color: white;
+
                <li><center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Human_Practices/Incorporating_new_communities">
    min-width: 160px;
+
                  Incorporating New Communities
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
+
                </a></center></li>
    padding: 10px 16px;
+
                <li><center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Human_Practices/A_Statewide_Standard">
    z-index: 1;
+
                  A Statewide Standard
}
+
                </a></center></li>
.dropdown-content a {
+
                <li><center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Human_Practices/Continuing_the_Conversation">
    text-color: black;
+
                  Continuing the Conversation
    padding: 10px 13px;
+
                </a></center></li>
    text-decoration: none;
+
                <li><center><a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Human_Practices">
    display: block;
+
                  IHP/Silver
    font-size: 13px;
+
                </a></center></li>
}
+
.dropdown-content a:hover {
+
background-color: #C0C0C0;
+
color: black;
+
}
+
  
.dropdown:hover .dropdown-content {
+
               
    display: block;
+
              </ul>
}
+
            </li>
.nav.navbar-nav.navbar-right li a {
+
    color: #f6f6f7;
+
font-family:Helvetica;
+
}
+
  
.nav.navbar-nav.navbar-right li a:hover {
 
    text-decoration: underline;
 
}
 
</style>
 
  
</head>
+
<!--->
 +
 
 +
<li>
 +
            <a href="https://2018.igem.org/Team:William_and_Mary/Database">
 +
              Database
 +
            </a>
 +
            <ul class="dropdown-content">
 +
             
 +
 
 +
                <li><center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Database_Overview">
 +
                  Database Overview
 +
                </a></center></li>
 +
                <li><center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Database">
 +
                  Database
 +
                </a></center></li>
 +
               
 +
               
 +
              </ul>
 +
            </li>
 +
 
 +
 
 +
 
 +
<!---->
 +
 
 +
<!-- <li>
 +
            <a href="https://2018.igem.org/Team:William_and_Mary/Protocols">
 +
              Protocols
 +
            </a>
 +
            <ul class="dropdown-content">
 +
             
 +
 
 +
                <li> <center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Protocols">
 +
                Protocols
 +
                </a></center></li>     
 +
                <li> <center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/3GProtocols">
 +
                3G Assembly
 +
                </a></center></li>
 +
                <li> <center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Flow_Protocol">
 +
              Sample Preservation
 +
                </a></center></li>
 +
              </ul>
 +
            </li>-->
 +
 
 +
         
 +
            <li>
 +
              <a href="#">
 +
                Judging
 +
              </a>
 +
            <ul class="dropdown-content">
 +
             
 +
              <!--<li style='font-family: "Optima";'>
 +
<center>
 +
                <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Achievements">
 +
                  Achievements
 +
                </a></center> </li>-->
 +
               
 +
                <li style='font-family: "Optima";'> <center><a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Medal Requirements">
 +
                  Medal Requirements
 +
                </a></center></li>
 +
 
 +
                <li> <center><a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Measurement">
 +
                  Measurement
 +
                </a></center></li>
 +
               
 +
                <li><center><a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Demonstrate">
 +
                  Demonstrate
 +
                </a></center> </li>
 +
 
 +
 
 +
                <li> <center><a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Part_Collection">
 +
                  Best Part Collection
 +
                </a></center></li>
 +
 
 +
                <li> <center><a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Parts">
 +
                  Parts
 +
                </a></center></li>
 +
 
 +
                <li> <center><a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Improve">
 +
                Improve
 +
                </a></center></li>
 +
 
 +
                <li> <center><a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/InterLab">
 +
                  Interlab
 +
                </a> </center></li>
 +
 
 +
              </ul>
 +
 
 +
 
 +
            </li>
 +
 
 +
 
 +
 
 +
                <li>
 +
            <a href="https://2018.igem.org/Team:William_and_Mary/Team">
 +
              Team
 +
            </a>
 +
            <ul class="dropdown-content">
 +
             
 +
 
 +
                <li> <center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Team">
 +
                  Meet the Team
 +
                </a></center></li>
 +
                <li> <center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Attributions">
 +
                  Attributions
 +
                </a></center></li>
 +
                <li> <center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Notebook">
 +
                  Notebook
 +
                </a></center></li>
 +
                <li> <center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Protocols">
 +
                Protocols
 +
                </a></center></li>
 +
                <li> <center> <a style="color: black" href="https://2018.igem.org/Team:William_and_Mary/Safety">
 +
                  Safety
 +
                </a></center></li>
 +
 
 +
 
 +
               
 +
              </ul>
 +
            </li>
 +
   
  
<body> 
+
                     
  <nav class="navbar navbar-default navbar-transparent navbar-fixed-top" role="navigation">
+
          </ul>
<!--"navbar-burger" will create an invisible navbar like the one in our 2015 page-->
+
        </div>
<div class="container">
+
      </div>
<div class="navbar-header">
+
<button id="menu-toggle" type="button" class="navbar-toggle" data-toggle="collapse" data-target="#example">
+
<span class="sr-only">Toggle navigation</span>
+
<span class="icon-bar bar1"></span>
+
<span class="icon-bar bar2"></span>
+
<span class="icon-bar bar3"></span>
+
</button>
+
<a href='https://2018.igem.org/Team:William_and_Mary' class="navbar-brand">
+
W&M
+
</a>
+
</div>
+
<div id="navbar" class="collapse navbar-collapse">
+
<ul class="nav navbar-nav navbar-right navbar-uppercase">
+
<!--li class="social-links">
+
<a href="https://www.facebook.com/WMiGEM16/?fref=ts">
+
<i class="fa fa-facebook"></i>
+
</a>
+
<a href="https://twitter.com/wmigem">
+
<i class="fa fa-twitter"></i>
+
</a-->
+
<!--
+
<a href="#">
+
<i class="fa fa-instagram"></i>
+
</a>
+
-->
+
<!--/li-->
+
<li>
+
<a href="https://2018.igem.org/Team:William_and_Mary">
+
Home
+
</a>
+
</li>
+
                                 
+
<li class="dropdown"><a id = "wnm-top-nav" class="nav-link dropdown-toggle" data-toggle="dropdown" href="#">Project<span class="caret"></span></a>
+
                                              <ul style="right: -15px; top: 55px;" class="dropdown-content">
+
                                                    <a href="#"><font color="black">Freezing Cells</font></a>
+
                                                    <a href="#"><font color="black">3G Assembly</font></a>
+
                                              </ul>
+
</li>
+
<li>
+
<a href="#">
+
Results
+
</a>
+
</li>
+
<li>
+
<a href="#">
+
Modeling
+
</a>
+
</li>
+
<li>
+
<a href="#">
+
Human practices
+
</a>
+
</li>
+
<li>
+
+
<a href="#">
+
Database
+
</a>
+
</li>
+
                                        <li>
+
<a href="#">
+
Judging
+
</a>
+
</li>
+
<li>
+
<a href="https://2018.igem.org/Team:William_and_Mary/Team">
+
Team
+
</a>
+
</li>
+
</ul>
+
</div>
+
</div>
+
 
     </nav>
 
     </nav>
</body>
+
  </div>
</html>
+
  </html>

Latest revision as of 02:43, 18 October 2018