@essential-js/ui
Version:
EssentialJS UI
99 lines (96 loc) • 1.82 kB
CSS
article.confirm__modal.confirm {
min-height: min-content;
display: flex;
flex-direction: column;
position: relative;
}
article.confirm__modal.confirm .actions {
padding: 2rem;
display: flex;
justify-content: flex-end;
gap: 1rem;
}
article.confirm__modal.confirm .actions .cancel {
background: var(--disabled);
}
.error-header {
background: var(--text-error);
}
.modal-header {
width: 100%;
padding: 2rem;
display: grid;
grid-template-columns: calc(100% - 30px) 30px;
align-items: center;
}
.modal-header .title {
width: 100%;
display: grid;
grid-template-columns: 30px calc(100% - 30px);
gap: 1rem;
align-items: center;
}
.modal-header .title h2 {
font-size: 1.2rem;
font-weight: 500;
}
.modal-header button {
background: transparent;
cursor: pointer;
border: 0;
display: grid;
align-items: center;
}
.info-header {
background: var(--text-info);
}
.essential__modal {
background: rgba(0, 0, 0, 0.5921568627);
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
display: flex;
justify-content: center;
align-items: center;
}
.essential__modal article {
opacity: 1;
transform: scale(1);
min-height: 75%;
background: var(--background);
min-width: 60%;
}
.essential__modal article.appear {
animation: appear 0.2s ease-in-out forwards;
}
.essential__modal article.disappear {
animation: disappear 0.1s ease-in-out forwards;
}
.essential__modal article .content {
padding: 0 2rem;
}
@keyframes appear {
from {
opacity: 0;
transform: scale(0.8);
}
to {
opacity: 1;
transform: scale(1);
}
}
@keyframes disappear {
to {
opacity: 0;
transform: scale(0.4);
}
}
.success-header {
background: var(--text-success);
}
/*# sourceMappingURL=modals.css.map*/