@keyframes flash-opacity {
    0% {
        opacity: 1;
    }

    40% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }

    90% {
        opacity: 0;
    }
}

& {
    box-sizing: border-box;
    cursor: text;
    padding: 0 4px;
    height: 28px;
    line-height: 26px;
    border-radius: 3px;
    font-size: 16px;
    appearance: none;
    box-shadow: none;
    outline: none;
    background-color: #fff;
    text-align: left;
    vertical-align: middle;
    position: relative;
    overflow: auto;
    border: 1px solid transparent;
    overflow: visible;

    &.focus {
        >input {
            border-color: transparent;
            outline: none;
        }

        outline: none;
        border-color: #29c;

        >tips:not(:empty) {
            display: block;
        }
    }


    >tips {
        display: none;
        position: absolute;
        left: 2px;
        border: 1px solid;
        border-bottom: none;
        background: #FFF;
        top: -12px;
        line-height: 12px;
        font-size: 12px;
        height: 12px;
        padding: 2px 4px 0 4px;
    }

    insert {
        display: inline;
        border-left: .75pt solid;
        opacity: 0;
        white-space: nowrap;
    }

    >text {
        position: relative;
        overflow: hidden;
        text-overflow: clip;
        white-space: nowrap;
        width: 100%;
        display: block;
    }

    >holder {
        color: #777;
        pointer-events: none;
        top: 50%;
        line-height: 1;
        left: 0;
        right: 0;
        text-align: inherit;
        margin-top: -.5em;
        position: absolute;
    }

    >input[type=password] {
        font-size: 0;
        display: block;
        margin: 0;
        padding: 0;
        color: transparent;
        background: transparent;
        width: 100%;
        appearance: none;
        -webkit-appearance: none;

        left: 0;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        height: auto;
    }

    &.focus insert {
        animation: flash-opacity 1s linear 0s infinite;
    }
}