mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 13:32:54 +08:00
57 lines
1.4 KiB
SCSS
57 lines
1.4 KiB
SCSS
@import "../../globals.core";
|
|
|
|
// Modals
|
|
// --------------------------------------------------
|
|
|
|
$modal-inset-min-width: 768px !default;
|
|
$modal-inset-min-height-small: 600px !default;
|
|
$modal-inset-min-height-large: 768px !default;
|
|
$modal-inset-width: 600px !default;
|
|
$modal-inset-height-small: 500px !default;
|
|
$modal-inset-height-large: 600px !default;
|
|
|
|
ion-modal {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
|
|
display: block;
|
|
|
|
width: 100%;
|
|
height: 100%;
|
|
|
|
ion-backdrop {
|
|
@media not all and (min-width: $modal-inset-min-width) and (min-height: $modal-inset-min-height-small) {
|
|
visibility: hidden;
|
|
}
|
|
}
|
|
}
|
|
|
|
.modal-wrapper {
|
|
z-index: 10;
|
|
|
|
height: 100%;
|
|
|
|
@media only screen and (min-width: $modal-inset-min-width) and (min-height: $modal-inset-min-height-small) {
|
|
position: absolute;
|
|
top: calc(50% - (#{$modal-inset-height-small}/2));
|
|
left: calc(50% - (#{$modal-inset-width}/2));
|
|
|
|
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) {
|
|
position: absolute;
|
|
top: calc(50% - (#{$modal-inset-height-large}/2));
|
|
left: calc(50% - (#{$modal-inset-width}/2));
|
|
|
|
width: $modal-inset-width;
|
|
height: $modal-inset-height-large;
|
|
}
|
|
}
|
|
|
|
.show-page ion-page {
|
|
display: flex;
|
|
}
|