Template:Team:UW/CSS

From 2014.igem.org

(Difference between revisions)
m
 
(91 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
<head>
<head>
 +
 +
<!--    -->
 +
<!-- CSS -->
 +
<!--    -->
 +
<style type="text/css">
<style type="text/css">
-
#contentSub, #footer-box, #catlinks, #search-controls,#p-logo, .printfooter, .visualClear {display: none;} /*-- hides default wiki settings --*/
+
  /*-- hides default wiki settings --*/
 +
  #contentSub, #footer-box, #catlinks, #search-controls,#p-logo, .printfooter, .visualClear {display: none;}
-
.firstHeading {
+
  .firstHeading {
-
        height:2px;
+
    height:2px;
-
        visibility:hidden;
+
    visibility:hidden;
-
}
+
  }
-
h1, h2, h3, h4, h5 { font-family: Georgia, Times, "Times New Roman", serif;}
+
  h1, h2, h3, h4, h5 { font-family: Georgia, Times, "Times New Roman", serif;}
-
#top-section { /*-- styling for default menu bar (edit, page, history, etc.) --*/
+
  /*-- styling for default menu bar (edit, page, history, etc.) --*/
-
background-color: #383838;
+
  #top-section {
-
border: 0 none;
+
    background-color: #383838;
-
height: 14px;
+
    border: 0 none;
-
z-index: 100;
+
    height: 14px;
-
top: 0;
+
    z-index: 100;
-
position: fixed;
+
    top: 0;
-
width: 975px;  
+
    position: fixed;
-
left: 50%;  
+
    width: 975px;
-
margin-left: -487px;
+
    left: 50%;
-
}
+
    margin-left: -487px;
 +
  }
 +
  /*-- styling for default menu bar links (edit, page, history, etc.) --*/
 +
  #menubar a:link, #menubar a:active, #menubar a:visited, #menubar a:hover, #menubar:hover {
 +
    color: #727272;
 +
    text-decoration: none;
 +
    background-color: transparent;
 +
  }
-
#menubar a:link, #menubar a:active, #menubar a:visited, #menubar a:hover, #menubar:hover { /*-- styling for default menu bar links (edit, page, history, etc.) --*/
+
  body {
-
color: #727272;
+
    background-color: #fff;
-
text-decoration: none;
+
  }
-
background-color: transparent;
+
-
}
+
-
body {  
+
  /*-- changes default wiki settings --*/
-
background-color: #fff;
+
  #globalWrapper, #content {
-
}
+
    width: 100%;
 +
    height: 100%;
 +
    border: 10px;
 +
    background-color: transparent;
 +
    margin: 0px;
 +
    padding: 0px;
 +
  }
-
#globalWrapper, #content { /*-- changes default wiki settings --*/
+
  /*-- changes default wiki settings --*/
-
width: 100%;  
+
  html, body, .wrapper {
-
height: 100%;
+
    width: 100%;
-
border: 0px;
+
    height: 100%;
-
background-color: transparent;
+
    background: File:Washington_background.JPG no-repeat center center fixed;
-
margin: 0px;
+
    -webkit-background-size: cover;
-
padding: 0px;
+
    -moz-background-size: cover;
-
}
+
    -o-background-size: cover;
 +
    background-size: cover;
 +
    z-index: -6;
 +
  }
-
html, body, .wrapper { /*-- changes default wiki settings --*/
+
  p, h1, h2, h3 {
-
width: 100%;  
+
    margin-left: 8%;
-
height: 100%;  
+
    margin-right: 10%;
-
background: File:Washington_background.JPG no-repeat center center fixed;
+
    margin-bottom: 6%;
-
        -webkit-background-size: cover;
+
  }
-
        -moz-background-size: cover;
+
-
        -o-background-size: cover;
+
-
        background-size: cover;
+
-
}
+
-
#contentcontainer { /*-- creates container for all content on page --*/
+
  }
