(20 intermediate revisions by one other user not shown) | |||
Line 22: | Line 22: | ||
highlight_current_page_menu(); | highlight_current_page_menu(); | ||
}); | }); | ||
+ | |||
+ | |||
+ | $(".collapsible_accordion_access").click(function(){ | ||
+ | $(this).toggleClass("displaying_content"); | ||
+ | $(this).parent().next().toggleClass("hide_content"); | ||
+ | }); | ||
+ | |||
}); | }); | ||
Line 274: | Line 281: | ||
height: 39px; | height: 39px; | ||
width:100%; | width:100%; | ||
+ | } | ||
+ | |||
+ | .igem_menu_item.last_item{ | ||
+ | margin-bottom:60px; | ||
} | } | ||
Line 558: | Line 569: | ||
.igem_content_wrapper ul { | .igem_content_wrapper ul { | ||
font-family:Tahoma, Geneva, sans-serif; | font-family:Tahoma, Geneva, sans-serif; | ||
− | font-size: | + | font-size: 120%; |
padding:0px 20px; | padding:0px 20px; | ||
+ | list-style: disc; | ||
} | } | ||
/*font size specifications for nested lists and other special cases*/ | /*font size specifications for nested lists and other special cases*/ | ||
− | |||
− | .igem_content_wrapper td > ul li, | + | |
− | + | .igem_content_wrapper td > ul li, .igem_content_wrapper ol ol li, .igem_content_wrapper ul ol li, .igem_content_wrapper ol ul li, .igem_content_wrapper ul ul li { | |
− | + | font-size: 85%; | |
+ | } | ||
Line 684: | Line 696: | ||
.highlight.decoration_dark_top { | .highlight.decoration_dark_top { | ||
border-top: 4px solid #542160; | border-top: 4px solid #542160; | ||
+ | } | ||
+ | |||
+ | .highlight.decoration_medium_top { | ||
+ | border-top: 4px solid #90528f; | ||
} | } | ||
Line 700: | Line 716: | ||
.highlight.decoration_dark_full { | .highlight.decoration_dark_full { | ||
border: 4px solid #542160; | border: 4px solid #542160; | ||
+ | } | ||
+ | |||
+ | .highlight.decoration_medium_full { | ||
+ | border: 4px solid #90528f; | ||
} | } | ||
Line 717: | Line 737: | ||
/*special image that takes up the entire page*/ | /*special image that takes up the entire page*/ | ||
− | .full_size_image { width:100%; } | + | .full_size_image { width:100%; margin-top: -59px;} |
Line 796: | Line 816: | ||
/*used to hide content when it is added to a class */ | /*used to hide content when it is added to a class */ | ||
.hide_content, | .hide_content, | ||
− | . | + | .collapsible_accordion_content.hide_content { |
display:none; | display:none; | ||
} | } | ||
Line 810: | Line 830: | ||
.news_date { | .news_date { | ||
− | + | font-style: italic; | |
display: inline-block; | display: inline-block; | ||
color: #333333; | color: #333333; | ||
Line 817: | Line 837: | ||
padding-right: 15px; | padding-right: 15px; | ||
} | } | ||
+ | |||
+ | /* icon decorations for the news class*/ | ||
+ | |||
+ | .news_item_icon.igemlogo:after { | ||
+ | background-image: url('https://static.igem.org/mediawiki/igem.org/e/e4/Main_igem_logo.svg'); | ||
+ | background-size: 25px 25px; | ||
+ | display: inline-block; | ||
+ | width: 25px; | ||
+ | height: 25px; | ||
+ | content:""; | ||
+ | |||
+ | } | ||
+ | |||
+ | .news_item_icon.pinned:after { | ||
+ | background-image: url('https://static.igem.org/mediawiki/2018/2/25/Icon_news_pinned.svg'); | ||
+ | background-size: 25px 25px; | ||
+ | display: inline-block; | ||
+ | width: 25px; | ||
+ | height: 25px; | ||
+ | content:""; | ||
+ | |||
+ | } | ||
+ | |||
+ | |||
+ | .news_item_icon.reminder:after { | ||
+ | background-image: url('https://static.igem.org/mediawiki/2018/a/a2/Icon_news_reminder.svg'); | ||
+ | background-size: 25px 25px; | ||
+ | display: inline-block; | ||
+ | width: 25px; | ||
+ | height: 25px; | ||
+ | content:""; | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | .news_item_icon.info:after { | ||
+ | background-image: url('https://static.igem.org/mediawiki/2018/b/b7/Icon_news_info.svg'); | ||
+ | background-size: 25px 25px; | ||
+ | display: inline-block; | ||
+ | width: 25px; | ||
+ | height: 25px; | ||
+ | content:""; | ||
+ | } | ||
+ | |||
+ | |||
+ | .news_item_icon.announcement:after { | ||
+ | background-image: url('https://static.igem.org/mediawiki/2018/a/a7/Icon_news_announcement.svg'); | ||
+ | background-size: 25px 25px; | ||
+ | display: inline-block; | ||
+ | width: 25px; | ||
+ | height: 25px; | ||
+ | content:""; | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | /* center content */ | ||
+ | .center_content p, | ||
+ | .center_content h1, | ||
+ | .center_content h2, | ||
+ | .center_content h3, | ||
+ | .center_content h4, | ||
+ | .center_content h5, | ||
+ | .center_content h6 { | ||
+ | text-align:center; | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
/*Multiple links in a ul */ | /*Multiple links in a ul */ | ||
Line 1,007: | Line 1,098: | ||
− | /* | + | /*accordion */ |
/************************************************/ | /************************************************/ | ||
/*wrapper for each month*/ | /*wrapper for each month*/ | ||
− | . | + | .collapsible_accordion { |
border-bottom: 1px solid #ddd; | border-bottom: 1px solid #ddd; | ||
float: left; | float: left; | ||
Line 1,018: | Line 1,109: | ||
} | } | ||
− | /* | + | /*content to show/hide*/ |
− | . | + | .collapsible_accordion_content { |
display:block; | display:block; | ||
margin-top:30px; | margin-top:30px; | ||
} | } | ||
+ | |||
+ | |||
+ | /* button controling the show/hide of the month's events*/ | ||
+ | .collapsible_accordion_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*/ | ||
+ | .collapsible_accordion_access:hover { | ||
+ | background-color:#542160; | ||
+ | border: 2px solid #542160; | ||
+ | cursor:pointer; | ||
+ | } | ||
+ | |||
+ | |||
+ | /*calendar*/ | ||
+ | /************************************************/ | ||
/*deadline's date*/ | /*deadline's date*/ | ||
Line 1,045: | Line 1,161: | ||
} | } | ||
− | /* | + | /*controlled image size*/ |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | .controlled_size_image{ | ||
+ | max-width: 300px; | ||
+ | } | ||
/*mobile*/ | /*mobile*/ | ||
Line 1,070: | Line 1,171: | ||
− | /* | + | /* 1784px */ |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
/************************************************/ | /************************************************/ | ||
− | @media only screen and (max-width: | + | @media only screen and (max-width: 1784px) { |
− | .igem_content_wrapper { width: 85 | + | .igem_content_wrapper { width:85%;} |
− | + | ||
} | } | ||
− | /* | + | /* 1602px */ |
/************************************************/ | /************************************************/ | ||
− | @media only screen and (max-width: | + | @media only screen and (max-width: 1602px) { |
.hub_title{ font-size: 105%;} | .hub_title{ font-size: 105%;} | ||
} | } | ||
Line 1,130: | Line 1,218: | ||
@media only screen and (max-width: 885px) { | @media only screen and (max-width: 885px) { | ||
.igem_content_wrapper {width:100%; margin-left:0px;} | .igem_content_wrapper {width:100%; margin-left:0px;} | ||
− | .half_size, .two_thirds_size, .third_size, . | + | .half_size, .two_thirds_size, .third_size, .three_quarter_size, .quarter_size {width:100%; } |
.column img { width: 96%; padding: 2% 0px;} | .column img { width: 96%; padding: 2% 0px;} | ||
.highlight {padding:15px 5px;} | .highlight {padding:15px 5px;} |
Latest revision as of 18:23, 20 July 2018