Difference between revisions of "Template:UChicago"

 
Line 1: Line 1:
 
<html>
 
<html>
 
+
<head>
 +
<meta name=viewport content="width=device-width, initial-scale=1">
 
<style>
 
<style>
  
Line 6: Line 7:
  
 
#sideMenu, #top_title {display:none;}
 
#sideMenu, #top_title {display:none;}
#content { padding:0px; width:1000px; margin-top:-7px; margin-left:0px;}
+
#content { padding:0px; width:100%; margin-top:-7px; margin-left:0px;}
body {background-color:white; }
+
body {background-color:#ffffff;}
 
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
 
#bodyContent h1, #bodyContent h2, #bodyContent h3, #bodyContent h4, #bodyContent h5 { margin-bottom: 0px; }
  
 
/********************************* MENU ********************************/
 
/********************************* MENU ********************************/
/* Wrapper for the menu */
 
.menu_wrapper {
 
width:150px;
 
height:100vh;
 
position:fixed;
 
padding:0px;
 
float:left;
 
                display: none;
 
background-color:#f2f2f2;
 
text-align:left;
 
}
 
  
/* styling for the menu items */
+
/*Contains the entire page and everything in it*/
.menu_item {
+
.maindiv {
width:100%;
+
background-color:#ffffff;
margin:-2px 0px 0px -20px;
+
min-height:98vh;
padding: 10px 10px;
+
width:100%;
border-bottom: 1px solid #d3d3d3;  
+
position:absolute;
font-weight:bold;
+
display:block;
color:#000000;  
+
}
cursor: pointer;  
+
}
+
  
/* when hovering on a menu item */
+
/*Space reserved for the menubar*/
.menu_item:hover {  
+
#menuspace {
color:#000000;  
+
background-color:none;
background-color: #72c9b6;
+
width:1200px;
}
+
height:48px;
 +
margin:0 auto;
 +
}
  
/* decoration icon for the menu buttons*/
 
.icon {
 
float:right; 
 
font-size:16px;
 
font-weight:bold;
 
}
 
 
/* this is the icon for when the content is collapsed */
 
.plus::before {
 
content: "+";
 
}
 
/* this is the icon for when the content is expanded */
 
.less::before {
 
content: "–";
 
}
 
  
/* styling for the ul that creates the buttons */
+
/*All of the text, images, etc. of our page goes in this div*/
ul.menu_items {
+
.container {
width:100%;
+
/*Padding and margin are a trick to prevent margins collapsing*/
margin-left:0px;  
+
padding-top:1px;
padding:0px;
+
padding-bottom:1px;
list-style: none;  
+
}
+
  
/* styling for the li that are the menu items */
+
margin:9px auto 14px auto;
.menu_items li {
+
position:relative;
width:90%;
+
display:block;
margin-top:-2px;  
+
background-color:white;
padding: 15px 0px 15px 15px ;  
+
width:1200px;
display:block;
+
min-height:80vh;
border-bottom: 1px solid #d3d3d3; 
+
}
text-align:left;
+
font-weight:bold;
+
text-decoration:none;
+
color:#000000;  
+
list-style-type:none;  
+
cursor:pointer;
+
-webkit-transition: all 0.4s ease;  
+
-moz-transition: all 0.4s ease;
+
-ms-transition: all 0.4s ease;
+
-o-transition: all 0.4s ease; transition: all 0.4s ease; 
+
}
+
  
.menu_item a {
+
/*Image section at the top of the page*/
width: 100%;
+
.imagearea {
margin-left: -20px;
+
width:100%;
padding: 11px 90px 12px 20px;
+
text-align:center;
text-decoration: none;
+
height:300px;
color:black;
+
background-color:white;
}
+
margin: -1px auto 15px auto;
 +
}
  
/* When hovering on a menu item */
+
/*When text is used in the imagearea*/
.menu_items li:hover {  
+
.imagearea h1 {
background-color:#72c9b6;
+
font-size:110px;
color: #000000;
+
text-align:center;
}
+
color:white;
 +
}
  
