Team:Oxford/templates/header

From 2014.igem.org

(Difference between revisions)
(Created page with "<html> <style> @import url(http://fonts.googleapis.com/css?family=PT+Serif|Open+Sans:300italic,400,300); body { } #content { border:none; width:100%; margin:0; padding:0; back...")
 
(578 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
 +
 +
<script>
 +
 +
$(document).ready(function() {
 +
$('.hasdropdown').hover(function() {
 +
$(this).find('.dropdown').stop(true,true).slideToggle(200);
 +
})
 +
 +
})
 +
 +
</script>
<style>
<style>
Line 182: Line 193:
.container{
.container{
   max-width: 920px;
   max-width: 920px;
 +
min-width:600px;
   margin: 0 auto;
   margin: 0 auto;
   display: block !important;
   display: block !important;
Line 190: Line 202:
.row {
.row {
margin-top:1em;
margin-top:1em;
-
margin-bottom: 1em;
+
margin-bottom: 2.5em;
}
}
Line 251: Line 263:
nav li {
nav li {
font-size: 14px;
font-size: 14px;
 +
cursor:pointer;
 +
}
}
header {
header {
-
background: url('https://static.igem.org/mediawiki/2014/8/8e/OxfordSkyline.jpg');
+
background: url('https://static.igem.org/mediawiki/2014/e/eb/Oxfordigem_radcam.jpg');
background-size: cover;
background-size: cover;
-
background-position: center center;
+
background-position: 10% 16%;
-
height: 150px;
+
height: 300px;
 +
min-width:600px;
}
}
Line 271: Line 286:
#igem_logo {
#igem_logo {
-
background: url('https://static.igem.org/mediawiki/2014/3/3f/Igem.png');
+
background: url('https://static.igem.org/mediawiki/2014/6/6d/OxiGEMiGEM.png');
background-size: cover;
background-size: cover;
-
width: 7em;
+
width: 9em;
height: 7em;
height: 7em;
position: absolute;
position: absolute;
right: 0;
right: 0;
top:2.5em;
top:2.5em;
 +
}
 +
 +
#logo span, #igem_logo span {
 +
position:absolute;
 +
  width:100%;
 +
  height:100%;
 +
  top:0;
 +
  left: 0;
 +
 +
  /* edit: added z-index */
 +
  z-index: 1;
 +
 +
  /* edit: fixes overlap error in IE7/8,
 +
    make sure you have an empty gif */
 +
 +
  background-image: url('empty.gif');
}
}
Line 283: Line 314:
width: 100%;
width: 100%;
background: #012148;
background: #012148;
-
margin-bottom: 3em;
+
margin-bottom: 30px;
 +
min-width:600px;
}
}
#main_navigation ul {
#main_navigation ul {
-
text-align: center;
 
}
}
-
#main_navigation li {
+
#main_navigation > div > ul > li {
-
width: 9em;
+
display: inline-block;
display: inline-block;
-
margin: 0;
+
margin: 0 20px 0 0 ;
padding: 0;
padding: 0;
}
}
-
#main_navigation li a {
+
#main_navigation > div > ul > li > a {
display: block;
display: block;
width: 100%;
width: 100%;
-
text-align: center;
+
height: 30px;;
-
height: 2em;
+
margin-top: 10px;
margin-top: 10px;
color: #fff;
color: #fff;
Line 309: Line 338:
}
}
-
 
+
#main_navigation a {
-
#main_navigation li:first-child a {
+
display: block;
-
color: gold;
+
color: #fff;
 +
text-decoration: none;
 +
text-transform: uppercase;
}
}
 +
#main_content {
#main_content {
padding: 30px 0 30px 0;
padding: 30px 0 30px 0;
 +
}
 +
 +
.hasdropdown {
 +
position: relative;
 +
}
 +
 +
.dropdown {
 +
position: absolute;
 +
display: none;
 +
background: #012148;
 +
color: #fff;
 +
width: 200px;
 +
left: -10px;
 +
color: #fff;
 +
text-decoration: none;
 +
text-transform: uppercase;
 +
z-index: 10;
 +
font-size:12px;
 +
}
 +
 +
.dropdown li {
 +
padding:10px;
 +
}
 +
 +
.dropdown li:hover {
 +
background:#001d3f;
 +
}
 +
 +
.dropdown li:last-child {
 +
margin-bottom: 0;
}
}
Line 322: Line 384:
padding: 30px 0 30px 0;
padding: 30px 0 30px 0;
border-top:1px solid #e5e5e5;
border-top:1px solid #e5e5e5;
 +
min-width:600px;
}
}
Line 359: Line 422:
background: #fff;
background: #fff;
padding: 1em;
padding: 1em;
 +
