modo-mobile
Version:
A mobile UI toolkit, based on React
167 lines (166 loc) • 3.75 kB
CSS
.m-list {
background-color: #fff;
}
.m-list-header {
font-size: 14px;
font-weight: 500;
color: #333;
padding: 16px;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-pack: justify;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
position: relative;
}
.m-list-header::after {
content: '';
position: absolute;
background-color: #ebebeb;
display: block;
z-index: 1;
top: auto;
right: auto;
bottom: 0;
left: 0;
width: 100%;
height: 1px;
-webkit-transform-origin: 50% 100%;
-ms-transform-origin: 50% 100%;
transform-origin: 50% 100%;
-webkit-transform: scaleY(0.5);
-ms-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.m-list-item {
padding-left: 16px;
padding-right: 16px;
-webkit-box-sizing: border-box;
box-sizing: border-box;
position: relative;
}
.m-list-item.m-list-item-has-arrow:active:after {
display: block;
}
.m-list-item:after {
top: 0;
right: 0;
bottom: 0;
left: 0;
display: none;
content: '';
position: absolute;
-webkit-box-sizing: border-box;
box-sizing: border-box;
background-color: rgba(0, 0, 0, 0.03);
}
.m-list-item.m-list-item-right .m-list-item-content {
-webkit-box-orient: horizontal;
-webkit-box-direction: reverse;
-webkit-flex-direction: row-reverse;
-ms-flex-direction: row-reverse;
flex-direction: row-reverse;
}
.m-list-item.m-list-item-center .m-list-item-content {
-webkit-box-pack: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
}
.m-list-item.m-list-item-disabled:active:after {
display: none;
}
.m-list-item.m-list-item-disabled .m-list-item-label {
opacity: 0.5;
}
.m-list-item.m-list-item-disabled .m-list-item-content {
opacity: 0.5;
}
.m-list-item:last-child .m-list-item-inner::after {
display: none;
}
.m-list-item-inner {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
padding: 14px 0;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
position: relative;
}
.m-list-item-inner::after {
content: '';
position: absolute;
background-color: #ebebeb;
display: block;
z-index: 1;
top: auto;
right: auto;
bottom: 0;
left: 0;
width: 100%;
height: 1px;
-webkit-transform-origin: 50% 100%;
-ms-transform-origin: 50% 100%;
transform-origin: 50% 100%;
-webkit-transform: scaleY(0.5);
-ms-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.m-list-item-arrow {
color: rgba(0, 0, 0, 0.3);
font-size: 12px;
margin-left: 6px;
}
.m-list-item-arrow-up .m-icon > svg {
-webkit-transform: rotate(-90deg);
-ms-transform: rotate(-90deg);
transform: rotate(-90deg);
}
.m-list-item-arrow-down .m-icon > svg {
-webkit-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg);
}
.m-list-item-label {
font-size: 14px;
}
.m-list-item-label-solid {
width: 5em;
}
.m-list-item-title {
color: #111a34;
}
.m-list-item-brief {
color: rgba(0, 0, 0, 0.45);
font-size: 12px;
padding-top: 4px;
}
.m-list-item-extra {
margin-right: 8px;
}
.m-list-item-content {
width: auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
margin-left: 6px;
}