Difference between revisions of "Template:BABS UNSW Australia"

(v0.1)
Line 7: Line 7:
 
<style type="text/css">
 
<style type="text/css">
  
/* PAGE LAYOUT */
+
@import url("reset.css");
 +
@import url(http://fonts.googleapis.com/css?family=Montserrat:400,700);
  
/* Change Background color*/
+
/* navbar, need to fix centering, appearance on mobile devices??? */
body {  
+
#cssmenu,
background-color: #fff;
+
#cssmenu ul,
}
+
#cssmenu ul li,
 +
#cssmenu ul li a,
 +
#cssmenu #menu-button {
 +
  margin: 0;
 +
  padding: 0;
 +
  border: 0;
 +
  list-style: none;
 +
  line-height: 1;
 +
  display: block;
 +
  position: relative;
 +
  -webkit-box-sizing: border-box;
 +
  -moz-box-sizing: border-box;
 +
  box-sizing: border-box;
 +
  text-align: center;
 +
  z-index:1;
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
 
 +
}
  
/* Creates a container that will wrap all of the content inside your wiki pages. */
+
#cssmenu ul {
#mainContainer {
+
width: 978px;
+
overflow:hidden;
+
float:left;
+
margin-left:20px;
+
margin-bottom: 10px;
+
background-color: #fff;
+
border-bottom: 14px solid #565656;
+
border-right: 2px solid #565656;
+
border-left: 2px solid #565656;
+
border-top: 2px solid #565656;
+
font-family: "Trebuchet MS", Helvetica, sans-serif;
+
}
+
  
/* Creates the container for the menu */
+
max-width:400px;
#menuContainer  {  
+
margin: 0 auto;
float:left;
+
width: 134px;
+
}
padding: 20px 0px;
+
#cssmenu:after,
border-top: 14px solid #565656;
+
#cssmenu > ul:after {
background-color: #E8E8E9;
+
  content: ".";
}
+
  display: block;
 +
  clear: both;
 +
  visibility: hidden;
 +
  line-height: 0;
 +
  height: 0;
 +
 
 +
}
 +
#cssmenu #menu-button {
 +
  display: none;
 +
}
 +
#cssmenu {
 +
  font-family: Montserrat, sans-serif;
 +
  /*background: #C28D5B;*/
 +
  background: #006E90;
 +
  /*border-style: solid;
 +
  border-width: 1px;*/
 +
  text-align:center;
 +
  opacity: 1.0;
 +
 
 +
 
 +
}
 +
#cssmenu > ul > li {
 +
  float: left;
 +
}
 +
#cssmenu.align-center > ul {
 +
  font-size: 0;
 +
  text-align: center;
 +
}
 +
#cssmenu.align-center > ul > li {
 +
  display: inline-block;
 +
  float: none;
 +
}
 +
#cssmenu.align-center ul ul {
 +
  text-align: left;
 +
}
 +
#cssmenu.align-right > ul > li {
 +
  float: right;
 +
}
 +
#cssmenu > ul > li > a {
 +
  padding: 17px;
 +
  font-size: 12px;
 +
  letter-spacing: 1px;
 +
  text-decoration: none;
 +
  color: #ffffff;
 +
  font-weight: 700;
 +
  text-transform: uppercase;
 +
}
 +
#cssmenu > ul > li:hover > a {
 +
  color: #ffffff;
  
/* Creates the container for the content */
+
}
#contentContainer {
+
#cssmenu > ul > li.has-sub > a {
padding-top:20px;
+
  padding-right: 30px;
padding-right:10px;
+
}
margin-bottom: 20px;
+
#cssmenu > ul > li.has-sub > a:after {
width: 814px;
+
  position: absolute;
padding-left: 20px;
+
  top: 22px;
float: left;
+
  right: 11px;
background-color: #fff;  
+
  width: 8px;
border-top: 14px solid #565656;
+
  height: 2px;
font-family: "Trebuchet MS", Helvetica, sans-serif;
+
  display: block;
}
+
  background: #dddddd;
 +
  content: '';
 +
}
 +