-
font-family: Arial, Helvetica, sans-serif;
+
-
font-weight: normal;
+
-
font-size: 14px;
+
-
color: #414141;
+
-
width: 960px;
+
-
margin-left: auto;
+
-
margin-right: auto;
+
-
background-color: #transparent;
+
-
margin-top: 0px;
+
-
}
+
-
.sidemenu, .sidemenu li {  
+
  body  {
-
list-style-type: none;  
+
    margin-left: 4%;
-
list-style-image: none;
+
    margin-right: 4%;
-
font-family: verdana;
+
    margin-bottom: 4%;
-
text-decoration: none;
+
  }
-
color:#000;  
+
-
font-size: 14px;
+
-
}
+
-
.sidemenu li {display: block;}
+
  /*-- creates container for all content on page --*/
 +
  #contentcontainer {
 +
    font-family: Arial, Helvetica, sans-serif;
 +
    font-weight: normal;
 +
    font-size: 14px;
 +
    color: #414141;
 +
    width: 800px;
 +
    margin-left: auto;
 +
    margin-right: auto;
 +
    background-color: #transparent;
 +
    margin-top: 0px;
 +
  }
-
.sidemenu a {
+
  .sidemenu, .sidemenu li {
-
text-decoration:none;  
+
    list-style-type: none;
-
color: #000;
+
    list-style-image: none;
-
display: block;  
+
    font-family: verdana;
-
width: 180px;  
+
    text-decoration: none;
-
height: 100%;  
+
    color:#000;
-
padding: 3px 5px;
+
    font-size: 14px;
-
transition: .25s ease-in-out;
+
  }
-
-moz-transition: .25s ease-in-out;
+
-
-webkit-transition: .25s ease-in-out;
+
-
}  
+
-
.sidemenu a.greyout { color: #909090; }
+
  .sidemenu li {display: block;}
-
.sidemenu a:hover {
+
  .sidemenu a {
-
color:#666;  
+
    text-decoration:none;
-
background-color: #d9f5aa;
+
    color: #000;
-
}
+
    display: block;
 +
    width: 180px;
 +
    height: 100%;
 +
    padding: 3px 5px;
 +
    transition: .25s ease-in-out;
 +
    -moz-transition: .25s ease-in-out;
 +
    -webkit-transition: .25s ease-in-out;
 +
  }
-
.sub-sidemenu {font-size: 10px; margin-bottom: 20px; color: #666; display: none;}
+
  .sidemenu a.greyout { color: #909090; }
-
.sub-sidemenu a {color: #666;}
+
-
div.underconst
+
  .sidemenu a:hover {
-
{
+
    color:#666;
-
padding:10px;
+
    background-color: #d9f5aa;
-
border-radius:5px;
+
  }
-
background-color:pink;
+
-
text-align:center;
+
-
}
+
-
a.anchor{display: block; position: relative; top: -80px; visibility: hidden;}
+
  .sub-sidemenu {font-size: 10px; margin-bottom: 20px; color: #666; display: none;}
 +
  .sub-sidemenu a {color: #666;}
-
.contentpara {margin-bottom: 30px;}
+
  div.underconst {
 +
    padding:10px;
 +
    border-radius:5px;
 +
    background-color:pink;
 +
    text-align:center;
 +
  }
-
span.email{font-family: monospace; font-weight: normal;}
+
  a.anchor{display: block; position: relative; top: -80px; visibility: hidden;}
-
fieldset {border: 1px solid #337f53;}
+
  .contentpara {margin-bottom: 30px;}
-
.greyout {color: #A0A0A0;}
+
  span.email{font-family: monospace; font-weight: normal;}
-
.highlightme {background-color: #FFFF00;}
+
-
#alertContainer { margin-bottom: 10px; width: 936px;}
+
  fieldset {border: 1px solid #337f53;}
-
#annContainer {margin-left: 8px;}
+
-
#newsContainer {border: 1px solid #ccc;}
+
-
.newsTitle {
+
  .greyout {color: #A0A0A0;}
-
display: block;
+
  .highlightme {background-color: #FFFF00;}
-
color: #414141;
+
-
font-size: 25px; 
+
-
        font-family: Georgia, Times, "Times New Roman", serif;
+
-
padding: 10px 15px 5px 10px;
+
-
border-bottom: 1px solid #ccc;  
+
-
margin-bottom: 0px;
+
-
}
+
-
.newsItem {
+
  #alertContainer { margin-bottom: 10px; width: 936px;}
-
border-bottom: 1px solid #ccc;  
+
  #annContainer {margin-left: 8px;}
-
display: block;  
+
  #newsContainer {border: 1px solid #ccc;}
-
padding: 5px 15px 0px 10px;
+
-
margin-bottom: 0px;  
+
-
}
+
-
.newsItem h3 {
+
  .newsTitle {
-
width: auto;  
+
    display: block;
-
display: inline;  
+
    color: #414141;
-
font-size: 14px;  
+
    font-size: 25px;
-
font-family: Arial, Helvetica, sans-serif;  
+
    font-family: Georgia, Times, "Times New Roman", serif;
-
padding: 0px;  
+
    padding: 10px 15px 5px 10px;
-
margin: 0px;
+
    border-bottom: 1px solid #ccc;
-
}
+
    margin-bottom: 0px;
 +
  }
-
.newsItem img {
+
  .newsItem {
-
float: right;  
+
    border-bottom: 1px solid #ccc;
-
clear: right;  
+
    display: block;
-
width: 80px;
+
    padding: 5px 15px 0px 10px;
-
padding-left: 15px;
+
    margin-bottom: 0px;
-
display: inline-block;  
+
  }
-
}
+
-
.newsItem .newsDate {
+
  .newsItem h3 {
-
font-style: italic;  
+
    width: auto;
-
font-size: 14px;  
+
    display: inline;
-
display: inline-block;  
+
    font-size: 14px;
-
color: #FFF;  
+
    font-family: Arial, Helvetica, sans-serif;
-
float: right;
+
    padding: 0px;
-
padding: 0px 0px 10px 15px;
+
    margin: 0px;
-
}
+
  }
-
.newsItem p, .newsItem ul, .newsItem li {
+
  .newsItem img {
-
padding: 0px;  
+
    float: right;
-
margin-left: 20px;  
+
    clear: right;
-
font-size: 12px;  
+
    width: 80px;
-
line-height: 1.2;
+
    padding-left: 15px;
-
}
+
    display: inline-block;
 +
  }
-
.newsItem p {margin-top: 10px;}
+
  .newsItem .newsDate {
 +
    font-style: italic;
 +
    font-size: 14px;
 +
    display: inline-block;
 +
    color: #FFF;
 +
    float: right;
 +
    padding: 0px 0px 10px 15px;
 +
  }
-
.annItem {
+
  .newsItem p, .newsItem ul, .newsItem li {
-
border: 2px solid #414141;
+
    padding: 0px;
-
display: block;
+
    margin-left: 20px;
-
padding: 0px 15px 10px 10px;  
+
    font-size: 12px;
-
margin-bottom: 18px;  
+
    line-height: 1.2;
-
position: relative;  
+
  }
-
height: 160px;
+
-
vertical-align: middle;
+
-
}
+
-
.annItem .annCentered {
+
  .newsItem p {
-
display: table-cell;  
+
    margin-top: 10px;
 +
  }
 +
  .annItem {
 +
    border: 2px solid #414141;
 +
    display: block;
 +
    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;
 +
  }
 +
  .annCentered h3 {
 +
    padding: 0px;
 +
    display: block;
 +
    margin-left: auto;
 +
    margin-right: auto;
 +
    text-align: center;
 +
  }
-
vertical-align: middle;  
+
  .igemlogopos{
-
height: 160px;
+
    position:absolute;
-
}
+
    right:-15px;
 +
    z-index:30;
 +
    top: 18px;
 +
  }
-
.annCentered h3 {
+
  .annItem ul, .annItem li {padding: 0px; margin: 0px;}
-
padding: 0px;
+
  .annItem li {list-style: none; margin: 5px}
-
display: block;  
+
  .centerImg{  background:#E8E8E8; margin:auto; width:100%; }
-
margin-left: auto;  
+
-
margin-right: auto;  
+
-
text-align: center;
+
-
}
+
-
.annItem ul, .annItem li {padding: 0px; margin: 0px;}
+
  #igemuwmenu, #igemuwmenu ul {
-
.annItem li {list-style: none; margin: 5px}
+
    margin: 0;
-
.centerImg{  background:#E8E8E8; margin:auto; width:100%; }
+
    padding: 0;
 +
    list-style: none;
 +
  }
-
#igemuwmenu, #igemuwmenu ul {
+
  #igemuwmenu {
-
margin: 0;
+
    width: 730px;
-
padding: 0;
+
    margin: 10px auto;
-
list-style: none;
+
    border: 3px solid #b7a57a;
-
}
+
    background-color: #4b2e84;
-
+
    border-radius: 6px;
-
#igemuwmenu {
+
    display: inline-block;
-
width: 700px;
+
    white-space: nowrap;
-
margin: 10px auto;
+
  }
-
border: 3px solid #dfb42c;
+
-
background-color: #b8860b;
+
-
background-image: -moz-linear-gradient(#4b2e84, #85754d );  
+
-
background-image: -webkit-gradient(linear, left top, left bottom, from(#4b2e84), to(#85754d ));
+
-
background-image: -webkit-linear-gradient(#4b2e84, #85754d );
+
-
background-image: -o-linear-gradient(#4b2e84, #85754d );
+
-
background-image: -ms-linear-gradient(#4b2e84, #85754d );
+
-
background-image: linear-gradient(#4b2e84, #85754d );
+
-
-moz-border-radius: 6px;
+
-
-webkit-border-radius: 6px;
+
-
border-radius: 6px;
+
-
-moz-box-shadow: 0 1px 1px #fff, 0 1px 0 #666 inset;
+
-
-webkit-box-shadow: 0 1px 1px #fff, 0 1px 0 #666 inset;
+
-
box-shadow: 0 1px 1px #fff, 0 1px 0 #666 inset;
+
-
                display: inline-block;
+
-
                white-space: nowrap;
+
-
}
+
-
+
-
#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;
+
-
}
+
-
+
-
#igemuwmenu a {
+
-
padding: 12px 20px;
+
-
color: #dfb42c;
+
-
text-transform: uppercase;
+
-
font: bold 11.4px Arial, Helvetica;
+
-
text-decoration: none;
+
-
text-shadow: 0 1px 0 #000;
+
-
                display: inline-block;
+
-
                white-block: nowrap;
+
-
}
+
-
       
+
-
    #igemuwmenu li:hover > a {
+
-
color: #fafafa;
+
-
}
+
-
+
-
*html #igemuwmenu li a:hover { /* IE6 only */
+
-
color: #fafafa;
+
-
}
+
-
+
-
#igemuwmenu ul {
+
-
margin: 20px 0 0 0;
+
-
_margin: 0; /*IE6 only*/
+
-
opacity: 0;
+
-
visibility: hidden;
+
-
position: absolute;
+
-
top: 38px;
+
-
left: 0;
+
-
z-index: 1;   
+
-
background: #fff;
+
-
background: -moz-linear-gradient(#4b2e84, #85754d );
+
-
background-image: -webkit-gradient(linear, left top, left bottom, from(#4b2e84), to(#85754d ));
+
-
background: -webkit-linear-gradient(#4b2e84, #85754d );   
+
-
background: -o-linear-gradient(#4b2e84, #85754d );
+
-
background: -ms-linear-gradient(#4b2e84, #85754d );
+
-
background: linear-gradient(#4b2e84, #85754d );
+
-
-moz-box-shadow: 0 -1px rgba(255,255,255,1);
+
-
-webkit-box-shadow: 0 -1px 0 rgba(255,255,255,1);
+
-
box-shadow: 0 -1px 0 rgba(255,255,255,1);
+
-
-moz-border-radius: 3px;
+
-
-webkit-border-radius: 3px;
+
-
border-radius: 3px;
+
-
-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; 
+
-
}
+
-
#igemuwmenu li:hover > ul {
+
  #igemuwmenu:before,
-
opacity: 1;
+
  #igemuwmenu:after {
-
visibility: visible;
+
    content: "";
-
margin: 0;
+
    display: table;
-
}
+
  }
-
+
-
#igemuwmenu ul ul {
+
-
top: 0;
+
-
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);
+
-
}
+
-
+
-
#igemuwmenu ul li {
+
-
float: none;
+
-
display: block;
+
-
border: 0;
+
-
_line-height: 0; /*IE6 only*/
+
-
-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.active {
+
-
float: none;
+
-
display: block;
+
-
border: 0;
+
-
_line-height: 0; /*IE6 only*/
+
-
-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:after {
-
#igemuwmenu ul li:last-child {    
+
    clear: both;
-
-moz-box-shadow: none;
+
  }
-
-webkit-box-shadow: none;
+
-
box-shadow: none;   
+
-
}
+
-
+
-
#igemuwmenu ul a {   
+
-
padding: 10px;
+
-
width: 130px;
+
-
_height: 10px; /*IE6 only*/
+
-
display: block;
+
-
white-space: nowrap;
+
-
float: none;
+
-
text-transform: none;
+
-
}
+
-
     
+
-
        #igemuwmenu ul a.selected {  
+
-
padding: 10px;
+
-
width: 130px;
+
-
_height: 10px; /*IE6 only*/
+
-
display: block;
+
-
white-space: nowrap;
+
-
float: none;
+
-
text-transform: none;
+
-
}
+
-
+
-
#igemuwmenu ul a:hover {
+
-
background-color: #785D84;
+
-
background-image: -moz-linear-gradient(#94749a,  #785D84);
+
-
background-image: -webkit-gradient(linear, left top, left bottom, from(#94749a), to(#785D84));
+
-
background-image: -webkit-linear-gradient(#94749a, #785D84);
+
-
background-image: -o-linear-gradient(#94749a, #785D84);
+
-
background-image: -ms-linear-gradient(#94749a, #785D84);
+
-
background-image: linear-gradient(#94749a, #785D84);
+
-
}
+
-
#igemuwmenu ul li:first-child > a {
+
  #igemuwmenu {
-
-moz-border-radius: 3px 3px 0 0;
+
    zoom:1;
-
-webkit-border-radius: 3px 3px 0 0;
+
  }
-
border-radius: 3px 3px 0 0;
+
-
}
+
-
+
-
#igemuwmenu ul li:first-child > a:after {
+
-
content: '';
+
-
position: absolute;
+
-
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) {
+
  #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;
 +
  }
-
/* nav-wrap */
+
  #igemuwmenu a {
-
#igemuwmenu-wrap {
+
    padding: 12px 20px;
-
position: relative;
+
    color: #b7a57a;
-
}
+
    text-transform: uppercase;
 +
    font: bold 11.4px Arial, Helvetica;
 +
    text-decoration: none;
 +
    text-shadow: 0 1px 0 #000;
 +
    display: inline-block;
 +
    white-block: nowrap;
 +
  }
-
#igemuwmenu-wrap * {
+
  #igemuwmenu li:hover > a {
-
-moz-box-sizing: border-box;
+
    color: #fafafa;
-
-webkit-box-sizing: border-box;
+
  }
-
box-sizing: border-box;
+
-
}
+
-
/* menu icon */
+
  *html #igemuwmenu li a:hover { /* IE6 only */
-
#igemuwmenu-trigger {
+
    color: #fafafa;
-
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 {
+
  #igemuwmenu ul {
-
content: '';
+
    margin: 20px 0 0 0;
-
position: absolute;
+
    _margin: 0; /*IE6 only*/
-
left: 25px;
+
    opacity: 0;
-
top: -8px;
+
    visibility: hidden;
-
border-left: 8px solid transparent;
+
    position: absolute;
-
border-right: 8px solid transparent;
+
    top: 38px;
-
border-bottom: 8px solid #2E0854;
+
    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;
 +
  }
-
#igemuwmenu ul {
+
  #igemuwmenu li:hover > ul {
-
position: static;
+
    opacity: 1;
-
visibility: visible;
+
    visibility: visible;
-
opacity: 1;
+
    margin: 0;
-
margin: 0;
+
  }
-
background: none;
+
-
-moz-box-shadow: none;
+
-
-webkit-box-shadow: none;
+
-
box-shadow: none;
+
-
}
+
-
#igemuwmenu ul ul {
+
  #igemuwmenu ul ul {
-
margin: 0 0 0 20px !important;
+
    top: 0;
-
-moz-box-shadow: none;
+
    left: 150px;
-
-webkit-box-shadow: none;
+
    margin: 0 0 0 20px;
-
box-shadow: none;
+
    _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);
 +
  }
-
#igemuwmenu li {
+
  #igemuwmenu ul li {
-
position: static;
+
    float: none;
-
display: block;
+
    display: block;
-
float: none;
+
    border: 0;
-
border: 0;
+
    _line-height: 0; /*IE6 only*/
-
margin: 5px;
+
    -moz-box-shadow: 0 1px 0 #b7a57a, 0 2px 0 #b7a57a;
-
-moz-box-shadow: none;
+
    -webkit-box-shadow: 0 1px 0 #b7a57a, 0 2px 0 #b7a57a;
-
-webkit-box-shadow: none;
+
    box-shadow: 0 1px 0 #b7a57a, 0 2px 0 #b7a57a;   
-
box-shadow: none;
+
  }
-
}
+
  #igemuwmenu ul li.active {
 +
    float: none;
 +
    display: block;
 +
    border: 0;
 +
    _line-height: 0; /*IE6 only*/
 +
    -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{
+
  #igemuwmenu ul li:last-child {
-
margin-left: 20px;
+
    -moz-box-shadow: none;
-
-moz-box-shadow: none;
+
    -webkit-box-shadow: none;
-
-webkit-box-shadow: none;
+
    box-shadow: none;
-
box-shadow: none;
+
  }
-
}
+
-
#igemuwmenu a{
+
  #igemuwmenu ul a {
-
display: block;
+
    padding: 10px;
-
float: none;
+
    width: 130px;
-
padding: 0;
+
    _height: 10px; /*IE6 only*/
-
color: #fff;
+
    display: block;
-
}
+
    white-space: nowrap;
 +
    float: none;
 +
    text-transform: none;
 +
  }
-
#igemuwmenu a:hover{
+
  #igemuwmenu ul a.selected {
-
color: #FFFFFF;
+
    padding: 10px;
-
}
+
    width: 130px;
 +
    _height: 10px; /*IE6 only*/
 +
    display: block;
 +
    white-space: nowrap;
 +
    float: none;
 +
    text-transform: none;
 +
  }
-
#igemuwmenu ul a{
+
  #igemuwmenu ul a:hover {
-
padding: 0;
+
    background-color: #785D84;
-
width: auto;
+
    background-image: -moz-linear-gradient(#94749a,  #785D84);
-
}
+
    background-image: -webkit-gradient(linear, left top, left bottom, from(#94749a), to(#785D84));
 +
    background-image: -webkit-linear-gradient(#94749a, #785D84);
 +
    background-image: -o-linear-gradient(#94749a, #785D84);
 +
    background-image: -ms-linear-gradient(#94749a, #785D84);
 +
    background-image: linear-gradient(#94749a, #785D84);
 +
  }
-
#igemuwmenu ul a:hover{
+
  #igemuwmenu ul li:first-child > a {
-
background: none;
+
    -moz-border-radius: 3px 3px 0 0;
-
}
+
    -webkit-border-radius: 3px 3px 0 0;
 +
    border-radius: 3px 3px 0 0;
 +
  }
-
#igemuwmenu ul li:first-child a:after,
+
  #igemuwmenu ul li:first-child > a:after {
-
#igemuwmenu ul ul li:first-child a:after {
+
    content: '';
-
border: 0;
+
    position: absolute;
-
}
+
    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;
 +
  }
-
@media screen and (min-width: 600px) {
+
  #igemuwmenu ul li:first-child a:hover:after {
-
#igemuwmenu {
+
    border-bottom-color: #2E0854;
-
display: block !important;
+
  }
-
}
+
-
}
+
-
/* iPad */
+
  #igemuwmenu ul li:last-child > a {
