mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
144 lines
2.6 KiB
SCSS
144 lines
2.6 KiB
SCSS
|
|
// Modals
|
|
// --------------------------
|
|
|
|
$popup-bg-color: #fff !default;
|
|
$popup-backdrop-bg-active: #000 !default;
|
|
$popup-backdrop-bg-inactive: rgba(0,0,0,0) !default;
|
|
|
|
$popup-border-radius: 0px !default;
|
|
$popup-background-color: rgba(255,255,255,0.9) !default;
|
|
|
|
$popup-button-border-radius: 2px !default;
|
|
$popup-button-line-height: 20px !default;
|
|
$popup-button-min-height: 45px !default;
|
|
|
|
|
|
ion-popup {
|
|
position: absolute;
|
|
top: 0;
|
|
z-index: $z-index-overlay;
|
|
overflow: hidden;
|
|
min-height: 100%;
|
|
width: 100%;
|
|
background-color: $modal-bg-color;
|
|
|
|
transform: translate3d(0px, 100%, 0px);
|
|
&.show-overlay {
|
|
transform: translate3d(0px, 0px, 0px);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
* Popups
|
|
* --------------------------------------------------
|
|
*/
|
|
|
|
ion-popup {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
background: rgba(0,0,0,0);
|
|
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
z-index: $z-index-overlay;
|
|
|
|
// Start hidden
|
|
visibility: hidden;
|
|
/*
|
|
&.popup-showing {
|
|
visibility: visible;
|
|
}
|
|
|
|
&.popup-hidden .popup {
|
|
@include animation-name(scaleOut);
|
|
@include animation-duration($popup-leave-animation-duration);
|
|
@include animation-timing-function(ease-in-out);
|
|
@include animation-fill-mode(both);
|
|
}
|
|
|
|
&.active .popup {
|
|
@include animation-name(superScaleIn);
|
|
@include animation-duration($popup-enter-animation-duration);
|
|
@include animation-timing-function(ease-in-out);
|
|
@include animation-fill-mode(both);
|
|
}
|
|
*/
|
|
|
|
.popup {
|
|
width: $popup-width;
|
|
max-width: 100%;
|
|
max-height: 90%;
|
|
|
|
border-radius: $popup-border-radius;
|
|
background-color: $popup-background-color;
|
|
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
input,
|
|
textarea {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.popup-head {
|
|
padding: 15px 10px;
|
|
border-bottom: 1px solid #eee;
|
|
text-align: center;
|
|
}
|
|
.popup-title {
|
|
margin: 0;
|
|
padding: 0;
|
|
font-size: 15px;
|
|
}
|
|
.popup-sub-title {
|
|
margin: 5px 0 0 0;
|
|
padding: 0;
|
|
font-weight: normal;
|
|
font-size: 11px;
|
|
}
|
|
.popup-body {
|
|
padding: 10px;
|
|
overflow: auto;
|
|
}
|
|
|
|
.popup-buttons {
|
|
display: flex;
|
|
flex-direction: row;
|
|
padding: 10px;
|
|
min-height: $popup-button-min-height + 20;
|
|
|
|
.button {
|
|
flex: 1;
|
|
display: block;
|
|
min-height: $popup-button-min-height;
|
|
border-radius: $popup-button-border-radius;
|
|
line-height: $popup-button-line-height;
|
|
|
|
margin-right: 5px;
|
|
&:last-child {
|
|
margin-right: 0px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.popup-open {
|
|
pointer-events: none;
|
|
|
|
&.modal-open .modal {
|
|
pointer-events: none;
|
|
}
|
|
|
|
.popup-backdrop, .popup {
|
|
pointer-events: auto;
|
|
}
|
|
}
|