Difference between revisions of "Template:Main2017"

 
(301 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<html>
 
<html>
 
 
 
  
 
<script>
 
<script>
  
 
// This is the jquery part of your template.  Try not modify any of this code since it makes your menu work.
 
// This is the jquery part of your template.  Try not modify any of this code since it makes your menu work.
 +
 +
  
 
$(document).ready(function() {
 
$(document).ready(function() {
 +
 +
 +
 +
hide_show_menu();
  
 
$("#HQ_page").attr('id','');
 
$("#HQ_page").attr('id','');
 +
 +
$( "#load_menu_here" ).load( "https://2017.igem.org/HQ:Menu #Menu" , function() {
 +
 +
//executes menu functionality ( accordion and toggles) once the menu is loaded
 +
menu_functionality();
 +
 +
// highlights on which page/hub you are currently in
 +
highlight_current_page();
 +
 +
});
 +
 +
 +
$(".month_access").click(function(){
 +
 +
$(this).next().next().fadeToggle(400);
 +
$(this).toggleClass("plus");
 +
});
 
 
 +
$(".expand_content.control_button").click(function(){
  
 +
$(this).next(".expand_content.more").fadeToggle(400);
 +
$(this).toggleClass("less");
 +
});
  
  
  
 +
function highlight_current_page () {
  
 +
wgPageName = wgPageName.replace(/\//g,"-");  // remove dashes from page name and turn them into "-"
  
//name setup
 
  
if ( wgPageName.substring( 0,  8) == "Template")  {  // if the page is a template it displays the full name in a single line
+
$('#' + wgPageName).addClass("current_page");
$("#team_name").html( wgPageName );  
+
}
+
  
else if (  ( (wgPageName.match(/\//g) || []).length ) == 0 ) {  // if it is the home page , just print the team's name
+
switch ( (wgPageName.match( /-/g ) || []).length ) {  // check how many "tiers" ( ) the page name has in order to nest it
$("#team_name").html( wgPageName.substring( 5, wgPageName.length ) );
+
}
+
  
else {
+
case 0:  // this is a main menu item
// 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 , " ")  );
 
}
 
  
  
 +
$(".current_page > .submenu_access").addClass("less");
 +
$(".current_page > .submenu").fadeIn(400);
 +
break;
  
//menu functionality
 
  
$('#accordion').find('.menu_item').click(function(){
 
  
//Expand or collapse the panel that was clicked
+
case 1:  // this is a link inside a submenu
submenu = $(this).find('.submenu');
+
submenu.toggle();
+
  
//Place the appropriate icon state on the panel that was clicked
+
$('#' + wgPageName.substr(0, wgPageName.indexOf('-') )).addClass("current_page");
icon = $(this).find('.icon');
+
$(".current_page > .submenu_access").addClass("less");
 +
$(".current_page > .submenu").fadeIn(400);
 +
break;
 +
 
 +
case 2:  // this is a link inside a submenu
 +
 
 +
$('#' + wgPageName.substr(0, wgPageName.lastIndexOf('-') )).addClass("current_page");
 +
$('#' + wgPageName.substr(0, wgPageName.indexOf('-') )).addClass("current_page");
 +
 +
$(".current_page > .submenu_access").addClass("less");
 +
$(".current_page > .submenu").fadeIn(400);
 +
 
 +
 
 +
$("#" + wgPageName.slice(wgPageName.indexOf("-")+1, wgPageName.lastIndexOf("-")) +"_submenu" ).fadeIn(400);
 +
$("#" + wgPageName.slice(wgPageName.indexOf("-")+1, wgPageName.lastIndexOf("-")) +"_submenu" ).prev().addClass("less");
 +
 
 +
break;
  
if ( !$( submenu ).is(':visible') ) {
 
icon.removeClass("less").addClass("plus");
 
}
 
else {
 
icon.removeClass("plus").addClass("less");
 
 
}
 
}
  
//Hide the other panels and switch all other icons to closed state
 
$(".submenu").not(submenu).hide();
 
$(".icon").not(icon).removeClass("less").addClass("plus");
 
});
 
  
 +
}
  
$(".collapsable_menu_control").click(function() {
 
$(".menu_item").toggle();
 
});
 
  
$( window ).resize(function() {
+
//menu functionality
$(".menu_item").show();
+
function menu_functionality() {
});
+
  
 +
$(".submenu_access").click(function(){
 +
$(this).next().fadeToggle(400);
 +
$(this).toggleClass("less");
 +
});
  
 +
$(".collapsable_menu_control").click(function() {
 +
$("#all_menu_items").fadeToggle(400);
 +
});
 +
 +
 +
$("#main_menu_control").click(function() {
 +
 +
if($('.igem_menu_wrapper .submenu').is(':visible')) {
 +
$(".igem_menu_wrapper .submenu").hide();
 +
$(".submenu_access").removeClass("less");
 +
}
 +
else {
 +
$(".igem_menu_wrapper .submenu").show();
 +
$(".submenu_access").addClass("less");
 +
}
 +
});
 +
}
 +
 +
 +
 +
 +
function hide_show_menu() {
 +
 +
  if (document.getElementById('bars_item')) {
 +
$("#bars_item").click(function() {
 +
$("#sideMenu").hide();
 +
$(".igem_menu_wrapper").fadeToggle("100");
 +
$(".content_wrapper").toggleClass("full_screen");
 +
});
 +
  }
 +
else {
 +
    setTimeout(hide_show_menu, 15);
 +
}
 +
}
 +
 +
 +
 +
//make boxes same height
 +
 +
function make_boxes_same_height() {
 +
$(".same_height").css('height', Math.max(($(".same_height.A").height()),($(".same_height.B").height()), ($(".same_height.C").height()) ) );
 +
}
  
  
//image slider
+
//image slider
  
 
$(function () {
 
$(function () {
  
var change_img_time  = 3000;  
+
var change_img_time  = 4500;  
 
var transition_speed    = 450;
 
var transition_speed    = 450;
  
Line 103: Line 168:
 
});
 
});
  
 +
make_boxes_same_height();
  
 
// load info from another page
 
 
// to use this function send the "source page" and then send the div's id to where you want to send it
 
load_these_items ( "https://2016.igem.org/Archive #load_these_newsItems", "load_newsItems_here");
 
  
  
 
});
 
});
 
 
 
 
 
  
  
Line 127: Line 183:
 
<style>
 
<style>
  
/********************************* DEFAULT WIKI SETTINGS  ********************************/
 
  
#sideMenu, #top_title {display:none;}
+
 
 +
/********************************* DEFAULT WIKI SETTINGS  ********************************/
 +
#home_logo, #sideMenu { display:none; }
 +
#sideMenu, #top_title, .patrollink  {display:none;}
 
#content { padding:0px; width:100%; margin-top:-7px; margin-left:0px;}
 
#content { padding:0px; width:100%; margin-top:-7px; margin-left:0px;}
 
body {background-color:white; }
 
body {background-color:white; }
Line 136: Line 194:
 
/********************************* MENU ********************************/
 
/********************************* MENU ********************************/
 
/* Wrapper for the menu */
 
/* Wrapper for the menu */
.menu_wrapper {  
+
.igem_menu_wrapper {  
width: 14%;  
+
background-color:#dddddd;
 +
float:right;  
 
height:100vh;  
 
height:100vh;  
position:fixed;  
+
max-width: 270px;
 +
overflow-y: auto;
 +
overflow-x: hidden;
 
padding:0px;
 
padding:0px;
float:right;  
+
position:fixed;  
background-color:#f2f2f2;  
+
right:0%;
 
text-align:left;
 
text-align:left;
left:86%;
+
width: 15%;  
 
}
 
}
  
.menu_wrapper img {  
+
 
width: 100%;  
+
/* styling for the images in the side menu */
 +
.igem_menu_wrapper img {  
 +
width: 70%;
 
margin: auto;
 
margin: auto;
 +
padding-left: 20%;
 
}
 
}
  
  
 +
.logo_container { float:left; width:80%; }
  
/* styling for the menu items */
+
/* class that shows the menu is displayed while the menu is loading */
.menu_item {
+
.menu_is_loading {
 +
text-align:center;
 +
}
 +
 
 +
 
 +
.menu_bottom_padding {
 +
background-color: #f2f2f2;
 +
padding: 10px 0px; 
 +
float: left;
 +
height:40px;
 +
}
 +
 
 +
 
 +
.menu_item_wrapper {  
 
width:100%;  
 
width:100%;  
margin:-2px 0px 0px -20px;
+
float: left;   
padding: 10px 10px;   
+
 
border-bottom: 1px solid #d3d3d3;  
 
border-bottom: 1px solid #d3d3d3;  
font-weight:bold;
+
background-color: #dddddd;  
color:#000000;  
+
padding: 2px 0px 0px 0px;  
cursor: pointer;  
+
 
}
 
}
  
/* when hovering on a menu item */
+
.menu_item_wrapper:hover, .submenu_item:hover , .sub_submenu_item:hover, .submenu > .submenu_access:hover,  menu_item:hover {
.menu_item:hover {  
+
background-color:#00bdcd;  
color:#000000;  
+
text-decoration: none;  
background-color: #72c9b6;
+
cursor:pointer;
 +
 +
 
 
}
 
}
 +
 +
.submenu_access:hover { background-color: #f2f2f2;}
 +
 +
.submenu > .submenu_access:hover { background-color: #ffffff;}
 +
 +
 +
.menu_icon { width: 20%; float:left;}
  
  
/* remove bullets from the main menu - accordion class */
+
.igem_menu_wrapper .menu_icon img {  
.accordion {
+
width: 20px;
list-style: none;  
+
padding: 5px 10px 5px 5px;  
 
}
 
}
 +
 +
/* styling for menu items in the menu */
 +
.menu_item { float:left; padding: 9px 0px 7px 0px; font-weight: bold;  color: #000000;}
  
/* decoration icon for the menu buttons*/
+
.submenu_item.current_page, .menu_item_wrapper.current_page, .sub_submenu_item.current_page { background-color: #00bdcd;}
.icon {
+
 
float:right; 
+
.submenu_item.with_submenu_items { width: 70%;}
font-size:16px;
+
 
font-weight:bold;  
+
/* defines width - for menu items that take you to a page */
 +
.page_link {
 +
width: 80%;
 
}
 
}
+
 
 +
/* defines width - for menu items that take you to a hub */
 +
.hub_link  {
 +
    width: 60%;
 +
}
 +
 
 +
/*hides submenus by default */
 +
.submenu {
 +
display: none;
 +
}
 +
 
 +
.submenu > .menu_item > .submenu  {
 +
color: #666666;
 +
font-weight: normal;
 +
}
 +
 
 +
 
 +
.sub_submenu_item {
 +
background-color: white;
 +
float: left;
 +
width: 100%;
 +
padding: 10px 0px 10px 15%;
 +
color: black;
 +
font-weight: bold;
 +
border-bottom: 1px solid #dddddd;
 +
}
 +
 
 +
.submenu_access {
 +
float: right;
 +
color: #000000;
 +
padding: 10px 0px;
 +
font-size: 16px;
 +
font-weight: bold;
 +
width:20%;
 +
background-color: #dddddd;
 +
text-align: center;
 +
margin-bottom: -2px;
 +
margin-top: -2px;
 +
}
 +
 
 
/* this is the icon for when the content is collapsed */
 
/* this is the icon for when the content is collapsed */
.plus::before {
+
.submenu_access::before {
 
content: "+";  
 
content: "+";  
 
}
 
}
 +
 +
.submenu > .submenu_access { background-color: #f2f2f2;    border-bottom: 1px solid #d3d3d3; margin:0px;}
 +
 +
.menu_title {
 +
float: left;
 +
width: 100%;
 +
font-size: 12px;
 +
color: #000000;
 +
padding: 10px 0px;
 +
background-color: #f2f2f2;
 +
padding-left: 5%;
 +
border-bottom: 1px solid #d3d3d3;
 +
}
 +
 +
 +
.submenu_item {    width: 100%;
 +
    background-color: #f2f2f2;
 +
    padding: 10px 0px 10px 10%;
 +
    float: left;
 +
    border-bottom: 1px solid #d3d3d3;
 +
    color: black;
 +
    font-weight: bold;}
 +
 +
 
/* this is the icon for when the content is expanded */
 
/* this is the icon for when the content is expanded */
 
.less::before {
 
.less::before {
Line 193: Line 346:
 
}
 
}
  
/* styling for the ul that creates the buttons */
 
ul.menu_items {
 
width:100%;
 
margin-left:0px;
 
padding:0px;
 
list-style: none;
 
}
 
  
/* styling for the li that are the menu items */
+
.collapsable_menu_control {
.menu_items li {  
+
    width: 100%;
width:90%;  
+
    padding: 15px 0px;
margin-top:-2px;  
+
    display: none;
padding: 15px 0px 15px 15px ;  
+
float:left;
 +
    background-color: #f2f2f2;
 +
    text-align: center;
 +
    font-weight: bold;
 +
    color: #5e5f5f;
 +
    cursor: pointer;
 +
}
 +
 
 +
 
 +
.collapsable_menu_control:hover {
 +
background-color: #00bdcd;
 +
color: #ffffff;
 +
}
 +
 
 +
/********************************* CONTENT OF THE PAGE ********************************/
 +
 
 +
/* Wrapper for the content */
 +
.igem_content_wrapper {
 +
/*width: 88.9%;*/
 +
width: -webkit-calc(100% -270px);
 +
width:   -moz-calc(100% - 270px);
 +
width:  calc(100% - 270px);
 
display:block;
 
display:block;
border-bottom: 1px solid #d3d3d3; 
+
background-color:white;  
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 {
+
 
width: 100%;
+
 
margin-left: -20px;
+
/* subwrapper to center content */
padding: 11px 90px 12px 20px;
+
.igem_column_wrapper {
text-decoration: none;
+
margin:auto;
color:black;
+
max-width: 1400px;
 +
width:90%;
 
}
 
}
  
/* When hovering on a menu item */
+
 
.menu_items li:hover {  
+
 
background-color:#72c9b6;
+
/* class for when the menu is not shown and the content occupies the whole screen */
color: #000000;
+
.igem_content_wrapper.full_screen {
 +
width: 96%;  
 
}
 
}
  
/* styling for the submenus */
 
.submenu {
 
width:100%;
 
display: none; 
 
font-weight:bold;
 
cursor:pointer;
 
  
 +
/*LAYOUT */
 +
.column  {
 +
padding: 10px 0px;
 +
float:left;
 
}
 
}
  
/* moving the margin for the submenu ul list */
+
 
ul.submenu {  
+
/*main layout class */
width: 100%;
+
.column  {  
margin: 10px 0px -11px 0px;
+
float:left;
list-style: none;
+
margin: 1% 2%;
 +
padding: 0px;
 
}
 
}
  
/*styling for the submenu buttons */
+
/* 100% */
.submenu li {  
+
.full_size { width:96%; }
 +
/* 66% */
 +
.two_thirds_size { width: 62.6%; }
 +
/* 33% */
 +
.third_size { width: 29.3%; }
 +
/* 75% */
 +
.three_quarter_size {  width: 71%; }
 +
/* 50% */
 +
.half_size {  width: 46%; }
 +
/* 25% */
 +
.fourth_size { width: 21%; }
 +
 
 +
/*styling for all images*/
 +
.full_size img,
 +
.half_size img,
 +
.two_thirds_size img,
 +
.third_size img, 
 +
.three_quarters_size img,
 +
.fourth_size img {  
 +
margin-bottom: 15px;
 
width: 100%;  
 
width: 100%;  
margin-left: 10px;
 
margin-bottom: 0px;
 
 
}
 
}
  
  
/* hover state for the submenu buttons */
+
.clear {
.submenu li a {
+
clear:both;
width: 100%;
+
padding: 5px 10px;
+
display: inline-block;
+
border-bottom: 1px solid #d3d3d3;
+
background-color:white;
+
text-decoration:none;
+
color:#000000;  
+
 
}
 
}
  
 +
.clear.extra_space {
 +
height: 30px;
 +
}
  
  
.submenu li a:hover  {
+
.line_divider {
background-color:#000000;  
+
    border-top: 1px solid #d3d3d3;
color: #72c9b6;
+
    width: 98%;
}
+
    margin: auto;
 +
}
  
  
/* When the screen is smaller than 680px, the menu has the option to hide/show - this button controls that */
+
 
.collapsable_menu_control {  
+
.highlight {  
width:100%;
+
 
padding: 15px 0px;
 
padding: 15px 0px;
display:none;  
+
margin: 0px 15px;
background-color:#000000;
+
}
text-align:center; 
+
 
font-weight:bold;
+
 
color:#72c9b6;
+
.highlight.link_box:hover{
cursor:pointer;  
+
background-color: #666666;
 
-webkit-transition: all 0.4s ease;  
 
-webkit-transition: all 0.4s ease;  
 
-moz-transition: all 0.4s ease;  
 
-moz-transition: all 0.4s ease;  
 
-ms-transition: all 0.4s ease;  
 
-ms-transition: all 0.4s ease;  
-o-transition: all 0.4s ease;  
+
-o-transition: all 0.4s ease; transition: all 0.4s ease;
transition: all 0.4s ease;  
+
}  
}
+
  
/* when hovering on that button */
+
.highlight.link_box a {  
.collapsable_menu_control:hover {  
+
text-decoration: none;
background-color: #72c9b6;
+
color: black;
color:#000000;
+
font-weight: 100;
 
}
 
}
  
/********************************* CONTENT OF THE PAGE ********************************/
 
  
/* Wrapper for the content */
+
.highlight.gray {
.content_wrapper {
+
background-color: #f2f2f2;  
width: 86%;
+
padding:10px 0px;
+
float:left;
+
background-color:white;  
+
 
}
 
}
  
/*LAYOUT */
+
.highlight.turquoise_top {
.column  {  
+
    border-top: 4px solid #00bdcd;
padding: 10px 0px;
+
float:left;
+
background-color:white;  
+
 
}
 
}
  
.full_size {
+
 
width:100%;  
+
.highlight.turquoise_border {
 +
    border: 4px solid #00bdcd;
 
}
 
}
  
.full_size img {  
+
 
padding: 10px 15px;
+
 
width:97.5%;  
+
.patrollink {display:none;}
 +
 
 +
 
 +
.turquoise_full {
 +
border: 4px solid #00bdcd;
 +
}
 +
 
 +
.yellow_full {
 +
border: 4px solid #ffe000;
 +
}
 +
 
 +
.blue_full {
 +
border: 4px solid #00bccc;
 +
}
 +
 
 +
 
 +
.highlight.news_item {
 +
    border: 2px solid #d3d3d3;
 +
    margin: auto;
 +
    height: auto;
 +
    overflow: auto;
 +
width: 97%;
 +
}
 +
 
 +
.news_date {
 +
font-style: italic;
 +
    display: inline-block;
 +
    color: #333333;
 +
    float: right;
 +
    padding-top: 5px;
 +
    padding-right: 15px;
 +
}
 +
 
 +
 
 +
.expand_content.first{
 +
float:left;
 +
margin-right: -15px;
 
}
 
}
  
.half_size {
+
 
width: 50%;  
+
.expand_content.control_button {
 +
font-weight: bold;
 +
text-align: center;
 +
border-radius: 50%;
 +
float: left;
 +
margin: 0px 5px;
 +
border: 2px solid #00bdcd;
 +
background-color:#00bdcd;
 +
color:#ffffff;
 +
width: 20px;
 +
padding-bottom: 1px;
 +
cursor:pointer;
 
}
 
}
  
.half_size img {  
+
.expand_content.control_button:hover {
padding: 10px 15px;
+
color:#00bdcd;
width: 93%;  
+
background-color:#ffffff;
 +
border: 2px solid #00bdcd;
 +
float: left;
 
}
 
}
  
  
.third_size {
+
.expand_content.control_button::before {
width: 33.3%;  
+
content: "+";  
 
}
 
}
.third_size img {
+
 
padding: 10px 15px;
+
/* this is the icon for when the content is expanded */
width: 92%;  
+
.expand_content.control_button.less::before {
 +
content: "–";  
 
}
 
}
  
 
+
.expand_content.more {  
.clear {
+
float:left;
clear:both;
+
display: none;
 
}
 
}
  
.highlight {  
+
 
padding: 15px 0px;
+
 
margin: 0px 15px;
+
.button {
 +
margin: auto;
 +
text-align: center;
 +
font-size: 15px;
 +
margin: 30px 0px;
 
}
 
}
  
.gray {
+
.button a,  #bodyContent a[href ^="https://"], .link-https {
background-color: #f2f2f2;  
+
color: #000000 !important;
 +
font-weight: bold;
 +
margin: auto;
 +
text-decoration: none !important;
 +
background-color: #00bdcd;
 +
padding: 10px 15px;
 
}
 
}
  
.blue {
+
.button a:hover , #bodyContent a[href ^="https://"]:hover, .link-https {
background-color: #c0d5f7;  
+
background-color: #000000; 
 +
color: #00bdcd !important;
 
}
 
}
 +
 +
.multiple_links a{
 +
color: black !important;
 +
}
 +
 +
.multiple_links a:hover {
 +
color: #004789 !important;
 +
}
 +
  
  
Line 367: Line 599:
 
list-style: none;
 
list-style: none;
 
margin: 0px -19px;
 
margin: 0px -19px;
 +
padding:0px;
 
}
 
}
 +
 +
.image_slider ul {
 +
padding: 0px;
 +
}
 +
 +
 +
 +
.column.full_size.navigation_support {
 +
    padding: 0px 0px 0px 20px;
 +
}
 +
 +
.navigation_button { 
 +
    background-color: #ffffff;
 +
    border: 2px solid #5e5f5f;
 +
    color: #5e5f5f;
 +
    max-width: 40px;
 +
    text-align: center;
 +
    padding: 3px 0px;
 +
    font-size: 13px;
 +
    cursor: pointer;
 +
    border-radius: 50%;
 +
    float: left;
 +
    width: 25px;
 +
    margin-right: 10px;
 +
margin-top: 3px;
 +
}
 +
 +
 +
.navigation_button.arrow_navigation {
 +
border: 2px solid white;
 +
margin-top: 0px;
 +
}
 +
 +
.navigation_button.arrow_navigation:hover {
 +
color: #00bdcd;
 +
background-color: #ffffff;
 +
border: 2px solid white;
 +
}
 +
 +
.navigation_button.arrow_navigation.previous_item::before {
 +
content: url(https://static.igem.org/mediawiki/2017/f/ff/Previous_demo_icon-14-21.svg);
 +
}
 +
 +
 +
.navigation_button.arrow_navigation.next_item::before {
 +
content: url(https://static.igem.org/mediawiki/2017/1/12/Next_demo_icon-14-21-22.svg);
 +
}
 +
 +
 +
.navigation_button:hover , .title_extra:hover +  .navigation_button, .navigation_button.active_navigation_button:hover  {
 +
background-color: #00bdcd;
 +
color: #ffffff;
 +
border: 2px solid #00bdcd;
 +
}
 +
 +
 +
 +
 +
.title_extra {color: #5e5f5f; float:left; padding: 7px 0px; margin-right: 20px; display:none;}
 +
 +
.title_extra.main_item { display:block; text-decoration: underline;}
 +
.title_extra.support_item {display:block;margin-right:0px; margin-left: -17px;}
 +
.title_extra.support_item:hover { color: #5e5f5f;}
 +
.navigation_button:hover + .title_extra , .title_extra:hover {  color: #00bdcd; display:block; }
 +
 +
.navigation_button.active_navigation_button {
 +
background-color: #d3d3d3;
 +
color: #5e5f5f;
 +
border: 2px solid #5e5f5f;
 +
}
 +
 +
 +
 +
 +
.igem_menu_wrapper::-webkit-scrollbar {
 +
    display: none;
 +
}
 +
  
  
 
/*STYLING */
 
/*STYLING */
 +
 +
 +
 +
  
 
/* styling for the titles */
 
/* styling for the titles */
.content_wrapper h1, .content_wrapper h2 {
+
.igem_content_wrapper h1, .igem_content_wrapper h2 {
 
padding:5px 15px;  
 
padding:5px 15px;  
 
border-bottom:0px;  
 
border-bottom:0px;  
color: #72c9b6;
+
color: #00bdcd;
 
+
 
}
 
}
.content_wrapper h3, .content_wrapper h4, .content_wrapper h5, .content_wrapper h6 {  
+
 
 +
 
 +
 
 +
.igem_content_wrapper h3, .igem_content_wrapper h4, .igem_content_wrapper h5, .igem_content_wrapper h6 {  
 
padding:5px 15px;  
 
padding:5px 15px;  
 
border-bottom:0px;  
 
border-bottom:0px;  
Line 387: Line 704:
  
 
/* font and text */
 
/* font and text */
.content_wrapper p {  
+
.igem_content_wrapper p {  
 
padding:0px 15px;  
 
padding:0px 15px;  
 
font-size: 13px;
 
font-size: 13px;
Line 394: Line 711:
  
 
/* Links */
 
/* Links */
.content_wrapper a {  
+
.igem_content_wrapper a {  
 
font-weight: bold;  
 
font-weight: bold;  
 
text-decoration: underline;
 
text-decoration: underline;
text-decoration-color:#72c9b6;
+
text-decoration-color:#004789;
color: #72c9b6;
+
color: #004789;
 
-webkit-transition: all 0.4s ease;
 
-webkit-transition: all 0.4s ease;
 
-moz-transition: all 0.4s ease;  
 
-moz-transition: all 0.4s ease;  
Line 407: Line 724:
  
 
/* hover for the links */
 
/* hover for the links */
.content_wrapper a:hover {  
+
.igem_content_wrapper a:hover {  
 
text-decoration:none;
 
text-decoration:none;
 
color:#000000;
 
color:#000000;
Line 413: Line 730:
  
 
/* non numbered lists */
 
/* non numbered lists */
.content_wrapper ul {
+
.igem_content_wrapper ul {
 
padding:0px 20px;
 
padding:0px 20px;
 
font-size: 13px;
 
font-size: 13px;
Line 420: Line 737:
  
 
/* numbered lists */
 
/* numbered lists */
.content_wrapper ol {
+
.igem_content_wrapper ol {
 
padding:0px;  
 
padding:0px;  
 
font-size: 13px;
 
font-size: 13px;
Line 427: Line 744:
  
 
/* Table */
 
/* Table */
.content_wrapper table {  
+
.igem_content_wrapper table {  
 
width: 97%;  
 
width: 97%;  
 
margin:15px 10px;  
 
margin:15px 10px;  
Line 435: Line 752:
  
 
/* table cells */
 
/* table cells */
.content_wrapper td {  
+
.igem_content_wrapper td {  
 
padding: 10px;
 
padding: 10px;
 
vertical-align: text-top;  
 
vertical-align: text-top;  
Line 443: Line 760:
  
 
/* table headers */
 
/* table headers */
.content_wrapper th {  
+
.igem_content_wrapper th {  
 
padding: 10px;  
 
padding: 10px;  
 
vertical-align: text-top;  
 
vertical-align: text-top;  
Line 451: Line 768:
 
}
 
}
  
/* Button class */
+
 
.button_click {  
+
 
margin: 10px auto;
+
 
padding: 15px; width:12%;
+
 
text-align:center;  
+
 
font-weight:bold;  
+
 
background-color: #72c9b6;
+
 
cursor:pointer;
+
.vertical_line {
 +
  position: absolute;
 +
  width: 5px;
 +
  background-color: #ccc;
 +
  left: 20px;
 +
  height: 100%;
 +
  z-index: -1;
 +
}
 +
 
 +
.left_column {
 +
width: 12%;
 +
    border: 4px solid #d3d3d3;
 +
    text-align: center;
 +
    font-size: 25px;
 +
    float: left;
 +
    border-radius: 10px;
 +
    color: #666666;
 +
    padding: 4% 0;
 +
font-weight: bold;
 +
 
 +
}
 +
 
 +
 
 +
.left_column.month_access{
 +
  border: 4px solid #00bdcd;
 +
 
 +
    color: #00bdcd;
 +
    font-size: 40px;
 +
    font-weight: bold;
 +
    cursor: pointer;
 +
}
 +
 
 +
.left_column.month_access::before {
 +
content: "-";
 +
}
 +
 
 +
.left_column.month_access.plus::before {
 +
content: "+";
 +
}
 +
 
 +
 
 +
.left_column.month_access:hover {
 +
background-color: #00bdcd;
 +
color: white;
 
-webkit-transition: all 0.4s ease;
 
-webkit-transition: all 0.4s ease;
-moz-transition: all 0.4s ease;  
+
-moz-transition: all 0.4s ease;  
 
-ms-transition: all 0.4s ease;  
 
-ms-transition: all 0.4s ease;  
 
-o-transition: all 0.4s ease;  
 
-o-transition: all 0.4s ease;  
transition: all 0.4s ease;  
+
transition: all 0.4s ease;
}
+
}
  
/* button class on hover */
 
.button_click:hover { 
 
background-color:#000000;
 
color:#72c9b6;
 
}
 
  
/********************************* RESPONSIVE STYLING ********************************/
+
.right_column  h1{
 +
font-size: 40px;
 +
padding: 15px 10px;
 +
}
  
/* IF THE SCREEN IS LESS THAN 1000PX */
 
  
@media only screen and (max-width: 1000px) {
+
.right_column {
 +
    padding: 10px 0px 15px 0px;
 +
    float: left;
 +
width: 80%;
 +
}
  
#content {width:100%; }
+
.right_column.event_content {
.menu_wrapper {width:15%;}
+
border-top: 1px solid #d3d3d3;
.menu_item {display:block;}
+
}
.icon {display:none;}
+
.highlight {padding:10px 0px;}
+
}
+
  
  
/* IF THE SCREEN IS LESS THAN 800PX */
+
#all_menu_items{ display:block;}
 +
 
 +
 
 +
 
 +
.full_size_image { margin-top:-55px; width: calc(100% - 270px); }
 +
 
 +
 
 +
 
 +
 
 +
 
 +
/********************************* RESPONSIVE STYLING ********************************/
 +
 
 +
 
 +
/* 1784px  */
 +
/************************************************/
 +
@media only screen and (max-width: 1784px) {
 +
.igem_content_wrapper { width:85%;}
 +
.full_size_image {  width:85%;}
 +
 
  
@media only screen and (max-width: 800px) {
 
.collapsable_menu_control { display:block;}
 
.menu_item {display:none;}
 
.menu_wrapper { width:100%; height: 15%; position:relative; left:0%;}
 
.content_wrapper {width:100%; margin-left:0px;}
 
.column.half_size {width:100%; }
 
.column.third_size {width:100%; }
 
.column img { width: 100%; padding: 5px 0px;}
 
.icon {display:block;}
 
.highlight {padding:15px 5px;}
 
.menu_wrapper img { width: 30%;  margin-left: 35%;}
 
 
}
 
}
  
</style>
 
  
  
  
 +
/* IF THE SCREEN IS LESS THAN 1400PX */
 +
@media only screen and (max-width: 1400px) {
 +
.long_menu_name { font-size: 10px;}
 +
}
  
<!--- 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>
 
  
  
  
  
 +
/* IF THE SCREEN IS LESS THAN 1200PX */
  
 +
@media only screen and (max-width: 1200px) {
  
<div class="menu_wrapper" >
+
#content {width:100%; }
 +
.igem_menu_wrapper {width:15%; right:0%;}
 +
.highlight {padding:10px 0px;}
 +
.load_menu_here, .menu_icon {display:none;}
 +
ul.image_slider {  padding:0px; width: 100%;  margin: auto;}
 +
.menu_item, .submenu_item, .sub_submenu_item,  .menu_title { padding:9px 0px 7px 6%; font-size: 10px;}
 +
.menu_item.hub_link, .submenu_item.with_submenu_items { width: 73.9%;}
 +
.submenu > .submenu_access { font-size: 10px; padding: 8px 0px; }
 +
.submenu_access{  font-size: 10px;  padding: 10px 0px;}
 +
#all_menu_items{ display:block;}
 +
.full_size_image { margin-top:-55px; width:85%;}
 +
}
  
  
<a href=""> <img src="http://placehold.it/200x100/d3d3d3/f2f2f2"></a>
+
/* IF THE SCREEN IS LESS THAN 885PX */
  
<div class="collapsable_menu_control"> MENU 三 </div>
+
@media only screen and (max-width: 885px) {
  
 +
.collapsable_menu_control, .menu_icon, .submenu_access { display:block;}
 +
.load_menu_here, .menu_bottom_padding {display:none;}
 +
.igem_menu_wrapper { width:100%; height: 15%; position:relative; left:0%;}
 +
.igem_content_wrapper {width:100%; margin-left:0px;}
 +
.column.half_size, .column.third_size, .column.fourth_size {width:100%; }
 +
.column img { width: 100%; padding: 5px 0px;}
 +
.highlight {padding:15px 5px;}
 +
.igem_menu_wrapper img { width: 30%;  margin-left: 35%;}
 +
.menu_item, .submenu_item, .sub_submenu_item,  .menu_title, .long_menu_name {  padding:10px 0px 10px 10%; font-size: 13px; }
 +
.submenu > .submenu_access { font-size: 13px; padding: 10px 0px;}
 +
.submenu_access{ font-size: 13px; padding: 12px 0px; }
 +
.submenu_item {  padding-left: 15%;}
 +
.sub_submenu_item { padding-left: 20%;}
 +
.menu_item {width:70%;}
 +
.submenu_item.with_submenu_items  {width: 65%;}
 +
.menu_item.hub_link { width:50%;}
 +
#all_menu_items {display:none;}
 +
.full_size_image { margin-top: -30px; width:100%;}
 +
}
  
 +
</style>
  
  
<ul id="accordion" class="accordion">
 
  
  
<li class="menu_item"> <div class="icon plus"></div> COMMUNITY
+
<!--- THIS IS WHERE THE HTML BEGINS --->
<ul class="submenu">
+
<li> <a href=" https://2016.igem.org/Team:Example/Team"> Team List </a> </li>
+
                    </ul>
+
                </li>
+
  
<li class="menu_item"> <div class="icon plus"></div> COMPETITION
 
<ul class="submenu">
 
<li> <a href=" https://2016.igem.org/Team:Example/Team"> Team List </a> </li>
 
                    </ul>
 
                </li>
 
  
 +
<!-- This tells the browser that your page is responsive -->
  
<li class="menu_item"> <a href="https://2016.igem.org/Team:Example"> CALENDAR </a> </li>
+
<head>
 +
<meta name="viewport" content="width=device-width, initial-scale=1">  
  
  
<li class="menu_item"> <a href="https://2016.igem.org/Team:Example"> GIANT JAMBOREE</a> </li>
+
</head>
  
<li class="menu_item"> <a href="https://2016.igem.org/Team:Example"> SAFETY </a> </li>
 
  
<li class="menu_item"> <a href="https://2016.igem.org/Team:Example"> JUDGING </a> </li>
 
  
  
<li class="menu_item"> <div class="icon plus"></div> RESOURCES
 
<ul class="submenu">
 
<li> <a href=" https://2016.igem.org/Team:Example/Team"> Team List </a> </li>
 
                    </ul>
 
                </li>
 
  
<li class="menu_item"> <div class="icon plus"></div> ABOUT
+
<div class="igem_menu_wrapper" >
<ul class="submenu">
+
<li> <a href=" https://2016.igem.org/Team:Example/Team"> Team List </a> </li>
+
                    </ul>
+
                </li>
+
  
  
 +
<div>
 +
<a href="https://2017.igem.org/Main_Page">
 +
<div class="logo_container">
 +
<img src="https://static.igem.org/mediawiki/2017/0/09/2017igem_demo_icon-13-22.svg"></a>
 +
</div>
 +
</a>
 +
<div class="submenu_access less" id="main_menu_control"></div>
 +
</div>
  
<li class="menu_item"> <a href="https://2016.igem.org/Team:Example"> SITEMAP </a> </li>
+
<div class="collapsable_menu_control"> MENU  </div>
  
 +
<div id="all_menu_items">
 +
<div id="load_menu_here">
  
</ul>
+
<div class="menu_is_loading">
 +
 +
<div class="menu_title"> <b> Loading... </b></div>
  
 +
</div>
 +
 +
</div>
 +
</div>
 
</div>
 
</div>
  
  
  
<div class="content_wrapper">
 
  
 +
 +
<div class="igem_content_wrapper">
 +
 +
<div class=" igem_column_wrapper">
  
 
</html>
 
</html>

Latest revision as of 19:03, 5 September 2018

MENU