/* styling for the submenus */
+
/*Specifications for image at top of page*/
.submenu {
+
.mainimage {
width:100%;  
+
height:300px;
display: none; 
+
}
font-weight:bold;
+
cursor:pointer;
+
  
}
+
/*Page title*/
 +
.pagetitle {
 +
margin:0 0 20px 50px;
 +
width:1170px;
 +
height:30px;
 +
}
 +
 +
/*Box for content on page*/
 +
.content {
 +
width:1100px;
 +
min-height:100px;
 +
margin:25px auto 25px 50px;
 +
        padding-bottom: 35px;
 +
        display:inline-block;
  
/* moving the margin for the submenu ul list */
+
}
ul.submenu {
+
width: 100%;
+
margin: 10px 0px -11px 0px;
+
list-style: none;
+
}
+
  
/*styling for the submenu buttons */
+
/*Paragraph styling*/
.submenu li {  
+
.p {
width: 100%;
+
font-family:Lato, sans-serif;
margin-left: 10px;
+
font-size:17px;
margin-bottom: 0px;
+
}
}
+
  
 +
/*Paragraph title styling*/
 +
.ptitle {
 +
font-family:Lato, sans-serif;
 +
font-size:20px;
 +
font-weight:700;
 +
        margin:0 auto;
 +
        text-align:center;
 +
        width:50%;
 +
        display:block;
  
/* hover state for the submenu buttons */
+
}
.submenu li a {
+
width: 100%;
+
padding: 5px 10px;
+
display: inline-block;
+
border-bottom: 1px solid #d3d3d3;
+
background-color:white;
+
text-decoration:none;
+
color:#000000;
+
}
+
  
 +
.stitle {
 +
        font-family:Lato, sans-serif;
 +
font-size:18px;
 +
font-weight:700;
  
 +
}
  
.submenu li a:hover  {
+
/*Reference box formatting*/
background-color:#000000;  
+
.references {
color: #72c9b6;
+
position:relative;
}
+
color:blue;
 +
}
  
 +
.refbox {
 +
position:absolute;
 +
bottom:26px;
 +
left:50%;
 +
margin-left:-117px;
 +
width:260px;
 +
padding:10px 15px 10px 15px;
 +
background-color:#99d6ff;
 +
color:black;
 +
visibility:hidden;
 +
font-size:12px;
 +
}
  
/* When the screen is smaller than 680px, the menu has the option to hide/show - this button controls that */
+
.references:hover .refbox {
.collapsable_menu_control {
+
visibility:visible;
width:100%;
+
}
padding: 15px 0px;
+
display:none;
+
background-color:#000000;
+
text-align:center; 
+
font-weight:bold;
+
color:#72c9b6;
+
cursor:pointer;
+
-webkit-transition: all 0.4s ease;
+
-moz-transition: all 0.4s ease;  
+
-ms-transition: all 0.4s ease;
+
-o-transition: all 0.4s ease;
+
transition: all 0.4s ease;
+
}
+
  
/* when hovering on that button */
+
.references:hover {
.collapsable_menu_control:hover {  
+
text-decoration:underline;
background-color: #72c9b6;
+
}
color:#000000; 
+
}
+
  
/********************************* CONTENT OF THE PAGE ********************************/
+
/*Bottom arrow on refbox*/
 +
.references .refbox::after {
 +
content:" ";
 +
position:absolute;
 +
top:100%;
 +
left:112px;
 +
border-width:5px;
 +
border-style:solid;
 +
border-color:#99d6ff transparent transparent transparent;
 +
}
  
/* Wrapper for the content */
+
/*Image formatting*/
.content_wrapper {
+
.floatright {
width: 85%;
+
float:right;
margin-left:150px;
+
background-color:#cce5ff;
padding:10px 0px;  
+
padding:15px;
float:left;  
+
margin-left:10px;
background-color:white;  
+
margin-top:3px;
}
+
margin-bottom:5px;
 +
}
  
/*LAYOUT */
+
.floatleft {
.column  {
+
float:left;
padding: 10px 0px;
+
background-color:#cce5ff;
float:left;  
+
padding:15px;
background-color:white;  
+
margin-right:10px;
}
+
margin-top:3px;
 +
margin-bottom:5px;
 +
}
  