width:90%;
 +
}
 +
 +
 +
 +
.grow {
 +
    border-radius: 10px;
 +
    display: inline-block;
 +
    overflow: hidden;
 +
    height: 20px;
 +
    width: 100%;
 +
    margin: 0% 0px 0px 0%;
 +
    float: center;
 +
    position: relative;
 +
    transition:height 0.5s;
 +
    -webkit-transition:height 0.5s;
 +
}
 +
 +
.grow:hover {
 +
    overflow: hidden;
 +
    height: 100px;
 +
}
 +
 +
 +
.growat {
 +
    border-radius: 10px;
 +
    display: inline-block;
 +
    overflow: hidden;
 +
    height: 400px;
 +
    width: 100%;
 +
    margin: 0% 0px 0px 0%;
 +
    float: center;
 +
    position: relative;
 +
    transition:height 0.5s;
 +
    -webkit-transition:height 0.5s;
 +
}
 +
 +
.growat:hover {
 +
    overflow: hidden;
 +
    height: 1000px;
 +
}
 +
 +
.growbio {
 +
    border-radius: 10px;
 +
    display: inline-block;
 +
    overflow: hidden;
 +
    height: 250px;
 +
    width: 100%;
 +
    margin: 0% 0px 0px 0%;
 +
    float: center;
 +
    position: relative;
 +
    transition:height 0.5s;
 +
    -webkit-transition:height 0.5s;
 +
}
 +
 +
.growbio:hover {
 +
    overflow: hidden;
 +
    height: 1000px;
 +
}
 +
 +
 +
 +
.growlabbookbweek1 {
 +
    border-radius: 10px;
 +
    display: inline-block;
 +
    overflow: hidden;
 +
    height: 100px;
 +
    width: 100%;
 +
    margin: 0% 0px 0px 0%;
 +
    float: center;
 +
    position: relative;
 +
    transition:height 0.5s;
 +
    -webkit-transition:height 0.5s;
 +
}
 +
 +
.growlabbookbweek1:hover {
 +
    overflow: hidden;
 +
    height: 2800px;
 +
}
 +
 +
 +
.growlabbookbweek2 {
 +
    border-radius: 10px;
 +
    display: inline-block;
 +
    overflow: hidden;
 +
    height: 150px;
 +
    width: 100%;
 +
    margin: 0% 0px 0px 0%;
 +
    float: center;
 +
    position: relative;
 +
    transition:height 0.5s;
 +
    -webkit-transition:height 0.5s;
 +
}
 +
 +
.growlabbookbweek2:hover {
 +
    overflow: hidden;
 +
    height: 6500px;
 +
}
 +
 +
.growlabbookbweek3 {
 +
    border-radius: 10px;
 +
    display: inline-block;
 +
    overflow: hidden;
 +
    height: 130px;
 +
    width: 100%;
 +
    margin: 0% 0px 0px 0%;
 +
    float: center;
 +
    position: relative;
 +
    transition:height 0.5s;
 +
    -webkit-transition:height 0.5s;
 +
}
 +
 +
.growlabbookbweek3:hover {
 +
    overflow: hidden;
 +
    height: 2800px;
 +
}
 +
 +
.growlabbookbweek4 {
 +
    border-radius: 10px;
 +
    display: inline-block;
 +
    overflow: hidden;
 +
    height: 130px;
 +
    width: 100%;
 +
    margin: 0% 0px 0px 0%;
 +
    float: center;
 +
    position: relative;
 +
    transition:height 0.5s;
 +
    -webkit-transition:height 0.5s;
 +
}
 +
 +
.growlabbookbweek4:hover {
 +
    overflow: hidden;
 +
    height: 8000px;
 +
}
 +
 +
.growlabbookbweek5 {
 +
    border-radius: 10px;
 +
    display: inline-block;
 +
    overflow: hidden;
 +
    height: 120px;
 +
    width: 100%;
 +
    margin: 0% 0px 0px 0%;
 +
    float: center;
 +
    position: relative;
 +
    transition:height 0.5s;
 +
    -webkit-transition:height 0.5s;
 +
}
 +
 +
.growlabbookbweek5:hover {
 +
    overflow: hidden;
 +
    height: 3000px;
 +
}
 +
 +
 +
.growlabbookcweek1 {
 +
    border-radius: 10px;
 +
    display: inline-block;
 +
    overflow: hidden;
 +
    height: 130px;
 +
    width: 100%;
 +
    margin: 0% 0px 0px 0%;
 +
    float: center;
 +
    position: relative;
 +
    transition:height 0.5s;
 +
    -webkit-transition:height 0.5s;
 +
}
 +
 +
