File size: 1,552 Bytes
07bbbbf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
/**
* Enhanced Dialog Styles
*/
/* Overlay backdrop */
.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.4);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
padding: 16px;
animation: fadeIn 0.2s ease-out;
}
/* Main dialog container */
.dialog {
background-color: var(--ion-background-color, #fff);
border-radius: 12px;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
display: flex;
flex-direction: column;
max-width: 90vw;
max-height: 90vh;
min-width: 300px;
width: fit-content;
overflow: hidden;
animation: scaleIn 0.2s ease-out;
}
/* Dialog content area */
.content {
flex: 1 1 auto;
overflow: auto;
padding: 20px 24px;
color: var(--ion-text-color);
min-height: 0;
}
/* Footer with buttons */
.footer {
flex-shrink: 0;
}
/* Button container */
.buttonContainer {
display: flex;
justify-content: flex-end;
gap: 8px;
padding: 8px 16px;
}
/* Animations */
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes scaleIn {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
/* Responsive styles */
@media (min-width: 768px) {
.dialog {
min-width: 400px;
max-width: 600px;
}
}
@media (max-width: 767px) {
.dialog {
min-width: 280px;
max-width: 95vw;
}
}
/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
.dialog {
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
}
|