JSFiddle - React, Tailwind, and code Playground

by sstur

HTML

<div class="container">
    <div class="one"><input type="text" placeholder="This is some extra long super informative text input."/></div>
    <div class="two"><button>Button Text</button></div>
</div>

CSS

body {
    margin: 0;
    padding: 40px;
}
.container {
    border: 1px solid #444;
    width: auto;
    height: 30px;
    line-height: 30px;
    /* ie 10 */
    display: -ms-flexbox;
    /* safari */
    display: -webkit-flex;
    /* standard */
    display: flex;
}
.one, .two {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.one {
    background: #eff;
    /* ie 10 */
    -ms-flex: 1 1 auto;
    /* safari */
    -webkit-flex: 1 1 auto;
    /* standard */
    flex: 1 1 auto;
}
.two {
    background: #fef;
    /* ie 10 */
    -ms-flex: 0 0 auto;
    /* safari */
    -webkit-flex: 0 0 auto;
    /* standard */
    flex: 0 0 auto;
}
input, button {
    margin: 0;
    padding: 0 2px;
    border: 0;
    height: 30px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    background: transparent;
    font-family: inherit;
    font-size: inherit;
}
input {
    display: block;
    width: 100%;
}
button {
    cursor: pointer;
}