/* Copyright CloudLinux Zug GmbH 2010-2017 All Rights Reserved
 *
 * Licensed under CLOUD LINUX LICENSE AGREEMENT
 * http://cloudlinux.com/docs/LICENSE.TXT
 */

@import '../../../../styles/variables';
@import '../../../../styles/mixins';


:host {
    position: relative;
    display: block;
    min-width: 480px;
    min-height: 315px;
    textarea {
        .ui-scroll();
        resize: none;
        position: absolute;
        width: 100%;
        height: 100%;
        display: block;
        line-height: 2.31;
        margin-bottom: 0;
        border-color: #f1f1f1;
        padding: 0 0 0 64px !important;
        &:focus{
            border-color: #2b98f0;
            + .textarea-line-numbers {
                .transition(color 500ms ease);
                border-color: #2b98f0;
                border-right: none;
                &.error {
                    border-color: @errorColor;
                    border-right: none;
                }
            }
        }
    }
    .textarea-line-numbers {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
        padding-top: 0;
        position: absolute;
        padding-bottom: 0;
        width: 32px;
        background-color: #f3f9fe;
        padding-left: 0 !important;
        border: 1px solid transparent;
        .textarea-number {
            color: #a5a9ad;
            line-height: 2.31;
            text-align: center;
        }
    }
    &.error {
        textarea {
            &:focus{
                + .textarea-line-numbers {
                    border-color: @errorColor;
                    border-right: none;
                }
            }
        }
        textarea {
            outline-color: @errorColor;
            border-color: @errorColor;
        }
        .textarea-line-numbers {
            border-color: @errorColor;
            border-right: none;
        }
    }
}
