Dialog refactor 2 (#2321)
Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
@@ -4,14 +4,86 @@
|
||||
display: none;
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// Dialog Base Styles
|
||||
// =============================================================================
|
||||
|
||||
.p-dialog {
|
||||
@media (max-width: 768px) {
|
||||
width: 95vw !important;
|
||||
max-width: 95vw !important;
|
||||
max-height: 95vh !important;
|
||||
max-height: 95dvh !important;
|
||||
}
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// Dialog Size Classes
|
||||
// Use these to control dialog dimensions. Sizes are designed for common use cases.
|
||||
// =============================================================================
|
||||
|
||||
// Extra Small - confirmations, simple alerts (~400px)
|
||||
.dialog-xs.p-dialog {
|
||||
width: 90vw;
|
||||
max-width: 400px;
|
||||
}
|
||||
|
||||
// Small - simple forms, pickers (~550px)
|
||||
.dialog-sm.p-dialog {
|
||||
width: 90vw;
|
||||
max-width: 550px;
|
||||
}
|
||||
|
||||
// Medium - standard dialogs (~700px)
|
||||
.dialog-md.p-dialog {
|
||||
width: 90vw;
|
||||
max-width: 700px;
|
||||
}
|
||||
|
||||
// Large - complex forms, lists (~900px)
|
||||
.dialog-lg.p-dialog {
|
||||
width: 90vw;
|
||||
max-width: 900px;
|
||||
}
|
||||
|
||||
// Extra Large - data-heavy views (~1200px)
|
||||
.dialog-xl.p-dialog {
|
||||
width: 95vw;
|
||||
max-width: 1200px;
|
||||
}
|
||||
|
||||
// Full - viewport filling dialogs
|
||||
.dialog-full.p-dialog {
|
||||
width: 95vw;
|
||||
max-width: 95vw;
|
||||
height: 95dvh;
|
||||
max-height: 95dvh;
|
||||
|
||||
.p-dialog-content {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// Dialog Style Modifiers
|
||||
// Composable with size classes (e.g., 'dialog-lg dialog-minimal')
|
||||
// =============================================================================
|
||||
|
||||
// Minimal - removes padding for custom headers/content
|
||||
.dialog-minimal.p-dialog {
|
||||
border: none;
|
||||
|
||||
.p-dialog-content {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// Legacy Aliases (for backward compatibility)
|
||||
// =============================================================================
|
||||
|
||||
// @deprecated Use 'dialog-minimal' instead
|
||||
.dynamic-dialog-minimal.p-dialog {
|
||||
border: none;
|
||||
|
||||
@@ -20,23 +92,20 @@
|
||||
}
|
||||
}
|
||||
|
||||
// @deprecated Use 'dialog-xl' or 'dialog-full' instead
|
||||
.dialog-maximal.p-dialog {
|
||||
width: 95vw;
|
||||
max-width: 1200px;
|
||||
height: 95vh;
|
||||
max-height: 95vh;
|
||||
}
|
||||
|
||||
.dialog-full.p-dialog {
|
||||
width: 95vw;
|
||||
height: 95vh;
|
||||
height: 95dvh;
|
||||
max-height: 95dvh;
|
||||
}
|
||||
|
||||
// @deprecated Use 'dialog-lg' instead
|
||||
.dialog-medium.p-dialog {
|
||||
width: 90vw;
|
||||
max-width: 900px;
|
||||
height: 90vh;
|
||||
max-height: 90vh;
|
||||
height: 90dvh;
|
||||
max-height: 90dvh;
|
||||
}
|
||||
|
||||
.gradient-divider {
|
||||
|
||||
Reference in New Issue
Block a user