Team:UCL/Homex

From 2014.igem.org

(Difference between revisions)
Line 1: Line 1:
-
{{:Team:UCL/Template:headerx}}
+
/* =Header Banner */
-
<html>
+
.banner-image-background {
 +
    background: url('https://static.igem.org/mediawiki/2014/3/30/Azo4.jpg') no-repeat center;
 +
    background-size: 150%;
 +
    /*background-color: #e7e7e7;*/
 +
    position: relative;
 +
    height: 700px;
 +
z-index: 10;
 +
}
 +
 +
.banner-image-overlay {
 +
    background-color: rgba(0,0,0,0.5);
 +
    width:100%;
 +
    height:100%;
 +
z-index: 11;
 +
}
-
<!-- ============= CSS for Humans Main ================= -->
+
.banner-image-logo {
-
<link rel="stylesheet" href="https://2014.igem.org/Team:UCL/Template:HomeMain.css?action=raw&ctype=text/css" type="text/css" />
+
    top:150px;
-
<script src="https://2014.igem.org/Team:UCL/Template:modernizr.js?action=raw&ctype=text/javascript"></script>
+
    display: inline-block;
 +
    vertical-align: middle;
 +
    opacity:1;
 +
}
-
<!-- ============= BODY SLIDERS ======================== -->
+
/* =Profiles */
-
<body>
+
main {
-
<div id="skrollr-body">
+
    z-index: 1;
 +
    position: relative;
 +
}
-
    <!--[if lt IE 7]>
+
.slide {
-
        <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
+
-
    <![endif]-->
+
 +
    color: #a7a0a2;
 +
    font-weight: 200;
 +
    font-size: 1em;
 +
    font-family: 'Lato', Arial, sans-serif;
-
    <header class="banner-image-background">
+
}
-
            <div class="banner-image-overlay">
+
-
    <div style="opacity:1"><img src="https://static.igem.org/mediawiki/2014/e/e8/UCL-old-logo-small.jpg" alt="" class="banner-image-logo"/><div>
+
-
            </div>
+
-
    </header>
+
-
    <main>
+
.slide .tellmemore {
-
<div id="slideabout" class="slide">
+
    color: #a7a0a2;
-
            <div class="wrapper clearfix">
+
    font-family: 'Lato', Arial, sans-serif;
 +
    font-size:0.75em;
-
<div id="slideaboutheader" class="slideheader"
+
}
-
data-anchor-target="#slideabout"
+
-
data-bottom-top="transform[sqrt]:translateX(300%)"
+
-
data-150-top="transform[sqrt]:translateX(60%)">
+
-
+
-
<h1><span>PROJECT</span></h1>
+
-
</div>
+
.slide .tellmemore p {
-
                <div id="slideaboutmore" class="slidemore"
+
    text-align:left;
-
data-anchor-target="#slideabout"
+
-
data-bottom-top="transform[sqrt]:translateX(-300%)"
+
-
data-150-top="transform[sqrt]:translateX(70%)">
+
-
                    <a href="#" class="tellmemore">
+
}
-
                        <img src="https://static.igem.org/mediawiki/2014/2/23/Team_Icons-05.png" alt="" />
+
-
        <p>Tell me more</p>
+
-
                    </a>
+
-
                </div>
+
.slide h1 {
 +
    background-color:black;
 +
    font-weight:bold;
 +
    border-bottom:none;
 +
    color: white;
 +
}
-
                <div id="slideaboutcontent" class="slidecontent"
+
.slide h2 {
-
data-anchor-target="#slideabout"
+
    font-weight:bold;
-
data-bottom-top="opacity:0;"
+
    border-bottom:none;
-
data-150-top="opacity:1;">
+
    color: #a7a0a2;
 +
}
-
    <h2>WHO ARE WE?</h2>
+
.slide .tellmemore img {
-
    <p>We are University College London's iGEM 2014 team.</p>
+
    height:50%;
-
    <br/>
+
    width:50%;
-
    <h2>WHAT ARE WE DOING?</h2>
+
}
-
    <p>We are using Synthetic Biology to combat <b>AZO-DYE</b> Pollution.  Azo Dyes are the most common synthetic dye and are used everywhere, from food colouring to clothes. You're probably wearing clothes dyed with Azo-Dyes! But, when they get into waste water they're very toxic. Our team is engineering bacteria that degrade these dyes, using enzymes, to make them colourless and less harmful to the environment</p>
