Difference between revisions of "Template:Main2017"

 
(95 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<html>
 
<html>
 
 
 
  
 
<script>
 
<script>
Line 8: Line 5:
 
// 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() {
 
  
$("#HQ_page").attr('id','');
 
  
 +
$(document).ready(function() {
  
  
  
 +
hide_show_menu();
  
$(".control_button").click(function(){
+
$("#HQ_page").attr('id','');
 
+
$(this).next(".expand_content.more").fadeToggle(400);
+
$(this).toggleClass("less");
+
});
+
 
+
 
+
 
+
  
 
$( "#load_menu_here" ).load( "https://2017.igem.org/HQ:Menu #Menu" , function() {
 
$( "#load_menu_here" ).load( "https://2017.igem.org/HQ:Menu #Menu" , function() {
Line 42: Line 32:
 
});
 
});
 
 
 +
$(".expand_content.control_button").click(function(){
  
 +
$(this).next(".expand_content.more").fadeToggle(400);
 +
$(this).toggleClass("less");
 +
});
  
  
 
  
 
function highlight_current_page () {
 
function highlight_current_page () {
 
  
 
wgPageName = wgPageName.replace(/\//g,"-");  // remove dashes from page name and turn them into "-"
 
wgPageName = wgPageName.replace(/\//g,"-");  // remove dashes from page name and turn them into "-"
 +
  
 
$('#' + wgPageName).addClass("current_page");
 
$('#' + wgPageName).addClass("current_page");
Line 57: Line 50:
  
 
case 0:  // this is a main menu item
 
case 0:  // this is a main menu item
if ( $( ".current_page" ).hasClass( "hub_link")  ) {
+
 
$(".current_page").next().addClass("less");
+
 
$(".current_page").next().next().fadeIn(400);
+
 
}
+
$(".current_page > .submenu_access").addClass("less");
 +
$(".current_page > .submenu").fadeIn(400);
 
break;
 
break;
 +
 +
  
 
case 1:  // this is a link inside a submenu
 
case 1:  // this is a link inside a submenu
$("#" + wgPageName.substring(0, wgPageName.indexOf("-")) ).next().addClass("less");
 
$("#" + wgPageName.substring(0, wgPageName.indexOf("-")) ).next().next().fadeIn(400);
 
$(".current_page").css( "background-color" ,  "#cccccc" );
 
break;
 
  
case 2:  // this is a link inside a submenu inside a submenu (deliverables,  
+
$('#' + wgPageName.substr(0, wgPageName.indexOf('-') )).addClass("current_page");
$("#" + wgPageName.substring(0, wgPageName.indexOf("-")) ).next().addClass("less");
+
$(".current_page > .submenu_access").addClass("less");
$("#" + wgPageName.substring(0, wgPageName.indexOf("-")) ).next().next().fadeIn(400);
+
$(".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;
  
$("#" + wgPageName.substring(0, wgPageName.lastIndexOf("-")) ).next().addClass("less");
 
$("#" + wgPageName.substring(0, wgPageName.lastIndexOf("-")) ).next().next().fadeIn(400);
 
$(".current_page").css( "background-color" ,  "#cccccc" );
 
break;
 
 
}
 
}
  
Line 83: Line 86:
  
  
//menu functionality
+
//menu functionality
 
function menu_functionality() {
 
function menu_functionality() {
  
 
$(".submenu_access").click(function(){
 
$(".submenu_access").click(function(){
 
 
$(this).next().fadeToggle(400);
 
$(this).next().fadeToggle(400);
 
$(this).toggleClass("less");
 
$(this).toggleClass("less");
 
 
});
 
});
  
 
$(".collapsable_menu_control").click(function() {
 
$(".collapsable_menu_control").click(function() {
$(".menu_item").toggle();
+
$("#all_menu_items").fadeToggle(400);
$(".menu_title").toggle();
+
$(".submenu_access").toggle();
+
$(".submenu").toggle();
+
 
});
 
});
  
  
 +
$("#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");
 +
}
 +
});
 
}
 
}
  
  
  
//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()) ) );
 
  
 +
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 () {
Line 149: Line 169:
  
 
make_boxes_same_height();
 
make_boxes_same_height();
 +
  
  
 
});
 
});
 +
  
  
