mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
- remove scss-lint and sass-lint - add stylelint and stylelint-order packages and configuration - update all *.scss files to new syntax fixes #14805
47 lines
909 B
SCSS
47 lines
909 B
SCSS
@import "./modal.vars";
|
|
|
|
// Modals
|
|
// --------------------------------------------------
|
|
|
|
ion-modal {
|
|
@include position(0, 0, 0, 0);
|
|
|
|
display: flex;
|
|
position: absolute;
|
|
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
contain: strict;
|
|
}
|
|
|
|
ion-modal-controller {
|
|
display: none;
|
|
}
|
|
|
|
|
|
@media not all and (min-width: $modal-inset-min-width) and (min-height: $modal-inset-min-height-small) {
|
|
ion-modal ion-backdrop {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.modal-wrapper {
|
|
@media only screen and (min-width: $modal-inset-min-width) and (min-height: $modal-inset-min-height-small) {
|
|
width: $modal-inset-width;
|
|
height: $modal-inset-height-small;
|
|
}
|
|
|
|
@media only screen and (min-width: $modal-inset-min-width) and (min-height: $modal-inset-min-height-large) {
|
|
width: $modal-inset-width;
|
|
height: $modal-inset-height-large;
|
|
}
|
|
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
contain: strict;
|
|
z-index: 10;
|
|
}
|
|
|