mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 19:57:22 +08:00
105 lines
2.2 KiB
SCSS
105 lines
2.2 KiB
SCSS
|
|
// Material Design Item
|
|
// --------------------------------------------------
|
|
|
|
$item-md-border-color: #c8c7cc !default;
|
|
$item-md-font-size: 1.6rem !default;
|
|
|
|
$item-md-padding-top: 13px !default;
|
|
$item-md-padding-right: 15px !default;
|
|
$item-md-padding-bottom: 14px !default;
|
|
$item-md-padding-left: 15px !default;
|
|
|
|
$item-md-padding-media-top: 10px !default;
|
|
$item-md-padding-media-bottom: 11px !default;
|
|
|
|
$item-md-avatar-size: 4rem !default;
|
|
$item-md-thumbnail-size: 8rem !default;
|
|
$item-md-note-color: #999 !default;
|
|
|
|
|
|
.list[mode="md"] {
|
|
|
|
.item {
|
|
font-size: $item-md-font-size;
|
|
margin-top: -1px;
|
|
|
|
&:before {
|
|
position: absolute;
|
|
content: '';
|
|
top: 0;
|
|
right: 0;
|
|
left: 0;
|
|
border-top: 1px solid $item-md-border-color;
|
|
}
|
|
|
|
&:after {
|
|
position: absolute;
|
|
content: '';
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
border-top: 1px solid $item-md-border-color;
|
|
}
|
|
}
|
|
|
|
.input-label,
|
|
.item-content,
|
|
.item-note {
|
|
margin: $item-md-padding-top $item-md-padding-right $item-md-padding-bottom $item-md-padding-left;
|
|
}
|
|
|
|
.item-media {
|
|
margin: $item-md-padding-media-top $item-md-padding-right $item-md-padding-media-bottom $item-md-padding-left;
|
|
}
|
|
|
|
.text-input {
|
|
margin: $item-md-padding-top $item-md-padding-right $item-md-padding-bottom $item-md-padding-left;
|
|
padding: 0;
|
|
}
|
|
|
|
.item-note {
|
|
color: $item-md-note-color;
|
|
}
|
|
|
|
.item > icon {
|
|
margin-left: $item-md-padding-left;
|
|
margin-right: $item-md-padding-right;
|
|
}
|
|
|
|
.item-input > icon {
|
|
margin-top: $item-md-padding-media-top - 1;
|
|
}
|
|
|
|
icon[forward] {
|
|
font-size: 2rem;
|
|
color: #cfcfcf;
|
|
}
|
|
|
|
button {
|
|
margin: 0 $item-md-padding-right 0 $item-md-padding-left;
|
|
padding: 2px 6px;
|
|
min-height: 26px;
|
|
}
|
|
|
|
.badge {
|
|
margin-right: $item-md-padding-right;
|
|
}
|
|
|
|
.avatar {
|
|
max-width: $item-md-avatar-size;
|
|
max-height: $item-md-avatar-size;
|
|
border-radius: $item-md-avatar-size / 2;
|
|
}
|
|
|
|
.thumbnail {
|
|
max-width: $item-md-thumbnail-size;
|
|
max-height: $item-md-thumbnail-size;
|
|
}
|
|
|
|
button.item.activated {
|
|
box-shadow: none;
|
|
}
|
|
|
|
}
|