-
.no-transition {
+
    -moz-border-radius: 0 0 3px 3px;
-
-webkit-transition: none;
+
    -webkit-border-radius: 0 0 3px 3px;
-
-moz-transition: none;
+
    border-radius: 0 0 3px 3px;
-
-ms-transition: none;
+
  }
-
-o-transition: none;
+
-
transition: none;
+
-
opacity: 1;
+
-
visibility: visible;
+
-
display: none;
+
-
}
+
-
#igemuwmenu li:hover > .no-transition {
+
  /* Mobile */
-
display: block;
+
  #igemuwmenu-trigger {
-
}
+
    display: none;
-
+
  }
-
</style>
+
-
<!--main content -->
+
  @media screen and (max-width: 600px) {
-
<table width="70%" align="center">
+
 +
    /* nav-wrap */
 +
    #igemuwmenu-wrap {
 +
      position: relative;
 +
    }
-
<!--welcome box -->
+
    #igemuwmenu-wrap * {
-
<tr>
+
      -moz-box-sizing: border-box;
 +
      -webkit-box-sizing: border-box;
 +
      box-sizing: border-box;
 +
    }
-
<div class="centerImageDiv">
+
    /* menu icon */
-
  <body><a href="https://2014.igem.org/Team:Washington"><img class="centerImg" src="https://static.igem.org/mediawiki/2014/f/fc/Washington_banner5.jpg" width="900" ></a></body>