.full_size {
+
.capright {
width:100%;  
+
float:right;
}
+
padding:15px 15px 4px 15px;
 +
background-color:#cce5ff;
 +
text-align:center;
 +
font-family:Lato, sans-serif;
 +
font-size:15px;
 +
margin-top:3px;
 +
margin-left:10px;
 +
margin-bottom:2px;
 +
line-height:23px;
 +
}
  
.full_size img {  
+
.capleft {
padding: 10px 15px;
+
float:left;
width:96.5%;  
+
padding:15px 15px 4px 15px;
}
+
background-color:#cce5ff;
 +
text-align:center;
 +
font-family:Lato, sans-serif;
 +
font-size:15px;
 +
margin-top:3px;
 +
margin-right:10px;
 +
margin-bottom:2px;
 +
line-height:23px;
 +
}
  
.half_size {
+
/*Footer*/
width: 50%;  
+
.footerspace {
}
+
position:fixed;
.half_size img {
+
background-color:#235c81;
padding: 10px 15px;
+
left:50%;
width: 93%;  
+
margin-left:-600px;
}
+
width:1200px;
 +
height:35px;
 +
bottom:-1px;
 +
z-index:50;
 +
}
  
 +
.footerright {
 +
float:right;
 +
margin-right:10px;
 +
}
  
.clear {
+
.footerleft {
clear:both;
+
float:left;
}
+
margin-left:10px;
 +
}
  
.highlight {  
+
.footerleft, .footerright {
width: 90%;  
+
margin-top:7px;
margin: auto;  
+
text-decoration:none;
padding: 15px 5px;
+
font-family:Lato, sans-serif;
background-color: #f2f2f2;  
+
font-size:17px;
}
+
color:white;
 +
}
  
.judges-will-not-evaluate {
+
.footerleft:hover, .footerright:hover {
border: 4px solid #72c9b6;
+
text-decoration:underline;
display: block;
+
}
margin: 5px 15px;
+
width: 95%;
+
font-weight:bold;
+
}
+
  
 
+
.footerleft:link, .footerright:link, .footerleft:visited, .footerright:visited {
/*STYLING */
+
color:white;
 
+
}  
/* styling for the titles */
+
.content_wrapper h1, .content_wrapper h2 {
+
padding:5px 15px;
+
border-bottom:0px;
+
color:#72c9b6;
+
 
+
}
+
.content_wrapper h3, .content_wrapper h4, .content_wrapper h5, .content_wrapper h6 {
+
padding:5px 15px;
+
border-bottom:0px;
+
color: #000000; 
+
}
+
 
+
 
+
/* font and text */
+
.content_wrapper p {
+
padding:0px 15px;
+
font-size: 13px;
+
font-family:Tahoma, Geneva, sans-serif;
+
}
+
 
+
/* Links */
+
.content_wrapper a {
+
font-weight: bold;
+
text-decoration: underline;
+
text-decoration-color:#72c9b6;
+
color: #72c9b6;
+
-webkit-transition: all 0.4s ease;
+
-moz-transition: all 0.4s ease;
+
-ms-transition: all 0.4s ease;
+
-o-transition: all 0.4s ease;
+
transition: all 0.4s ease;
+
}
+
 
+
/* hover for the links */
+
.content_wrapper a:hover {
+
text-decoration:none;
+
color:#000000;
+
}
+
 
+
/* non numbered lists */
+
.content_wrapper ul {
+
padding:0px 20px;
+
font-size: 13px;
+
font-family:Tahoma, Geneva, sans-serif;
+
}
+
 
+
/* numbered lists */
+
.content_wrapper ol {
+
padding:0px;
+
font-size: 13px;
+
font-family:Tahoma, Geneva, sans-serif;
+
}
+
 
+
/* Table */
+
.content_wrapper table {  
+
width: 97%;
+
margin:15px 10px;
+
border: 1px solid #d3d3d3;
+
border-collapse: collapse;
+
}
+
 
+
/* table cells */
+
.content_wrapper  td {
+
padding: 10px;
+
vertical-align: text-top;
+
border: 1px solid #d3d3d3;
+
border-collapse: collapse;
+
}
+
 
