mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
135 lines
2.0 KiB
SCSS
135 lines
2.0 KiB
SCSS
|
|
// Item
|
|
// --------------------------------------------------
|
|
|
|
$item-min-height: 44px !default;
|
|
$item-padding: 15px !default;
|
|
|
|
|
|
.item {
|
|
position: relative;
|
|
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
|
|
width: 100%;
|
|
min-height: $item-min-height;
|
|
margin: 0;
|
|
padding: 0;
|
|
border: 0;
|
|
text-align: initial;
|
|
}
|
|
|
|
ion-primary-swipe-buttons,
|
|
.item-content {
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
ion-primary-swipe-buttons {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
bottom: 0;
|
|
z-index: 100;
|
|
transform: translate3d(-100%,0,0);
|
|
|
|
&:not(.open):not(.changing) {
|
|
display: none;
|
|
}
|
|
&.open {
|
|
transform: translate3d(100%, 0, 0);
|
|
}
|
|
}
|
|
|
|
|
|
// Item Content
|
|
// --------------------------------------------------
|
|
|
|
.item-content {
|
|
// TODO add proper bg to cover up swipe buttons
|
|
background: white;
|
|
transform: translate3d(0,0,0);
|
|
|
|
position: relative;
|
|
|
|
display: flex;
|
|
flex: 1;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
|
|
width: 100%;
|
|
min-height: $item-min-height;
|
|
|
|
padding: 0;
|
|
}
|
|
|
|
.item-label {
|
|
position: relative;
|
|
|
|
display: flex;
|
|
flex: 1;
|
|
flex-shrink: 1;
|
|
|
|
max-width: 100%;
|
|
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.item-content {
|
|
h1, h2, h3, h4, h5, h6 {
|
|
align-self: flex-start;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Item Media (Icons, checkboxes, images, etc.)
|
|
// --------------------------------------------------
|
|
|
|
.item-media {
|
|
display: flex;
|
|
flex-shrink: 0;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
|
|
min-height: $item-min-height;
|
|
padding: 0;
|
|
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.item-media + .item-label {
|
|
padding-left: $item-padding;
|
|
}
|
|
|
|
.item-media:last-child {
|
|
padding-right: $item-padding;
|
|
}
|
|
|
|
.item-note {
|
|
color: #aaa;
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
.item-avatar {
|
|
padding-top: ($item-padding / 2) - 1;
|
|
padding-bottom: ($item-padding / 2) + 1;
|
|
|
|
img {
|
|
max-width: 40px;
|
|
max-height: 40px;
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 50%;
|
|
}
|
|
}
|
|
|
|
.item-full {
|
|
|
|
}
|