(12 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 130: | Line 184: | ||
} | } | ||
+ | /* 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 200: | Line 266: | ||
padding:20px 15px; | padding:20px 15px; | ||
border-bottom: 0px; | border-bottom: 0px; | ||
− | font-size: | + | font-size:27px |
font-family: 'Montserrat', sans-serif; | font-family: 'Montserrat', sans-serif; | ||
− | color: # | + | color: #9DCDC3; /* TAG::LETTERS */ |
} | } | ||
Line 341: | Line 407: | ||
padding: 10px 15px; | padding: 10px 15px; | ||
} | } | ||
+ | |||
+ | /* class for a fifth width column */ | ||
+ | .column.fifth_size { | ||
+ | width: 20%; | ||
+ | } | ||
Line 478: | Line 549: | ||
<li><a href="/Team:Virginia/Description">Description</a></li> | <li><a href="/Team:Virginia/Description">Description</a></li> | ||
<li><a href="/Team:Virginia/Design">Design</a></li> | <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 486: | Line 558: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<li class="dropdown"> | <li class="dropdown"> |
Latest revision as of 06:18, 1 November 2017