#cssmenu > ul > li.has-sub > a:before {
 +
  position: absolute;
 +
  top: 19px;
 +
  right: 14px;
 +
  display: block;
 +
  width: 2px;
 +
  height: 8px;
 +
  background: #dddddd;
 +
  content: '';
 +
  -webkit-transition: all .25s ease;
 +
  -moz-transition: all .25s ease;
 +
  -ms-transition: all .25s ease;
 +
  -o-transition: all .25s ease;
 +
  transition: all .25s ease;
 +
}
 +
#cssmenu > ul > li.has-sub:hover > a:before {
 +
  top: 23px;
 +
  height: 0;
  
/*Set up height place holder for the banner*/
+
}
#bannerContainer {
+
#cssmenu ul ul {
height:200px;
+
  position: absolute;
margin:auto;
+
  left: -9999px;
text-align:center;
+
}
color: #24B694;
+
#cssmenu.align-right ul ul {
                                background: url(https://static.igem.org/mediawiki/2015/a/ae/Team_BABS_UNSW_Australia_banner.jpg);
+
  text-align: right;
}
+
}
 +
#cssmenu ul ul li {
 +
  height: 0;
 +
  -webkit-transition: all .25s ease;
 +
  -moz-transition: all .25s ease;
 +
  -ms-transition: all .25s ease;
 +
  -o-transition: all .25s ease;
 +
  transition: all .25s ease;
 +
}
 +
#cssmenu li:hover > ul {
 +
  left: auto;
  
/*VISUAL STYLE (TABLES, FONTS, LINKS, IMAGES, UL) */
+
 
 +
}
 +
#cssmenu.align-right li:hover > ul {
 +
  left: auto;
 +
  right: 0;
  
/*Change the styling of text for everything inside main container*/
+
}
#mainContainer p {  
+
#cssmenu li:hover > ul > li {
font-size: 13px;
+
  height: 35px;
color: #000000;
+
}
}
+
#cssmenu ul ul ul {
+
  margin-left: 100%;
/*This changes the color and font family */
+
  top: 0;
#contentContainer h1, h2, h3, h4, h5, h6 {
+
}
color: #565656;
+
#cssmenu.align-right ul ul ul {
border-bottom: none;
+
  margin-left: 0;
font-weight: bold;
+
  margin-right: 100%;
font-family: "Trebuchet MS", Helvetica, sans-serif;
+
}
margin-top:10px;
+
#cssmenu ul ul li a {
}
+
  border-bottom: 1px solid rgba(150, 150, 150, 0.15);
 +
  padding: 11px 15px;
 +
  width: 170px;
 +
  font-size: 12px;
 +
  text-decoration: none;
 +
  color: #dddddd;
 +
  font-weight: 400;
 +
  background: #333333;
 +
}
 +
#cssmenu ul ul li:last-child > a,
 +
#cssmenu ul ul li.last-item > a {
 +
  border-bottom: 0;
 +
}
 +
#cssmenu ul ul li:hover > a,
 +
#cssmenu ul ul li a:hover {
 +
  color: #ffffff;
  
/*Style of the links - links are different inside the menu */
+
}
#contentContainer a {  
+
#cssmenu ul ul li.has-sub > a:after {
font-weight: bold;
+
  position: absolute;
color: #23b593;
+
  top: 16px;
}
+
  right: 11px;
 +
  width: 8px;
 +
  height: 2px;
 +
  display: block;
 +
  background: #dddddd;
 +
  content: '';
 +
}
 +
#cssmenu.align-right ul ul li.has-sub > a:after {
 +
  right: auto;
 +
  left: 11px;
 +
}
 +
#cssmenu ul ul li.has-sub > a:before {
 +
  position: absolute;
 +
  top: 13px;
 +
  right: 14px;
 +
  display: block;
 +
  width: 2px;
 +
  height: 8px;
 +
  background: #dddddd;
 +
  content: '';
 +
  -webkit-transition: all .25s ease;
 +
  -moz-transition: all .25s ease;
 +
  -ms-transition: all .25s ease;
 +
  -o-transition: all .25s ease;
 +
  transition: all .25s ease;
  
  /* Styling links on hover- links are different inside the menu */
+
}
#contentContainer a:hover {  
+
#cssmenu.align-right ul ul li.has-sub > a:before {
color: #59bf92;
+
  right: auto;
}
+
  left: 14px;
 +
}
 +