Line 164: Line 186:
  
 
/********************************* DEFAULT WIKI SETTINGS  ********************************/
 
/********************************* DEFAULT WIKI SETTINGS  ********************************/
#home_logo { display:none; }
+
#home_logo, #sideMenu { display:none; }
 
#sideMenu, #top_title, .patrollink  {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;}
Line 172: 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%;  
overflow-y: scroll;
+
overflow-x: hidden;
+
 
}
 
}
 +
  
 
/* styling for the images in the side menu */
 
/* styling for the images in the side menu */
.menu_wrapper img {  
+
.igem_menu_wrapper img {  
width: 100%;  
+
width: 70%;
 
margin: auto;
 
margin: auto;
 +
padding-left: 20%;
 
}
 
}
 +
 +
 +
.logo_container { float:left; width:80%; }
  
 
/* class that shows the menu is displayed while the menu is loading */
 
/* class that shows the menu is displayed while the menu is loading */
Line 196: Line 224:
 
}
 
}
  
/* content while the menu is loading */
+
 
 +
.menu_bottom_padding {
 +
background-color: #f2f2f2;
 +
padding: 10px 0px; 
 +
float: left;
 +
height:40px;
 +
}
 +
 
 +
 
 +
.menu_item_wrapper {
 +
width:100%;
 +
float: left; 
 +
border-bottom: 1px solid #d3d3d3;
 +
background-color: #dddddd;
 +
padding: 2px 0px 0px 0px;
 +
}
 +
 
 +
.menu_item_wrapper:hover, .submenu_item:hover , .sub_submenu_item:hover, .submenu > .submenu_access:hover,  menu_item:hover {
 +
background-color:#00bdcd;
 +
text-decoration: none;
 +
cursor:pointer;
 
 
  
/* styling for menu items in the menu */
 
.menu_item {
 
background-color: #f2f2f2;
 
padding: 10px 0px;
 
float:left;
 
border-bottom: 1px solid #d3d3d3;
 
 
}
 
}
  
.menu_item.current_page { background-color: #cccccc; color:#FFFFFF;}
+
.submenu_access:hover { background-color: #f2f2f2;}
 +
 
 +
.submenu > .submenu_access:hover { background-color: #ffffff;}
 +
 
 +
 
 +
.menu_icon { width: 20%; float:left;}
 +
 
 +
 
 +
.igem_menu_wrapper .menu_icon img {
 +
width: 20px;
 +
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;}
 +
 
 +
.submenu_item.current_page, .menu_item_wrapper.current_page, .sub_submenu_item.current_page { background-color: #00bdcd;}
 +
 
 +
.submenu_item.with_submenu_items { width: 70%;}
  
 
/* defines width - for menu items that take you to a page */
 
/* defines width - for menu items that take you to a page */
 
.page_link {
 
.page_link {
width: 100%;
+
width: 80%;
 
}
 
}
  
 
/* defines width - for menu items that take you to a hub */
 
/* defines width - for menu items that take you to a hub */
 
.hub_link  {
 
.hub_link  {
     width: 80%;
+
     width: 60%;
}
+
 
+
/* styling for links in the menu */
+
.menu_item a {
+
color: #000000;
+
font-weight: bold;
+
padding: 12px 10px 12px 20px;
+
margin-left: -10px;
+
text-decoration: none;
+
}
+
 
+
.menu_item a:hover {
+
color: #ffffff;
+
 
}
 
}
  
Line 237: Line 284:
 
}
 
}
  
/* styling for submenus and submenu access + */
+
.submenu > .menu_item > .submenu  {
.submenu > .menu_item , .submenu > .submenu_access {
+
color: #666666;
background-color:#ffffff;
+
font-weight: normal;
 
}
 
}
  
.submenu > .menu_item > .submenu  {
 
color: #666666;
 
    font-weight: normal;
 
}
 
  
/*styling for menu item and submenu access classes when hovering */
+
.sub_submenu_item {
.menu_item:hover, .submenu_access:hover {
+
background-color: white;
background-color: #000000;
+
float: left;
color: #FFFFFF!important;
+
width: 100%;
text-decoration: none;
+
padding: 10px 0px 10px 15%;
cursor:pointer;
+
color: black;
 +
font-weight: bold;
 +
border-bottom: 1px solid #dddddd;
 
}
 
}
 
  
 
.submenu_access {  
 
.submenu_access {  
float: left;
+
float: right;
background-color: #f2f2f2;
+
 
color: #000000;
 
color: #000000;
 
padding: 10px 0px;
 
padding: 10px 0px;
Line 264: Line 307:
 
font-weight: bold;
 
font-weight: bold;
 
width:20%;
 
width:20%;
text-align:center;
+
background-color: #dddddd;
border-bottom: 1px solid #d3d3d3;
+
text-align: center;
 +
margin-bottom: -2px;
 +
margin-top: -2px;
 
}
 
}
  
Line 272: Line 317:
 
content: "+";  
 
content: "+";  
 
}
 
}
 +
 +
