

body.s_type {
    overflow: hidden;
}

.Cmod-Detail {
    display: none;
    width: 100%; height: 100%;
    background-color: #fff;
    position: fixed;
    top: 0px; left: 0px;
    z-index: 100000;

    body.s_type_atom &,
    body.s_type_utility &
    {
        display: block;
    }

    &__code {
        width: 400px;//calc( 50% ~'-' 60px );
        float: left;
        height: calc( 100% ~'-' 80px );
        position: absolute;
        top: 40px;
        left: 40px;
        background-color: #eee;
        overflow: auto;
        // overflow-x: hidden;
        border: 1px solid #ddd;

        &__item {
            width: 100%;
            .interactive;
            padding: 2px 6px;
            -webkit-touch-callout: none; /* iOS Safari */
            -webkit-user-select: none;   /* Chrome/Safari/Opera */
            -khtml-user-select: none;    /* Konqueror */
            -moz-user-select: none;      /* Firefox */
            -ms-user-select: none;       /* IE/Edge */
            user-select: none;           /* non-prefixed version, currently
                                              not supported by any browser */

            &:hover {
                background-color: #ccc;
            }

            &--selected {
                background-color: #ddd;
            }
        }
    }

    &__preview {
        width: calc( 100% ~'-' 500px );
        height: calc( 70% ~'-' 60px );
        position: absolute;
        top: 40px;
        right: 40px;
        border: 1px solid #ddd;

        &__iframe {
            width: 100%; height: 100%;
            background-color: #eee;
        }
    }

    &__css{
        width: calc( 100% ~'-' 500px  );
        height: calc( 30% ~'-' 60px );
        position: absolute;
        bottom: 40px;
        right: 40px;
        border: 1px solid #ddd;
        background-color: #eee;
        overflow-y: auto;
        padding: 10px;

        font-size: 14px;
    }

    &__close {
        .interactive;
        width: 40px;
        padding: 10px 0px;
        height: 40px;
        font-size: 20px;
        color: #888;
        text-align: center;
        position: absolute;
        top: 0px; right: 0px;

        &:hover {
            color: #000;
        }
    }
}