+
-
                </div>
+
.slide h1 {
 +
    padding-top:-10px;
 +
    padding-left:30px;
 +
    text-align:left;
 +
}
-
</div>
+
.slide h1 span {
-
        </div>
+
    top:-10px;
 +
}
-
        <div id="slidescience" class="slide">
+
.slide p, .slide h2 {
 +
    text-align:right;
 +
}
-
            <div class="wrapper clearfix">
 
-
<div id="slidescienceheader" class="slideheader"
+
.slidemore {
-
data-anchor-target="#slidescience"
+
    float:left;
-
data-bottom-top="transform[sqrt]:translateX(300%)"
+
}
-
data-200-top="transform[sqrt]:translateX(60%)">
+
-
<h1><span>SCIENCE</span></h1>
+
#slideabout {
 +
    padding-left:200px;
 +
    padding-right:200px;
 +
    height:600px;
 +
}
-
</div>
+
#slidescience {
 +
    background: url('https://static.igem.org/mediawiki/2014/a/a3/Azo3.jpg') no-repeat;
 +
    background-position-y:-400px;
 +
    background-size:100%;
 +
    height:500px;
 +
z-index: 10;
 +
}
-
                <div id="slidesciencecontent" class="slidecontent"
+
#slidesciencecontent .experiments {
-
data-anchor-target="#slidescience"
+
    position:relative;
-
data-bottom-top="opacity:0;"
+
    top:50px;
-
data-150-top="opacity:1;">
+
    left:250px;
 +
}
-
                    <div style="float:left;">
+
#slidesciencecontent .results {
 +
    position:relative;
 +
    top:50px;
 +
    left:-250px;
 +
}
-
                        <a href="#" class="experiments">
+
#slidesciencecontent .experiments p {
-
                            <img src="https://static.igem.org/mediawiki/2014/c/c3/Team_Icons-01.png" alt="" />
+
    color:white;
-
            <p>Experiments</p>
+
    position:relative;
-
                        </a>
+
    left:-38px;
-
                    </div>
+
}
-
                    <div style="float:right;">
+
#slidesciencecontent .results p {
 +
    color:white;
 +
    position:relative;
 +
    left:-60px;
 +
}
-
                        <a href="#" class="results">
+
#slidehumans {
-
                            <img src="https://static.igem.org/mediawiki/2014/1/1d/Team_Icons-04.png" alt="" />
+
    padding-left:200px;
-
            <p>Results</p>
+
    padding-right:200px;
-
                        </a>    
+
    padding-bottom:200px;
 +
}
-
                    </div>
+
.og-grid {
 +
    list-style: none;
 +
    padding: 20px 0;
 +
    margin: 0 auto;
 +
    text-align: center;
 +
    width: 100%;
 +
}
 +
 +
.og-grid li {
 +
    display: inline-block;
 +
    margin: 10px 5px 0 5px;
 +
    vertical-align: top;
 +
    height: 250px;
 +
}
-
                </div>
+
.og-grid li > a,
 +
.og-grid li > a img {
 +
    border: none;
 +
    outline: none;
 +
    display: block;
 +
    position: relative;
 +
}
-
</div>
+
.og-grid li.og-expanded > a::after {
-
        </div>
+
    top: auto;
 +
    border: solid transparent;
 +
    content: " ";
 +
    height: 0;
 +
    width: 0;
 +
    position: absolute;
 +
    pointer-events: none;
 +
    border-bottom-color: #ddd;
 +
    border-width: 15px;
 +
    left: 50%;
 +
    margin: -20px 0 0 -15px;
 +
}
-
<div id="slidehumans" class="slide">
+
.og-expander {
-
            <div class="wrapper clearfix">
+
    position: absolute;
 +
    background: #ddd;
 +
    top: auto;
 +
    left: 0;
 +
    width: 100%;
 +
    margin-top: 10px;
 +
    text-align: left;
 +
    height: 0;
 +
    overflow: hidden;
 +
}
 +
 +
.og-expander-inner {
 +
    padding: 50px 30px;
 +
    height: 100%;
 +
}
-
<div id="slidehumansheader" class="slideheader"
+
.og-close {
-
data-anchor-target="#slidehumans"
+
    position: absolute;
-
data-bottom-top="transform[sqrt]:translateX(300%)"
+
    width: 40px;
-
data-200-top="transform[sqrt]:translateX(60%)">
+
    height: 40px;
-
+
    top: 20px;
-
<h1><span>HUMANS</span></h1>
+
    right: 20px;
 +
    cursor: pointer;
 +
}
 +
 +
