mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
45 lines
987 B
SCSS
45 lines
987 B
SCSS
|
|
// iOS Card
|
|
// --------------------------------------------------
|
|
|
|
$card-ios-background-color: $list-background-color !default;
|
|
$card-ios-box-shadow: 0 1px 2px rgba(0,0,0,.3) !default;
|
|
$card-ios-border-radius: 2px !default;
|
|
$card-ios-font-size: 1.4rem !default;
|
|
|
|
$card-ios-header-background-color: $card-ios-background-color !default;
|
|
$card-ios-header-padding: 10px;
|
|
|
|
|
|
.card.list[mode=ios] {
|
|
background: $card-ios-background-color;
|
|
box-shadow: $card-ios-box-shadow;
|
|
border-radius: $card-ios-border-radius;
|
|
font-size: $card-ios-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;
|
|
}
|
|
|
|
.item::before,
|
|
.item::after {
|
|
left: 0;
|
|
}
|
|
|
|
ion-header {
|
|
padding: $card-ios-header-padding;
|
|
background-color: $card-ios-header-background-color;
|
|
}
|
|
|
|
}
|