JSFiddle - React, Tailwind, and code Playground

by darcyclarke

HTML

<div class="readability clearfix">
    <div class="fonts">
        <a href="#" class="font small">Decrease Font Size</a>
        <a href="#" class="font large">Increase Font Size</a>
    </div>
    <div class="heights">
        <a href="#" class="height small">Decrease Line Height</a>
        <a href="#" class="height large">Increase Line Height</a>
    </div>
    <div class="paddings">
        <a href="#" class="padding small">Decrease Padding</a>
        <a href="#" class="padding large">Increase Padding</a>
    </div>
</div>

CSS

*, *:before, *:after { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } 

.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }

body {
 padding: 5%;   
}

@font-face {
  font-family: 'icon';
  src: url('https://github.com/FortAwesome/Font-Awesome/raw/master/font/fontawesome-webfont.ttf') format('truetype');
}

.readability {
    width: 245px;
    padding: 15px;
    background: #efefef;
    border: 1px solid #ccc;
    -webkit-box-shadow: inset 0 0 2px #fff;
    border-radius: 3px;
    font-size: 13px;
    height: 62px;
    background-image: -webkit-linear-gradient(top, #fff, #efefef);
}

/*
.readability:before {
  content: '▲';
  font-size: 1em;
  line-height: 100%;
  color: #ccc;
  position: absolute;
  top: -0.5em;
  left: 3em;
  height: 0.5em;
  overflow: hidden;
}

.readability:after {
  content: '▲';
  font-size: 0.5em;
  line-height: 100%;
  color: #efefef;
  text-shadow: 0 -1px 0 #fff;  
  position: absolute;
  top: -0.6em;
  left: 6.5em;
}
*/

.readability a,
.readability a:active {
  font: 0/0 a;
  text-decoration: none;
  color: #555;
  width: 32px;
  height: 32px;
  display: block;
  float: left;
  border: 1px solid #ccc;
  text-shadow: 0 -1px 0 #fff;
  -webkit-box-shadow: inset 0 0 2px #fff, 0 1px 1px #fff, 0 -1px -1px #fff;
  text-align: center;
  background-image: -webkit-linear-gradient(top, #dfdfdf, #efefef);
}

.readability a:hover {
  text-shadow: 0 1px 0 #fff;
  border-bottom: 1px solid #999;
  background-image: -webkit-linear-gradient(top, #fff, #efefef);    
}

.readability a.small {
    border-radius: 3px 0 0 3px;        
}

.readability a.small:hover {
    -webkit-box-shadow: inset 0 0 2px #fff, 0 1px 0 rgba(0,0,0,0.1); 
}

.readability a.large {
    border-left: none;
    border-radius: 0 3px 3px 0;   
}

.readability a.large:hover {
    -webkit-box-shadow: inset 0 0 2px #fff, 0 1px 0 rgba(0,0,0,0.1), -1px 0 2px rgba(0,0,0,0.1);...