#cssmenu ul ul > li.has-sub:hover > a:before {
 +
  top: 17px;
 +
  height: 0;
  
/*Change the styling of tables */
+
}
        #contentContainer table {
+
@media all and (max-width: 768px), only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min--moz-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (-o-min-device-pixel-ratio: 2/1) and (max-width: 1024px), only screen and (min-device-pixel-ratio: 2) and (max-width: 1024px), only screen and (min-resolution: 192dpi) and (max-width: 1024px), only screen and (min-resolution: 2dppx) and (max-width: 1024px) {
    border: 1px solid #565656;
+
  #cssmenu {
    border-collapse: collapse;
+
    width: 100%;
    width: 90%
+
  }
    margin: auto;
+
  #cssmenu ul {
    margin-bottom: 15px;
+
    width: 100%;
    margin-top: 15px;
+
    display: none;
    margin-right: 10px;
+
    margin-left: 10px;
+
    }
+
  
/*Change the styling of table cells*/
+
  }
    #contentContainer  td {
+
  #cssmenu.align-center > ul {
    padding: 10px;
+
    text-align: left;
    border: 1px solid #565656;
+
  }
    border-collapse: collapse;
+
  #cssmenu ul li {
    vertical-align: text-top;
+
    width: 100%;
    }
+
    border-top: 1px solid rgba(120, 120, 120, 0.2);
 +
  }
 +
  #cssmenu ul ul li,
 +
  #cssmenu li:hover > ul > li {
 +
    height: auto;
 +
border-style: solid;
 +
border-width: 1px;
 +
  }
 +
  #cssmenu ul li a,
 +
  #cssmenu ul ul li a {
 +
    width: 100%;
 +
    border-bottom: 0;
 +
  }
 +
  #cssmenu > ul > li {
 +
    float: none;
 +
  }
 +
  #cssmenu ul ul li a {
 +
    padding-left: 25px;
 +
  }
 +
  #cssmenu ul ul ul li a {
 +
    padding-left: 35px;
 +
  }
 +
  #cssmenu ul ul li a {
 +
    color: #dddddd;
 +
    background: none;
 +
  }
 +
  #cssmenu ul ul li:hover > a,
 +
  #cssmenu ul ul li.active > a {
 +
    color: #ffffff;
  
/*Change the styling of table headers */
+
  }
    #contentContainer th {
+
  #cssmenu ul ul,
    background-color: #E8E8E9;
+
  #cssmenu ul ul ul,
    padding: 10px;
+
  #cssmenu.align-right ul ul {
    border: 1px solid #565656;
+
    position: relative;
    border-collapse: collapse;
+
    left: 0;
    vertical-align: text-top;
+
    width: 100%;
    }
