Template:NavBar

From 2014.igem.org

(Difference between revisions)
m
 
(51 intermediate revisions not shown)
Line 17: Line 17:
margin: 0px auto;  
margin: 0px auto;  
position: relative;  
position: relative;  
-
font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
+
font-family: Arial, sans-serif;
}
}
Line 41: Line 41:
}
}
-
.navLinks li a {  /*-- styles the links within the nav bar li --*/
+
.navLinks > .navSingleLink:hover  {
 +
border-bottom: 1px solid #ccc;
 +
}
 +
 
 +
.navLinks li > a {  /*-- styles the links within the nav bar li --*/
text-decoration: none;  
text-decoration: none;  
line-height: 50px;
line-height: 50px;
color: #000;
color: #000;
-
padding-left: 30px;
+
padding-left: 26px;
-
padding-right: 30px;
+
padding-right: 26px;
display: block;
display: block;
height: 100%;
height: 100%;
}
}
-
.navlinks li a:hover {
+
.navlinks li > a:hover {
color: #fff;
color: #fff;
Line 99: Line 103:
}
}
 +
.menuHeader { border-bottom: 1px solid #ccc; display: block; font-weight: bold; font-family: Georgia, Times, "Times New Roman", serif; }
 +
</style>
 +
 +
<style type="text/css" media="print">
 +
#topNav { display: none;}
</style>
</style>
</head>
</head>
Line 105: Line 114:
<nav id="navContainer">
<nav id="navContainer">
<ul class="navLinks">
<ul class="navLinks">
 +
<li class="navSingleLink">
 +
<a href="https://2014.igem.org" style="padding-left: 10px; padding-right: 10px;"><img src="https://static.igem.org/mediawiki/2014/2/22/Logo2014v2.png" /></a>
 +
</li>
<li>
<li>
-
<a href="https://2014.igem.org" style="padding: 0px;"><img src="https://static.igem.org/mediawiki/2014/d/d4/Logo2014.png" style="height: 60px; margin-top: -6px;" /></a>
+
<a href="#">ABOUT</a>
<div class="navDropMenu">
<div class="navDropMenu">
-
</html>{{Nav/iGEM2014}}<html>
+
</html>{{Nav/About}}<html>
</div>
</div>
</li>
</li>
<li>
<li>
-
<a href="#">ABOUT</a>
+
<a href="#" class="dropToggle">COMPETITION</a>
<div class="navDropMenu">
<div class="navDropMenu">
-
</html>{{Nav/About}}<html>
+
</html>{{Nav/Competition}}<html>
</div>
</div>
</li>
</li>
 +
                     
<li>
<li>
-
<a href="#" class="dropToggle">START to FINISH</a>
+
<a href="#">TEAMS</a>
<div class="navDropMenu">
<div class="navDropMenu">
-
</html>{{Nav/StartToFinish}}<html>
+
</html>{{Nav/Teams}}<html>
</div>
</div>
</li>
</li>
Line 129: Line 142:
</div>
</div>
</li>
</li>
-
<li>
+
    <li class="navSingleLink">
-
<a href="#">CONTACT</a>
+
<a href="https://2014.igem.org/Giant_Jamboree">GIANT JAMBOREE</a>
</li>
</li>
 +
<li class="navSingleLink">
 +
<a href="https://igem.org/Contact">CONTACT</a>
 +
</li>
 +
<li class="navSingleLink">
 +
<a href="https://igem.org/Donate">DONATE</a>
 +
</li>
 +
</ul>
</ul>
</nav>
</nav>
</header>
</header>
-
 
-
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
 
-
<script>
 
-
$(document).ready(function() {
 
-
if (!!('ontouchstart' in window)){
 
-
$('.dropToggle').click(function(e) {
 
-
$('.navDropMenu').stop().slideDown();
 
-
$('.dropToggle').toggleClass('active');
 
-
e.stopPropagation();
 
-
});
 
-
$(document).click(function() {
 
-
if ($('.navDropMenu').is(':visible')) {
 
-
$('.navDropMenu', this).slideUp();
 
-
$('.dropToggle').removeClass('active');
 
-
}
 
-
});
 
-
}
 
-
});
 
-
</script>
 
<html>
<html>

Latest revision as of 17:46, 13 November 2014