mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 05:21:52 +08:00
87 lines
2.4 KiB
SCSS
87 lines
2.4 KiB
SCSS
@import "../../globals.md";
|
|
@import "./alert";
|
|
|
|
// Material Design Alerts
|
|
// --------------------------------------------------
|
|
|
|
$alert-md-max-width: 280px !default;
|
|
$alert-md-border-radius: 2px !default;
|
|
$alert-md-background-color: #fafafa !default;
|
|
$alert-md-box-shadow: 0px 16px 20px rgba(0, 0, 0, 0.4) !default;
|
|
|
|
$alert-md-head-text-align: left !default;
|
|
$alert-md-head-padding: 24px 24px 10px 24px !default;
|
|
|
|
$alert-md-title-font-size: 20px !default;
|
|
$alert-md-sub-title-font-size: 15px !default;
|
|
|
|
$alert-md-body-padding: 10px 24px 24px 24px !default;
|
|
$alert-md-body-text-color: rgba(0,0,0,.5) !default;
|
|
|
|
$alert-md-input-border-color: #dedede !default;
|
|
$alert-md-input-text-color: #000000 !default;
|
|
$alert-md-input-highlight-color: map-get($colors-md, primary) !default;
|
|
$alert-md-input-margin-top: 5px !default;
|
|
$alert-md-input-margin-bottom: 5px !default;
|
|
|
|
$alert-md-button-text-color: map-get($colors-md, primary) !default;
|
|
$alert-md-button-background-color: transparent !default;
|
|
$alert-md-buttons-padding: 8px 8px 8px 24px !default;
|
|
$alert-md-buttons-justify-content: flex-end !default;
|
|
|
|
|
|
.alert-wrapper {
|
|
max-width: $alert-md-max-width;
|
|
border-radius: $alert-md-border-radius;
|
|
background-color: $alert-md-background-color;
|
|
|
|
box-shadow: $alert-md-box-shadow;
|
|
}
|
|
|
|
.alert-head {
|
|
text-align: $alert-md-head-text-align;
|
|
padding: $alert-md-head-padding;
|
|
}
|
|
|
|
.alert-title {
|
|
font-size: $alert-md-title-font-size;
|
|
}
|
|
|
|
.alert-sub-title {
|
|
font-size: $alert-md-sub-title-font-size;
|
|
}
|
|
|
|
.alert-body {
|
|
padding: $alert-md-body-padding;
|
|
color: $alert-md-body-text-color;
|
|
}
|
|
|
|
.alert-input {
|
|
border-bottom: 1px solid $alert-md-input-border-color;
|
|
color: $alert-md-input-text-color;
|
|
margin: $alert-md-input-margin-top 0 $alert-md-input-margin-bottom 0;
|
|
|
|
&:focus {
|
|
border-bottom: 2px solid $alert-md-input-highlight-color;
|
|
margin-bottom: $alert-md-input-margin-bottom - 1;
|
|
}
|
|
}
|
|
|
|
.alert-buttons {
|
|
padding: $alert-md-buttons-padding;
|
|
justify-content: $alert-md-buttons-justify-content;
|
|
}
|
|
|
|
.alert-button {
|
|
position: relative;
|
|
overflow: hidden;
|
|
padding: 10px;
|
|
font-weight: 500;
|
|
color: $alert-md-button-text-color;
|
|
background-color: $alert-md-button-background-color;
|
|
|
|
&.activated {
|
|
opacity: 1;
|
|
}
|
|
}
|