Difference between revisions of "Template:Virginia"

 
(5 intermediate revisions by one other user not shown)
Line 120: Line 120:
  
  
 +
</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 165: Line 197:
 
}
 
}
  
/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
 
button.accordion.active, button.accordion:hover {
 
    background-color: #ccc;
 
}
 
 
/* Style the accordion panel. Note: hidden by default */
 
div.panel {
 
    padding: 0 18px;
 
    background-color: white;
 
    display: none;
 
}
 
  
 
/***************************************************** DEFAULT WIKI SETTINGS  ****************************************************/
 
/***************************************************** DEFAULT WIKI SETTINGS  ****************************************************/
Line 386: Line 407:
 
padding: 10px 15px;
 
padding: 10px 15px;
 
}
 
}
 +
 +
  /* class for a fifth width column */
 +
.column.fifth_size {
 +
width: 20%;
 +
}
 
        
 
        
  
Line 524: Line 550:
 
                     <li><a href="/Team:Virginia/Design">Design</a></li>
 
                     <li><a href="/Team:Virginia/Design">Design</a></li>
 
                     <li><a href="/Team:Virginia/Model">Model</a></li>
 
                     <li><a href="/Team:Virginia/Model">Model</a></li>
                     <li><a href="/Team:Virginia/Part_Collection">Part Collection</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/Improve">Improve</a></li>
 
                     <li><a href="/Team:Virginia/Results">Results</a></li>
 
                     <li><a href="/Team:Virginia/Results">Results</a></li>

Latest revision as of 06:18, 1 November 2017