Files
ionic-framework/ionic/components/popup/popup.scss
2015-07-21 12:53:48 -05:00

124 lines
2.2 KiB
SCSS

// Modals
// --------------------------
$popup-width: 250px !default;
$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;
$popup-backdrop-color: #000 !default;
$popup-backdrop-active-opacity: 0.4 !default;
/**
* Popups
* --------------------------------------------------
*/
.popup-backdrop {
z-index: $z-index-popup-backdrop;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: $popup-backdrop-color;
opacity: 0;
tranform: translateZ(0);
}
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;
.popup-wrapper {
z-index: $z-index-popup-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;
border-bottom: 1px solid #eee;
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;
}
}
}
.popup-open {
pointer-events: none;
&.modal-open .modal {
pointer-events: none;
}
.popup-backdrop, .popup {
pointer-events: auto;
}
}