@import "../../../base/fn";

.njui-label {
    display: block;
    width: @njuiCellLabelWidth;
    .text_wrap();
}

.njui-input {
    width: 100%;
    border: 0;
    outline: 0;
    -webkit-appearance: none;
    background-color: transparent;
    font-size: inherit;
    color: inherit;
    height: unit(@njuiCellLineHeight, em);
    line-height: @njuiCellLineHeight;

    // hides the spin-button
    &::-webkit-outer-spin-button, &::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }
}

.njui-textarea {
    display: block;
    border: 0;
    resize: none;
    width: 100%;
    color: inherit;
    font-size: 1em;
    line-height: inherit;
    outline: 0;
}

.njui-textarea-counter {
    color: @njuiTextColorTips;
    text-align: right;
    .njui-cell_warn & {
        color: @njuiTextColorWarn;
    }
}

.njui-toptips {
    display: none;
    position: fixed;
    transform: translateZ(0);
    top: 0;
    left: 0;
    right: 0;
    padding: 5px;
    font-size: 14px;
    text-align: center;
    color: #FFF;
    z-index: 5000;
    .text_wrap();
}

.njui-toptips_warn {
    background-color: @njuiColorWarn;
}

.njui-cells_form {
    .njui-cell__ft {
        font-size: 0;
    }
    .njui-icon-warn {
        display: none;
    }
    input, textarea, label[for] {
        .setTapColor();
    }
}

.njui-cell_warn {
    color: @njuiTextColorWarn;
    .njui-icon-warn {
        display: inline-block;
    }
}
