mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
90 lines
1.5 KiB
SCSS
90 lines
1.5 KiB
SCSS
|
|
// Popups
|
|
// --------------------------------------------------
|
|
|
|
$popup-width: 250px !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;
|
|
z-index: $z-index-overlay;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
right: 0;
|
|
background: rgba(0,0,0,0);
|
|
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
|
|
popup-wrapper {
|
|
z-index: $z-index-overlay-wrapper;
|
|
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;
|
|
text-align: center;
|
|
}
|
|
|
|
h3.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;
|
|
}
|
|
}
|
|
}
|