Template:Team:UW/CSS

From 2014.igem.org

(Difference between revisions)
 
(152 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
<head>
<head>
 +
 +
<!--    -->
 +
<!-- CSS -->
 +
<!--    -->
 +
<style type="text/css">
<style type="text/css">
-
#contentSub, #footer-box, #sitesub, #catlinks, #search-controls, #p-logo, .printfooter, .firstHeading, .visualClear {display: none;} /*-- hides default wiki settings --*/
+
  /*-- hides default wiki settings --*/
 +
  #contentSub, #footer-box, #catlinks, #search-controls,#p-logo, .printfooter, .visualClear {display: none;}
-
.firstHeading {                                                   /* Gets rid of the default iGEM picture*/
+
  .firstHeading {
     height:2px;
     height:2px;
     visibility:hidden;
     visibility:hidden;
-
}
+
  }
-
#globalWrapper, #content { /*-- changes default wiki settings --*/
+
  h1, h2, h3, h4, h5 { font-family: Georgia, Times, "Times New Roman", serif;}
-
width: 100%;
+
-
height: 100%;
+
-
border: 0px;
+
-
background-color: transparent;
+
-
margin: 0px;
+
-
padding: 0px;
+
-
}
+
-
html, body, .wrapper { /*-- changes default wiki settings --*/
+
  /*-- styling for default menu bar (edit, page, history, etc.) --*/
-
width: 100%;
+
  #top-section {
-
height: 100%;
+
    background-color: #383838;
-
background-color: transparent;
+
    border: 0 none;
-
}
+
    height: 14px;
-
#top-section { /*-- styling for default menu bar (edit, page, history, etc.) --*/
+
    z-index: 100;
-
border: 0 none;
+
    top: 0;
-
height: 14px;
+
    position: fixed;
-
z-index: 100;
+
    width: 975px;
-
top: 0;
+
    left: 50%;
-
position: fixed;
+
    margin-left: -487px;
-
width: 975px;  
+
  }
-
left: 50%;  
+
-
margin-left: -487px;
+
-
        background-color: transparent;
+
-
}
+
-
#top-section-bar { /*-- styling full width bar which hides behind default menu bar (edit, page, history, etc.) --*/
+
  /*-- styling for default menu bar links (edit, page, history, etc.) --*/
-
        background-color:transparent;
+
  #menubar a:link, #menubar a:active, #menubar a:visited, #menubar a:hover, #menubar:hover {
-
        height: 14px;
+
    color: #727272;
-
display: block;
+
    text-decoration: none;
-
z-index: 10;
+
    background-color: transparent;
-
position: fixed;
+
  }
-
width:100%;
+
-
top: 0;
+
-
}
+
-
#menubar a:link, #menubar a:visited  { /*-- styling for default menu bar links (edit, page, history, etc.) --*/
+
  body {
-
        color:#FFF;
+
    background-color: #fff;
-
text-decoration: none;
+
  }
-
background-color: transparent;
+
-
}
+
-
#menubar a:active, #menubar a:hover
+
  /*-- changes default wiki settings --*/
-
{
+
  #globalWrapper, #content {
-
        color:#FFF;
+
    width: 100%;
-
text-decoration: underline;
+
    height: 100%;
-
        background-color:transparent;
+
    border: 10px;
-
}
+
    background-color: transparent;
-
* {
+
    margin: 0px;
-
margin: 0;
+
    padding: 0px;
-
padding: 0;
+
  }
-
-webkit-font-smoothing: antialiased;
+
  /*-- changes default wiki settings --*/
-
-webkit-box-sizing: border-box;
+
  html, body, .wrapper {
-
-moz-box-sizing: border-box;
+
    width: 100%;
-
box-sizing: border-box;
+
    height: 100%;
-
}
+
    background: File:Washington_background.JPG no-repeat center center fixed;
 +
    -webkit-background-size: cover;
 +
    -moz-background-size: cover;
 +
    -o-background-size: cover;
 +
    background-size: cover;
 +
    z-index: -6;
 +
  }
-
::selection {
+
  p, h1, h2, h3 {
-
background: #F79042;
+
    margin-left: 8%;
-
color: #fff;
+
    margin-right: 10%;
-
}
+
    margin-bottom: 6%;
 +
  }
-
.slide-out-div {
+
  }
-
          padding: 20px;
+
-
          background-image:url(../img_bu14/popopenbkgd_bu14.png);
