JSFiddle - React, Tailwind, and code Playground

by archon88

HTML

<script src="https://code.jquery.com/jquery-latest.min.js"></script>

CSS

.headerBackground{
background-image: linear-gradient(to right, rgb(5,165,240), rgb(40,25,105));
}

.headerText{
    background-image: linear-gradient(to left, rgb(5,165,240), rgb(40,25,105));
    color:transparent;
    font-size: 20pt;
    background-clip: text;
    display: inline;
    padding: 20px 0;
}

.persistanceInformation{
    /*visibility: hidden; following is better as it takes up zero space*/
    display: none;
}

.selectorDates{
    /*background: linear-gradient(to right, rgba(100,100,70, 0.9), rgba(100,100,70, 0.4));*/
    background:linear-gradient(to left, rgb(5,165,240), rgb(40,25,105));
    text-align:center;
}

.selectorDropdowns{
    /*background: linear-gradient(to right, rgba(255,99,71, 0.9), rgba(255,99,71, 0.4));*/
    background:linear-gradient(to right, rgb(5,165,240), rgb(40,25,105));
} 

.futureChart{
    margin:auto;
    width:75%;
    /*border: 3px solid green;
    padding: 15px;*/
    overflow: visible;
}

.selectorText{
    color:salmon;
}

.myTable tfoot td{
background-color:#FFF;
font-weight:bold;
font-style:normal;
border-top:solid #000 2px;
}

.myTable table,
.myTable table th
{
text-align:left;
}

.myTable table .numeric,
.myTable table th .numeric{
text-align:right;
}

 /* Style the button that is used to open and close the collapsible content */
.collapsible {
  background-color: #eee;
  color: #444;
  cursor: pointer;
  padding: 18px;
  width: 100%;
  border: none;
  text-align: left;
  outline: none;
  font-size: 15px;
}

/* 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) */
.active, .collapsible:hover {
  background-color: #ccc;
}

/* Style the collapsible content. Note: hidden by default */
.content {
  padding: 0 18px;
  overflow: hidden;
  background-color: white;
  max-height: 0;
  transition: max-height 0.2s ease-out; 
} 

.collapsible:after {
    content: '\02795'; /* Unicode character for "plus" sign (+) */
    font-size: 13px;
   ...

JavaScript

$('#collapsible').on("click", function() {
    this.classList.toggle("active");
    var content = this.nextElementSibling;
    if (content.style.maxHeight){
        content.style.maxHeight = null;
    } else {
        content.style.maxHeight = content.scrollHeight + "px";
    }
});