@import "inc/bootstrap";

.dynamic-component-container{
    display:inline-block;
    background: $canvas;
    border: 1px solid $websiteBorder;
    border-radius: 5px;
    cursor: auto;
    padding: 0;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 15000;
    .dynamic-component-title-bar {
        position: relative;
        background: $uiClickableDefaultBg;
        border-bottom: 1px solid $websiteBorder;
        cursor: move;
        text-shadow: none;
        line-height: 1.4;
        min-height : 30px;
        text-align: center;
        border-top-right-radius: 5px;
        border-top-left-radius: 5px;
        @include font-size(14);
        .closer {
            color: $textColor;
            position: absolute;
            top: 2px;
            right: 0;
            text-decoration: none;
            padding: 2px 2px 2px 4px;
            &:before{
                margin : 0;
                padding-right: 1px;
                top: 0;
                position: relative;
                @include icon-result-nok;
                @include font-size(22);
            }
        }
        .title-bar-icon {
            &:before{
                margin : 0;
                padding-right: 1px;
                top: 6px;
                position: relative;
                @include tao-icon-setup;
                @include icon-mobile-menu;
                @include font-size(16);
            }
        }
    }
    .dynamic-component-content {
        position:relative;
        .dynamic-component-layer {
            position: absolute;
            opacity: 0;
            top: 0;
            left: 0;
            &.dragging-active{
                width: 100%;
                height: 100%;
            }
        }
    }
    .dynamic-component-resize-container {
        height: 0;
        text-align: right;

        .dynamic-component-resize-wrapper {
            cursor: nwse-resize;
            display: inline-block;
            position: relative;
            bottom: 30px;
            z-index: 15001;

            .dynamic-component-resize {
                width: 20px;
                height: 20px;
                margin-bottom: 10px;
                margin-right: 10px;
                border-right: 1px solid $textColor;
                border-bottom: 1px solid $textColor;
            }

            &:hover, &.resizing {
                bottom: 50px;

                .dynamic-component-resize {
                    border-right: 2px solid $textColor;
                    border-bottom: 2px solid $textColor;
                    width: 40px;
                    height: 40px;
                }
            }
        }
    }
}