+
-
  background-repeat:repeat;
+
-
  z-index:30;
+
-
  text-align:left;
+
-
      }
+
-
 
+
-
a:link {
+
-
color: #F79042;
+
-
text-decoration: none;
+
-
}
+
-
a:visited {
+
-
text-decoration: none;
+
-
color: #F79042;
+
-
}
+
-
a:hover {
+
-
text-decoration: underline;
+
-
}
+
-
a:active {
+
-
text-decoration: none;
+
-
}
+
-
.title{
+
  body  {
-
position:absolute;
+
    margin-left: 4%;
-
top:38px;
+
    margin-right: 4%;
-
left:83px;
+
    margin-bottom: 4%;
-
z-index:2;
+
  }
-
}
+
-
body {
+
  /*-- creates container for all content on page --*/
-
color: #353535;
+
  #contentcontainer {
-
font: 14px/23px proxima-nova-alt, "Proxima Nova Alt", sans-serif;
+
    font-family: Arial, Helvetica, sans-serif;
-
text-align:center;
+
    font-weight: normal;
-
}
+
    font-size: 14px;
 +
    color: #414141;
 +
    width: 800px;
 +
    margin-left: auto;
 +
    margin-right: auto;
 +
    background-color: #transparent;
 +
    margin-top: 0px;
 +
  }
-
h0{
+
  .sidemenu, .sidemenu li {
-
color:#FFF;
+
    list-style-type: none;
-
font-size:40px;
+
    list-style-image: none;
-
font-weight:700;
+
    font-family: verdana;
-
        text-decoration:none;
+
    text-decoration: none;
-
}
+
    color:#000;
 +
    font-size: 14px;
 +
  }
-
header1{
+
  .sidemenu li {display: block;}
-
font-size:28px;
+
-
font-weight:700;
+
-
text-transform:uppercase;
+
-
        text-decoration:none;
+
-
}
+
-
header2{
+
  .sidemenu a {
-
font-size:18px;
+
    text-decoration:none;
-
color:#FFF;
+
    color: #000;
-
font-weight:700;
+
    display: block;
-
text-transform:uppercase;
+
    width: 180px;
-
text-align:left;
+
    height: 100%;
-
        text-decoration:none;
+
    padding: 3px 5px;
-
}
+
    transition: .25s ease-in-out;
 +
    -moz-transition: .25s ease-in-out;
 +
    -webkit-transition: .25s ease-in-out;
 +
  }