.og-close::before,
 +
.og-close::after {
 +
    content: '';
 +
    position: absolute;
 +
    width: 100%;
 +
    top: 50%;
 +
    height: 1px;
 +
    background: #888;
 +
    transform: rotate(45deg);
 +
}
 +
 +
.og-close::after {
 +
    transform: rotate(-45deg);
 +
}
 +
 +
.og-close:hover::before,
 +
.og-close:hover::after {
 +
    background: #333;
 +
}
-
                </div>
+
.og-fullimg
 +
{
 +
    width: 50%;
 +
    float: left;
 +
    height: 100%;
 +
    overflow: hidden;
 +
    position: relative;
 +
}
-
                <div id="slidehumanscontent" class="slidecontent">
+
.og-details {
 +
    width: 50%;
 +
    float: left;
 +
    height: 100%;
 +
    overflow: hidden;
 +
    position: relative;
 +
}
 +
 +
.og-fullimg {
 +
    text-align: center;
 +
}
 +
 +
.og-fullimg img {
 +
    display: inline-block;
 +
    max-height: 100%;
 +
    max-width: 100%;
 +
}
-
                    <ul id="og-grid" class="og-grid">
+
.og-details h3 {
-
    <li>
+
    font-weight: 300;
-
    <a href="https://2014.igem.org/" data-largesrc="/wiki/images/3/37/DanielDLTPhotoEd.png" data-title="Azuki bean" data-description="Swiss chard pumpkin bunya nuts maize plantain aubergine napa cabbage soko coriander sweet pepper water spinach winter purslane shallot tigernut lentil beetroot.">
+
    font-size: 52px;
-
    <img src="/wiki/images/3/37/DanielDLTPhotoEd.png" alt="img01" height="300px" width="225px"/>
+
    padding: 40px 0 10px;
-
    </a>
+
    margin-bottom: 10px;
-
                            <div class="og-expander">
+
}
-
                                <div class="og-expander-inner">
+
-
                                    <span class="og-close"></span>
+
.og-details p {
-
                                    <div class="og-fullimg">
+
    font-weight: 400;
-
                                        <div class="og-loading"></div>
+
    font-size: 16px;
-
                                        <img src="images/2.jpg">
+
    line-height: 22px;
-
                                    </div>
+
    color: #999;
-
                                    <div class="og-details">
+
    text-align:left;
-
                                        <h3>Veggies sunt bona vobis</h3>
+
}
-
                                        <p>Komatsuna prairie turnip wattle seed artichoke mustard horseradish taro rutabaga ricebean carrot black-eyed pea turnip greens beetroot yarrow watercress kombu.</p>
+
-
                                        <a href="http://cargocollective.com/jaimemartinez/">Visit website</a>
+
.og-details a {
-
                                    </div>
+
    font-weight: 700;
-
                                </div>
+
    font-size: 16px;
-
                            </div>
+
    color: #333;
-
    </li>
+
    text-transform: uppercase;
-
    <li>
+
    letter-spacing: 2px;
-
    <a href="https://2014.igem.org/" data-largesrc="/wiki/images/6/6f/MauriceBPhotoEd.pngg" data-title="Azuki bean" data-description="Swiss chard pumpkin bunya nuts maize plantain aubergine napa cabbage soko coriander sweet pepper water spinach winter purslane shallot tigernut lentil beetroot.">
+
    padding: 10px 20px;
-
    <img src="/wiki/images/6/6f/MauriceBPhotoEd.png" alt="img01" height="300px" width="225px"/>
+
    border: 3px solid #333;
-
    </a>
+
    display: inline-block;
-
                            <div class="og-expander">
+
    margin: 30px 0 0;
-
                                <div class="og-expander-inner">
+
    outline: none;
-
                                    <span class="og-close"></span>
+
}
-
                                    <div class="og-fullimg">
+
-
                                        <div class="og-loading"></div>
+
.og-details a::before {
-
                                        <img src="images/2.jpg">
+
    content: '\2192';
-
                                    </div>
+
    display: inline-block;
-
                                    <div class="og-details">
+
    margin-right: 10px;
-
                                        <h3>Veggies sunt bona vobis</h3>
+
}
-
                                        <p>Komatsuna prairie turnip wattle seed artichoke mustard horseradish taro rutabaga ricebean carrot black-eyed pea turnip greens beetroot yarrow watercress kombu.</p>
