Difference between revisions of "Template:Pitt"

Line 4: Line 4:
 
<html>
 
<html>
 
<head>
 
<head>
 +
<script type="text/javascript" src="https://static.igem.org/mediawiki/2015/8/87/Jquery.animate-colors.txt"></script>
 +
 
<script>
 
<script>
 
$(document).ready(function(){
 
$(document).ready(function(){
$("#menuContainer td").hover(function(){
+
 
    $(this).animate({background-color: '#7878ff'}, slow);
+
$("#menuContainer li").hover(
    }, function(){
+
function(){
    $(this).css("background-color", "#172364");
+
$(this).children().stop(true, false).animate({color: '#eac638'}, 250);
 +
},
 +
function(){
 +
$(this).children().stop(true, false).animate({color: '#ffffff'}, 250);
 +
}
 +
);
 +
 
 +
$("#menuContainer > ul > li:has(ul)").hover(
 +
function(){
 +
$(this).children("ul").stop().slideDown(200);
 +
},
 +
function(){
 +
$(this).children("ul").stop().slideUp(200);
 +
}
 +
);
 +
 
 +
$("#menuContainer > ul > li:has(ul)").children("ul").each(function(){
 +
var newWidth = parseInt($(this).parent().css("width")) + parseInt($(this).parent().css("padding-left")) + parseInt($(this).parent().css("padding-right"));
 +
if (newWidth > parseInt($(this).css("width"))){
 +
$(this).css("width", newWidth + 'px');
 +
}
 
});
 
});
 +
 
});
 
});
 
</script>
 
</script>
 
</head>
 
</head>
<!-- Start of CSS-->
+
<style type="text/css">
<style type="text/css">
+
  
/* PAGE LAYOUT */
+
body {
 +
background-color: #ffeca0;
 +
}
  
/* Change Background color*/
+
#content {
body {
+
margin-left: 0px;
                                background: url("https://static.igem.org/mediawiki/2015/7/7a/Bg_page.png") no-repeat center center fixed;
+
margin-right: 0px;
                                background-size: 100% 100%;
+
width: 100%;
}
+
}
  
                        #content {
+
#menuContainer {  
                            margin-left:15px;
+
float:top;
                            margin-right:15px;
+
width: 100%;
                            width: 95%;
+
height 200px;
                        }
+
background-color: #E8E8E9;
/* Creates a container that will wrap all of the content inside your wiki pages. */
+
}
#mainContainer { 
+
width: 100%;
+
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 */
+
#contentContainer {
#menuContainer  {  
+
width: 70%;
float:top;
+
background-color: #dddddd;
width: 100%;
+
font-family: "Trebuchet MS", Helvetica, sans-serif;
                                height 200px;
+
margin-left:15%;
padding: 20px 0px;
+
}
border-top: 14px solid #565656;
+
background-color: #E8E8E9;
+
}
+
  
/* Creates the container for the content */
+
#bannerContainer {
#contentContainer {
+
height:200px;
padding-top:20px;
+
margin:auto;
padding-right:10px;
+
text-align:center;
margin-bottom: 20px;
+
color: #24B694;
width: 100%;
+
}
padding-left: 20px;
+
float: left;
+
background-color: #fff;
+
border-top: 14px solid #565656;
+
font-family: "Trebuchet MS", Helvetica, sans-serif;
+
                                background: url("https://static.igem.org/mediawiki/2015/4/4f/Bg_pitt.png") no-repeat center center fixed;
+
}
+
  
/*Set up height place holder for the banner*/
+
#mainContainer p {  
#bannerContainer {
+
font-size: 13px;
height:200px;
+
color: #000000;
margin:auto;
+
}
text-align:center;
+
color: #24B694;
+
}
+
  
/*VISUAL STYLE (TABLES, FONTS, LINKS, IMAGES, UL) */
+
#contentContainer h1, h2, h3, h4, h5, h6 {
 +
color: #565656;
 +
border-bottom: none;
 +
font-weight: bold;
 +