-
header3{
+
  .sidemenu a.greyout { color: #909090; }
-
font-size:20px;
+
-
color:#000;
+
-
font-weight:700;
+
-
text-align:left;
+
-
        text-decoration:none;
+
-
}
+
-
maincontent{
+
  .sidemenu a:hover {
-
font-size:14px;
+
    color:#666;
-
font-weight:200;
+
    background-color: #d9f5aa;
-
text-align:justify;
+
  }
-
}
+
-
capt{
+
  .sub-sidemenu {font-size: 10px; margin-bottom: 20px; color: #666; display: none;}
-
font-size:12px;
+
  .sub-sidemenu a {color: #666;}
-
        color:#5E5F5F;
+
-
font-weight:150;
+
-
text-align:justify;
+
-
        line-height:110%
+
-
}
+
-
sidenav{
+
  div.underconst {
-
color:#FFF;
+
    padding:10px;
-
font-weight:700;
+
    border-radius:5px;
-
}
+
    background-color:pink;
 +
    text-align:center;
 +
  }
-
#logo {
+
  a.anchor{display: block; position: relative; top: -80px; visibility: hidden;}
-
position: absolute;
+
-
left: 80px;
+
-
top: 40px;
+
-
z-index: 2;
+
-
margin-left: -17px;
+
-
}
+
-
.header{
+
  .contentpara {margin-bottom: 30px;}
-
background-color:#353535;
+
-
position:fixed;
+
-
height:125px;
+
-
top:0px;
+
-
width:100%;
+
-
z-index:30;
+
-
}
+
-
.igemlogo
+
-
{
+
-
position:fixed;
+
-
right:5px;
+
-
z-index:30;
+
-
}
+
 +
  span.email{font-family: monospace; font-weight: normal;}
-
#tracking_nav
+
  fieldset {border: 1px solid #337f53;}
-
{
+
-
margin: 0px 0px 0px 950px;
+
-
position: fixed;
+
-
color:#bababa;
+
-
border: 1px solid #3d3f3c;
+
-
background:#3d3f3c;
+
-
font-size: 16pt;
+
-
padding: 5px;
+
-
line-height: 120%;
+
-
}
+
-
#tracking_nav a { color:#ffffff; text-transform: lowercase;font-size: 16pt;}
+
  .greyout {color: #A0A0A0;}
-
#tracking_nav a:hover {background:#bababa;}
+
  .highlightme {background-color: #FFFF00;}
-
ul#nav {
+
  #alertContainer { margin-bottom: 10px; width: 936px;}
-
width:90%;
+
  #annContainer {margin-left: 8px;}
-
top:100px;
+
  #newsContainer {border: 1px solid #ccc;}
-
left:60px;
+
-
position:fixed;
+
-
z-index:30;
+
-
}
+
-
#nav li {
+
  .newsTitle {
-
color: #FFF;
+
    display: block;
-
background-color:none;
+
    color: #414141;
-
margin: 0 15px 0 0;
+
    font-size: 25px;
-
float: left;
+
    font-family: Georgia, Times, "Times New Roman", serif;
-
position: relative;
+
    padding: 10px 15px 5px 10px;
-
list-style: none;
+
    border-bottom: 1px solid #ccc;
 +
    margin-bottom: 0px;
 +
  }
-
}
+
  .newsItem {
-
#nav li:last-child { margin:0; }
+
    border-bottom: 1px solid #ccc;
 +
    display: block;
 +
    padding: 5px 15px 0px 10px;
 +
    margin-bottom: 0px;
 +
  }
-
/* main level link */
+
  .newsItem h3 {
-
#nav a {
+
    width: auto;
-
font-family:bree-web, Bree, sans-serif;
+
    display: inline;
-
font-size:10pt;
+
    font-size: 14px;
-
font-weight:600;
+
    font-family: Arial, Helvetica, sans-serif;
-
line-height:210%;
+
    padding: 0px;
-
color: inherit;
+
    margin: 0px;
-
text-decoration: none;
+
  }
-
display: block;
+
-
padding: 0 0 0 5px;
+
-
margin: 0;
+
-
}
+
-
ul#nav > li > a {
+
  .newsItem img {
-
line-height:10px;
+
    float: right;
-
border-left:solid 3px #bbb;
+
    clear: right;
-
padding:0 0 0 15px;
+
    width: 80px;
-
}
+
    padding-left: 15px;
 +
    display: inline-block;
 +
  }
-
#nav a:hover {
+
  .newsItem .newsDate {
-
/*background-color: #870203;
+
    font-style: italic;
-
color: #ffffff;*/
+
    font-size: 14px;
-
}
+
    display: inline-block;
 +
    color: #FFF;
 +
    float: right;
 +
    padding: 0px 0px 10px 15px;
 +
  }
-
/* main level link hover */
+
  .newsItem p, .newsItem ul, .newsItem li {
-
#nav .current a, #nav li:hover > a {
+
    padding: 0px;
-
color: #F79042;
+
    margin-left: 20px;
-
border-color:#F79042;
+
    font-size: 12px;
-
}
+
    line-height: 1.2;
 +
  }
-
/* sub levels link hover */
+
  .newsItem p {
-
#nav ul li:hover a, #nav li:hover li a {
+
    margin-top: 10px;
-
border: none;
+
  }
-
background-image:url(https://static.igem.org/mediawiki/2014/3/3a/Orangemenubkgd_bu14.png);
+
-
background-repeat:repeat;
+
-
color:#FFF;
+
-
}
+
-
#nav ul a:hover {
+
  .annItem {
-
color: #353535 !important;
+
    border: 2px solid #414141;
-
/*background: #fff url() repeat-x 0 -100px !important;
+
    display: block;
-
text-shadow: 0 1px 1px rgba(0,0,0, .1);*/
+
    padding: 0px 15px 10px 10px;
-
}
+
    margin-bottom: 18px;
 +
    position: relative;
 +
    height: 160px;
 +
    vertical-align: middle;
 +
  }
 +
  .annItem .annCentered {
 +
    display: table-cell;
 +
    vertical-align: middle;
 +
    height: 160px;
 +
  }
