JSFiddle - React, Tailwind, and code Playground

by sehsarah

HTML

<body>

<form class="panel">
    <fieldset>
        <div class="row">
            <label>Username</label>
            <input type="text" name="ident" />
        </div>
        <div class="row">
            <label>Password</label>
            <input type="password" name="password" />
        </div>
    </fieldset>
</form>
    
    <div class="xbutton xbuttonaction">
        <span class="xbuttonlabel">Test</span>
    </div>
    
    <div class="xbutton xbuttonaction xbuttonpressed">
        <span class="xbuttonlabel">Test</span>
    </div>
    
    <button class="btn btn-primary" type="button">Save</button>


</body>

CSS

.row {
    position: relative;
    min-height: 42px;
    border-bottom: 1px solid #999;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    text-align: right;
}

fieldset > .row:last-child {
    border-bottom: none !important;
}

.row > label {
    position: absolute;
    margin: 0 0 0 14px;
    line-height: 42px;
    font-weight: bold;
    left: 0;
}

.row > input {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    margin: 0;
    border: none;
    padding: 0 10px 0 110px;
    height: 42px;
    background: none;
}

input {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: 100%;
    margin: 8px 0 0 0;
    padding: 6px 6px 6px 44px;
    font-size: 16px;
    font-weight: normal;
}

fieldset {
    position: relative;
    margin: 0 0 20px 0;
    padding: 0;
    background: white;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border: 1px solid #999;
    text-align: right;
    font-size: 16px;
    border-image: initial;  
}

.panel {
    box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    padding: 100px 10px;
    
}

body {
    font: 13px Arial, Helvetica, MingLiU, sans-serif;
    background-color: #007186;
    height: 100%;
}


.xbutton {
 background-color: #063468;
  background-image: -webkit-linear-gradient(#167bf3,#07448c 2%,#042348);
    
    border: 0.1em solid #010509;
border-top-color: #021022;
color: white;
text-shadow: rgba(0, 0, 0, 0.5) 0 -0.08em 0;
-webkit-box-shadow: rgba(255, 255, 255, 0.1) 0 0.1em 0;
    margin: 0 2em;
padding: 3em 6em;
}

.xbuttonlabel {
    font-size: 7em;
    -webkit-box-flex: 1;
box-flex: 1;
-webkit-box-align: center;
box-align: center;
white-space: nowrap;
text-overflow: ellipsis;
text-align: center;
font-weight: bold;
line-height: 1.2em;
display: block;
overflow: hidden;
}

xbuttonpressed {
background-color: #042348;
background-image:...