(41 intermediate revisions by 2 users not shown) | |||
Line 96: | Line 96: | ||
}); | }); | ||
+ | |||
+ | |||
+ | /*********CHRISTIA'S SCRIPT**********/ | ||
+ | |||
+ | var acc = document.getElementsByClassName("accordion"); | ||
+ | var i; | ||
+ | |||
+ | for (i = 0; i < acc.length; i++) { | ||
+ | acc[i].onclick = function(){ | ||
+ | /* Toggle between adding and removing the "active" class, | ||
+ | to highlight the button that controls the panel */ | ||
+ | this.classList.toggle("active"); | ||
+ | |||
+ | /* Toggle between hiding and showing the active panel */ | ||
+ | var panel = this.nextElementSibling; | ||
+ | if (panel.style.display === "block") { | ||
+ | panel.style.display = "none"; | ||
+ | } else { | ||
+ | panel.style.display = "block"; | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </script> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <style> | ||
+ | div.panel { | ||
+ | padding: 0 18px; | ||
+ | background-color: white; | ||
+ | max-height: 0; | ||
+ | overflow: hidden; | ||
+ | transition: max-height 0.2s ease-out; | ||
+ | } | ||
+ | </style> | ||
+ | |||
+ | <script> | ||
+ | var acc = document.getElementsByClassName("accordion"); | ||
+ | var i; | ||
+ | |||
+ | for (i = 0; i < acc.length; i++) { | ||
+ | acc[i].onclick = function() { | ||
+ | this.classList.toggle("active"); | ||
+ | var panel = this.nextElementSibling; | ||
+ | if (panel.style.maxHeight){ | ||
+ | panel.style.maxHeight = null; | ||
+ | } else { | ||
+ | panel.style.maxHeight = panel.scrollHeight + "px"; | ||
+ | } | ||
+ | } | ||
+ | } | ||
</script> | </script> | ||
Line 111: | Line 165: | ||
@font-face { | @font-face { | ||
− | font-family: " | + | font-family: "Opensans"; |
− | src: url(' | + | src: url('VirginiaOpenSansLight.ttf'); |
} | } | ||
Line 120: | Line 174: | ||
} | } | ||
+ | @font-face { | ||
+ | font-family: "Montserrat-Light"; | ||
+ | src: url('Montserrat-Light.ttf'); | ||
+ | } | ||
+ | @font-face { | ||
+ | font-family: "Montserrat-ExtraLight"; | ||
+ | src: url('Montserrat-ExtraLight.ttf'); | ||
+ | } | ||
+ | |||
+ | /* Style the buttons that are used to open and close the accordion panel */ | ||
+ | button.accordion { | ||
+ | background-color: #eee; | ||
+ | color: #444; | ||
+ | cursor: pointer; | ||
+ | padding: 18px; | ||
+ | width: 100%; | ||
+ | text-align: left; | ||
+ | border: none; | ||
+ | outline: none; | ||
+ | transition: 0.4s; | ||
+ | } | ||
Line 178: | Line 253: | ||
/********************************* HTML STYLING *********************************/ | /********************************* HTML STYLING *********************************/ | ||
− | /* styling for the titles h1 | + | /* styling for the titles h1 */ |
.igem_2017_content_wrapper h1, .igem_2017_content_wrapper h2 { | .igem_2017_content_wrapper h1, .igem_2017_content_wrapper h2 { | ||
padding:5px 15px; | padding:5px 15px; | ||
border-bottom: 0px; | border-bottom: 0px; | ||
− | font-family: ' | + | font-size:50px; |
− | font- | + | font-family: 'Montserrat', sans-serif; |
− | color: # | + | color:#9BC2C9; /* TAG::LETTERS */ |
+ | } | ||
+ | |||
+ | /* styling for the titles h2 */ | ||
+ | .igem_2017_content_wrapper h2 { | ||
+ | padding:20px 15px; | ||
+ | border-bottom: 0px; | ||
+ | font-size:27px | ||
+ | font-family: 'Montserrat', sans-serif; | ||
+ | color: #9DCDC3; /* TAG::LETTERS */ | ||
} | } | ||
Line 193: | Line 277: | ||
border-bottom:0px; | border-bottom:0px; | ||
/* font-family: Helvetica, Geneva, sans-serif; */ | /* font-family: Helvetica, Geneva, sans-serif; */ | ||
− | font-family: ' | + | font-family: 'Montserrat-Medium', sans-serif; |
− | + | ||
color: #36454F; /* TAG::LETTERS */ | color: #36454F; /* TAG::LETTERS */ | ||
} | } | ||
+ | |||
+ | /*Christia's Title Heading*/ | ||
+ | .igem_2017_content_wrapper h2017{ | ||
+ | padding:100px 100px; } | ||
+ | |||
/* font and text */ | /* font and text */ | ||
Line 304: | Line 392: | ||
/* styling for images in a half width column*/ | /* styling for images in a half width column*/ | ||
.column.half_size img { | .column.half_size img { | ||
− | width: | + | width: 100%; |
padding: 10px 15px; | padding: 10px 15px; | ||
} | } | ||
+ | /* class for a third width column */ | ||
+ | .column.third_size { | ||
+ | width: 33%; | ||
+ | } | ||
+ | } | ||
+ | /* styling for images in a third width column*/ | ||
+ | .column.third_size img { | ||
+ | width: 94.5%; | ||
+ | padding: 10px 15px; | ||
+ | } | ||
+ | |||
+ | /* class for a fifth width column */ | ||
+ | .column.fifth_size { | ||
+ | width: 20%; | ||
+ | } | ||
+ | |||
/********************************* SUPPORT CLASSES ********************************/ | /********************************* SUPPORT CLASSES ********************************/ | ||
Line 444: | Line 548: | ||
<ul class="dropdown-menu"> | <ul class="dropdown-menu"> | ||
<li><a href="/Team:Virginia/Description">Description</a></li> | <li><a href="/Team:Virginia/Description">Description</a></li> | ||
− | <li><a href="/Team:Virginia/ | + | <li><a href="/Team:Virginia/Design">Design</a></li> |
− | <li><a href="/Team:Virginia/ | + | <li><a href="/Team:Virginia/Model">Model</a></li> |
+ | <li><a href="/Team:Virginia/Part_Collection">Parts</a></li> | ||
+ | <li><a href="/Team:Virginia/Improve">Improve</a></li> | ||
<li><a href="/Team:Virginia/Results">Results</a></li> | <li><a href="/Team:Virginia/Results">Results</a></li> | ||
− | |||
− | |||
</ul> | </ul> | ||
Line 454: | Line 558: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<li class="dropdown"> | <li class="dropdown"> | ||
Line 470: | Line 566: | ||
<li><a href="/Team:Virginia/InterLab">InterLab</a></li> | <li><a href="/Team:Virginia/InterLab">InterLab</a></li> | ||
<li><a href="/Team:Virginia/Safety">Safety</a></li> | <li><a href="/Team:Virginia/Safety">Safety</a></li> | ||
+ | <li><a href="/Team:Virginia/Experiments">Protocols</a></li> | ||
+ | <li><a href="/Team:Virginia/MedalCriteria">Medal Criteria</a></li> | ||
</ul> | </ul> | ||
</li> | </li> |
Latest revision as of 06:18, 1 November 2017