-
/* dropdown */
+
  .annCentered h3 {
-
#nav li:hover > ul {
+
    padding: 0px;
-
/*display: block;*/
+
    display: block;
-
opacity:1;
+
    margin-left: auto;
-
margin:0;
+
    margin-right: auto;
-
background-color: none;
+
    text-align: center;
-
z-index:0;
+
  }
-
}
+
-
/* level 2 list */
+
  .igemlogopos{
-
#nav ul {
+
    position:absolute;
-
/*display: none;*/
+
    right:-15px;
-
opacity:0;
+
    z-index:30;
-
margin: 20px 0 0 0;
+
    top: 18px;
-
padding: 7px 0 0 0;
+
  }
-
width: 205px;
+
-
position: absolute;
+
-
left: 0;
+
-
z-index:-1;
+
-
}
+
  .annItem ul, .annItem li {padding: 0px; margin: 0px;}
-
#nav ul li {
+
  .annItem li {list-style: none; margin: 5px}
-
float: none;
+
  .centerImg{  background:#E8E8E8; margin:auto; width:100%; }
-
margin: 0;
+
-
padding: 0;
+
-
}
+
-
#nav ul a {
+
  #igemuwmenu, #igemuwmenu ul {
-
font-weight: normal;
+
    margin: 0;
-
/*text-shadow: 0 1px 0 #fff;*/
+
    padding: 0;
-
}
+
    list-style: none;
 +
  }
-
/* clearfix */
+
  #igemuwmenu {
-
#nav:after {
+
    width: 730px;
-
content: ".";
+
    margin: 10px auto;
-
display: block;
+
    border: 3px solid #b7a57a;
-
clear: both;
+
    background-color: #4b2e84;
-
visibility: hidden;
+
    border-radius: 6px;
-
line-height: 0;
+
    display: inline-block;
-
height: 0;
+
    white-space: nowrap;
-
}
+
  }
-
#nav {
+
-
display: inline-block;
+
-
}
+
-
html[xmlns] #nav {
+
-
display: block;
+
-
}
+
-
+
-
* html #nav {
+
-
height: 1%;
+
-
}
+
 +
  #igemuwmenu:before,
 +
  #igemuwmenu:after {
 +
    content: "";
 +
    display: table;
 +
  }
 +
  #igemuwmenu:after {
 +
    clear: both;
 +
  }
 +
  #igemuwmenu {
 +
    zoom:1;
 +
  }
 +
  #igemuwmenu li {
 +
    border-right: 1px solid #222;
 +
    -moz-box-shadow: 1px 0 0 #444;
 +
    -webkit-box-shadow: 1px 0 0 #2E0854;
 +
    box-shadow: 1px 0 0 #2E0854;
 +
    position: relative;
 +
    display: inline-block;
 +
    white-space: nowrap;
 +
  }
-
.headerdivider{
+
  #igemuwmenu a {
-
        background-image:url(https://static.igem.org/mediawiki/2014/1/15/Headerdivider_bu14.png);
+
    padding: 12px 20px;
-
position:absolute;
+
    color: #b7a57a;
-
top:120px;
+
    text-transform: uppercase;
-
height:15px;
+
    font: bold 11.4px Arial, Helvetica;
-
width:100%;
+
    text-decoration: none;
-
z-index:10;
+
    text-shadow: 0 1px 0 #000;
-
}
+
    display: inline-block;
 +
    white-block: nowrap;
 +
  }
-
.plasmid{
+
  #igemuwmenu li:hover > a {
-
        background-color:transparent;
+
    color: #fafafa;
-
position: relative;
+
  }
-
background-repeat:no-repeat;
+
-
margin-left:auto;
+
-
margin-right:auto;
+
-
width:400px;
+
-
height:500px;
+
-
        top: calc(50% - 300px);
+
-
z-index:10;
+
-
}
+
-
.banner {
+
  *html #igemuwmenu li a:hover { /* IE6 only */
-
        background-image:url(https://static.igem.org/mediawiki/2014/0/03/Boston1_bu14.jpg);
+
    color: #fafafa;
-
        background-size:cover;
+
  }
-
position: absolute;
+
-
top:100px;
+
-
width: 100%;
+
-
height:100%;
+
-
overflow: auto;
+
-
font-size: 18px;
+
-
text-align: center;
+
-
color: rgba(255,255,255,.6);
+
-
text-shadow: 0 0 1px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.3);
+
-
box-shadow: 0 1px 2px rgba(0,0,0,.25);
+
  #igemuwmenu ul {