+
    margin: 0;
 +
    text-align: left;
 +
  }
 +
  #cssmenu > ul > li.has-sub > a:after,
 +
  #cssmenu > ul > li.has-sub > a:before,
 +
  #cssmenu ul ul > li.has-sub > a:after,
 +
  #cssmenu ul ul > li.has-sub > a:before {
 +
    display: none;
 +
  }
 +
  #cssmenu #menu-button {
 +
    display: block;
 +
    padding: 17px;
 +
    color: #dddddd;
 +
    cursor: pointer;
 +
    font-size: 12px;
 +
    text-transform: uppercase;
 +
    font-weight: 700;
 +
  }
 +
  #cssmenu #menu-button:after {
 +
    position: absolute;
 +
    top: 22px;
 +
    right: 17px;
 +
    display: block;
 +
    height: 4px;
 +
    width: 20px;
 +
    border-top: 2px solid #dddddd;
 +
    border-bottom: 2px solid #dddddd;
 +
    content: '';
 +
  }
 +
  #cssmenu #menu-button:before {
 +
    position: absolute;
 +
    top: 16px;
 +
    right: 17px;
 +
    display: block;
 +
    height: 2px;
 +
    width: 20px;
 +
    background: #dddddd;
 +
    content: '';
 +
  }
 +
  #cssmenu #menu-button.menu-opened:after {
 +
    top: 23px;
 +
    border: 0;
 +
    height: 2px;
 +
    width: 15px;
 +
    background: #ffffff;
 +
    -webkit-transform: rotate(45deg);
 +
    -moz-transform: rotate(45deg);
 +
    -ms-transform: rotate(45deg);
 +
    -o-transform: rotate(45deg);
 +
    transform: rotate(45deg);
 +
  }
 +
  #cssmenu #menu-button.menu-opened:before {
 +
    top: 23px;
 +
    background: #ffffff;
 +
    width: 15px;
 +
    -webkit-transform: rotate(-45deg);
 +
    -moz-transform: rotate(-45deg);
 +
    -ms-transform: rotate(-45deg);
 +
    -o-transform: rotate(-45deg);
 +
    transform: rotate(-45deg);
 +
  }
 +
  #cssmenu .submenu-button {
 +
    position: absolute;
 +
    z-index: 99;
 +
    right: 0;
 +
    top: 0;
 +
    display: block;
 +
    border-left: 1px solid rgba(120, 120, 120, 0.2);
 +
    height: 46px;
 +
    width: 46px;
 +
    cursor: pointer;
 +
  }
 +
  #cssmenu .submenu-button.submenu-opened {
 +
    background: #262626;
 +
  }
 +
  #cssmenu ul ul .submenu-button {
 +
    height: 34px;
 +
    width: 34px;
 +
  }
 +
  #cssmenu .submenu-button:after {
 +
    position: absolute;
 +
    top: 22px;
 +
    right: 19px;
 +
    width: 8px;
 +
    height: 2px;
 +
    display: block;
 +
    background: #dddddd;
 +
    content: '';
 +
  }
 +
  #cssmenu ul ul .submenu-button:after {
 +
    top: 15px;
 +
    right: 13px;
 +
  }
 +
  #cssmenu .submenu-button.submenu-opened:after {
 +
    background: #ffffff;
 +
  }
 +
  #cssmenu .submenu-button:before {
 +
    position: absolute;
 +
    top: 19px;
 +
    right: 22px;
 +
    display: block;
 +
    width: 2px;
 +
    height: 8px;
 +
    background: #dddddd;
 +
    content: '';
 +
  }
 +
  #cssmenu ul ul .submenu-button:before {
 +
    top: 12px;
 +
    right: 16px;
 +
  }
 +
  #cssmenu .submenu-button.submenu-opened:before {
 +
    display: none;
 +
  }
 +
}
  
 +
#navbar.img {
 +
opacity = 0.3;
  
 +
}
 +
#navbar.img:hover {
 +
    opacity: 1.0;
 +
 +
}
  
/*MENU STYLING */
+
/*img {
 +
opacity: 0.3
 +
}
 +
img:hover {
 +
opacity: 1.0;
 +
}*/
  
/*Styling for the links in the menu */
+
header {
#menuContainer a {
+
    float: left;
color: #565656;
+
    /*height: 150px;*/
text-decoration:none;
+
    width: 100%;
font-weight: bold;
+
background-size: 100% 100%;
}
+
/*background: url(https://static.igem.org/mediawiki/2015/a/ae/Team_BABS_UNSW_Australia_banner.jpg);*/
 +
/*background: url(../ESB_bg.png);*/
 +
background-repeat:no-repeat;
 +
background-position: center;
 +
opacity: 1.0;
 +
/*border-style: solid;
 +
border-width: 1px;*/
 +
/*box-shadow: 10px 10px 5px #888888;*/
 +
/*margin-bottom:20px;*/
  
/* Sets the style for lists inside menuContainer  */
+
}
#menuContainer ul {
+
list-style: none;
+
margin-left:0px;
+
}
+
  
/*Styles the list items to become menu buttons */
+
body {
#menuContainer ul li {  
+
height: auto;
text-align: center;
+
width: auto;
display: block;
+
/*background: #C28D5B;*/
width: 100%;
+
background: #F18F01;
height:30px;
+
}
padding-top:10px;
+
}
+
  
/*For the menu buttons, changes the color when hovering*/
+
#content {
#menuContainer li:hover {
+
width:75%;
color: #FFF;
+
min-height:1000px;
background-color: #24B694;
+
/*background: #ADCAD6;*/
}
+
background: #ffffff;
 +
margin:0px auto;
 +
margin-top:80px;
 +