+
    #igemuwmenu-trigger {
-
<p style="position: absolute; top: 5em; right: 20; width: 400px; padding: 4px; background-color: transparent; font-weight: bold; font-size: 30px; color: #FFFFFF;">
+
      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;
 +
    }
-
University of Washington iGEM 2014
+
    /* main nav */
-
</p>
+
    #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;
 +
    }
-
</div>
+
    #igemuwmenu:after {
 +
      content: '';
 +
      position: absolute;
 +
      left: 25px;
 +
      top: -8px;
 +
      border-left: 8px solid transparent;
 +
      border-right: 8px solid transparent;
 +
      border-bottom: 8px solid #2E0854;
 +
    }
-
</div>
+
    #igemuwmenu ul {
-
</tr>
+
      position: static;
 +
      visibility: visible;
 +
      opacity: 1;
 +
      margin: 0;
 +
      background: none;
 +
      -moz-box-shadow: none;
 +
      -webkit-box-shadow: none;
 +
      box-shadow: none;
 +
    }
-
<tr> <td colspan="3"  height="5px"> </td></tr>
+
    #igemuwmenu ul ul {
-
<!-- end welcome box -->
+
      margin: 0 0 0 20px !important;
-
<tr>
+
      -moz-box-shadow: none;
 +
      -webkit-box-shadow: none;
 +
      box-shadow: none;
 +
    }