-
+
    margin: 20px 0 0 0;
-
+
    _margin: 0; /*IE6 only*/
-
}
+
    opacity: 0;
-
+
    visibility: hidden;
-
.wrap {
+
    position: absolute;
-
margin: 0 auto;
+
    top: 38px;
-
width: 960px;
+
    left: 0;
-
}
+
    z-index: 1;
 +
    background: #4b2e84;
 +
    border: 2px solid #b7a57a;
 +
    -webkit-transition: all .2s ease-in-out;
 +
    -moz-transition: all .2s ease-in-out;
 +
    -ms-transition: all .2s ease-in-out;
 +
    -o-transition: all .2s ease-in-out;
 +
    transition: all .2s ease-in-out;
 +
  }
-
.anchor{
+
  #igemuwmenu li:hover > ul {
-
position:absolute;
+
    opacity: 1;
-
top:calc(100% - 125px);
+
    visibility: visible;
-
}
+
    margin: 0;
 +
  }
-
.topanchor{
+
  #igemuwmenu ul ul {
-
position:absolute;
+
    top: 0;
-
top:calc(0% - 125px);
+
    left: 150px;
-
}
+
    margin: 0 0 0 20px;
 +
    _margin: 0; /*IE6 only*/
 +
    -moz-box-shadow: -1px 0 0 rgba(255,255,255,.3);
 +
    -webkit-box-shadow: -1px 0 0 rgba(255,255,255,.3);
 +
    box-shadow: -1px 0 0 rgba(255,255,255,1);
 +
  }
-
.lower{
+
  #igemuwmenu ul li {
-
background-image:url(https://static.igem.org/mediawiki/2014/d/d7/Gradient_bu14.png);
+
    float: none;
-
background-color:#FFF;
+
    display: block;
-
text-align:center;
+
    border: 0;
-
background-repeat:repeat-x;
+
    _line-height: 0; /*IE6 only*/
-
width:100%;
+
    -moz-box-shadow: 0 1px 0 #b7a57a, 0 2px 0 #b7a57a;
-
position:absolute;
+
    -webkit-box-shadow: 0 1px 0 #b7a57a, 0 2px 0 #b7a57a;
-
top:100%;
+
    box-shadow: 0 1px 0 #b7a57a, 0 2px 0 #b7a57a;  
-
z-index:10;
+
  }
-
}
+
  #igemuwmenu ul li.active {
-
.content{
+
    float: none;
-
text-align:left;
+
    display: block;
-
width:100%;
+
    border: 0;
-
position:relative;
+
    _line-height: 0; /*IE6 only*/
-
z-index:10;
+
    -moz-box-shadow: 0 1px 0 #b8860b, 0 2px 0 #fff;
 +
    -webkit-box-shadow: 0 1px 0 #b8860b, 0 2px 0 #fff;
 +
    box-shadow: 0 1px 0 #b8860b, 0 2px 0 #fff;
 +
  }
-
}
+
  #igemuwmenu ul li:last-child {
-
.text{
+
    -moz-box-shadow: none;
-
width:75%;
+
    -webkit-box-shadow: none;
-
margin-left:auto;
+
    box-shadow: none;
-
margin-right:auto;
+
  }
-
}
+
-
.content1{
+
-
background-image:url(../img_bu14/whitebkgd_bu14.png);
+
-
background-repeat:repeat;
+
 +
  #igemuwmenu ul a {
 +
    padding: 10px;
 +
    width: 130px;
 +
    _height: 10px; /*IE6 only*/
 +
    display: block;
 +
    white-space: nowrap;
 +
    float: none;
 +
    text-transform: none;
 +
  }
-
.sponsors{
+
  #igemuwmenu ul a.selected {
-
background-color:#FFF;
+
    padding: 10px;
-
position:relative;
+
    width: 130px;
-
text-align:center;
+
    _height: 10px; /*IE6 only*/
-
bottom:0px;
+
    display: block;
-
z-index:10;
+
    white-space: nowrap;
-
}
+
    float: none;
 +
    text-transform: none;
 +
  }
