(92 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() { | ||
+ | hide_show_menu(); | ||
+ | $("#HQ_page").attr('id',''); | ||
$( "#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 37: | Line 32: | ||
}); | }); | ||
− | $(".control_button").click(function(){ | + | $(".expand_content.control_button").click(function(){ |
− | $(this).next( " expand_content more").fadeToggle(400); | + | $(this).next(".expand_content.more").fadeToggle(400); |
$(this).toggleClass("less"); | $(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).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 | ||
− | + | ||
− | + | ||
− | + | ||
− | + | $(".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 | ||
− | |||
− | |||
− | |||
− | |||
− | case 2: // this is a link inside a submenu | + | $('#' + wgPageName.substr(0, wgPageName.indexOf('-') )).addClass("current_page"); |
− | $( | + | $(".current_page > .submenu_access").addClass("less"); |
− | $("#" + wgPageName. | + | $(".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; | ||
− | |||
− | |||
− | |||
− | |||
} | } | ||
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() { | ||
− | $(" | + | $("#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 () { | ||
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 */ | ||
− | . | + | .igem_menu_wrapper { |
− | + | background-color:#dddddd; | |
+ | float:right; | ||
height:100vh; | height:100vh; | ||
− | + | max-width: 270px; | |
+ | overflow-y: auto; | ||
+ | overflow-x: hidden; | ||
padding:0px; | padding:0px; | ||
− | + | position:fixed; | |
− | + | right:0%; | |
text-align:left; | text-align:left; | ||
− | + | width: 15%; | |
− | + | ||
− | + | ||
} | } | ||
+ | |||
/* styling for the images in the side menu */ | /* styling for the images in the side menu */ | ||
− | . | + | .igem_menu_wrapper img { |
− | width: | + | 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: | ||
} | } | ||
− | + | ||
+ | .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; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | . | + | .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: | + | 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: | + | width: 60%; |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
Line 237: | Line 284: | ||
} | } | ||
− | + | .submenu > .menu_item > .submenu { | |
− | .submenu > .menu_item | + | color: #666666; |
− | + | font-weight: normal; | |
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | + | .sub_submenu_item { | |
− | + | background-color: white; | |
− | background-color: | + | float: left; |
− | color: | + | width: 100%; |
− | + | padding: 10px 0px 10px 15%; | |
− | + | color: black; | |
+ | font-weight: bold; | ||
+ | border-bottom: 1px solid #dddddd; | ||
} | } | ||
− | |||
.submenu_access { | .submenu_access { | ||
− | float: | + | float: right; |
− | + | ||
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; |
− | + | 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 { | ||
− | |||
− | |||
float: left; | float: left; | ||
width: 100%; | width: 100%; | ||
− | font-size: | + | font-size: 12px; |
− | color: # | + | 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: # | + | float:left; |
+ | background-color: #f2f2f2; | ||
text-align: center; | text-align: center; | ||
font-weight: bold; | font-weight: bold; | ||
− | color: # | + | 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 */ | ||
− | . | + | .igem_content_wrapper { |
− | width: | + | /*width: 88.9%;*/ |
− | + | width: -webkit-calc(100% -270px); | |
+ | width: -moz-calc(100% - 270px); | ||
+ | width: calc(100% - 270px); | ||
+ | display:block; | ||
background-color:white; | background-color:white; | ||
− | |||
} | } | ||
− | /* | + | |
− | . | + | |
− | + | /* subwrapper to center content */ | |
− | + | .igem_column_wrapper { | |
+ | margin:auto; | ||
+ | max-width: 1400px; | ||
+ | width:90%; | ||
} | } | ||
− | . | + | /* class for when the menu is not shown and the content occupies the whole screen */ |
− | width: | + | .igem_content_wrapper.full_screen { |
+ | width: 96%; | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | . | + | /*LAYOUT */ |
− | + | .column { | |
+ | padding: 10px 0px; | ||
+ | float:left; | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | + | /*main layout class */ | |
− | . | + | .column { |
− | + | float:left; | |
− | + | margin: 1% 2%; | |
− | + | padding: 0px; | |
− | + | ||
− | + | ||
} | } | ||
+ | /* 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*/ | |
− | . | + | .full_size img, |
− | + | .half_size img, | |
− | + | .two_thirds_size img, | |
+ | .third_size img, | ||
+ | .three_quarters_size img, | ||
.fourth_size img { | .fourth_size img { | ||
− | + | margin-bottom: 15px; | |
− | width: | + | width: 100%; |
} | } | ||
− | |||
− | |||
Line 403: | Line 476: | ||
.highlight.turquoise_top { | .highlight.turquoise_top { | ||
− | border-top: 4px solid # | + | border-top: 4px solid #00bdcd; |
} | } | ||
.highlight.turquoise_border { | .highlight.turquoise_border { | ||
− | border: 4px solid # | + | 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: # | + | color: #000000 !important; |
font-weight: bold; | font-weight: bold; | ||
margin: auto; | margin: auto; | ||
text-decoration: none !important; | text-decoration: none !important; | ||
− | background-color: # | + | background-color: #00bdcd; |
padding: 10px 15px; | padding: 10px 15px; | ||
} | } | ||
− | .button a:hover { | + | .button a:hover , #bodyContent a[href ^="https://"]:hover, .link-https { |
− | background-color: # | + | background-color: #000000; |
+ | color: #00bdcd !important; | ||
} | } | ||
Line 441: | Line 590: | ||
.multiple_links a:hover { | .multiple_links a:hover { | ||
− | color: # | + | 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 */ | ||
− | . | + | .igem_content_wrapper h1, .igem_content_wrapper h2 { |
padding:5px 15px; | padding:5px 15px; | ||
border-bottom:0px; | border-bottom:0px; | ||
− | color: # | + | color: #00bdcd; |
} | } | ||
− | . | + | .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 */ | ||
− | . | + | .igem_content_wrapper p { |
padding:0px 15px; | padding:0px 15px; | ||
font-size: 13px; | font-size: 13px; | ||
Line 483: | Line 711: | ||
/* Links */ | /* Links */ | ||
− | . | + | .igem_content_wrapper a { |
font-weight: bold; | font-weight: bold; | ||
text-decoration: underline; | text-decoration: underline; | ||
− | text-decoration-color:# | + | text-decoration-color:#004789; |
− | color: # | + | 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 */ | ||
− | . | + | .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 */ | ||
− | . | + | .igem_content_wrapper ul { |
padding:0px 20px; | padding:0px 20px; | ||
font-size: 13px; | font-size: 13px; | ||
Line 509: | Line 737: | ||
/* numbered lists */ | /* numbered lists */ | ||
− | . | + | .igem_content_wrapper ol { |
padding:0px; | padding:0px; | ||
font-size: 13px; | font-size: 13px; | ||
Line 516: | Line 744: | ||
/* Table */ | /* Table */ | ||
− | . | + | .igem_content_wrapper table { |
width: 97%; | width: 97%; | ||
margin:15px 10px; | margin:15px 10px; | ||
Line 524: | Line 752: | ||
/* table cells */ | /* table cells */ | ||
− | . | + | .igem_content_wrapper td { |
padding: 10px; | padding: 10px; | ||
vertical-align: text-top; | vertical-align: text-top; | ||
Line 532: | Line 760: | ||
/* table headers */ | /* table headers */ | ||
− | . | + | .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 # | + | border: 4px solid #00bdcd; |
− | color: # | + | 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: # | + | 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;} | ||
− | |||
− | |||
− | |||
− | . | + | .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%;} | ||
+ | |||
+ | |||
} | } | ||
− | /* | + | |
− | + | ||
− | + | ||
+ | /* IF THE SCREEN IS LESS THAN 1400PX */ | ||
+ | @media only screen and (max-width: 1400px) { | ||
+ | .long_menu_name { font-size: 10px;} | ||
} | } | ||
Line 663: | Line 877: | ||
− | |||
− | |||
− | @media only screen and (max-width: | + | |
+ | |||
+ | /* IF THE SCREEN IS LESS THAN 1200PX */ | ||
+ | |||
+ | @media only screen and (max-width: 1200px) { | ||
#content {width:100%; } | #content {width:100%; } | ||
− | . | + | .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;} | |
− | + | .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 | + | /* IF THE SCREEN IS LESS THAN 885PX */ |
− | @media only screen and (max-width: | + | @media only screen and (max-width: 885px) { |
− | + | ||
− | + | ||
− | . | + | .collapsable_menu_control, .menu_icon, .submenu_access { display:block;} |
− | . | + | .load_menu_here, .menu_bottom_padding {display:none;} |
− | .column.half_size | + | .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;} | .column img { width: 100%; padding: 5px 0px;} | ||
− | |||
.highlight {padding:15px 5px;} | .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%;} | ||
} | } | ||
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=" | + | <div class="igem_menu_wrapper" > |
− | <a href="https://2017.igem.org/Main_Page"> <img src="https://static.igem.org/mediawiki/2017/ | + | <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 class="collapsable_menu_control"> MENU </div> |
+ | <div id="all_menu_items"> | ||
+ | <div id="load_menu_here"> | ||
− | + | <div class="menu_is_loading"> | |
− | + | ||
− | + | ||
− | + | <div class="menu_title"> <b> Loading... </b></div> | |
+ | |||
+ | </div> | ||
</div> | </div> | ||
− | |||
</div> | </div> | ||
− | |||
</div> | </div> | ||
Line 737: | Line 974: | ||
− | <div class=" | + | <div class="igem_content_wrapper"> |
+ | <div class=" igem_column_wrapper"> | ||
</html> | </html> |
Latest revision as of 19:03, 5 September 2018