Files
2015-11-24 11:51:53 -05:00

155 lines
2.2 KiB
SCSS

@import "../../ionic.globals";
// Item
// --------------------------------------------------
// Core structure only, dimensions belong in specific modes
.item {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0;
padding: 0;
border: 0;
min-height: 4.4rem;
text-align: initial;
overflow: hidden;
background-color: $list-background-color;
color: $list-text-color;
box-sizing: border-box;
&[no-lines] {
border: none;
.item-inner {
border: none;
}
}
}
.item-inner {
display: flex;
margin: 0;
padding: 0;
border: 0;
overflow: hidden;
box-sizing: border-box;
flex: 1;
flex-direction: inherit;
align-items: inherit;
align-self: stretch;
}
ion-item-group {
display: block;
}
ion-item-divider {
display: block;
min-height: 30px;
font-weight: 500;
width: 100%;
z-index: 1000;
&[sticky] {
position: -webkit-sticky;
position: sticky;
top: 0px;
}
}
a.item,
button.item {
margin: 0;
padding: 0;
width: 100%;
justify-content: inherit;
min-height: 4.4rem;
font-weight: normal;
line-height: normal;
text-decoration: none;
text-transform: none;
color: inherit;
border-radius: 0;
box-shadow: none;
will-change: initial;
}
ion-item-content {
margin: 0;
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
pointer-events: none;
a,
button {
pointer-events: auto;
}
}
[text-wrap] ion-item-content {
white-space: normal;
}
.item {
h1 {
margin: 0 0 2px;
font-size: 2.4rem;
font-weight: normal;
}
h2 {
margin: 0 0 2px;
font-size: 1.6rem;
font-weight: normal;
}
h3,
h4,
h5,
h6 {
line-height: normal;
margin: 0 0 3px 0;
font-size: 1.4rem;
font-weight: normal;
}
p {
line-height: normal;
color: #666;
font-size: 1.2rem;
margin: 0 0 2px;
}
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child,
p:last-child {
margin-bottom: 0;
}
a {
text-decoration: none;
}
}
.vertical-align-top,
ion-input.item {
align-items: flex-start;
}
ion-item-content + ion-item-content[cnt] {
display: none;
}