-
@media only screen and (min-device-width: 320px) and (max-device-width: 480px), (max-width: 900px) {
+
  #igemuwmenu ul a:hover {
-
.wrap {
+
    background-color: #785D84;
-
width: 90%;
+
    background-image: -moz-linear-gradient(#94749a,  #785D84);
-
}
+
    background-image: -webkit-gradient(linear, left top, left bottom, from(#94749a), to(#785D84));
-
#logo {
+
    background-image: -webkit-linear-gradient(#94749a, #785D84);
-
left: 50px;
+
    background-image: -o-linear-gradient(#94749a, #785D84);
-
top: 30px;
+
    background-image: -ms-linear-gradient(#94749a, #785D84);
-
}
+
    background-image: linear-gradient(#94749a, #785D84);
 +
  }
-
.banner header1, .banner header2 {
+
  #igemuwmenu ul li:first-child > a {
-
font-size: 24px;
+
    -moz-border-radius: 3px 3px 0 0;
-
line-height: 30px;
+
    -webkit-border-radius: 3px 3px 0 0;
-
}
+
    border-radius: 3px 3px 0 0;
-
.banner ul li {
+
  }
-
height: 240px;
+
-
}
+
-
.banner .inner {
+
-
padding-top: 100px;
+
-
padding-bottom: 50px;
+
-
}
+
-
.banner p {
+
-
font-size: 15px;
+
-
width: 80%;
+
-
margin: 0 auto;
+
-
}
+
-
pre {
+
-
overflow: auto;
+
-
}
+
-
.features li {
+
-
width: 100%;
+
-
margin-left: 10px;
+
-
margin-bottom: 30px;
+
-
}
+
-
.how li {
+
-
width: 90%;
+
-
}
+
-
.how pre {
+
-
position: static;
+
-
width: 100%;
+
-
}
+
-
}
+
-
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
+
  #igemuwmenu ul li:first-child > a:after {
-
.features li:before {
+
    content: '';
-
background: url('img/icons@2x.png');
+
    position: absolute;
-
background-size: 100%;
+
    left: 40px;
-
}
+
    top: -6px;
-
}
+
    border-left: 6px solid transparent;
 +
    border-right: 6px solid transparent;
 +
    border-bottom: 6px solid #2E0854;
 +
  }
 +
  #igemuwmenu ul ul li:first-child a:after {
 +
    left: -6px;
 +
    top: 50%;
 +
    margin-top: -6px;
 +
    border-left: 0;
 +
    border-bottom: 6px solid transparent;
 +
    border-top: 6px solid transparent;
 +
    border-right: 6px solid #FFFFFF;
 +
  }
 +
 +
  #igemuwmenu ul li:first-child a:hover:after {
 +
    border-bottom-color: #2E0854;
 +
  }
 +
 +
  #igemuwmenu ul li:last-child > a {
 +
    -moz-border-radius: 0 0 3px 3px;
 +
    -webkit-border-radius: 0 0 3px 3px;
 +
    border-radius: 0 0 3px 3px;
 +
  }
 +
 +
  /* Mobile */
 +
  #igemuwmenu-trigger {
 +
    display: none;
 +
  }
 +
 +
  @media screen and (max-width: 600px) {
 +
 +
    /* nav-wrap */
 +
    #igemuwmenu-wrap {
 +
      position: relative;
 +
    }
 +
 +
    #igemuwmenu-wrap * {
 +
      -moz-box-sizing: border-box;
 +
      -webkit-box-sizing: border-box;
 +
      box-sizing: border-box;
 +
    }
 +
 +
    /* menu icon */
 +
    #igemuwmenu-trigger {
 +
      display: block; /* show menu icon */
 +
      height: 40px;
 +
      line-height: 40px;
 +
      cursor: pointer;
 +
      padding: 0 0 0 35px;
 +
      border: 1px solid #222;
 +
      color: #ffffff;
 +
      font-weight: bold;
 +
      background-color: #b8860b;
 +
      -moz-border-radius: 6px;
 +
      -webkit-border-radius: 6px;
 +
      border-radius: 6px;
 +
      -moz-box-shadow: 0 1px 1px #fff, 0 1px 0 #fff inset;
 +
      -webkit-box-shadow: 0 1px 1px #fff, 0 1px 0 #fff inset;
 +
      box-shadow: 0 1px 1px #fff, 0 1px 0 #fff inset;
 +
    }
 +
 +
    /* main nav */
 +
    #igemuwmenu {
 +
      margin: 0; padding: 10px;
 +
      position: absolute;
 +
      top: 40px;
 +
      width: 100%;
 +
      z-index: 1;
 +
      background-color: #2E0854;
 +
      display: none;
 +
      -moz-box-shadow: none;
 +
      -webkit-box-shadow: none;
 +
      box-shadow: none;
 +
    }
 +
 +
    #igemuwmenu:after {
 +
      content: '';
 +
      position: absolute;
 +
      left: 25px;
 +
      top: -8px;
 +
      border-left: 8px solid transparent;
 +
      border-right: 8px solid transparent;
 +
      border-bottom: 8px solid #2E0854;
 +
    }
 +
 +
    #igemuwmenu ul {
 +
      position: static;
 +
      visibility: visible;
 +
      opacity: 1;
 +
      margin: 0;
 +
      background: none;
 +
      -moz-box-shadow: none;
 +
      -webkit-box-shadow: none;
 +
      box-shadow: none;
 +
    }
 +
 +
    #igemuwmenu ul ul {
 +
      margin: 0 0 0 20px !important;
 +
      -moz-box-shadow: none;
 +
      -webkit-box-shadow: none;
 +
      box-shadow: none;
 +
    }
 +
 +
    #igemuwmenu li {
 +
      position: static;
 +
      display: block;
 +
      float: none;
 +
      border: 0;
 +
      margin: 5px;
 +
      -moz-box-shadow: none;
 +
      -webkit-box-shadow: none;
 +
      box-shadow: none;
 +
    }
 +
 +
    #igemuwmenu ul li{
 +
      margin-left: 20px;
 +
      -moz-box-shadow: none;
 +
      -webkit-box-shadow: none;
 +
      box-shadow: none;
 +
    }
 +
 +
    #igemuwmenu a{
 +
      display: block;
 +
      float: none;
 +
      padding: 0;
 +
      color: #fff;
 +
    }
 +
 +
    #igemuwmenu a:hover{
 +
      color: #FFFFFF;
 +
    }
 +
 +
    #igemuwmenu ul a{
 +
      padding: 0;
 +
      width: auto;
 +
    }
 +
 +
    #igemuwmenu ul a:hover{
 +
      background: none;
 +
    }
 +
 +
    #igemuwmenu ul li:first-child a:after,
 +
    #igemuwmenu ul ul li:first-child a:after {
 +
      border: 0;
 +
    }
 +
 +
  }
 +
 +
  @media screen and (min-width: 600px) {
 +
    #igemuwmenu {
 +
      display: block !important;
 +
    }
 +
  }
 +
 +
  /* iPad */
 +
  .no-transition {
 +
    -webkit-transition: none;
 +
    -moz-transition: none;
 +
    -ms-transition: none;
 +
    -o-transition: none;
 +
    transition: none;
 +
    opacity: 1;
 +
    visibility: visible;
 +
    display: none;
 +
  }
 +
 +
  #igemuwmenu li:hover > .no-transition {
 +
    display: block;
 +
  }