font-family: "Trebuchet MS", Helvetica, sans-serif;
 +
margin-top:10px;
 +
}
  
/*Change the styling of text for everything inside main container*/
+
#contentContainer a {  
#mainContainer p {
+
font-weight: bold;
font-size: 13px;
+
color: #23b593;
color: #000000;
+
}
}
+
+
/*This changes the color and font family */
+
#contentContainer h1, h2, h3, h4, h5, h6 {  
+
color: #565656;
+
border-bottom: none;
+
font-weight: bold;
+
font-family: "Trebuchet MS", Helvetica, sans-serif;
+
margin-top:10px;
+
}
+
  
/*Style of the links - links are different inside the menu */
+
#contentContainer a:hover {  
#contentContainer a {  
+
color: #59bf92;
font-weight: bold;
+
}
color: #23b593;
+
}
+
  
  /* Styling links on hover- links are different inside the menu */
+
#menuContainer a {
#contentContainer a:hover {  
+
color: #ffffff;
color: #59bf92;
+
text-decoration:none;
}
+
font-weight: bold;
 +
line-height: 40px;
 +
}
  
/*Change the styling of tables */
+
#menuContainer ul {
        #contentContainer table {
+
background-color: #172368;
    border: 1px solid #565656;
+
color: #ffffff;
    border-collapse: collapse;
+
list-style:none;
    width: 90%
+
cursor: pointer;
    margin: auto;
+
margin:0;
    margin-bottom: 15px;
+
}
    margin-top: 15px;
+
    margin-right: 10px;
+
    margin-left: 10px;
+
    }
+
  
/*Change the styling of table cells*/
+
#menuContainer > ul > li {
    #contentContainer  td {
+
display:inline-block;
    padding: 10px;
+
position: relative;
    border: 1px solid #565656;
+
text-align: center;
    border-collapse: collapse;
+
}
    vertical-align: text-top;
+
    }
+
  
/*Change the styling of table headers */
+
#menuContainer > ul > li > ul {
    #contentContainer th {
+
position:absolute;
    background-color: #E8E8E9;
+
left:0;
    padding: 10px;
+
top:40px;
    border: 1px solid #565656;
+
list-style: none;
    border-collapse: collapse;
+
display: none;
    vertical-align: text-top;
+
}
    }
+
  
 +
#menuContainer li {
 +
background-color: #172368;
 +
color: #ffffff;
 +
margin: 0px;
 +
padding: 0px 50px;
 +
white-space: nowrap;
 +
}
  
 +
.clear{
 +
clear: both;
 +
height: 10px;
 +
}
  
/*MENU STYLING */
+
.highlightBox {
 +
width:500px;
 +
margin:auto;
 +
background-color: #E8E8E9;
 +
margin-bottom: 15px;
 +
margin-top: 15px;
 +
padding: 15px;
 +
padding-top: 5px;
 +
}
  
/*Styling for the links in the menu */
+
</style>
#menuContainer a {
+
color: #ffffff;
+
text-decoration:none;
+
font-weight: bold;
+
}
+
  
/*Styles the list items to become menu buttons */
+
<div id="bannerContainer">
#menuContainer td {
+
<br><br>
                                background-color: #173467;
+
<h2> Add a banner to your wiki! </h2>
text-align: center;
+
height:30px;
+
<p>You can make the image 980px  by  200px</p>
padding-top:10px;
+
<p> Remember to call the file: "<i>Team_Pitt_banner.jpg</i>" </p>
}
+
</div>
 
+
/*For the menu buttons, changes the color when hovering*/
+
 
+
 
+
/*Submenus are not displayed as default*/
+
#menuContainer td table {
+
display: none;
+
}
+
 
+
/*Submenus are displayed when hovering the menu button */
+
#menuContainer td:hover table {
+
display: block;
+
position: absolute;
+
                                margin-top:8px;
+
                                margin-left:-4px;
+
                                width:100px;
+
}
+
 
