JSFiddle - React, Tailwind, and code Playground

by j08691

HTML

<form id="report-upload-form" method="POST" action="" enctype="multipart/form-data">
            <p>
            
            <label for="id_title">document title </label>
            <input id="id_title" type="text" class="input-text" name="title">
            </p>
            <p>
            
            <label for="id_description">description</label>
            <textarea id="id_description" rows="10" cols="40" name="description"></textarea>
            </p>
            <p>
                
                <label for="report-field" class="report-trigger">upload report</label>
                <input type="text" id="report-fake-field" class="report-trigger" disabled="disabled">
                <input type="file" name="report" id="report-field">
                <span id="buttons">
                    <img src="http://dmsf.waleup.com/static/images/browse_button.png" id="report-button">
                    <input type="image" src="http://dmsf.waleup.com/static/images/upload_button.png" id="report-submit">
                </span>
            </p>
        </form>

CSS

#report-upload-form {
    background-color: #316091;
    color: #ddeff1;
    font-weight:bold;
    margin: 23px auto 0 auto;
    border-radius:10px;
    width: 700px;
    box-shadow:  0 0 2px 2px #d9d9d9;
    padding-top: 25px;
    padding-bottom: 25px;
    padding-left: 10px;
    
}

#report-upload-form p {
    margin:0;
    padding:0;
}
#report-upload-form label {
    width:180px;
    text-transform: uppercase;
    display: inline-block;
}

#report-upload-form input[type=text], 
#report-upload-form input[type=file],
#report-upload-form textarea {
    width: 305px;
    border: 1px solid #ccc;
    resize: none;
    padding:0;
}

#report-upload-form .errorlist
{
    margin-left:165px;
}

#report-upload-form textarea {
    height: 43px;
}

#report-upload-form #submit-div {
    text-align: right;
}

#reports {
    margin-left: 100px;
}

#reports a {
    text-decoration: none;
}

#reports .listing_pdf,
#reports .listing_doc{
    text-align: left;
    display: inline-block;
    padding-left: 50px;
    margin-top: 50px;
    margin-left: 50px;
    width: 200px;
}
#reports .listing_doc{
    background: url(../images/doc_icon.png) no-repeat;
}
#reports .listing_pdf {
    background: url(../images/pdf_icon.png) no-repeat;
}
#reports .title {
    color: #336394;
    text-transform: uppercase;
    font-size: 16px;
}

#reports .description, 
#reports .date {
    color: #666;
    margin-top: 10px;
    font-size: 12px;
}
#reports .action_links {
    margin-top: 10px;
    border-top: 1px solid #acc1d4;
    border-bottom: 1px solid #acc1d4;
    text-align: center;
    padding-top: 5px;
    padding-bottom: 5px;
}

#reports-page #page-nav-bottom {
    margin-top: 15px;
    margin-right: 50px;
}


#report-field {
    position:absolute;
    bottom:0;
    filter: alpha(opacity=1);
    -moz-opacity: 0.01;
    opacity: 0.01;
}

#report-button {
    cursor: pointer;
}



#id_title {
    margin-bottom: 10px;
}
    #buttons img, #buttons input {
        vertical-align:bottom;
    }