+
-
                                        <a href="http://cargocollective.com/jaimemartinez/">Visit website</a>
+
.og-details a:hover {
-
                                    </div>
+
    border-color: #999;
-
                                </div>
+
    color: #999;
-
                            </div>
+
}
-
    </li>
+
-
    </ul>
+
-
</div>
+
.og-loading {
 +
    width: 20px;
 +
    height: 20px;
 +
    border-radius: 50%;
 +
    background: #ddd;
 +
    box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ccc;
 +
    position: absolute;
 +
    top: 50%;
 +
    left: 50%;
 +
    margin: -25px 0 0 -25px;
 +
    animation: loader 0.5s infinite ease-in-out both;
 +
}
 +
 +
@keyframes loader {
 +
    0% { background: #ddd; }
 +
    33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }
 +
    66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }
 +
}
-
</div>
+
@media only screen and (min-width: 10000px) {
-
        </div>
+
 
-
+
  /* =Header Banner */
-
    </main>
+
-
</div>
+
    .banner-image-background {
 +
    background: url('https://static.igem.org/mediawiki/2014/3/30/Azo4.jpg') no-repeat center;
 +
    background-size:100%;
 +
    position: relative;
 +
    z-index:10;
 +
    /* height: 1000px; */
 +
}
-
<script src="https://2014.igem.org/Team:UCL/Template:grid.js?action=raw&ctype=text/javascript"></script>
+
    .banner-image-overlay {
-
<script>
+
        background-color:rgba(0,0,0,0.5);
-
    $(function () {
+
        width:100%;
-
         Grid.init();
+
        height:100%;
-
     });
+
         z-index:11;
-
</script>
+
     }
-
</body>
+
.banner-image-logo {
-
 
+
width: 727px;
-
 
+
height: 503px;
-
</html>
+
background: url('https://static.igem.org/mediawiki/2014/e/e8/UCL-old-logo-small.jpg') no-repeat center;
-
{{:Team:UCL/Template:footerx}}
+
background-size: 727px 503px;
 +
position: absolute;
 +
/* top: 25%; */
 +
left: 50%;
 +
margin-left: -359px;
 +
        z-index:12;
 +
}
 +
 +
}

Revision as of 11:55, 2 September 2014

/* =Header Banner */ .banner-image-background {

   background: url('https://static.igem.org/mediawiki/2014/3/30/Azo4.jpg') no-repeat center;
   background-size: 150%;
   /*background-color: #e7e7e7;*/
   position: relative;
   height: 700px;

z-index: 10; }

.banner-image-overlay {

   background-color: rgba(0,0,0,0.5);
   width:100%;
   height:100%;

z-index: 11; }

.banner-image-logo {

   top:150px;
   display: inline-block;
   vertical-align: middle;
   opacity:1;

}

/* =Profiles */ main {

   z-index: 1;
   position: relative;

}

.slide {

   color: #a7a0a2;
   font-weight: 200;
   font-size: 1em;
   font-family: 'Lato', Arial, sans-serif;

}

.slide .tellmemore {

   color: #a7a0a2;
   font-family: 'Lato', Arial, sans-serif;
   font-size:0.75em;

}

.slide .tellmemore p {

   text-align:left;

}

.slide h1 {

   background-color:black;
   font-weight:bold;
   border-bottom:none;
   color: white;

}

.slide h2 {

   font-weight:bold;
   border-bottom:none;
   color: #a7a0a2;

}

.slide .tellmemore img {

   height:50%;
   width:50%;

}

.slide h1 {

   padding-top:-10px;
   padding-left:30px;
   text-align:left;

}

.slide h1 span {

   top:-10px;

}

.slide p, .slide h2 {

   text-align:right;

}


