Files
ionic-framework/ionic/components/item/item.scss
Adam Bradley 5897c296b8 prevent clicking two items
Closes #80
2015-08-31 20:01:35 -05:00

151 lines
2.1 KiB
SCSS

// Item
// --------------------------------------------------
// Core structure only, dimensions belong in specific modes
.item {
position: relative;
display: flex;
justify-content: space-between;
align-items: center;
margin: 0;
padding: 0;
border: 0;
min-height: 4.4rem;
text-align: initial;
background-color: $list-background-color;
color: $list-text-color;
}
a.item,
button.item.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;
}
ion-item-content {
margin: 0;
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
pointer-events: none;
}
.item-text-wrap ion-item-content {
white-space: normal;
}
.item > icon:first-child {
min-width: 24px;
text-align: center;
}
.list .item > icon[small]:first-child {
min-width: 18px;
}
.list .item {
border-radius: 0;
transition: background 300ms ease-out;
&:active {
transition-duration: 0s;
}
}
.item > icon {
font-size: 2.4rem;
&[large] {
font-size: 3.2rem;
}
&[small] {
font-size: 1.8rem;
}
}
.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;
}
}
.vertical-align-top,
.item.item-input {
align-items: flex-start;
}
.item a {
text-decoration: none;
}
.item.item.item.no-border-bottom:after,
.item.item.item.no-border-bottom + .item:before {
border: none;
}
.item.item.item.no-border-bottom + .item {
margin-top: -13px;
}
.item .item-media {
line-height: 1;
img {
display: block;
}
}