+
/* table headers */
+
.content_wrapper th {
+
padding: 10px;
+
vertical-align: text-top;
+
border: 1px solid #d3d3d3;
+
border-collapse: collapse;
+
background-color:#f2f2f2;  
+
}
+
 
+
/* Button class */
+
.button_click {
+
margin: 10px auto;
+
padding: 15px; width:12%; 
+
text-align:center;
+
font-weight:bold;
+
background-color: #72c9b6;
+
cursor:pointer; 
+
-webkit-transition: all 0.4s ease;
+
-moz-transition: all 0.4s ease;
+
-ms-transition: all 0.4s ease;
+
-o-transition: all 0.4s ease;
+
transition: all 0.4s ease;
+
}
+
 
+
/* button class on hover */
+
.button_click:hover { 
+
background-color:#000000;
+
color:#72c9b6;
+
}
+
 
+
/********************************* RESPONSIVE STYLING ********************************/
+
 
+
/* IF THE SCREEN IS LESS THAN 1000PX */
+
 
+
@media only screen and (max-width: 1000px) {
+
 
+
#content {width:100%; }
+
.menu_wrapper {width:15%;}
+
.content_wrapper {margin-left: 15%;}
+
.menu_item {display:block;}
+
.icon {display:none;}
+
.highlight {padding:10px 0px;}
+
}
+
 
+
 
+
/* IF THE SCREEN IS LESS THAN 680PX */
+
 
+
@media only screen and (max-width: 680px) {
+
.collapsable_menu_control { display:block;}
+
.menu_item {display:none;}
+
.menu_wrapper { width:100%; height: 15%; position:relative;}
+
.content_wrapper {width:100%; margin-left:0px;}
+
.column.half_size {width:100%; }
+
.column img { width: 100%; padding: 5px 0px;}
+
.icon {display:block;}
+
.highlight {padding:15px 5px;}
+
}
+
  
 
</style>
 
</style>
 
 
 
 
<!--- THIS IS WHERE THE HTML BEGINS --->
 
 
 
<!-- This tells the browser that your page is responsive -->
 
 
<head>
 
<meta name="viewport" content="width=device-width, initial-scale=1">
 
 
</head>
 
</head>
 
 
 
 
<div class="menu_wrapper" >
 
 
 
 
 
<div class="collapsable_menu_control"> MENU ▤ </div>
 
 
<ul id="accordion" class="accordion">
 
 
<li class="menu_item"> <a href="https://2016.igem.org/Team:UChicago">HOME </a> </li>
 
 
 
<li class="menu_item"> <div class="icon plus"></div> TEAM
 
<ul class="submenu">
 
<li> <a href=" https://2016.igem.org/Team:UChicago/Team"> Team  </a> </li>
 
<li> <a href="https://2016.igem.org/Team:UChicago/Collaborations">★  Collaborations </a> </li>
 
                    </ul>
 
                </li>
 
 
<li class="menu_item"> <div class="icon plus"></div> PROJECT 
 
<ul class="submenu">
 
<li> <a href="https://2016.igem.org/Team:UChicago/Description"> ★  Description </a></li>
 
<li> <a href="https://2016.igem.org/Team:UChicago/Design"> ★ Design </a></li>
 
<li> <a href="https://2016.igem.org/Team:UChicago/Experiments"> Experiments </a></li>
 
<li> <a href="https://2016.igem.org/Team:UChicago/Proof"> ★ Proof of Concept </a></li>
 
<li> <a href="https://2016.igem.org/Team:UChicago/Demonstrate"> ★ Demonstrate </a></li>
 
<li> <a href="https://2016.igem.org/Team:UChicago/Results"> Results </a></li>
 
<li> <a href="https://2016.igem.org/Team:UChicago/Notebook"> Notebook </a></li>
 
                    </ul>
 
                </li>
 
 
<li class="menu_item"> <div class="icon plus"></div> PARTS 
 
<ul class="submenu">
 
<li> <a href="https://2016.igem.org/Team:UChicago/Parts">Parts </a></li>
 
<li> <a href="https://2016.igem.org/Team:UChicago/Basic_Part"> ★ Basic Parts </a></li>
 
<li> <a href="https://2016.igem.org/Team:UChicago/Composite_Part"> ★ Composite Parts </a></li>
 