.slidemore {

   float:left;

}

  1. slideabout {
   padding-left:200px;
   padding-right:200px;
   height:600px;

}

  1. slidescience {
   background: url('https://static.igem.org/mediawiki/2014/a/a3/Azo3.jpg') no-repeat;
   background-position-y:-400px;
   background-size:100%;
   height:500px;

z-index: 10; }

  1. slidesciencecontent .experiments {
   position:relative;
   top:50px;
   left:250px;

}

  1. slidesciencecontent .results {
   position:relative;
   top:50px;
   left:-250px;

}

  1. slidesciencecontent .experiments p {
   color:white;
   position:relative;
   left:-38px;

}

  1. slidesciencecontent .results p {
   color:white;
   position:relative;
   left:-60px;

}

  1. slidehumans {
   padding-left:200px;
   padding-right:200px;
   padding-bottom:200px;

}

.og-grid {

   list-style: none;
   padding: 20px 0;
   margin: 0 auto;
   text-align: center;
   width: 100%;

}

.og-grid li {

   display: inline-block;
   margin: 10px 5px 0 5px;
   vertical-align: top;
   height: 250px;

}

.og-grid li > a, .og-grid li > a img {

   border: none;
   outline: none;
   display: block;
   position: relative;

}

.og-grid li.og-expanded > a::after {

   top: auto;
   border: solid transparent;
   content: " ";
   height: 0;
   width: 0;
   position: absolute;
   pointer-events: none;
   border-bottom-color: #ddd;
   border-width: 15px;
   left: 50%;
   margin: -20px 0 0 -15px;

}

.og-expander {

   position: absolute;
   background: #ddd;
   top: auto;
   left: 0;
   width: 100%;
   margin-top: 10px;
   text-align: left;
   height: 0;
   overflow: hidden;

}

.og-expander-inner {

   padding: 50px 30px;
   height: 100%;

}

.og-close {

   position: absolute;
   width: 40px;
   height: 40px;
   top: 20px;
   right: 20px;
   cursor: pointer;

}

.og-close::before, .og-close::after {

   content: ;
   position: absolute;
   width: 100%;
   top: 50%;
   height: 1px;
   background: #888;
   transform: rotate(45deg);

}

.og-close::after {

   transform: rotate(-45deg);

}

.og-close:hover::before, .og-close:hover::after {

   background: #333;

}

.og-fullimg {

   width: 50%;
   float: left;
   height: 100%;
   overflow: hidden;
   position: relative;

}

.og-details {

   width: 50%;
   float: left;
   height: 100%;
   overflow: hidden;
   position: relative;

}

.og-fullimg {

   text-align: center;

}

.og-fullimg img {

   display: inline-block;
   max-height: 100%;
   max-width: 100%;

}

.og-details h3 {

   font-weight: 300;
   font-size: 52px;
   padding: 40px 0 10px;
   margin-bottom: 10px;

}

.og-details p {

   font-weight: 400;
   font-size: 16px;
   line-height: 22px;
   color: #999;
   text-align:left;

}

.og-details a {

   font-weight: 700;
   font-size: 16px;
   color: #333;
   text-transform: uppercase;
   letter-spacing: 2px;
   padding: 10px 20px;
   border: 3px solid #333;
   display: inline-block;
   margin: 30px 0 0;
   outline: none;

}

.og-details a::before {

   content: '\2192';
   display: inline-block;
   margin-right: 10px;

}

.og-details a:hover {

   border-color: #999;
   color: #999;

}

.og-loading {

   width: 20px;
   height: 20px;
   border-radius: 50%;
   background: #ddd;
   box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ccc;
   position: absolute;
   top: 50%;
   left: 50%;
   margin: -25px 0 0 -25px;
   animation: loader 0.5s infinite ease-in-out both;

}

@keyframes loader {

   0% { background: #ddd; }
   33% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ccc, -15px 30px 1px #ddd; }
   66% { background: #ccc; box-shadow: 0 0 1px #ccc, 15px 30px 1px #ddd, -15px 30px 1px #ccc; }

}

@media only screen and (min-width: 10000px) {

  /* =Header Banner */
   .banner-image-background {
   background: url('https://static.igem.org/mediawiki/2014/3/30/Azo4.jpg') no-repeat center;
   background-size:100%;
   position: relative;
   z-index:10;
   /* height: 1000px; */

}

   .banner-image-overlay {
       background-color:rgba(0,0,0,0.5);
       width:100%;
       height:100%;
       z-index:11;
   }

.banner-image-logo { width: 727px; height: 503px; background: url('https://static.igem.org/mediawiki/2014/e/e8/UCL-old-logo-small.jpg') no-repeat center; background-size: 727px 503px; position: absolute; /* top: 25%; */ left: 50%; margin-left: -359px;

       z-index:12;

}

}