react-js-dialog-box
Version:
simple reactjs modal box
60 lines (50 loc) • 801 B
CSS
/* add css module styles here (optional) */
._3qw0K {
width: 100%;
height: 100%;
background: rgba(0, 0, 0, .7);
position: fixed;
top: 0;
left: 0;
z-index: 10;
}
._Xt-75 {
position: fixed;
z-index: 20;
width: 500px;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
}
._br_-q {
background: #fff;
padding: 3px 25px;
display: flex;
justify-content: space-between;
border-bottom: 1px solid gray;
}
._2MJ9D {
padding: 20px;
}
._2RHFL {
border: none;
outline: 0;
background: transparent;
padding: 10px;
cursor: pointer;
color: #000;
font-size: 36px;
}
._2RHFL:hover {
color: gray;
}
._2hTXI {
background: grey;
border: none;
padding: 10px 20px;
color: #fff;
cursor: pointer;
}
._2hTXI:hover {
background: orange;
}