@lucsoft/webgen
Version:
Collection of lucsofts Components
56 lines (53 loc) • 1.27 kB
CSS
@keyframes fadeBackdrop {
from {
background-color: rgb(0 0 0 / 0%);
backdrop-filter: blur(0px);
}
to {
background-color: rgb(0 0 0 / 80%);
backdrop-filter: blur(1px);
}
}
.dialog-backdrop {
display: none;
}
.dialog-backdrop.open {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
padding: var(--gap);
background-color: rgb(0 0 0 / 80%);
backdrop-filter: blur(1px);
z-index: 1000;
display: flex;
justify-content: center;
align-items: center;
animation: fadeBackdrop 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes dialogFlowIn {
from {
transform: translate(0, 2px) scale(0.95);
opacity: 0.95;
}
}
.dialog-backdrop.open .dialog {
box-shadow: var(--background-card);
border-radius: var(--border-radius);
background: var(--background-card);
color: var(--on-card-text);
backdrop-filter: var(--backdrop-filter);
font-family: var(--font);
animation: dialogFlowIn 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.dialog > .dialog-title {
display: block;
font-size: 1.8rem;
font-weight: 300;
margin: var(--gap);
}
.dialog > .dialog-content {
display: block;
margin: calc(var(--gap) / 2) var(--gap);
}