@require "variables"

unless flat-build {
    @require "node_modules/boundless-dialog/style"
}

// Skin-specific styles go here. Demo-specific styles go in demo/style.styl.

.b-modal-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;

    .b-dialog-wrapper {
        flex-shrink: 0;
        max-width: 80vw;
        position: relative;
    }

    .b-dialog {
        background: Modal-backgroundColor;
        border: 1px solid Modal-borderColor;
        box-shadow: 1px 2px 3px Modal-boxShadowColor;
        color: Modal-color;
    }
}

.b-modal-mask {
    background: Modal-mask-backgroundColor;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
