JSFiddle - React, Tailwind, and code Playground

by secretgspot

HTML

<input type="radio" name="genre" id="pop" />
<input type="radio" name="genre" id="electronica" />
<input type="radio" name="genre" id="rock" />

<input type="radio" name="artist" id="beatles" />
<input type="radio" name="artist" id="gilbert-osullivan" />
<input type="radio" name="artist" id="busted" />

<input type="radio" name="artist" id="jazztronik" />

<input type="radio" name="artist" id="white-stripes" />
<input type="radio" name="artist" id="queen" />

<input type="radio" name="album" id="pop-artist1-album1" />
<input type="radio" name="album" id="pop-artist1-album2" />
<input type="radio" name="album" id="pop-artist1-album3" />

<input type="radio" name="album" id="pop-artist2-album1" />

<input type="radio" name="album" id="pop-artist3-album1" />

<input type="radio" name="album" id="electronica-artist-album1" />
<input type="radio" name="album" id="electronica-artist-album2" />

<input type="radio" name="album" id="rock-artist1-album1" />

<input type="radio" name="album" id="rock-artist2-album1" />
<input type="radio" name="album" id="rock-artist2-album2" />

<div id="main">
  <ul id="columns-header">
    <li>Genre</li>
    <li>Artist</li>
    <li>Album</li>
  </ul>
  <div id="columns">
    <menu class="genre">
      <li class="pop"><label for="pop">Pop</label></li>
      <li class="electronica"><label for="electronica">Electronica</label></li>
      <li class="rock"><label for="rock">Rock</label></li>
    </menu>
    <menu class="artist">
      <li class="pop beatles"><label for="beatles">The Beatles</label></li>
      <li class="pop gilbert-osullivan"><label for="gilbert-osullivan">Gilbert O'Sullivan</label></li>
      <li class="pop busted"><label for="busted">Busted</label></li>
      <li class="electronica jazztronik"><label for="jazztronik">Jazztronik</label></li>
      <li class="rock queen"><label for="queen">Queen</label></li>
      <li class="rock white-stripes"><label for="white-stripes">The White Stripes</label></li>
    </menu>
    <menu...

CSS

body {
  margin: 1em 1em 0;
  background: #ddd;
  font-size: 80%;
}
p {
  margin: 0;
}
input {
  display: none;
}
ul,menu,li {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow: hidden;
}
label {
  display: block;
  cursor: pointer;
}
#main {
  display: -moz-box;
  -moz-box-orient: vertical;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  width: 437px;
  padding-top: 10px;
  border: 3px solid #333;
  border-radius: 5px;
  background: #333;
  box-shadow: 0 2px 6px rgba(0,0,0,0.8);
}
#columns-header {
  display: -moz-box;
  display: -webkit-box;
  width: 100%;
  border-top: 1px solid #555;
  background: -moz-linear-gradient(top, #444, #000);
  background: -webkit-linear-gradient(top, #444, #000);
  box-shadow: 0 -1px 0 #000;
  text-shadow: 0 -1px 0 #000;
}
#columns-header li {
  -moz-box-flex: 1;
  -webkit-box-flex: 1;
  width: 140px;
  text-align: center;
  color: #ddd;
  font-weight: bold;
}
#columns {
  display: -moz-box;
  display: -webkit-box;
}
#columns menu {
  overflow-y: scroll;
  -moz-box-flex: 1;
  -webkit-box-flex: 1;
  width: 142px;
  height: 100px;
  background: #fff;
}
#music tr:nth-child(2n),
#columns menu li:nth-child(2n) {
  background: #eee;
}
#columns menu li label {
  width: 122px;
  padding: 0 5px;
  white-space: nowrap;
  color: #333;
}
#music-header,
#music {
  display: block;
  width: 100%;
}
#music {
  overflow-y: scroll;
  background: #fff;
  height: 270px;
}
#music-header {
  background: -moz-linear-gradient(top, #555, #000);
  background: -webkit-linear-gradient(top, #555, #000);
  text-shadow: 0 -1px 0 #000;
  color: #fff;
  line-height: 1.3;
}
#music-header tr,
#music tr {
  display: -moz-box;
  display: -webkit-box;
}
#music-header th,
#music td {
  display: block;
  width: 118px;
}
#music-header th:last-child {
  width: 75px;
}
#music td:last-child {
  width: 58px;
}
#music td p {
  overflow: hidden;
  width: 108px;
  white-space: nowrap;
  padding: 0 5px;
  color: #333;
}
#music td:last-child p {
  width:...