Template:Team:Sheffield/NavigationBar

From 2014.igem.org

(Difference between revisions)
 
(135 intermediate revisions not shown)
Line 1: Line 1:
-
{{Team:Sheffield/JS:jquery}}
 
-
 
<html>
<html>
<head>
<head>
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Lato:300' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Lato:300' rel='stylesheet' type='text/css'>
 +
<script src="http://code.jquery.com/jquery-1.11.1.js"></script>
 +
<script>
 +
$(document).ready(function() { // Document ready
 +
$(document).scroll(function() {
 +
    if ($(document).scrollTop() > 0) {
 +
        $("#navigationBar").addClass("scrolling");
 +
        $("#teamLogo li a img").addClass("scrolling");
 +
        $("#shefUniLogo li a img").addClass("scrolling");
 +
    } else {
 +
        $("#navigationBar").removeClass("scrolling");
 +
        $("#teamLogo li a img").removeClass("scrolling");
 +
        $("#shefUniLogo li a img").removeClass("scrolling");
 +
    }
 +
});
 +
});
 +
</script>
<style>
<style>
#contentSub, #footer-box, #catlinks, #search-controls, #p-logo, .printfooter, .firstHeading,.visualClear {display: none;} /*-- hides default wiki settings --*/
#contentSub, #footer-box, #catlinks, #search-controls, #p-logo, .printfooter, .firstHeading,.visualClear {display: none;} /*-- hides default wiki settings --*/
 +
 +
#menubar.left-menu.noprint ul li:last-child {
 +
display:none;
 +
}
#top-section {  
#top-section {  
border: 0 none;
border: 0 none;
height: 14px;
height: 14px;
-
z-index: 100;
+
z-index: 10001;
-
top: 0;
+
/*top: 0;*/
-
position: fixed;
+
/*position: fixed;*/
width: 975px;  
width: 975px;  
left: 50%;  
left: 50%;  
Line 20: Line 38:
#globalWrapper, #content {
#globalWrapper, #content {
-
position: fixed;
+
/*position: fixed;*/
-
top: 0;
+
/*top: 0;*/
width: 100%;  
width: 100%;  
-
height: 100%;
+
/*height: 100%;*/
border: 0px;
border: 0px;
background-color: transparent;
background-color: transparent;
Line 33: Line 51:
width: 100%;  
width: 100%;  
height: 100%;  
height: 100%;  
-
background-color: transparent;  
+
background-image: url('https://static.igem.org/mediawiki/2014/5/5b/BgImgSheffield.jpg');
-
+
background-repeat: repeat;
}
}
-
.body {
+
#bodyContent {
-
margin: 0;
+
background-color: transparent;
-
height: 2000px;
+
/*overflow-y: scroll;*/
-
min-width: 1000px;
+
height: 100%;
 +
}
 +
 
 +
h1 {
 +
text-align: center;
 +
font-family: 'Oswald', sans-serif;
 +
font-size: 40px;
 +
border: none;
 +
}
 +
 
 +
h2 {
 +
font-family: 'Oswald', sans-serif;
 +
font-size: 30px;
 +
border: none;
 +
line-height: 35px;
 +
}
 +
 
 +
h3 {
 +
font-family: 'Oswald', sans-serif;
 +
font-weight: bold;
 +
font-size: 18px;
 +
}
 +
 
 +
p, #bodyContent ul:not(#navigationBar), ol {
 +
font-family: 'Lato', sans-serif;
 +
font-size: 16px;
}
}
Line 52: Line 95:
top: 0px;
top: 0px;
display: table-row;
display: table-row;
-
width: 100%;
 
-
min-width: 1000px;
 
height: 60px;
height: 60px;
 +
width: 100%;
 +
min-width: 1400px;
list-style: none;
list-style: none;
font-family: 'Oswald', sans-serif;
font-family: 'Oswald', sans-serif;
 +
font-size: 16px;
-webkit-transition: background-color 0.5s linear;
-webkit-transition: background-color 0.5s linear;
-moz-transition: background-color 0.5s linear;
-moz-transition: background-color 0.5s linear;
-o-transition: background-color 0.5s linear;
-o-transition: background-color 0.5s linear;
transition: background-color 0.5s linear;
transition: background-color 0.5s linear;
 +
