mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
inset lists, card updates
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// iOS Card
|
||||
// --------------------------------------------------
|
||||
|
||||
$card-ios-background-color: #fff !default;
|
||||
$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;
|
||||
@@ -13,27 +13,35 @@ $card-ios-footer-background-color: $card-ios-background-color !default;
|
||||
$card-ios-footer-padding: 10px;
|
||||
|
||||
|
||||
.card[mode=ios] {
|
||||
.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;
|
||||
|
||||
.item::before,
|
||||
.item::after {
|
||||
left: 0;
|
||||
.item {
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: -1px;
|
||||
}
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.item:first-child:before {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
ion-header {
|
||||
padding: $card-ios-header-padding;
|
||||
background-color: $card-ios-footer-background-color;
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
ion-footer {
|
||||
padding: $card-ios-footer-padding;
|
||||
background-color: $card-ios-footer-background-color;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Material Design Card
|
||||
// --------------------------------------------------
|
||||
|
||||
$card-md-background-color: #fff !default;
|
||||
$card-md-background-color: $list-background-color !default;
|
||||
$card-md-box-shadow: 0 1px 2px rgba(0,0,0,.3) !default;
|
||||
$card-md-border-radius: 2px !default;
|
||||
$card-md-font-size: 1.4rem !default;
|
||||
@@ -13,27 +13,39 @@ $card-md-footer-background-color: $card-md-background-color !default;
|
||||
$card-md-footer-padding: 10px;
|
||||
|
||||
|
||||
.card[mode=md] {
|
||||
.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;
|
||||
|
||||
.item::before,
|
||||
.item::after {
|
||||
left: 0;
|
||||
.item {
|
||||
|
||||
&:last-child {
|
||||
margin-bottom: -1px;
|
||||
}
|
||||
|
||||
&:before,
|
||||
&:after {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.item:first-child {
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
.item:first-child:before {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
ion-header {
|
||||
padding: $card-md-header-padding;
|
||||
background-color: $card-md-footer-background-color;
|
||||
}
|
||||
|
||||
.card-footer {
|
||||
ion-footer {
|
||||
padding: $card-md-footer-padding;
|
||||
background-color: $card-md-footer-background-color;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user