</style>
</style>
 +
 +
<!--              -->
 +
<!-- Main Content -->
 +
<!--              -->
 +
 +
<body>
 +
 +
  <!-- Table for the entire content (to split it vertically, weird) -->
 +
  <table align="center">
 +
 +
  <!-- Banner  -->
 +
    <tr> <center>
 +
    <img src="https://static.igem.org/mediawiki/2014/6/61/Banner-Wiki.png" width="1100" height="338" usemap="#linkmap">
 +
  <map name="linkmap">
 +
  <area shape="rect" coords="80,140,350,250" href="http://www.washington.edu" target="_blank" alt="UW Homepage">
 +
<area shape="rect" coords="750,110,980,260" href="http://www.igem.org" target="_blank" alt="Official iGEM website">
 +
  </map>
 +
    </center>
 +
    </tr>
 +
 +
    <!-- Spacer -->
 +
    <tr>
 +
      <td colspan="3"  height="5px"></td>
 +
    </tr>
 +
 +
    <!-- Navigation Bar -->
 +
    <tr>
 +
      <td align="left" colspan="3">
 +
        <table  width="100%">
 +
          <tr heigth="15px"></tr>
 +
          <tr heigth="75px">
 +
            <nav id="igemuwmenu-wrap">
 +
              <ul id="igemuwmenu">
 +
                <li>
 +
                  <a href="https://2014.igem.org/Team:Washington">Home</a>
 +
                  <ul>
 +
                    <li><a href="https://2014.igem.org/Team:Washington">UW 2014</a></li>
 +
                    <li><a href="https://2013.igem.org/Team:Washington">UW 2013</a></li>
 +
                    <li><a href="https://2012.igem.org/Team:Washington">UW 2012</a></li>
 +
                    <li><a href="https://2011.igem.org/Team:Washington">UW 2011</a></li>
 +
                    <li><a href="https://2010.igem.org/Team:Washington">UW 2010</a></li>
 +
                    <li><a href="https://2009.igem.org/Team:Washington">UW 2009</a></li>
 +
                    <li><a href="https://2008.igem.org/Team:University_of_Washington">UW 2008</a></li>
 +
                    <li><a href="https://2013.igem.org/Main_Page">iGEM Homepage</a></li>
 +
                  </ul>
 +
                </li>
 +
                <li>
 +
                  <a href="https://2014.igem.org/Team:Washington/Our_Project">Our Project</a>
 +
                  <ul>
 +
                    <li><a href="https://2014.igem.org/Team:Washington/Our_Project">Our System</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Washington/Methods">Methods</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Washington/Results">Results</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Washington/Future Plans">Future Plans</a></li>
 +
                  </ul>
 +
                </li>
 +
 +
                <li>
 +
                  <a href="https://2014.igem.org/Team:Washington/BioBricks">BioBricks</a>
 +
                </li>
 +
 +
                <li>
 +
                  <a href="https://2014.igem.org/Team:Washington/Outreach">Outreach</a>
 +
                </li>
 +
 +
                <li>
 +
                  <a href="https://2014.igem.org/Team:Washington/Protocols">Protocols</a>
 +
                </li>
 +
 +
                <li>
 +
                  <a href="https://2014.igem.org/Team:Washington/Safety">Safety</a>
 +
                  <ul>
 +
                    <li><a href="https://2014.igem.org/Team:Washington/Safety">Safety</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Washington/ProjectConsiderations">Project Considerations</a></li>
 +
                    <li><a href="https://2014.igem.org/Team:Washington/JudgingForm">Judging Form</a></li>
 +
                  </ul>
 +
                </li>
 +