z-index: 10000;
}
}
Line 88: Line 133:
visibility: hidden;
visibility: hidden;
position: absolute;
position: absolute;
-
width: 170px;
+
width: 220px;
margin-top: 8px;
margin-top: 8px;
opacity: 0;
opacity: 0;
Line 102: Line 147:
text-decoration: none;
text-decoration: none;
     white-space: nowrap;
     white-space: nowrap;
-
     color: white;
+
     color: black;
     opacity: 0.9;
     opacity: 0.9;
 +
    -webkit-touch-callout: none;
 +
    -webkit-user-select: none;
 +
    -khtml-user-select: none;
 +
    -moz-user-select: none;
 +
    -ms-user-select: none;
 +
    user-select: none;
}
}
-
#navigationBar li a.scrolling {
+
#navigationBar li span {
-
color: black;
+
}
 +
 
 +
#navigationBar li span a {
 +
padding: 0;
 +
padding-top: 10px;
 +
text-decoration: none;
 +
    white-space: nowrap;
 +
    color: black;
 +
    opacity: 0.9;
}
}
Line 116: Line 175:
#navigationBar > li > ul > li {
#navigationBar > li > ul > li {
width: 100%;
width: 100%;
 +
margin: 0 0 0 0;
}
}
#navigationBar > li > ul > li > a {
#navigationBar > li > ul > li > a {
-
background-color: #5E5E5E;
+
background-color: #000000;
opacity: 0.9;
opacity: 0.9;
color: white;
color: white;
}
}
-
#navigationBar > li > ul > li > a.scrolling {
+
#navigationBar > li > ul > li > a:hover {
-
color: white;
+
color: #FBA917;
}
}
Line 131: Line 191:
height: 40px;
height: 40px;
opacity: 0.8;
opacity: 0.8;
 +
padding-right: 10px;
}
}
-
#teamLogo {
+
#teamLogo, #shefUniLogo {
float: left;
float: left;
margin-right: auto;
margin-right: auto;
}
}
-
#teamLogo li a img {
+
#teamLogo li a img, #shefUniLogo li a img {
height: 80px;
height: 80px;
-webkit-transition: height 0.25s linear;
-webkit-transition: height 0.25s linear;
Line 149: Line 210:
height: 40px;
height: 40px;
}
}
-
</style>
 
-
<script>
 
-
$(window).scroll(function() {   
 
-
    if ($(window).scrollTop() > 0) {
 
-
        $("#navigationBar").addClass("scrolling");
 
-
        $("#navigationBar li a").addClass("scrolling");
 
-
        $("#teamLogo li a img").addClass("scrolling");
 
-
        $("#navigationBar > li > ul > li > a").addClass("scrolling");
 
-
    } else {
+
#shefUniLogo li a img.scrolling {
-
        $("#navigationBar").removeClass("scrolling");
+
height: 40px;
-
        $("#navigationBar li a").removeClass("scrolling");
+
}
-
        $("#teamLogo li a img").removeClass("scrolling");
+
 
-
        $("#navigationBar > li > ul > li > a").removeClass("scrolling");
+
.socialMediaIcon {
-
    }
+
padding: 0px 0px;
-
});
+
margin: 0;
-
</script>
+
}
 +
 
 +
.socialMediaIcon div {
 +
position: relative;
 +
width: 40px;
 +
height: 40px;
 +
}
 +
 
 +
.whiteIcon, .blackIcon, .colouredIcon {
 +
position: absolute;
 +
top: 0;
 +
left: 0;
 +
width: 40px;
 +
height: 40px;
 +
}
 +
 
 +
.blackIcon {
 +
z-index: 1;
 +
}
 +
 
 +
.colouredIcon {
 +
z-index: 2;
 +
visibility: hidden;
 +
}
 +
 
 +
.socialMediaIcon div:hover > .blackIcon {
 +
visibility: hidden;
 +
}
 +
 
 +
.socialMediaIcon div:hover > .colouredIcon {
 +
visibility: visible;
 +
}
 +
 
 +
.subPageTitle {
 +
text-align: center;
 +
font-family: 'Lato', sans-serif;
 +
font-size: 60px;
 +
letter-spacing: -2px;
 +
color: white;
 +
font-weight: 300;
 +
margin-top: 100px;
 +
margin-bottom: 70px;
 +
border: none;
 +
}
 +
 
 +
