Files
Brandy Carney 131c8c366a refactor(alert): add extra div to use as radio mark, fix Sass
Added spaces to separate groups of css, added variables, removed unused
css

BREAKING CHANGE: added Sass variables for alert

fixes #5577
2016-03-14 12:54:12 -04:00

102 lines
1.4 KiB
SCSS

@import "../../globals.core";
// Alerts
// --------------------------------------------------
$alert-min-width: 250px !default;
$alert-max-height: 90% !default;
$alert-button-line-height: 20px !default;
$alert-button-font-size: 14px !default;
ion-alert {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: $z-index-overlay;
display: flex;
align-items: center;
justify-content: center;
input {
width: 100%;
}
}
.alert-wrapper {
z-index: $z-index-overlay-wrapper;
display: flex;
flex-direction: column;
min-width: $alert-min-width;
max-height: $alert-max-height;
opacity: 0;
}
.alert-title {
margin: 0;
padding: 0;
}
.alert-sub-title {
margin: 5px 0 0;
padding: 0;
font-weight: normal;
}
.alert-message {
overflow: auto;
}
.alert-input {
@include placeholder();
padding: 10px 0;
border: 0;
background: inherit;
}
.alert-button-group {
display: flex;
flex-direction: row;
&.vertical {
flex-direction: column;
flex-wrap: nowrap;
}
}
.alert-button {
z-index: 0;
display: block;
margin: 0;
font-size: $alert-button-font-size;
line-height: $alert-button-line-height;
}
.alert-tappable {
margin: 0;
padding: 0;
width: 100%;
font-size: inherit;
line-height: initial;
text-align: left;
background: transparent;
-webkit-appearance: none;
}