mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
90 lines
2.2 KiB
SCSS
90 lines
2.2 KiB
SCSS
|
|
// Material Design Popups
|
|
// --------------------------------------------------
|
|
|
|
$popup-md-max-width: 280px !default;
|
|
$popup-md-background: rgba(0,0,0,0.5) !default;
|
|
$popup-md-border-radius: 2px !default;
|
|
$popup-md-background-color: #fafafa !default;
|
|
$popup-md-box-shadow: 0px 16px 20px rgba(0, 0, 0, 0.4) !default;
|
|
|
|
$popup-md-head-text-align: left !default;
|
|
$popup-md-title-font-size: 20px !default;
|
|
$popup-md-body-text-color: rgba(0,0,0,.5) !default;
|
|
|
|
$popup-md-button-text-color: color(primary) !default;
|
|
$popup-md-button-min-height: 36px !default;
|
|
$popup-md-prompt-input-highlight-color: map-get($colors, primary) !default;
|
|
$popup-md-prompt-input-placeholder-color: #b9b9b9;
|
|
|
|
|
|
ion-popup {
|
|
background: $popup-md-background;
|
|
|
|
popup-wrapper {
|
|
max-width: $popup-md-max-width;
|
|
border-radius: $popup-md-border-radius;
|
|
background-color: $popup-md-background-color;
|
|
|
|
box-shadow: $popup-md-box-shadow;
|
|
}
|
|
}
|
|
|
|
.popup-head {
|
|
text-align: $popup-md-head-text-align;
|
|
padding: 24px 24px 10px 24px;
|
|
}
|
|
|
|
.popup-title {
|
|
font-size: $popup-md-title-font-size;
|
|
}
|
|
|
|
.popup-body {
|
|
padding: 10px 24px 24px 24px;
|
|
color: $popup-md-body-text-color;
|
|
}
|
|
|
|
.prompt-input {
|
|
border-bottom: 1px solid #dedede;
|
|
|
|
&::-webkit-input-placeholder {
|
|
color: $popup-md-prompt-input-placeholder-color;
|
|
}
|
|
|
|
&:-moz-placeholder { /* Firefox 18- */
|
|
color: $popup-md-prompt-input-placeholder-color;
|
|
}
|
|
|
|
&::-moz-placeholder { /* Firefox 19+ */
|
|
color: $popup-md-prompt-input-placeholder-color;
|
|
}
|
|
|
|
&:-ms-input-placeholder {
|
|
color: $popup-md-prompt-input-placeholder-color;
|
|
}
|
|
|
|
&:focus {
|
|
border-bottom: 2px solid $popup-md-prompt-input-highlight-color;
|
|
}
|
|
}
|
|
|
|
.popup-buttons {
|
|
padding: 8px 8px 8px 24px;
|
|
justify-content: flex-end;
|
|
|
|
button {
|
|
-webkit-box-flex: initial;
|
|
-webkit-flex: intiial;
|
|
-ms-flex: initial;
|
|
flex: initial;
|
|
|
|
background-color: transparent;
|
|
color: $popup-md-button-text-color;
|
|
min-height: $popup-md-button-min-height;
|
|
|
|
box-shadow: none;
|
|
-webkit-transition: none;
|
|
transition: none;
|
|
}
|
|
}
|