JSFiddle - React, Tailwind, and code Playground

by luchaninov

HTML

<script src="https://raw.github.com/YuriyLuchaninov/tagjs/master/tag.js"></script>
<script src="https://raw.github.com/YuriyLuchaninov/tagjs/master/examples/instance/instance.js"></script>
<div id="wrapper">
    <button w-component="dropdown" class="btn">Click</button>
    <button w-component="dropdown" class="btn">Click too ...</button>
</div>

CSS

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}
body {
    font: 14px/20px 'Arial';
    color: #333;
    margin: 100px auto;
    width: 300px;
}
ul{
    margin: 0;
    padding: 0;
    list-style: none;
}
.menu a{
    color: #333;
    display: block;
    padding:5px 10px;
    text-decoration: none;
}
.menu a:hover{
    background: rgba(0,0,0,0.1);
}
.content {
    padding: 5px 10px;
}
/**/
.data {
    overflow: hidden;
    word-wrap: break-word;
}


/*style*/
.btn{
    vertical-align: middle;
    display: inline-block;
    min-height: 28px;
    min-width: 28px;
    margin: 0;
    font-weight: bold;
    color: #172c47;
    text-shadow: 1px 1px 0 #3e88cb, 0 0 1px #31659a, 0 0 1px #31659a;
    cursor: pointer;
    padding:5px 10px;
    border: 1px solid #31659a;

    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    border-radius: 3px;

    background: #429ee5;
    background: -moz-linear-gradient(top,  #429ee5 0%, #1e5799 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#429ee5), color-stop(100%,#1e5799));
    background: -webkit-linear-gradient(top,  #429ee5 0%,#1e5799 100%);
    background: -o-linear-gradient(top,  #429ee5 0%,#1e5799 100%);
    background: -ms-linear-gradient(top,  #429ee5 0%,#1e5799 100%);
    background: linear-gradient(to bottom,  #429ee5 0%,#1e5799 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#429ee5', endColorstr='#1e5799',GradientType=0 );
}
.btn:hover{
    -webkit-box-shadow: inset 0 0 5px #48b2ff;
    -moz-box-shadow: inset 0 0 5px #48b2ff;
    -ms-box-shadow: inset 0 0 5px #48b2ff;
    box-shadow: inset 0 0 5px #48b2ff;
}

.btn:active{
    -webkit-box-shadow: inset 0 3px 6px -1px #172c47   ;
    -moz-box-shadow:  inset 0 3px 6px -1px #172c47   ;
    -ms-box-shadow: inset 0 3px 6px -1px #172c47   ;
    box-shadow: inset 0 3px 6px -1px #172c47   ;
}

.data {
    padding: 10px;
    background: #f0f0f0;
    margin: 20px...

JavaScript

$TB.apply(document.getElementById('wrapper'));