Line 10: | Line 10: | ||
+ | |||
+ | |||
+ | |||
var page_url="https://2018.igem.org/"; | var page_url="https://2018.igem.org/"; | ||
$( "#load_menu_here" ).load( "https://2018.igem.org/HQ:Menu #load_menu_content" , function() { | $( "#load_menu_here" ).load( "https://2018.igem.org/HQ:Menu #load_menu_content" , function() { | ||
Line 86: | Line 89: | ||
$(this).next().fadeToggle(400); | $(this).next().fadeToggle(400); | ||
}); | }); | ||
+ | |||
+ | |||
}); | }); | ||
+ | |||
+ | |||
+ | |||
}); | }); | ||
Line 629: | Line 637: | ||
display: none; | display: none; | ||
float:left; | float:left; | ||
+ | } | ||
+ | |||
+ | |||
+ | /*hiding and showing content */ | ||
+ | /************************************************/ | ||
+ | |||
+ | /*content for buttons showing/hiding content */ | ||
+ | .content_control::before { content: "+"; } | ||
+ | .content_control.displaying_content::before { content: "-"; } | ||
+ | |||
+ | /*used to hide content when it is added to a class */ | ||
+ | .hide_content, | ||
+ | .calendar_month_content.hide_content { | ||
+ | display:none; | ||
} | } | ||
Line 648: | Line 670: | ||
padding-right: 15px; | padding-right: 15px; | ||
} | } | ||
− | |||
/*Multiple links in a ul */ | /*Multiple links in a ul */ | ||
Line 660: | Line 681: | ||
} | } | ||
− | + | /*Make text red and bold*/ | |
+ | /************************************************/ | ||
+ | .red_text { | ||
+ | color: red; | ||
+ | font-weight:bold; | ||
+ | } | ||
/*Image slider/ | /*Image slider/ | ||
Line 767: | Line 793: | ||
/*calendar */ | /*calendar */ | ||
/************************************************/ | /************************************************/ | ||
− | . | + | |
− | + | /*wrapper for each month*/ | |
− | + | .calendar_month_test { | |
− | + | border-bottom: 1px solid #ddd; | |
− | + | float: left; | |
− | + | padding: 30px 0px 20px 0px; | |
− | + | width:100%; | |
} | } | ||
− | . | + | /*contains all the deadlines for the month*/ |
− | + | .calendar_month_content { | |
− | + | display:block; | |
− | + | margin-top:30px; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
+ | /*deadline's date*/ | ||
+ | .deadline_date { | ||
+ | border: 2px solid #ddd; | ||
+ | border-radius: 5%; | ||
+ | color: #989898; | ||
+ | float: left; | ||
+ | font-size: 155%; | ||
+ | font-weight:bold; | ||
+ | margin-right: 5%; | ||
+ | max-width: 100px; | ||
+ | padding: 30px 0px; | ||
+ | text-align: center; | ||
+ | width: 15%; | ||
+ | } | ||
− | . | + | /* description of the deadline*/ |
− | + | .deadline_content { | |
− | + | float: left; | |
− | + | width:75%; | |
− | + | ||
− | + | ||
} | } | ||
− | . | + | /* button controling the show/hide of the month's events*/ |
− | + | .calendar_month_access{ | |
+ | background-color: #90528f; | ||
+ | border: 2px solid #90528f; | ||
+ | border-radius: 14%; | ||
+ | color: #fff !important; | ||
+ | float: right; | ||
+ | margin-top: -5px; | ||
+ | text-align: center; | ||
+ | padding: 6px 5px; | ||
+ | width: 25px; | ||
} | } | ||
− | . | + | /*when hovering on the show/hide month content button*/ |
− | + | .calendar_month_access:hover { | |
− | } | + | background-color:#542160; |
+ | border: 2px solid #542160; | ||
+ | cursor:pointer; | ||
+ | } | ||
− | + | </style> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Revision as of 19:34, 23 January 2018
/*support classes*/ /**************************************************************************************************************************************************************************************************/ /* 2000px */ /************************************************/ @media only screen and (max-width: 2000px) { .igem_content_wrapper { width: 86.6%;} } /* 1800px */ /************************************************/ @media only screen and (max-width: 1800px) { .igem_content_wrapper { width: 85.4%;} } /* 1700px */ /************************************************/ @media only screen and (max-width: 1700px) { .igem_content_wrapper { width: 85%;} .hub_title{ font-size: 115%;} } /* 1550px */ /************************************************/ @media only screen and (max-width: 1550px) { .hub_title{ font-size: 105%;} } /* 1450px */ /************************************************/ @media only screen and (max-width: 1450px) { .hub_title{ font-size: 90%;} .submenu_item {font-size:85%;} .subsubmenu_item {font-size:80%;} } /* 1200px */ /************************************************/ @media only screen and (max-width: 1200px) { #content {width:100%; } .igem_menu_wrapper {width:15%; right:0%;} .load_menu_here, .menu_icon {display:none;} ul.image_slider { padding:0px; width: 100%; margin: auto;} .hub_icon{ display:none;} .hub_title{ width: 77%; padding-left: 7%; padding-right:0; font-size:80%;} .submenu_item{ padding-left: 16%; padding-right:0; font-size:75% } .submenu_item.with_subsub_menu{ width:68%;} .subsubmenu_item {font-size:70%;} } /* 1100px */ /************************************************/ @media only screen and (max-width: 1100px) { .hub_title{ font-size: 80%;} } /* 885px */ /************************************************/ @media only screen and (max-width: 885px) { .igem_content_wrapper {width:100%; margin-left:0px;} .half_size, .two_thirds_size, .third_size, .three_quarters_size, .quarter_size {width:100%; } .column img { width: 96%; padding: 2% 0px;} .highlight {padding:15px 5px;} .igem_menu { width: 100%; float: left; position: relative; max-width: 100%;} .igem_mobile_menu_bar {display:block;} .hub_icon{ display:block;} .hub_title{ width: 68%; padding-left:0%} .igem_menu, .igem_menu_logo {display:none;} }