margin-bottom:50px;
 +
border-radius: 15px;
 +
}
  
/*Submenus are not displayed as default*/
+
p {
#menuContainer li ul {
+
    padding: 10px 20px 10px 20px;
display: none;
+
}
padding-top:15px;
+
}
margin-left: -19px;
+
}
+
  
/*Submenus are displayed when hovering the menu button */
+
{
#menuContainer li:hover ul {
+
margin: 0;
/*display: inline-block; */
+
}
display: block;
+
position: absolute;
+
float:right;
+
margin-left: 134px;
+
margin-top:-42px;
+
}
+
  
/*Style the submenu buttons*/
+
#circle {
#menuContainer li ul li{
+
border-radius: 50%;
background-color: #59BF92;  
+
width: 600px;
padding-left:20px;
+
height: 600px;  
padding-right:20px;
+
background: #ffffff;
height:30px;
+
margin: 0px auto;
padding-top:10px;
+
margin-top:80px;
margin-top:-2px;
+
margin-bottom:50px;
color: #565656;
+
width: 150px;
+
/* width and height can be anything, as long as they're equal */
}
+
}
  
/*CLASSES */
+
h1 {  
 
+
    display: block;
/*Clear class for all the pages, adds spacing too*/
+
    font-size: 2em;
.clear{
+
    margin-top: 25px;
clear:both;
+
    margin-bottom: 0.67em;
height: 10px;
+
    margin-left: 0;
}
+
    margin-right: 0;
 
+
    font-weight: bold;
 
+
padding: 0;
/* highlight box for special messages */
+
font-family: Montserrat, sans-serif;
    .highlightBox {
+
color: #006E90;
        width:500px;  
+
        margin:auto;  
+
}
        background-color: #E8E8E9;  
+
margin-bottom: 15px;
+
margin-top: 15px;
+
padding: 15px;
+
padding-top: 5px;
+
    }
+
  
  
 
</style>
 
</style>
 
<!-- End of CSS -->
 
<!-- End of CSS -->
 
 
<!-- Start of the template html elements. -->
 
<div id ="mainContainer"><!--The closing tag for mainContainer should be placed at the bottom of each content page.-->
 
 
 
<div id="bannerContainer">
 
<br><br>
 
 
</div>
 
 
<!-- Start of menu -->
 
<div id="menuContainer">
 
 
<!-- This list is your menu, every list item is a menu button and nested listed become submenu buttons -->
 
<ul>
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia"><li>HOME</li></a>
 
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia/Team"><li>TEAM</li></a>
 
 
<a href="#"><li>PROJECT
 
            <ul>
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia/Description"><li>Description</li></a>
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia/Experiments"><li>Experiments &amp; Protocols</li></a> 
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia/Results"><li>Results</li></a> 
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia/Design"><li>Design</li></a>
 
</ul>
 
</li></a>
 
 
<a href="#"><li>PARTS
 
            <ul>
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia/Parts"><li>Team Parts</li></a>
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia/Basic_Part"><li>Basic Parts</li></a> 
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia/Composite_Part"><li>Composite Parts</li></a>
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia/Part_Collection"><li>Part Collection</li></a> 
 
</ul>
 
</li></a>
 
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia/Notebook"><li>NOTEBOOK</li></a>
 
     
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia/Attributions"><li>ATTRIBUTIONS</li></a>
 
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia/Collaborations"><li>COLLABORATIONS</li></a>
 
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia/Practices"><li>HUMAN PRACTICES</li></a>
 
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia/Safety"><li>SAFETY</li></a>
 
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia/Modeling"><li>MODELING</li></a>
 
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia/Measurement"><li>MEASUREMENT</li></a>
 
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia/Software"><li>SOFTWARE</li></a>
 
 
<a href="https://2015.igem.org/Team:BABS_UNSW_Australia/Entrepreneurship"><li>ENTREPRENEURSHIP</li></a>
 
 
</ul>
 
</div>
 
<!-- End of menu  -->
 
 
<!-- Start of content -->
 
<div id="contentContainer"> <!--The closing tag for contentContainer should be placed at the bottom of each content page.-->
 
</html>
 

Revision as of 03:28, 9 June 2015