@import '../mixins.scss';

.flame-text {
    overflow: visible;
    padding-right: 6px;
    padding-bottom: 2px;

    & > input {
        line-height: 21px\9;
    }

    & > input[disabled="disabled"],
    & > [disabled] {
        color: #777;
        background-color: #ddd;
    }

    & > textarea {
        line-height: 16px;
        padding-top: 2px;
    }

    & > input::-webkit-input-placeholder {
        padding-top: 2px;
    }

    & > input,
    & > textarea {
        width: 100%;
        height: 100%;
        cursor: text;
        resize: none;
        padding-left: 2px;
        padding-right: 2px;
        border: 1px solid #aaa;
        border-top: 1px solid #999;
        @include inner-shadow-blur(1px, 1px, #dfdfdf);
        border-radius: 2px;
        @include user-select(auto);
        outline: none;

        &.is-invalid {
            background-color: pink;
            @include inner-shadow(1px, #faafbe);
        }

        &.is-focused {
            @include control-blur();
            border-color: #94bde6 !important;
        }

        &.is-editable-label {
            background-color: transparent;

            border: 1px solid #ccc;
            border-radius: 2px;

            &.is-invalid {
                background-color: pink;
            }

            &:hover,
            &:focus {
                background-color: white;
                border-color: #aaa;

                &.is-invalid {
                    background-color: pink;
                }
            }
        }
    }
}
