mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
47 lines
1.2 KiB
SCSS
47 lines
1.2 KiB
SCSS
|
|
// Material Design Card
|
|
// --------------------------------------------------
|
|
|
|
$card-md-background-color: $list-background-color !default;
|
|
$card-md-box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.2), 0 1px 5px 0 rgba(0,0,0,.12) !default;
|
|
$card-md-border-radius: 2px !default;
|
|
$card-md-font-size: 1.4rem !default;
|
|
|
|
$card-md-header-background-color: $card-md-background-color !default;
|
|
$card-md-header-padding: 16px;
|
|
$card-md-footer-background-color: $card-md-background-color !default;
|
|
$card-md-footer-padding: 16px;
|
|
|
|
|
|
.card.list[mode=md] {
|
|
background: $card-md-background-color;
|
|
box-shadow: $card-md-box-shadow;
|
|
border-radius: $card-md-border-radius;
|
|
font-size: $card-md-font-size;
|
|
overflow: hidden;
|
|
|
|
.item:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.item:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.item:first-child:before,
|
|
.item:last-child:after {
|
|
border: none;
|
|
}
|
|
|
|
ion-header {
|
|
padding: $card-md-header-padding;
|
|
background-color: $card-md-footer-background-color;
|
|
}
|
|
|
|
ion-footer {
|
|
padding: $card-md-footer-padding;
|
|
background-color: $card-md-footer-background-color;
|
|
}
|
|
|
|
}
|