Difference between revisions of "Template:Main2019"

 
(14 intermediate revisions by 2 users not shown)
Line 364: Line 364:
 
.igem_content_wrapper a:hover {  
 
.igem_content_wrapper a:hover {  
 
color: #13c0d7;
 
color: #13c0d7;
 +
text-decoration:none;
 +
}
 +
 +
/*for images that are href*/
 +
a.image_href{
 
text-decoration:none;
 
text-decoration:none;
 
}
 
}
Line 409: Line 414:
 
/* table headers */
 
/* table headers */
 
.igem_content_wrapper th {  
 
.igem_content_wrapper th {  
background-color:#dcdcdc;  
+
    background-color: #f2f2f2;
border: 1px solid #d3d3d3;  
+
    border: 1px solid #d3d3d3;
border-collapse: collapse;  
+
    border-collapse: collapse;
font-size: 110%;
+
    font-size: 110%;
padding: 10px;  
+
    padding: 10px;
vertical-align: text-top;  
+
    vertical-align: text-top;
 +
    text-align: left;
 
}
 
}
  
Line 1,046: Line 1,052:
 
}
 
}
  
+
 
 +
 
 +
/*read more class for large sections of text*/
 +
 
 +
.read_more {
 +
background-color:#00A19B;
 +
border: 1px solid #00A19B;
 +
border-radius:5px;
 +
color: #ffffff;
 +
font-weight: bold;
 +
padding: 0px 12px;
 +
}
 +
 
 +
 
 +
.read_more:hover {
 +
background-color:#0a5157;
 +
border: 1px solid #0a5157;
 +
color: #ffffff;
 +
cursor:pointer;
 +
}
 +
 
 +
 
 +
.read_more::before{
 +
content: "Read more";
 +
white-space:nowrap;
 +
}
 +
 
 +
.read_more.show_less::before{
 +
content: "Show less";
 +
}
 +
 
 +
.read_more_text{
 +
display:none;
 +
}
 +
 
 
 
 
/*mobile*/
 
/*mobile*/
Line 1,088: Line 1,128:
 
.submenu_item.with_subsub_menu{ width:68%;}   
 
.submenu_item.with_subsub_menu{ width:68%;}   
 
.subsubmenu_item {font-size:70%;}
 
.subsubmenu_item {font-size:70%;}
 +
.igem_column_wrapper{padding-top:0px;}
 
 
 
}
 
}
Line 1,097: Line 1,138:
 
 
 
.igem_content_wrapper {width:100%; margin-left:0px;}
 
.igem_content_wrapper {width:100%; margin-left:0px;}
+
.igem_column_wrapper{padding-top:25px;}
 +
 
 
.half_size, .two_thirds_size, .third_size, .three_quarter_size, .quarter_size,  
 
.half_size, .two_thirds_size, .third_size, .three_quarter_size, .quarter_size,  
 
.column.full_size > .highlight.news_item > .column.quarter_size,  
 
.column.full_size > .highlight.news_item > .column.quarter_size,  
Line 1,154: Line 1,196:
 
if ($("#HQ_info").length){
 
if ($("#HQ_info").length){
 
hide_HQ_info();
 
hide_HQ_info();
}
 
 
//if image_slider exists, activate the automatic rotation slider and functionality
 
if ($("#image_carrousel").length){
 
image_slider_rotation();
 
 
}
 
}
  
Line 1,166: Line 1,203:
 
});
 
});
  
 
$(".collapsible_accordion_access").click(function(){
 
$(this).toggleClass("displaying_content");
 
$(this).parent().next().toggleClass("hide_content");
 
});
 
  
 
if( $(".igem_mobile_menu_bar").is(":visible") ){
 
if( $(".igem_mobile_menu_bar").is(":visible") ){
Line 1,177: Line 1,209:
 
});
 
});
 
}
 
}
 +
 +
 +
//expand collapse functionality
 +
$(".collapsible_accordion_access").click(function(){
 +
$(this).toggleClass("displaying_content");
 +
$(this).parent().next().toggleClass("hide_content");
 +
});
 +
 +
//read more functionality
 +
$(".read_more").click(function(){
 +
$(this).toggleClass("show_less");
 +
$(this).prev(".read_more_text").fadeToggle(400);
 +
});
 +
 +
//if image_slider exists, activate the automatic rotation slider and functionality
 +
if ($("#image_carrousel").length){
 +
image_slider_rotation();
 +
}
 +
  
  

Latest revision as of 18:02, 20 November 2019

Loading...