.gap5px {
 +
padding-top: 5px;
 +
}
 +
.headerImage {
 +
position: absolute;
 +
top: -450px;
 +
width: 100%;
 +
height: 525px;
 +
overflow: hidden;
 +
z-index: -1;
 +
}
 +
</style>
</head>
</head>
-
<body class="content">
+
<body>
-
<ul id="navigationBar">
+
<div id="topMenu">
-
<li><a href=""><img id="igemLogo" src="https://static.igem.org/mediawiki/2014/7/7d/IGEMLogo.png"></a></li>
+
<ul id="navigationBar">
-
<li class="menuText"><a href="">Attributions &#x25BE;</a>
+
<li><a href="https://igem.org/Main_Page"><img id="igemLogo" src="https://static.igem.org/mediawiki/2014/7/7d/IGEMLogo.png"></a></li>
-
<ul>
+
<li>
-
<li><a href="">Acknowledgements</a></li>
+
<span>
-
<li><a href="">Sponsors</a></li>
+
<a class="socialMediaIcon" href="http://twitter.com/iGEMSheffield">
-
</ul>
+
<div>
-
</li>
+
<img class="blackIcon" src="https://static.igem.org/mediawiki/2014/b/b2/TwitterBlack.png">
-
<li class="menuText"><a href="">Notebook &#x25BE;</a>
+
<img class="colouredIcon" src="https://static.igem.org/mediawiki/2014/7/78/TwitterColour.png">
-
<ul>
+
</div>
-
<li><a href="">Protocols</a></li>
+
</a>
-
<li><a href="">Wet Lab Journal</a></li>
+
</span>
-
<li><a href="">Dry Lab Journal</a></li>
+
</li>
-
<li><a href="">Bibliography</a></li>
+
<li>
-
</ul>
+
<span>
-
</li>
+
<a class="socialMediaIcon" href="http://www.facebook.com/iGEMSheffield2014">
-
<li class="menuText"><a href="">Policy and Practices &#x25BE;</a>
+
<div>
-
<ul>
+
<img class="blackIcon" src="https://static.igem.org/mediawiki/2014/b/b6/FacebookBlack.png">
-
<li><a href="">Socio Bricks</a></li>
+
<img class="colouredIcon" src="https://static.igem.org/mediawiki/2014/1/1b/FacebookColour.png">
-
<li><a href="">Lab Notation</a></li>
+
</div>
-
<li><a href="">Industry Collaboration</a></li>
+
</a>
-
<li><a href="">SynBio at UoS</a></li>
+
</span>
-
<li><a href="">Outreach</a></li>
+
</li>
-
<li><a href="">Collaboration</a></li>
+
<li class="menuText"><a style="cursor:default;">Attributions &#x25BE;</a>
-
</ul>
+
<ul>
-
</li>
+
<li><a href="https://2014.igem.org/Team:Sheffield/Acknowledgements">Acknowledgements</a></li>
-
<li class="menuText"><a href="">Results &#x25BE;</a>
+
<li><a href="https://2014.igem.org/Team:Sheffield/Sponsors">Sponsors</a></li>
-
<ul>
+
</ul>
-
<li><a href="">FadR Characterisation</a></li>
+
</li>
-
<li><a href="">Lipase Assay</a></li>
+
<li class="menuText"><a style="cursor:default;">Notebook &#x25BE;</a>
-
<li><a href="">Keratinase Assay</a></li>
+
<ul>
-
</ul>
+
<li><a href="https://2014.igem.org/Team:Sheffield/LabProtocols">Lab Protocols</a></li>
-
</li>
+
<li><a href="https://2014.igem.org/Team:Sheffield/WetLabJournal">Wet Lab Journal</a></li>
-
<li class="menuText"><a href="">Modelling &#x25BE;</a>
+
<li><a href="https://2014.igem.org/Team:Sheffield/DryLabJournal">Dry Lab Journal</a></li>
-
<ul>
+
</ul>
-
<li><a href="">Product Design</a></li>
+
</li>
-
<li><a href="">Manufacturing Model</a></li>
+
<li class="menuText"><a style="cursor:default;">Policy and Practices &#x25BE;</a>
-
<li><a href="">Enzyme Kinetics</a></li>
+
<ul>
-
</ul>
+
<li><a href="https://2014.igem.org/Team:Sheffield/SocioBrick">SocioBricks</a></li>
-
</li>
+
<li><a href="https://2014.igem.org/Team:Sheffield/sociobricks/main">SocioBrick Registry</a></li>
-
<li class="menuText"><a href="">Project &#x25BE;</a>
+
<li><a href="https://2014.igem.org/Team:Sheffield/Notions">Notions of Responsibility</a></li>
-
<ul>
+
<li><a href="https://2014.igem.org/Team:Sheffield/IndustryCollaboration">Industry Collaboration</a></li>
-
<li><a href="">Background</a></li>
+
<li><a href="https://2014.igem.org/Team:Sheffield/SynBio">Synthetic Biology @ Sheffield</a></li>
-
<li><a href="">Biosensor</a></li>
+
                        <li><a href="https://2014.igem.org/Team:Sheffield/LabNotation">Lab Notation</a></li>