-
<!--navigation menu -->
+
    #igemuwmenu li {
-
<td align="left" colspan="3">
+
      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>
-
<table  width="100%">
+
<!--              -->
-
<tr heigth="15px"></tr>
+
<!-- Main Content -->
-
<tr heigth="75px">  
+
<!--              -->
-
<nav id="igemuwmenu-wrap">  
+
<body>
-
<ul id="igemuwmenu">
+
  <!-- Table for the entire content (to split it vertically, weird) -->
 +
  <table align="center">
-
<li><a href="https://2014.igem.org/Team:Washington">Home</a>
+
  <!-- Banner  -->
-
<ul>
+
    <tr> <center>
-
<li><a href="https://2014.igem.org/Team:Washington">UW 2014</a></li>
+
    <img src="https://static.igem.org/mediawiki/2014/6/61/Banner-Wiki.png" width="1100" height="338" usemap="#linkmap">
-
<li><a href="https://2013.igem.org/Team:Washington">UW 2013</a></li>
+
  <map name="linkmap">
-
<li><a href="https://2012.igem.org/Team:Washington">UW 2012</a></li>
+
  <area shape="rect" coords="80,140,350,250" href="http://www.washington.edu" target="_blank" alt="UW Homepage">
-
<li><a href="https://2011.igem.org/Team:Washington">UW 2011</a></li>
+
<area shape="rect" coords="750,110,980,260" href="http://www.igem.org" target="_blank" alt="Official iGEM website">
-
<li><a href="https://2010.igem.org/Team:Washington">UW 2010</a></li>
+
  </map>
