mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
Et2Dialog: Better non-modal styling
This commit is contained in:
parent
eb9ccfc655
commit
32248e67ee
@ -222,6 +222,15 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog))
|
|||||||
border-top: 1px solid silver;
|
border-top: 1px solid silver;
|
||||||
margin-top: 0.5em;
|
margin-top: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Non-modal dialogs don't have an overlay */
|
||||||
|
:host(:not([modal])) .dialog, :host(:not([modal])) .dialog__overlay {
|
||||||
|
pointer-events: none;
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
:host(:not([modal])) .dialog__panel {
|
||||||
|
pointer-events: auto;
|
||||||
|
}
|
||||||
`
|
`
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
@ -990,6 +999,12 @@ export class Et2Dialog extends Et2Widget(SlotMixin(SlDialog))
|
|||||||
listeners: {
|
listeners: {
|
||||||
move: this._onMoveResize
|
move: this._onMoveResize
|
||||||
},
|
},
|
||||||
|
modifiers: (this.modal ? [] : [
|
||||||
|
interact.modifiers.restrict({
|
||||||
|
restriction: 'parent',
|
||||||
|
endOnly: true
|
||||||
|
})
|
||||||
|
])
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -788,10 +788,6 @@ et2-dialog .dialog--has_message {
|
|||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Non-modal dialogs don't cover application tabs (add them to the app content div), not body */
|
|
||||||
et2-dialog:not([modal])::part(base), et2-dialog:not([modal])::part(overlay) {
|
|
||||||
inset: 50px 0 0 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user