import styled from 'styled-components'
const ModalContainer = styled.div`
position: relative;
z-index: 1;
visibility: ${props => props.visible ? 'visible' : 'hidden'};
.modal-bg
{
background: #2c3848;
position: fixed;
display: flex;
justify-content: center;
top: 0px;
width: 100%;
height: 100vh;
left: 0px;
opacity: .9;
z-index: 1000;
}
.modal-wrapper
{
position: fixed;
top: 0px;
left: 0px;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
height: 100%;
z-index: 1001;
}
.modal
{
position: relative;
background: #ffffff;
width: ${props => props.size ? props.size : '500px'};
opacity: 1;
border-radius: 2px;
z-index: 1001;
display: flex;
flex-flow: column;
box-shadow: 4px 4px 10px rgba(34, 45, 60, 0.72);
}
.modal-close-trigger
{
position: absolute;
right: -30px;
top:10px;
color: #fff;
font-size: 32px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
}
`
export default ModalContainer
|