-
<li><a href="https://2009.igem.org/Team:Washington">UW 2009</a></li>
+
    </center>
-
<li><a href="https://2008.igem.org/Team:University_of_Washington">UW 2008</a></li>
+
    </tr>
-
<li><a href="https://2013.igem.org/Main_Page">iGEM Homepage</a></li>
+
-
</ul>
+
-
</li>
+
-
<li>
+
    <!-- Spacer -->
-
<a href="https://2014.igem.org/Team:Washington/Our_Project">Our Project</a>
+
    <tr>
-
<ul>
+
      <td colspan="3" height="5px"></td>
-
<li><a href="https://2014.igem.org/Team:Washington/Our_Project#Background">Background</a></li>
+
    </tr>
-
<li><a href="https://2014.igem.org/Team:Washington/Our_Project#Systems">Our Systems</a></li>
+
-
<li><a href="https://2014.igem.org/Team:Washington/Our_Project#Methods">Methods</a></li>
+
-
<li><a href="https://2014.igem.org/Team:Washington/Our_Project#Results">Results</a></li>
+
-
<li><a href="https://2014.igem.org/Team:Washington/Our_Project#Future">Future Plans</a></li>
+
-
<li><a href="https://2014.igem.org/Team:Washington/Our_Project#Parts">Parts Submitted</a></li>
+
-
<li><a href="https://2014.igem.org/Team:Washington/Our_Project#Sources">Scientific Sources</a></li>
+
-
</ul>
+
-
</li>
+
-
<li>
+
    <!-- Navigation Bar -->
