@looorent/ngx-simple-modal
Version:
A simple unopinionated framework to implement simple modal based behaviour in angular (v2+) projects.
82 lines (69 loc) • 1.24 kB
CSS
.modal {
background-color: rgba(0, 0, 0, .4);
bottom: 0;
height: 100%;
left: 0;
overflow: hidden;
padding: 0 16px;
position: fixed;
right: 0;
top: 0;
text-align: center;
z-index: 10; /* Adjust according to your needs */
}
.modal.fade-anim {
transition: opacity 400ms ease-in-out;
will-change: opacity;
opacity: 0;
}
.modal.fade-anim.in {
opacity: 1;
}
.modal .draggable {
display: block;
position: relative;
}
.modal .draggable .handle {
cursor: move;
}
.modal-open {
overflow: hidden;
}
.modal-content {
background-color: #ffffff;
border-radius: 4px;
margin: 16px auto;
max-width: 580px;
position: relative;
transition: opacity 400ms ease-in-out;
width: 100%;
will-change: opacity;
display: inline-block;
text-align: left;
}
.modal-content-size-m {
max-width: 992px;
}
.modal-content-size-l {
max-width: 1200px;
}
.modal-footer,
.modal-header {
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
height: 56px;
padding: 0 16px;
}
.modal-header {
border-bottom: 1px solid #cecece;
}
.modal-body {
padding: 16px;
}
.modal-footer {
border-top: 1px solid #cecece;
}