+
/*Style the submenu buttons*/
+
#menuContainer td table tr{
+
background-color: #59BF92;
+
padding-left:20px;
+
padding-right:20px;
+
height:30px;
+
padding-top:10px;
+
margin-top:-2px;
+
color: #565656;
+
width: 150px;
+
}
+
#menuContainer td table tr td{
+
width: 150px;
+
}
+
#menuContainer td table tr td:hover{
+
background-color: #fff;
+
color: #565656;
+
}
+
/*CLASSES */
+
 
+
/*Clear class for all the pages, adds spacing too*/
+
.clear{
+
clear:both;
+
height: 10px;
+
}
+
 
+
 
+
/* highlight box for special messages */
+
    .highlightBox {
+
        width:500px;
+
        margin:auto;
+
        background-color: #E8E8E9;
+
margin-bottom: 15px;
+
margin-top: 15px;
+
padding: 15px;
+
padding-top: 5px;
+
    }
+
 
+
 
+
</style>
+
<!-- End of CSS -->
+
  
 +
<div id="menuContainer">
 +
<ul>
 +
<li>
 +
<a href="https://2015.igem.org/Team:Pitt">HOME</a>
 +
</li>
 +
 +
<li>
 +
<a href="#">Project</a>
  
<!-- Start of the template html elements. -->
+
<ul>
<div id ="mainContainer"><!--The closing tag for mainContainer should be placed at the bottom of each content page.-->
+
<li>
 +
<a href="https://2015.igem.org/Team:Pitt/Project">assdf</a>
 +
</li>
 +
<li>
 +
<a>assdf</a>
 +
</li>
 +
</ul>
 +
</li>
  
 +
<li>
 +
<a href="#">Notebook</a>
  
<div id="bannerContainer">
+
<ul>
<br><br>
+
<li>
<h2> Add a banner to your wiki! </h2>
+
<a href="https://2015.igem.org/Team:Pitt/Project">assdf</a>
+
</li>
<p>You can make the image 980px  by  200px</p>
+
<li>
<p> Remember to call the file: "<i>Team_Pitt_banner.jpg</i>" </p>
+
<a>assdf</a>
</div>
+
</li>
 +
</ul>
 +
</li>
  
<!-- Start of menu -->
+
<li>
<div id="menuContainer">
+
<a href="#">Team</a>
                            <table border="1" style="width:100%;"><tr>
+
                                <td>
+
                                      <a href="https://2015.igem.org/Team:Pitt">HOME</a>
+
                                      <table>
+
                                          <tr><td>assdf</td></tr>
+
                                          <tr><td>assdf</td></tr>
+
                                      </table>
+
                                </td>
+
                                <td><a href="https://2015.igem.org/Team:Pitt/Project">PROJECT</a><table>
+
                                          <tr><td>assdf</td></tr>
+
                                          <tr><td>assdf</td></tr>
+
                                      </table></td>
+
                                <td><a href="https://2015.igem.org/Team:Pitt/Notebook">NOTEBOOK</a><table>
+
                                          <tr><td>assdf</td></tr>
+
                                          <tr><td>assdf</td></tr>
+
                                      </table></td>
+
<td><a href="https://2015.igem.org/Team:Pitt/Team">TEAM</a><table>
+
                                          <tr><td>assdf</td></tr>
+
                                          <tr><td>assdf</td></tr>
+
                                      </table></td>
+
                                <td><a href="https://2015.igem.org/Team:Pitt/Achievements">ACHIEVEMENTS</a><table>
+
                                          <tr><td>assdf</td></tr>
+
                                          <tr><td>assdf</td></tr>
+
                                      </table></td>
+
                                <td><a href="https://2015.igem.org/Team:Pitt/Other">OTHER</a></td>
+
                                <td><a href="https://2015.igem.org/Team:Pitt/Twitter">TWITTER</a></td>
+
                                <td><a href="https://2015.igem.org/">iGEM HOME</a></td>
+
                          </tr></table>
+
<!-- <a href="#"><li>PROJECT
+
           