-
<a href="https://2014.igem.org/Team:Washington/Extra">Extra</a>
+
    <tr>
-
<ul>
+
      <td align="left" colspan="3">
-
<li><a href="https://2014.igem.org/Team:Washington/Extra#Background">Background</a></li>
+
        <table  width="100%">
-
<li><a href="https://2014.igem.org/Team:Washington/Extra#Features">Features</a></li>
+
          <tr heigth="15px"></tr>
-
<li><a href="https://2014.igem.org/Team:Washington/Extra#Experiments">Experiments</a></li>
+
          <tr heigth="75px">
-
<li><a href="https://2014.igem.org/Team:Washington/Extra#Sources">Sources</a></li>
+
            <nav id="igemuwmenu-wrap">
-
</ul>
+
              <ul id="igemuwmenu">
-
</li>
+
                <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>
+
                <li>
-
<a href="https://2014.igem.org/Team:Washington/Outreach">Outreach</a>
+
                  <a href="https://2014.igem.org/Team:Washington/BioBricks">BioBricks</a>
 +
                </li>
-
</li>
+
                <li>
 +
                  <a href="https://2014.igem.org/Team:Washington/Outreach">Outreach</a>
 +
                </li>
-
<li>
+
                <li>
-
<a href="https://2014.igem.org/Team:Washington/Protocols">Protocols</a>
+
                  <a href="https://2014.igem.org/Team:Washington/Protocols">Protocols</a>
-
</li>
+
                </li>
-
<li>
+
                <li>
-
<a href="https://2014.igem.org/Team:Washington/Safety">Safety</a>
+
                  <a href="https://2014.igem.org/Team:Washington/Safety">Safety</a>
-
</li>
+
                  <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>
-
<li>
+
<!--            -->
-
<a href="https://2014.igem.org/Team:Washington/Our_Team">Our Team</a>
+
<!-- Javascript -->
-
</li>
+
<!--            -->
-
                                                                                               
+
-
</ul>
+
-
</nav>
+
 +
  <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;
 +
          });
 +
        });
 +
      }
 +
      }
 +
      });
-
<!--safety content-->
+
    // use the first element that is "scrollable"
-
</tr>
+
    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 [];
 +
    }
-
</table>
+
    });
 +
</script>
</html>
</html>

Latest revision as of 03:55, 18 October 2014

UW Homepage Official iGEM website