<li> <a href="https://2016.igem.org/Team:UChicago/Part_Collection"> ★ Part Collection </a></li>
 
                    </ul>
 
                </li>
 
 
 
<li class="menu_item"> <a href="https://2016.igem.org/Team:UChicago/Safety"> SAFETY </a> </li>
 
 
 
<li class="menu_item"> <a href="https://2016.igem.org/Team:UChicago/Attributions">★  ATTRIBUTIONS </a></li>
 
 
 
<li class="menu_item"> <div class="icon plus"></div> HUMAN PRACTICES
 
<ul class="submenu">
 
<li> <a href="https://2016.igem.org/Team:UChicago/Human_Practices"> Human Practices </a></li>
 
<li> <a href="https://2016.igem.org/Team:UChicago/HP/Silver">★ Silver </a></li>
 
<li> <a href="https://2016.igem.org/Team:UChicago/HP/Gold">★ Gold </a></li>
 
<li> <a href="https://2016.igem.org/Team:UChicago/Integrated_Practices"> ★ Integrated Practices </a></li>
 
<li> <a href="https://2016.igem.org/Team:UChicago/Engagement">★ Engagement </a></li>
 
                    </ul>
 
                </li>
 
 
 
<li class="menu_item"> <div class="icon plus"></div> AWARDS
 
<ul class="submenu">
 
<li><a href="https://2016.igem.org/Team:UChicago/Entrepreneurship"> ★ Entrepreneurship </a></li>
 
<li> <a href="https://2016.igem.org/Team:UChicago/Hardware"> ★ Hardware </a></li>
 
<li> <a href="https://2016.igem.org/Team:UChicago/Software">★ Software </a></li>
 
<li> <a href="https://2016.igem.org/Team:UChicago/Measurement">★  Measurement </a></li>
 
<li> <a href="https://2016.igem.org/Team:UChicago/Model">★ Model </a></li>
 
 
                    </ul>
 
                </li>
 
</ul>
 
 
</div>
 
 
 
 
 
 
<div class="content_wrapper">
 
 
 
 
<h1 id="team_name">  </h1>
 
<h4 id="page_name">  </h4>
 
 
 
 
 
 
 
 
 
 
<script>
 
 
// This is the jquery part of your template.  Try not modify any of this code since it makes your menu work.
 
 
$(document).ready(function() {
 
 
$("#HQ_page").attr('id','');
 
 
 
if ( wgPageName.substring( 0,  8) == "Template")  {  // if the page is a template it displays the full name in a single line
 
$("#team_name").html( wgPageName );
 
}
 
 
else if (  ( (wgPageName.match(/\//g) || []).length ) == 0 ) {  // if it is the home page , just print the team's name
 
$("#team_name").html( wgPageName.substring( 5, wgPageName.length ) );
 
}
 
 
else {
 
// this adds the team's name as an h1
 
$("#team_name").html( wgPageName.substring( 5 , wgPageName.indexOf("/")  ) );
 
 
// this adds the page's title as an h4
 
$("#page_name").html (    ( wgPageName.substring( wgPageName.indexOf("/") + 1, wgPageName.length ) ).replace( /\/|_/g , " ")  );
 
}
 
 
 
 
 
$('#accordion').find('.menu_item').click(function(){
 
 
//Expand or collapse this panel
 
submenu = $(this).find('.submenu');
 
submenu.toggle();
 
 
icon = $(this).find('.icon');
 
 
if ( !$( submenu ).is(':visible') ) {
 
icon.removeClass("less").addClass("plus");
 
}
 
else {
 
icon.removeClass("plus").addClass("less");
 
}
 
 
//Hide the other panels
 
$(".submenu").not(submenu).hide();
 
$(".icon").not(icon).removeClass("less").addClass("plus");
 
});
 
 
 
$(".collapsable_menu_control").click(function() {
 
$(".menu_item").toggle();
 
});
 
 
$( window ).resize(function() {
 
$(".menu_item").show();
 
});
 
 
 
});
 
 
 
 
 
</script>
 
 
  
 
</html>
 
</html>

Latest revision as of 21:15, 16 October 2016