Files
ionic-framework/ionic/components/popup/popup.scss
Brandy Carney ee8403c6e6 chore(popup): add material design popup to md core sass file & convert values to variables
Added material design styling for the popup and removed some properties
from the core popup sass file
2015-09-29 14:57:00 -04:00

81 lines
1.4 KiB
SCSS

// Popups
// --------------------------------------------------
$popup-min-width: 250px !default;
$popup-max-width: 100% !default;
$popup-max-height: 90% !default;
$popup-sub-title-font-size: 11px !default;
$popup-button-line-height: 20px !default;
$popup-button-font-size: 14px !default;
$popup-button-margin-right: 8px !default;
ion-popup {
position: absolute;
z-index: $z-index-overlay;
top: 0;
left: 0;
bottom: 0;
right: 0;
display: flex;
justify-content: center;
align-items: center;
popup-wrapper {
z-index: $z-index-overlay-wrapper;
min-width: $popup-min-width;
max-width: $popup-max-width;
max-height: $popup-max-height;
display: flex;
flex-direction: column;
}
input,
textarea {
width: 100%;
}
}
.popup-head {
padding: 15px 10px;
}
.popup-title {
margin: 0;
padding: 0;
}
.popup-sub-title {
margin: 5px 0 0 0;
padding: 0;
font-weight: normal;
font-size: $popup-sub-title-font-size;
}
.popup-body {
overflow: auto;
}
.popup-buttons {
display: flex;
flex-direction: row;
button {
flex: 1;
display: block;
margin: 0;
line-height: $popup-button-line-height;
font-size: $popup-button-font-size;
margin-right: $popup-button-margin-right;
&:last-child {
margin-right: 0;
}
}
}