@ohu-mobile/core
Version:
174 lines (173 loc) • 3.5 kB
CSS
.ohu-list {
list-style: none;
margin: 0;
padding: 0;
}
.ohu-list__bottom {
line-height: 2.5em;
text-align: center;
font-size: 28px;
color: #999;
}
.ohu-list__bottom .ohu-loading {
vertical-align: middle;
font-size: 28px;
}
.ohu-list__bottom > .ohu-skeleton, .ohu-list__bottom > .ohu-skeletons {
padding: 30px;
}
.ohu-list-subheader {
padding: 0 30px;
color: #999;
background: #EEE;
z-index: 2;
line-height: 2em;
font-size: 28px;
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: 30px;
font-size: 32px;
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: 30px;
margin-right: 30px;
}
.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: 24px;
}
.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: 24px;
}
.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: 88px;
min-width: 120px;
display: flex;
flex-flow: row nowrap;
align-items: flex-start;
}
.ohu-list-item-avatar img {
display: block;
width: 88px;
}
.ohu-list-item-icon {
flex-grow: 0;
flex-shrink: 0;
font-size: 34px;
}
.ohu-list-item-icon .is-group-item {
margin-right: 1em;
}
.ohu-list-item-icon > .ohu-icon {
font-size: 48px;
margin-right: 1em;
}
.ohu-list-item-text__minor {
margin: 0;
font-size: 26px;
line-height: 1.384615em;
color: #999;
}
.ohu-list-item-text__primary {
font-size: 32px;
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: 36px;
width: 1.3333333em;
height: 1.333333em;
}
.ohu-list-item-action > label.is-group-item {
font-size: 32px;
margin-right: 0;
}