Files
ionic-framework/src/components/item/item.scss
2016-10-06 09:52:52 +02:00

104 lines
1.4 KiB
SCSS

@import "../../themes/ionic.globals";
// Item
// --------------------------------------------------
// Core structure only, dimensions belong in specific modes
//
// ".item" includes elements:
// ion-item
// [ion-item]
// ion-item-divider
// ion-list-header
//
// ".item-block" includes elements:
// ion-item
// [ion-item]
.item-block {
display: flex;
overflow: hidden;
align-items: center;
justify-content: space-between;
margin: 0;
padding: 0;
width: 100%;
min-height: 4.4rem;
border: 0;
font-weight: normal;
line-height: normal;
text-align: initial;
text-decoration: none;
color: inherit;
}
.item-inner {
display: flex;
overflow: hidden;
flex: 1;
flex-direction: inherit;
align-items: inherit;
align-self: stretch;
margin: 0;
padding: 0;
min-height: inherit;
border: 0;
}
.input-wrapper {
display: flex;
overflow: hidden;
flex: 1;
flex-direction: inherit;
align-items: inherit;
align-self: stretch;
text-overflow: ellipsis;
}
.item[no-lines],
.item.item[no-lines] .item-inner {
border: 0;
}
ion-item-group {
display: block;
}
ion-item-divider {
z-index: $z-index-item-divider;
display: flex;
overflow: hidden;
align-items: center;
justify-content: space-between;
margin: 0;
padding: 0;
width: 100%;
min-height: 30px;
}
ion-item-divider[sticky] {
position: sticky;
top: 0;
}
[vertical-align-top],
ion-input.item {
align-items: flex-start;
}