@import "mixins";
@import "variables";
@import "components/bootstrap";

body{
    overflow: hidden;
}
.success{
    color: $success;
}
#monsart-emails{
    .row{
        &:after{
            content: "";
            display: table;
            clear: both;
        }
    }
    
    .panel{
        width:20%;
        float: left;
        margin-left: -20px;
        background:$light-background;
        padding-bottom:25px;
        .iris-picker {
            overflow: hidden;
        }
        div.email-property{
            @include box-sizing(border-box);
        }
        h2.panel-title {
            font-weight: 300;
            font-size: 24px;
            line-height:28px;
            margin: 0px;
            padding: 1em 0px 1em 15px;
            background: $blue-highlight;
            color: $light-background;
            i {
                font-weight: 300;
                margin-right: 15px;
            }
        }
        h3.type-heading {
            float: left;
            margin-right: 15px;
            font-style: italic;
        }
        .type-container {
            padding: 15px 15px 25px;
            border-bottom: 1px solid $border-color;
            margin-bottom: 25px;
            select {
                margin-top: 13px;
            }
        }
        h3 {
            font-weight: 400;
        }
        .btn-circle.btn-icon {
            background: $light-background;
        }
        .accordion-container {
            padding-left:15px;
            ul {
                padding-right: 15px;
                li.accordion-section {
                    margin-bottom: 5px;
                    box-shadow: 0px 3px 1px 1px $panel-shadow-color;
                    .accordion-section-content h3,label {
                        font-weight: 400;
                        margin-bottom: 10px;
                        display: block;
                        font-size:14px;
                        font-style: italic;
                    }
                }

            }
        }
        button {
            &.button-primary {
                background: $blue-highlight;
                background: $blue-highlight;
                border: 1px solid $blue-highlight;
                box-shadow:none;
                text-shadow:none;
            }
        }
        .actions {
            padding-left: 15px;
            margin-top: 25px;
            text-align: center;
            button {
                width: 40%;
            }
        }
        .nav-menu-display {
            li,.select2-result-label {
                float: left;
                width:100%;
                i.fa-plus {
                    float:right;
                    margin-top:6px;
                    color: $blue-highlight;
                }
            }
            ul {
                padding-right: 0px !important;
            }
            .ui-select-container {
                min-width: auto !important;
            }
            .ma-single-menu-item {
                float: left;
            }
            .select2-search-choice {
                background-color: $blue-highlight;
                color: $light-background;
            }
        }
    }
    .preview-template{


        margin: 0 auto;
    }

    .preview-container{
        height : 100vh;
        background: #23282D;
        overflow: hidden;
        position: relative;
        width: 80%;
        float: left;
        max-height: 100%;
        border-left: 1px solid #f1f1f1;
    }
    .preview-devices{
        position: absolute;
        top: 20%;
        right : 0;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        ul{
            display: inline-block;
            background: #23282D;
            margin: 0 auto;
            padding: 0;
            list-style: none;
            border-left:1px solid $light-background;
            li{
                margin: 15px;
                a{
                    padding: 5px;
                    display: inline-block;
                    font-size: 22px;
                    color: #ffffff;
                    text-decoration: none;
                    &.active{
                        border: 1px solid #fffffff;
                        @include border-radius(2px);
                    }
                }

            }
        }
    }
    ma-text{
        display: block;
        width : 100%;
        textarea{
            width: 100%;
            height : 200px;
        }
    }
    .accordion-section-content{
        padding: 0px;

        .inside{
            min-height: 200px;
            max-height:400px;
            overflow-y: scroll;
            .email-property{
                padding: 10px 15px;
                border-bottom: 1px solid #ddd;
                &:last-child{
                    border: none;
                }
            }
        }

    }
}
#preloader{
    position: absolute;
    left : 50%;
    top: 50%;
    @include transform(translate(-50%, -50%));
    .path {
        stroke-dasharray: 700;
        stroke-dashoffset: 700;
        animation-name : dash;
        animation-duration : 2s;
        animation-iteration-count : infinite;
        animation-fill-mode: forwards;
        animation-delay: 0s;
        animation-direction: unset;
        -moz-animation-name : dash;
        -moz-animation-duration : 2s;
        -moz-animation-iteration-count : infinite;
        -moz-animation-fill-mode: forwards;
        -moz-animation-delay: 0s;
        -moz-animation-direction: unset;
        -webkit-animation-name : dash;
        -webkit-animation-duration : 2s;
        -webkit-animation-iteration-count : infinite;
        -webkit-animation-fill-mode: forwards;
        -webkit-animation-delay: 0s;
        -webkit-animation-direction: unset;

    }
}
/****************
WYSYWIG
*******************/
#monsart-emails {
    wysiwyg-edit{
        .tinyeditor {
            border: none;
            .sizer{
                height: 200px;
                border: 1px solid $main-grey;
            }
            .tinyeditor-header{
                background: $main-grey;
                .tinyeditor-buttons-group .tinyeditor-control-fa i{
                    color: #fff;
                }
                div.hr{
                    border-color: #fff;
                }
                select{
                    width: auto;
                }


                .tinyeditor-control{
                    &:hover,&.pressed{
                        background: $main-blue;
                    }
                }

            }
            .tinyeditor-footer{
                background: $main-grey;
                border: none;
                margin-top: 0px;
                .toggle{
                    border-right: none;
                    color: #fff;
                    &:hover{
                        background: none;
                    }
                }
            }

        }

    }   
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

