hrnet-simple-modal
Version:
a simple modal component for HRnet project
36 lines (35 loc) • 691 B
CSS
.hrnetsm-blocker {
position: absolute;
top: 0;
right: 0;
width: 100%;
height: 100%;
overflow: hidden;
box-sizing: border-box;
background-color: rgba(0,0,0,0.75);
place-content: center;
place-items: center;
}
.hrnetsm-modal {
position: relative;
box-sizing: border-box;
width: 50%;
background: #fff;
padding: 1em;
border-radius: .5em;
box-shadow: 0 0 10px #000;
text-align: left;
z-index: 1000;
}
.hrnetsm-close-modal {
position: absolute;
top: -12.5px;
right: -12.5px;
width: 30px;
height: 30px;
background-color: #000;
color: #fff;
text-decoration: none;
text-align: center;
border-radius: 2em;
}