.growlabbookcweek1:hover {
 +
    overflow: hidden;
 +
    height: 1950px;
 +
}
 +
 +
.growlabbookcweek3 {
 +
    border-radius: 10px;
 +
    display: inline-block;
 +
    overflow: hidden;
 +
    height: 130px;
 +
    width: 100%;
 +
    margin: 0% 0px 0px 0%;
 +
    float: center;
 +
    position: relative;
 +
    transition:height 0.5s;
 +
    -webkit-transition:height 0.5s;
 +
}
 +
 +
.growlabbookcweek3:hover {
 +
    overflow: hidden;
 +
    height: 1950px;
 +
}
 +
 +
.growlabbookcweek4 {
 +
    border-radius: 10px;
 +
    display: inline-block;
 +
    overflow: hidden;
 +
    height: 130px;
 +
    width: 100%;
 +
    margin: 0% 0px 0px 0%;
 +
    float: center;
 +
    position: relative;
 +
    transition:height 0.5s;
 +
    -webkit-transition:height 0.5s;
 +
}
 +
 +
.growlabbookcweek4:hover {
 +
    overflow: hidden;
 +
    height: 1000px;
 +
}
 +
 +
.growlabbookcweek5 {
 +
    border-radius: 10px;
 +
    display: inline-block;
 +
    overflow: hidden;
 +
    height: 250px;
 +
    width: 100%;
 +
    margin: 0% 0px 0px 0%;
 +
    float: center;
 +
    position: relative;
 +
    transition:height 0.5s;
 +
    -webkit-transition:height 0.5s;
 +
}
 +
 +
.growlabbookcweek5:hover {
 +
    overflow: hidden;
 +
    height: 2100px;
 +
}
 +
 +
.growlabbookcweek6 {
 +
    border-radius: 10px;
 +
    display: inline-block;
 +
    overflow: hidden;
 +
    height: 200px;
 +
    width: 100%;
 +
    margin: 0% 0px 0px 0%;
 +
    float: center;
 +
    position: relative;
 +
    transition:height 0.5s;
 +
    -webkit-transition:height 0.5s;
 +
}
 +
 +
.growlabbookcweek6:hover {
 +
    overflow: hidden;
 +
    height: 2100px;
 +
}
 +
.growGW {
 +
    border-radius: 10px;
 +
    display: inline-block;
 +
    overflow: hidden;
 +
    height: 200px;
 +
    width: 100%;
 +
    margin: 0% 0px 0px 0%;
 +
    float: center;
 +
    position: relative;
 +
    transition:height 0.5s;
 +
    -webkit-transition:height 0.5s;
 +
}
 +
 +
.growGW:hover {
 +
    overflow: hidden;
 +
    height: 1000px;
 +
}
 +
 +
.grow3 {
 +
    border-radius: 10px;
 +
    display: inline-block;
 +
    overflow: hidden;
 +
    height: 300px;
 +
    width: 50%;
 +
    margin: 0% 0px 0px 0%;
 +
    float: center;
 +
    position: relative;
 +
    transition:height 0.5s;
 +
    -webkit-transition:height 0.5s;
 +
}
 +
 +
.grow3:hover {
 +
    overflow: hidden;
 +
    width: 100%;
}
}
Line 366: Line 706:
<header>
<header>
<div class="container">
<div class="container">
-
<div id="logo"></div>
+
<div id="logo">
-
<div id="igem_logo"></div>
+
<a href="http://www.ox.ac.uk"><span></span></a>
 +
</div>
 +
<div href="https://igem.org/Main_Page" id="igem_logo">
 +
<a href="https://igem.org/Main_Page"><span></span></a>
 +
</div>
</div>
</div>
</header>
</header>
-
<nav id="main_navigation">
+
 
-
<div class="container">
+
-
<ul>
+
-
<li><a href="https://2014.igem.org/Team:Oxford">Team</a></li>
+
-
<li><a href="https://2014.igem.org/Team:Oxford/Projects">Projects</a></li>
+
-
<li><a href="https://igem.org/Team.cgi?year=2013&team_name=Oxford">Safety</a></li>
+
-
<li><a href="https://2014.igem.org/Team:Oxford/Project">Outreach</a></li>
+
-
<li><a href="https://2014.igem.org/Team:Oxford/Parts">Sponsors</a></li>
+
-
<li><a href="">Modelling</a></li>
+
-
<li><a href="">Parts</a></li>
+
-
</ul>
+
-
</div>
+
-
</nav>
+
</html>
</html>
 +
{{:Team:Oxford/templates/nav}}

Latest revision as of 09:18, 9 September 2014