.submenu > .submenu_access { background-color: #f2f2f2;    border-bottom: 1px solid #d3d3d3; margin:0px;}
  
 
.menu_title {
 
.menu_title {
border-bottom: 1px solid #d3d3d3;
 
padding: 10px 0px 10px 12px;
 
 
float: left;
 
float: left;
 
width: 100%;
 
width: 100%;
font-size: 13px;
+
font-size: 12px;
color: #666666;
+
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;}
 
 
  
Line 294: Line 351:
 
     padding: 15px 0px;
 
     padding: 15px 0px;
 
     display: none;
 
     display: none;
     background-color: #000000;
+
float:left;
 +
     background-color: #f2f2f2;
 
     text-align: center;
 
     text-align: center;
 
     font-weight: bold;
 
     font-weight: bold;
     color: #666666;
+
     color: #5e5f5f;
 
     cursor: pointer;
 
     cursor: pointer;
 
}
 
}
  
 +
 +
.collapsable_menu_control:hover {
 +
background-color: #00bdcd;
 +
color: #ffffff;
 +
}
  
 
/********************************* CONTENT OF THE PAGE ********************************/
 
/********************************* CONTENT OF THE PAGE ********************************/
  
 
/* Wrapper for the content */
 
/* Wrapper for the content */
.content_wrapper {
+
.igem_content_wrapper {
width: 82%;
+
/*width: 88.9%;*/
float:left;  
+
width: -webkit-calc(100% -270px);
 +
width:    -moz-calc(100% - 270px);
 +
width:  calc(100% - 270px);
 +
display:block;
 
background-color:white;  
 
background-color:white;  
margin: 2%;
 
 
}
 
}
  
/*LAYOUT */
+
 
.column  {  
+
 
padding: 10px 0px;
+
/* subwrapper to center content */
float:left;  
+
.igem_column_wrapper {
 +
margin:auto;
 +
max-width: 1400px;
 +
width:90%;
 
}
 
}
  
  
  
.full_size {
+
/* class for when the menu is not shown and the content occupies the whole screen */
width:100%;  
+
.igem_content_wrapper.full_screen {
 +
width: 96%;  
 
}
 
}
  
.full_size img {
 
padding: 10px 15px;
 
width:97.5%;
 
}
 
  
.half_size {
+
/*LAYOUT */
width: 50%;  
+
.column  {  
 +
padding: 10px 0px;
 +
float:left;  
 
}
 
}
  
.half_size img {
 
padding: 10px 15px;
 
width: 93%;
 
}
 
  
 
+
/*main layout class */
.third_size {
+
.column  {  
width: 33.3%;  
+
float:left;
}
+
margin: 1% 2%;
.third_size img {
+
padding: 0px;
padding: 10px 15px;
+
width: 92%;  
+
 
}
 
}
  
 +
/* 100% */
 +
.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*/
.fourth_size {
+
.full_size img,
width: 25%;
+
.half_size img,
}
+
.two_thirds_size img,
 +
.third_size img, 
 +
.three_quarters_size img,
 
.fourth_size img {  
 
.fourth_size img {  
padding: 10px 15px;
+
margin-bottom: 15px;
width: 92%;  
+
width: 100%;  
 
}
 
}
 
 
  
  
Line 403: Line 476:
  
 
.highlight.turquoise_top {
 
.highlight.turquoise_top {
     border-top: 4px solid #666666;
+
     border-top: 4px solid #00bdcd;
 
}
 
}
  
  
 
