JSFiddle - React, Tailwind, and code Playground

by jessikwa

HTML

<div class="headerContainer">
    <span class="headerText">
        Capital Scheduler
    </span>
</div>
<div class="contentContainer">
    <div class="contentPadding">
        <div class="fyFilterToggle">
            Filters
            <span class="toggleBtn flipV"></span>
        </div>
        <div class="fyFilterContainer">
            <div class="fyFacSelector">
                <div class="colLabel">
                    Facility Selection
                </div>
                <div class="facContainer">
                    <input type="checkbox" /> Facility 1 <br />
                    <input type="checkbox" /> Facility 2 <br />
                    <input type="checkbox" /> Facility 3 <br />
                    <input type="checkbox" /> Facility 4 <br />
                    <input type="checkbox" /> Facility 5 <br />
                    <input type="checkbox" /> Facility 6 <br />
                    <input type="checkbox" /> Facility 7 <br />
                    <input type="checkbox" /> Facility 8 <br />
                    <input type="checkbox" /> Facility 9 <br />
                    <input type="checkbox" /> Facility 10 <br />
                    <input type="checkbox" /> Facility 1 <br />
                    <input type="checkbox" /> Facility 2 <br />
                    <input type="checkbox" /> Facility 3 <br />
                    <input type="checkbox" /> Facility 4 <br />
                    <input type="checkbox" /> Facility 5 <br />
                    <input type="checkbox" /> Facility 6 <br />
                    <input type="checkbox" /> Facility 7 <br />
                    <input type="checkbox" /> Facility 8 <br />
                    <input type="checkbox" /> Facility 9 <br />
                    <input type="checkbox" /> Facility 10 <br />
                </div>
            </div>
            <div class="fyCriteria">
                <div class="section group">
                    <div class="fyGeneralCrit gridCol span_3_of_3">
         ...

CSS

* {
    font-family: Arial;
    font-size: 10pt;
}
.contentContainer
{ 
    width: 100%;
    text-align: left;
    background: white;
    clear: both;
}
.contentPadding
{
    padding: 8px;
    overflow: hidden;
}
.headerContainer {
    background-color: #27547d; 
    text-align: left;
    height: 25px; 
    line-height: 25px; 
    clear: both;
    margin: 0 auto;
    border-radius: 1px;
    -webkit-border-radius: 1px; 
    -moz-border-radius: 1px;
}
.headerText
{
    color: #ffffff; 
    font-family: Arial, Verdana, Sans-Serif;
    font-size: 10pt;
    font-weight: normal;
    text-decoration: none;  
    padding: 4px;
}
.fyFilterToggle {
}
.toggleBtn {
    background-image: url('http://i61.tinypic.com/29vnzad.png');
    height: 12px;
    width: 12px;
    display: inline-block;
}
.flipV {
    -moz-transform: scaleY(-1);
    -o-transform: scaleY(-1);
    -webkit-transform: scaleY(-1);
    transform: scaleY(-1);
    filter: FlipV;
    -ms-filter: "FlipV";
}
.updateFilters, .fyFilterContainer {
    display: none;
}
.fyFilterContainer {
    height: auto;
}
.optionsWrapper, .facContainer {
    background: #eee;
    border-radius: 3px;
} 
.fyFacSelector, .fyCriteria {
    display: inline-block;
    margin: 1%;
    vertical-align: top;
}
.fyFacSelector {
    width: 34%;
    height: 100%;
    margin-right: 0;
}
.fyCriteria {
    width: 62%;
}
.section {
	clear: both;
	padding: 0px;
	margin: 0px;
}
.group:before, .group:after { 
    content: ""; 
    display: table; 
}
.group:after { 
    clear: both;
}
.group { 
    zoom: 1; /* For IE 6/7 */ 
}
.gridCol {
    display: block;
	float: left;
    margin: 0% 0 1% 1%;
    vertical-align: top;
    min-width: 175px;
}
.span_1_of_3 {
    width: 32.66%;
}
.span_3_of_3 {
    width: 100%;
}
.gridCol:first-child {
     margin-left: 0; 
}
@media only screen and (max-width: 480px) {
	.gridCol {  
        margin: 0% 0 1% 1%; 
    }
	.span_3_of_3, .span_2_of_3, .span_1_of_3 { 
        width: 100%; 
    }
}
.buttonSection {
    margin:...

JavaScript

$(document).ready(function() {
    var toggleFunction = function() {
        $(".toggleBtn").toggleClass("flipV");
        $(".fyFilterContainer").slideToggle("slow");
        $(".updateFilters").toggle();
    }
    var updateFilters = function() {
        toggleFunction();
    }
    $(".fyFilterToggle").click(function(){
        toggleFunction();
    });
    $(".updateFilters").click(function(){
        updateFilters();    
    });
});