@ohu-mobile/core
Version:
174 lines (173 loc) • 3.59 kB
CSS
.ohu-list {
list-style: none;
margin: 0;
padding: 0;
}
.ohu-list__bottom {
line-height: 2.5em;
text-align: center;
font-size: 0.37333rem;
color: #999;
}
.ohu-list__bottom .ohu-loading {
vertical-align: middle;
font-size: 0.37333rem;
}
.ohu-list__bottom > .ohu-skeleton, .ohu-list__bottom > .ohu-skeletons {
padding: 0.4rem;
}
.ohu-list-subheader {
padding: 0 0.4rem;
color: #999;
background: #EEE;
z-index: 2;
line-height: 2em;
font-size: 0.37333rem;
transition: all 300ms ease;
}
.ohu-list-subheader.is-sticky {
color: #2d7eff;
background: #fff;
box-shadow: 0 1Px 10Px 0 #eee;
}
.ohu-list-item {
display: flex;
flex-flow: row nowrap;
align-items: center;
border-width: 0;
border-style: solid;
border-color: #eee;
padding: 0.4rem;
font-size: 0.42667rem;
line-height: 1.375em;
color: #333;
}
.ohu-list-item.has-divider {
position: relative;
}
.ohu-list-item.has-divider::after {
content: "";
box-sizing: border-box;
position: absolute;
z-index: 1;
pointer-events: none;
border-style: inherit;
border-width: 1Px 0 0;
right: 0;
bottom: 0;
left: 0;
border-color: inherit;
}
@media screen and (-webkit-min-device-pixel-ratio: 2) {
.ohu-list-item.has-divider::after {
transform: scaleY(0.5);
transform-origin: center top;
}
}
.ohu-list-item.has-divider-padding:after {
margin-left: 0.4rem;
margin-right: 0.4rem;
}
.ohu-list-item.has-action {
justify-content: space-between;
}
.ohu-list-item.is-button {
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
cursor: pointer;
-webkit-appearance: none;
-webkit-tap-highlight-color: transparent;
outline: none;
}
.ohu-list-item.is-button:active {
background: #F5F5F5;
}
.ohu-list-item.is-disabled {
cursor: not-allowed;
opacity: 0.4;
}
.ohu-list-item.is-disabled:active {
background: unset;
}
.ohu-list-item__main {
flex-grow: 1;
display: inline-flex;
flex-flow: row nowrap;
align-items: center;
justify-content: flex-start;
}
.ohu-list-item-thumb {
flex-grow: 0;
flex-shrink: 0;
margin-right: 0.32rem;
}
.ohu-list-item-thumb .ohu-image {
display: block;
}
.ohu-list-item.is-reverse .ohu-list-item__main {
flex-direction: row-reverse;
justify-content: space-between;
}
.ohu-list-item.is-reverse .ohu-list-item-thumb {
margin-right: unset;
margin-left: 0.32rem;
}
.ohu-list-item.is-reverse .ohu-list-item-icon .is-group-item {
margin-right: unset;
}
.ohu-list-item.is-reverse .ohu-list-item-icon > .ohu-icon {
margin-right: unset;
}
.ohu-list-item-avatar {
flex-grow: 0;
flex-shrink: 0;
align-self: flex-start;
font-size: 1.17333rem;
min-width: 1.6rem;
display: flex;
flex-flow: row nowrap;
align-items: flex-start;
}
.ohu-list-item-avatar img {
display: block;
width: 1.17333rem;
}
.ohu-list-item-icon {
flex-grow: 0;
flex-shrink: 0;
font-size: 0.45333rem;
}
.ohu-list-item-icon .is-group-item {
margin-right: 1em;
}
.ohu-list-item-icon > .ohu-icon {
font-size: 0.64rem;
margin-right: 1em;
}
.ohu-list-item-text__minor {
margin: 0;
font-size: 0.34667rem;
line-height: 1.384615em;
color: #999;
}
.ohu-list-item-text__primary {
font-size: 0.42667rem;
color: #333;
line-height: 1.375em;
}
.ohu-list-item-text__primary ~ .ohu-list-item-text__minor {
margin-top: 0.3846em;
}
.ohu-list-item-action {
flex-grow: 0;
flex-shrink: 0;
padding: 0 0 0 0.8333333em;
font-size: 0.48rem;
width: 1.3333333em;
height: 1.333333em;
}
.ohu-list-item-action > label.is-group-item {
font-size: 0.42667rem;
margin-right: 0;
}