JSFiddle - React, Tailwind, and code Playground

by Soul_Master

HTML

<div class="dialog">
    <h4>Dialog Header</h4>
    <div class="content">
        <p>
            <label>Your Name:</label>
            <input type="text" />
        </p>
        <p>
            <label>Email:</label>
            <input type="text" />
        </p>
        <div class="command-bar">
            <button>Save</button>
            <button>Cancel</button>
        </div>
    </div>
</div>

CSS

html * 
{
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
}
.dialog
{
    position:fixed;
    top:50%;
    left:50%;
    display:none;
    height: auto;
    width: 375px;
    margin-top:-63px;
    margin-left:-188px;
    border: 1px solid #B5C7DE;
    background: #EFF3FB;
    padding: 10px;
}
.dialog h4
{
    height: 20px;
    margin: 0 auto;
    margin-bottom: 5px;
    padding: 3px 0;
    color: white;
    background: #507CD1;
    text-align: center;
    font-weight:bold;
    line-height: 20px;
    overflow: hidden;
}
.dialog .content
{
    display:none;    
    background:#f1f1f1;
}
.dialog p
{
  padding:5px 10px;
  height:25px;
   line-height:25px; 
}
.dialog p label
{
    float: left;
    width: 100px;
    padding: 0;
    line-height: 25px;    
}
.dialog p input
{
    float: left;
    width: 239px;
    border: 1px solid gray;
}
.dialog .command-bar
{
    padding-left:110px;   
}
.dialog .command-bar button
{
    width:auto;
    height:25px;
    padding:0 10px;
}

JavaScript

$('.dialog')
    .fadeIn(1000, function()
    {
        $(this).find('.content')
            .fadeIn(1000);
    });