+
<a href="https://2015.igem.org/Team:Pitt/Description"><li>Description</li></a>
+
<a href="https://2015.igem.org/Team:Pitt/Experiments"><li>Experiments &amp; Protocols</li></a> 
+
<a href="https://2015.igem.org/Team:Pitt/Results"><li>Results</li></a> 
+
<a href="https://2015.igem.org/Team:Pitt/Design"><li>Design</li></a>
+
+
</li></a>
+
  
<a href="#"><li>PARTS
+
<ul>
            <ul>
+
<li>
<a href="https://2015.igem.org/Team:Pitt/Parts"><li>Team Parts</li></a>
+
<a href="https://2015.igem.org/Team:Pitt/Project">assdf</a>
<a href="https://2015.igem.org/Team:Pitt/Basic_Part"><li>Basic Parts</li></a> 
+
</li>
<a href="https://2015.igem.org/Team:Pitt/Composite_Part"><li>Composite Parts</li></a>
+
<li>
<a href="https://2015.igem.org/Team:Pitt/Part_Collection"><li>Part Collection</li></a> 
+
<a>assdf</a>
</ul>
+
</li>
</li></a>
+
</ul>
 +
</li>
  
<a href="https://2015.igem.org/Team:Pitt/Notebook"><li>NOTEBOOK</li></a>
+
<li>
     
+
<a href="#">Achievements</a>
<a href="https://2015.igem.org/Team:Pitt/Attributions"><li>ATTRIBUTIONS</li></a>
+
  
<a href="https://2015.igem.org/Team:Pitt/Collaborations"><li>COLLABORATIONS</li></a>
+
<ul>
 +
<li>
 +
<a href="https://2015.igem.org/Team:Pitt/Project">assdf</a>
 +
</li>
 +
<li>
 +
<a>assdf</a>
 +
</li>
 +
</ul>
 +
</li>
  
<a href="https://2015.igem.org/Team:Pitt/Practices"><li>HUMAN PRACTICES</li></a>
+
<li>
 +
<a href="#">Other</a>
  
<a href="https://2015.igem.org/Team:Pitt/Safety"><li>SAFETY</li></a>
+
<ul>
 +
<li>
 +
<a href="https://2015.igem.org/Team:Pitt/Project">asasdfas dfsdf</a>
 +
</li>
 +
<li>
 +
<a>assdf</a>
 +
</li>
 +
</ul>
 +
</li>
  
<a href="https://2015.igem.org/Team:Pitt/Modeling"><li>MODELING</li></a>
+
<li>
 +
<a href="#">Twitter</a>
  
<a href="https://2015.igem.org/Team:Pitt/Measurement"><li>MEASUREMENT</li></a>
+
<ul>
 +
<li>
 +
<a href="https://2015.igem.org/Team:Pitt/Project">assdf</a>
 +
</li>
 +
<li>
 +
<a>assdf</a>
 +
</li>
 +
</ul>
 +
</li>
  
<a href="https://2015.igem.org/Team:Pitt/Software"><li>SOFTWARE</li></a>
+
<li>
 +
<a href="#">iGEM Home</a>
  
<a href="https://2015.igem.org/Team:Pitt/Entrepreneurship"><li>ENTREPRENEURSHIP</li></a>
+
<ul>
//-->
+
<li>
</div>
+
<a href="https://2015.igem.org/Team:Pitt/Project">assdf</a>
<!-- End of menu  -->
+
</li>
 +
<li>
 +
<a>assdf</a>
 +
</li>
 +
</ul>
 +
</li>
 +
</ul>
 +
 +
</div>
 +
 +
<div id="contentContainer"><!--The closing tag for contentContainer should be placed at the bottom of each content page.-->
  
<!-- Start of content -->
 
<div id="contentContainer"><!--The closing tag for contentContainer should be placed at the bottom of each content page.-->
 
 
</html>
 
</html>

Revision as of 00:07, 22 May 2015



Add a banner to your wiki!

You can make the image 980px by 200px

Remember to call the file: "Team_Pitt_banner.jpg"