.highlight.turquoise_border {
 
.highlight.turquoise_border {
     border: 4px solid #666666;
+
     border: 4px solid #00bdcd;
 
}
 
}
  
  
  
 +
.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;
 +
}
 +
 +
 +
.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;
 +
}
 +
 +
.expand_content.control_button:hover {
 +
color:#00bdcd;
 +
background-color:#ffffff;
 +
border: 2px solid #00bdcd;
 +
float: left;
 +
}
 +
 +
 +
.expand_content.control_button::before {
 +
content: "+";
 +
}
 +
 +
/* this is the icon for when the content is expanded */
 +
.expand_content.control_button.less::before {
 +
content: "–";
 +
}
 +
 +
.expand_content.more {
 +
float:left;
 +
display: none;
 +
}
  
  
Line 423: Line 571:
 
}
 
}
  
.button a {
+
.button a,  #bodyContent a[href ^="https://"], .link-https {
color: #FFFFFF !important;
+
color: #000000 !important;
 
font-weight: bold;
 
font-weight: bold;
 
margin: auto;
 
margin: auto;
 
text-decoration: none !important;
 
text-decoration: none !important;
background-color: #000000;
+
background-color: #00bdcd;
 
padding: 10px 15px;
 
padding: 10px 15px;
 
}
 
}
  
.button a:hover {
+
.button a:hover , #bodyContent a[href ^="https://"]:hover, .link-https {
background-color: #666666;   
+
background-color: #000000;   
 +
color: #00bdcd !important;
 
}
 
}
  
Line 441: Line 590:
  
 
.multiple_links a:hover {
 
.multiple_links a:hover {
color: #666666 !important;
+
color: #004789 !important;
 
}
 
}
  
Line 456: Line 605:
 
padding: 0px;
 
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: #666666;
+
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 476: 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 483: 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:#666666;
+
text-decoration-color:#004789;
color: #666666;
+
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 496: 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 502: 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 509: Line 737:
  
 
/* numbered lists */
 