-
<li><a href="">Enzyme Synthesis</a></li>
+
<li><a href="https://2014.igem.org/Team:Sheffield/outreach">Outreach</a></li>
-
<li><a href="">Enzyme Secretion</a></li>
+
<li><a href="https://2014.igem.org/Team:Sheffield/collaboration">Collaboration</a></li>
-
<li><a href="">Safety</a></li>
+
</ul>
-
</ul>
+
</li>
-
</li>
+
<li class="menuText"><a style="cursor:default;">Results &#x25BE;</a>
-
<li class="menuText"><a href="">Team &#x25BE;</a>
+
<ul>
-
<ul>
+
<li><a href="https://2014.igem.org/Team:Sheffield/FadR">FadR Characterisation</a></li>
-
<li><a href="">Meet the Team</a></li>
+
<li><a href="https://2014.igem.org/Team:Sheffield/Lipase">Lipase Assay</a></li>
-
<li><a href="">Official Team Profile</a></li>
+
<li><a href="https://2014.igem.org/Team:Sheffield/Keratinase">Keratinase Assay</a></li>
-
<li><a href="">Gallery</a></li>
+
</ul>
-
</ul>
+
</li>
-
</li>
+
<li class="menuText"><a style="cursor:default;">Modelling &#x25BE;</a>
-
<li class="menuText"><a href="">Home</a></li>
+
<ul>
-
<span id="teamLogo"><li><a href=""><img src="https://static.igem.org/mediawiki/2014/d/da/TeamLogo.png"></a></li></span>
+
<li><a href="https://2014.igem.org/Team:Sheffield/modelling">Product Design</a></li>
-
</ul>
+
<li><a href="https://2014.igem.org/Team:Sheffield/manufacture">&nbsp;&nbsp;&#8627;&nbsp;&nbsp;Budget</a></li>
 +
<li><a href="https://2014.igem.org/Team:Sheffield/manufacture2">&nbsp;&nbsp;&#8627;&nbsp;&nbsp;Premium</a></li>
 +
</ul>
 +
</li>
 +
<li class="menuText"><a href="https://2014.igem.org/Team:Sheffield/Project">Project</a></li>
 +
<li class="menuText"><a style="cursor:default;">Team &#x25BE;</a>
 +
<ul>
 +
<li><a href="https://2014.igem.org/Team:Sheffield/team1">Meet the Team</a></li>
 +
<li><a href="https://igem.org/Team.cgi?id=1498">Official Team Profile</a></li>
 +
<li><a href="https://2014.igem.org/Team:Sheffield/gallery">Gallery</a></li>
 +
</ul>
 +
</li>
 +
<li class="menuText"><a href="https://2014.igem.org/Team:Sheffield">Home</a></li>
 +
<span id="teamLogo"><li><a href="https://2014.igem.org/Team:Sheffield"><img src="https://static.igem.org/mediawiki/2014/d/da/TeamLogo.png"></a></li></span>
 +
<span id="shefUniLogo"><li><a href="http://www.sheffield.ac.uk/"><img src="https://static.igem.org/mediawiki/2014/b/bd/UoSLogo.gif"></a></li></span>
 +
</ul>
 +
</div>
</body>
</body>
</html>
</html>

Latest revision as of 03:48, 18 October 2014