<li>
 +
                  <a href="https://2014.igem.org/Team:Washington/Our_Team">Our Team</a>
 +
</li>
 +
              </ul>
 +
            </nav>
 +
          </tr>
 +
        </table>
 +
      </td>
 +
    </tr>
 +
  </table>
 +
</body>
 +
 +
<!--            -->
 +
<!-- Javascript -->
 +
<!--            -->
 +
 +
  <script>
 +
    $(document).ready(function() {
 +
      function filterPath(string) {
 +
      return string
 +
      .replace(/^\//,'')
 +
      .replace(/(index|default).[a-zA-Z]{3,4}$/,'')
 +
      .replace(/\/$/,'');
 +
    }
 +
    var locationPath = filterPath(location.pathname);
 +
    var scrollElem = scrollableElement('html', 'body');
 +
 +
    $('a[href*=#]').each(function() {
 +
      var thisPath = filterPath(this.pathname) || locationPath;
 +
      if (  locationPath == thisPath
 +
        && (location.hostname == this.hostname || !this.hostname)
 +
        && this.hash.replace(/#/,'') ) {
 +
      var $target = $(this.hash), target = this.hash;
 +
      if (target) {
 +
      var targetOffset = $target.offset().top;
 +
      $(this).click(function(event) {
 +
        event.preventDefault();
 +
        $(scrollElem).animate({scrollTop: targetOffset}, 400, function() {
 +
          location.hash = target;
 +
          });
 +
        });
 +
      }
 +
      }
 +
      });
 +
 +
    // use the first element that is "scrollable"
 +
    function scrollableElement(els) {
 +
      for (var i = 0, argLength = arguments.length; i <argLength; i++) {
 +
        var el = arguments[i],
 +
            $scrollElement = $(el);
 +
        if ($scrollElement.scrollTop()> 0) {
 +
          return el;
 +
        } else {
 +
          $scrollElement.scrollTop(1);
 +
          var isScrollable = $scrollElement.scrollTop()> 0;
 +
          $scrollElement.scrollTop(0);
 +
          if (isScrollable) {
 +
            return el;
 +
          }
 +
        }
 +
      }
 +
      return [];
 +
    }
 +
 +
    });
 +
</script>
 +
</html>
</html>

Latest revision as of 03:55, 18 October 2014

UW Homepage Official iGEM website