/* numbered lists */
.content_wrapper ol {
+
.igem_content_wrapper ol {
 
padding:0px;  
 
padding:0px;  
 
font-size: 13px;
 
font-size: 13px;
Line 516: Line 744:
  
 
/* Table */
 
/* Table */
.content_wrapper table {  
+
.igem_content_wrapper table {  
 
width: 97%;  
 
width: 97%;  
 
margin:15px 10px;  
 
margin:15px 10px;  
Line 524: 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 532: 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 571: Line 799:
  
 
.left_column.month_access{
 
.left_column.month_access{
   border: 4px solid #666666;
+
   border: 4px solid #00bdcd;
  
     color: #666666;
+
     color: #00bdcd;
 
     font-size: 40px;
 
     font-size: 40px;
 
     font-weight: bold;
 
     font-weight: bold;
Line 589: Line 817:
  
 
.left_column.month_access:hover {
 
.left_column.month_access:hover {
background-color: #666666;
+
background-color: #00bdcd;
 
color: white;
 
color: white;
 
-webkit-transition: all 0.4s ease;
 
-webkit-transition: all 0.4s ease;
Line 616: Line 844:
  
  
 +
#all_menu_items{ display:block;}
  
  
.expand_content {
 
float:left;
 
}
 
  
.expand_content.first {
+
.full_size_image { margin-top:-55px; width: calc(100% - 270px); }  
margin-right: -15px;
+
}
+
  
.expand_content.more {
 
display:none;
 
}
 
  
.expand_content.control_button {
 
font-weight: bold;
 
text-align: center;
 
border-radius: 50%;
 
margin: 0px 5px;
 
border: 2px solid #00bdcd;
 
background-color:#00bdcd;
 
color:#ffffff;
 
width: 20px;
 
padding-bottom: 1px;
 
cursor:pointer;
 
}
 
  
  
.expand_content.control_button:hover{
 
color:#00bdcd;
 
background-color:#ffffff;
 
    border: 2px solid #00bdcd;
 
    float: left;
 
}
 
  
.control_button::before {
+
/********************************* RESPONSIVE STYLING ********************************/
content: "+";  
+
 
 +
 
 +
/* 1784px  */
 +
/************************************************/
 +
@media only screen and (max-width: 1784px) {
 +
.igem_content_wrapper { width:85%;}
 +
.full_size_image {  width:85%;}
 +
 
 +
 
 
}
 
}
  
/* this is the icon for when the content is expanded */
+
 
.control_button.less::before {
+
 
content: "–";  
+
 
 +
/* IF THE SCREEN IS LESS THAN 1400PX */
 +
@media only screen and (max-width: 1400px) {
 +
.long_menu_name { font-size: 10px;}
 
}
 
}
  
Line 663: Line 877:
  
  
/********************************* RESPONSIVE STYLING ********************************/
 
  
/* IF THE SCREEN IS LESS THAN 1000PX */
 
  
@media only screen and (max-width: 1000px) {
+
 
 +
 
 +
/* IF THE SCREEN IS LESS THAN 1200PX */
 +
 
 +
@media only screen and (max-width: 1200px) {
  
 
#content {width:100%; }
 
#content {width:100%; }
.menu_wrapper {width:15%;}
+
.igem_menu_wrapper {width:15%; right:0%;}
 
.highlight {padding:10px 0px;}
 
.highlight {padding:10px 0px;}
.load_menu_here {display:none;}
+
.load_menu_here, .menu_icon {display:none;}
ul.image_slider {  padding:0px; width: 100%;     margin: auto;}
+
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%;}
 
}
 
}
  
  
/* IF THE SCREEN IS LESS THAN 800PX */
+
/* IF THE SCREEN IS LESS THAN 885PX */
  
@media only screen and (max-width: 800px) {
+
@media only screen and (max-width: 885px) {
.collapsable_menu_control { display:block;}
+
.load_menu_here {display:none;}
+
  
.menu_wrapper { width:100%; height: 15%; position:relative; left:0%;}
+
.collapsable_menu_control, .menu_icon, .submenu_access { display:block;}
.content_wrapper {width:100%; margin-left:0px;}
+
.load_menu_here, .menu_bottom_padding {display:none;}
.column.half_size {width:100%; }
+
.igem_menu_wrapper { width:100%; height: 15%; position:relative; left:0%;}
.column.third_size {width:100%; }
+
.igem_content_wrapper {width:100%; margin-left:0px;}
.column.fourth_size {width:100%; }
+
.column.half_size, .column.third_size, .column.fourth_size {width:100%; }
 
.column img { width: 100%; padding: 5px 0px;}
 
.column img { width: 100%; padding: 5px 0px;}
.submenu_access {display:block;}
 
 
.highlight {padding:15px 5px;}
 
.highlight {padding:15px 5px;}
.menu_wrapper img { width: 30%;  margin-left: 35%;}
+
.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%;}
 
}
 
}
  
Line 707: Line 935:
 
<head>  
 
<head>  
 
<meta name="viewport" content="width=device-width, initial-scale=1">  
 
<meta name="viewport" content="width=device-width, initial-scale=1">  
 +
 +
 
</head>
 
</head>
  
Line 713: Line 943:
  
  
<div class="menu_wrapper" >
+
<div class="igem_menu_wrapper" >
  
  
<a href="https://2017.igem.org/Main_Page"> <img src="https://static.igem.org/mediawiki/2017/6/63/HQ_menu_logo_2017.png"></a>
+
<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>
  
<div class="collapsable_menu_control"> MENU </div>
+
<div class="collapsable_menu_control"> MENU </div>
  
 +
<div id="all_menu_items">
 +
<div id="load_menu_here">
  
<div id="load_menu_here">
+
<div class="menu_is_loading">  
 
+
<div class="menu_is_loading">  
+
 
 
<div class="menu_title"> <b> Loading... </b></div>
+
<div class="menu_title"> <b> Loading... </b></div>
 +
 
 +
</div>
  
 
</div>
 
</div>
 
 
</div>
 
</div>
 
 
</div>
 
</div>
  
Line 737: Line 974:
  
  
<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