You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1767 lines
29 KiB
1767 lines
29 KiB
/*
|
|
ColorUi for MP-weixin v2.1.4 | by 文晓港 2019年4月25日19:15:42
|
|
仅供学习交流,如作它用所承受的法律责任一概与作者无关
|
|
使用ColorUi开发扩展与插件时,请注明基于ColorUi开发
|
|
|
|
(QQ交流群:240787041)
|
|
*/
|
|
|
|
/* ==================
|
|
初始化
|
|
==================== */
|
|
|
|
page {
|
|
/* Color 可以自定义相关配色 *//* var属性兼容性 --> https://www.caniuse.com/#feat=css-variables *//* 标准色 */
|
|
--red: #e54d42;
|
|
--orange: #f37b1d;
|
|
--yellow: #fbbd08;
|
|
--olive: #8dc63f;
|
|
--green: #39b54a;
|
|
--cyan: #1cbbb4;
|
|
--blue: #008AFF;
|
|
--purple: #6739b6;
|
|
--mauve: #9c26b0;
|
|
--pink: #e03997;
|
|
--brown: #a5673f;
|
|
--grey: #8799a3;
|
|
--black: #333;
|
|
--darkGray: #666;
|
|
--gray: #aaa;
|
|
--ghostWhite: #f1f1f1;
|
|
--white: #fff;
|
|
/* 浅色 */
|
|
--redLight: #fadbd9;
|
|
--orangeLight: #fde6d2;
|
|
--yellowLight: #fef2ce;
|
|
--oliveLight: #e8f4d9;
|
|
--greenLight: #d7f0db;
|
|
--cyanLight: #d2f1f0;
|
|
--blueLight: #cce6ff;
|
|
--purpleLight: #e1d7f0;
|
|
--mauveLight: #ebd4ef;
|
|
--pinkLight: #f9d7ea;
|
|
--brownLight: #ede1d9;
|
|
--greyLight: #e7ebed;
|
|
/* 渐变色 */
|
|
--gradualRed: linear-gradient(45deg, #f43f3b, #ec008c);
|
|
--gradualOrange: linear-gradient(45deg, #ff9700, #ed1c24);
|
|
--gradualGreen: linear-gradient(45deg, #39b54a, #8dc63f);
|
|
--gradualPurple: linear-gradient(45deg, #9000ff, #5e00ff);
|
|
--gradualPink: linear-gradient(45deg, #ec008c, #6739b6);
|
|
--gradualBlue: linear-gradient(45deg, #009ee0, #009ee0);
|
|
/* 阴影透明色 */
|
|
--ShadowSize: 6rpx 6rpx 8rpx;
|
|
--redShadow: rgba(204, 69, 59, 0.2);
|
|
--orangeShadow: rgba(217, 109, 26, 0.2);
|
|
--yellowShadow: rgba(224, 170, 7, 0.2);
|
|
--oliveShadow: rgba(124, 173, 55, 0.2);
|
|
--greenShadow: rgba(48, 156, 63, 0.2);
|
|
--cyanShadow: rgba(28, 187, 180, 0.2);
|
|
--blueShadow: rgba(0, 102, 204, 0.2);
|
|
--purpleShadow: rgba(88, 48, 156, 0.2);
|
|
--mauveShadow: rgba(133, 33, 150, 0.2);
|
|
--pinkShadow: rgba(199, 50, 134, 0.2);
|
|
--brownShadow: rgba(140, 88, 53, 0.2);
|
|
--greyShadow: rgba(114, 130, 138, 0.2);
|
|
--grayShadow: rgba(114, 130, 138, 0.2);
|
|
--blackShadow: rgba(26, 26, 26, 0.2);
|
|
background-color: var(--ghostWhite);
|
|
font-size: 28rpx;
|
|
color: var(--black);
|
|
font-family: Helvetica Neue, Helvetica, sans-serif;
|
|
}
|
|
|
|
view, scroll-view, swiper, button, input, textarea, label, navigator, image {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.round {
|
|
border-radius: 5000rpx;
|
|
}
|
|
|
|
.radius {
|
|
border-radius: 6rpx;
|
|
}
|
|
|
|
.bg-white{
|
|
background-color: white;
|
|
}
|
|
/* ==================
|
|
边框
|
|
==================== */
|
|
|
|
/* -- 实线 -- */
|
|
|
|
.solid, .solid-top, .solid-right, .solid-bottom, .solid-left, .solids,
|
|
.solids-top, .solids-right, .solids-bottom, .solids-left, .dashed, .dashed-top,
|
|
.dashed-right, .dashed-bottom, .dashed-left {
|
|
position: relative;
|
|
}
|
|
|
|
.solid::after, .solid-top::after, .solid-right::after, .solid-bottom::after,
|
|
.solid-left::after, .solids::after, .solids-top::after, .solids-right::after,
|
|
.solids-bottom::after, .solids-left::after, .dashed::after, .dashed-top::after,
|
|
.dashed-right::after, .dashed-bottom::after, .dashed-left::after {
|
|
content: " ";
|
|
width: 200%;
|
|
height: 200%;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
border-radius: inherit;
|
|
transform: scale(0.5);
|
|
transform-origin: 0 0;
|
|
pointer-events: none;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.solid::after {
|
|
border: 1rpx solid rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.solid-top::after {
|
|
border-top: 1rpx solid rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.solid-right::after {
|
|
border-right: 1rpx solid rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.solid-bottom::after {
|
|
border-bottom: 1rpx solid rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.solid-left::after {
|
|
border-left: 1rpx solid rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.solids::after {
|
|
border: 8rpx solid #eee;
|
|
}
|
|
|
|
.solids-top::after {
|
|
border-top: 8rpx solid #eee;
|
|
}
|
|
|
|
.solids-right::after {
|
|
border-right: 8rpx solid #eee;
|
|
}
|
|
|
|
.solids-bottom::after {
|
|
border-bottom: 8rpx solid #eee;
|
|
}
|
|
|
|
.solids-left::after {
|
|
border-left: 8rpx solid #eee;
|
|
}
|
|
|
|
/* -- 虚线 -- */
|
|
|
|
.dashed::after {
|
|
border: 1rpx dashed #ddd;
|
|
}
|
|
|
|
.dashed-top::after {
|
|
border-top: 1rpx dashed #ddd;
|
|
}
|
|
|
|
.dashed-right::after {
|
|
border-right: 1rpx dashed #ddd;
|
|
}
|
|
|
|
.dashed-bottom::after {
|
|
border-bottom: 1rpx dashed #ddd;
|
|
}
|
|
|
|
.dashed-left::after {
|
|
border-left: 1rpx dashed #ddd;
|
|
}
|
|
|
|
/* -- 阴影 -- */
|
|
|
|
.shadow[class*='white'] {
|
|
--ShadowSize: 0 1rpx 6rpx;
|
|
}
|
|
|
|
.shadow-lg {
|
|
--ShadowSize: 0rpx 40rpx 100rpx 0rpx;
|
|
}
|
|
|
|
.shadow-warp {
|
|
position: relative;
|
|
box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.shadow-warp:before, .shadow-warp:after {
|
|
position: absolute;
|
|
content: "";
|
|
top: 20rpx;
|
|
bottom: 30rpx;
|
|
left: 20rpx;
|
|
width: 50%;
|
|
box-shadow: 0 30rpx 20rpx rgba(0, 0, 0, 0.2);
|
|
transform: rotate(-3deg);
|
|
z-index: -1;
|
|
}
|
|
|
|
.shadow-warp:after {
|
|
right: 20rpx;
|
|
left: auto;
|
|
transform: rotate(3deg);
|
|
}
|
|
|
|
.shadow-blur {
|
|
position: relative;
|
|
}
|
|
|
|
.shadow-blur::before {
|
|
content: "";
|
|
display: block;
|
|
background: inherit;
|
|
filter: blur(10rpx);
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
top: 10rpx;
|
|
left: 10rpx;
|
|
z-index: -1;
|
|
opacity: 0.4;
|
|
transform-origin: 0 0;
|
|
border-radius: inherit;
|
|
transform: scale(1, 1);
|
|
}
|
|
/* ==================
|
|
徽章
|
|
==================== */
|
|
|
|
.cu-tag {
|
|
font-size: 24rpx;
|
|
vertical-align: middle;
|
|
position: relative;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
box-sizing: border-box;
|
|
padding: 0rpx 16rpx;
|
|
height: 48rpx;
|
|
font-family: Helvetica Neue, Helvetica, sans-serif;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.cu-tag:not([class*="bg"]):not([class*="line"]) {
|
|
background-color: var(--ghostWhite);
|
|
}
|
|
|
|
.cu-tag[class*="line-"]::after {
|
|
content: " ";
|
|
width: 200%;
|
|
height: 200%;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
border: 1rpx solid currentColor;
|
|
transform: scale(0.5);
|
|
transform-origin: 0 0;
|
|
box-sizing: border-box;
|
|
border-radius: inherit;
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.cu-tag.radius[class*="line"]::after {
|
|
border-radius: 12rpx;
|
|
}
|
|
|
|
.cu-tag.round[class*="line"]::after {
|
|
border-radius: 1000rpx;
|
|
}
|
|
|
|
.cu-tag[class*="line-"]::after {
|
|
border-radius: 0;
|
|
}
|
|
|
|
.cu-tag+.cu-tag {
|
|
margin-left: 10rpx;
|
|
}
|
|
|
|
.cu-tag.sm {
|
|
font-size: 20rpx;
|
|
padding: 0rpx 12rpx;
|
|
height: 32rpx;
|
|
}
|
|
|
|
.cu-capsule {
|
|
display: inline-flex;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.cu-capsule+.cu-capsule {
|
|
margin-left: 10rpx;
|
|
}
|
|
|
|
.cu-capsule .cu-tag {
|
|
margin: 0;
|
|
}
|
|
|
|
.cu-capsule .cu-tag[class*="line-"]:last-child::after {
|
|
border-left: 0rpx solid transparent;
|
|
}
|
|
|
|
.cu-capsule .cu-tag[class*="line-"]:first-child::after {
|
|
border-right: 0rpx solid transparent;
|
|
}
|
|
|
|
.cu-capsule.radius .cu-tag:first-child {
|
|
border-top-left-radius: 6rpx;
|
|
border-bottom-left-radius: 6rpx;
|
|
}
|
|
|
|
.cu-capsule.radius .cu-tag:last-child::after,
|
|
.cu-capsule.radius .cu-tag[class*="line-"] {
|
|
border-top-right-radius: 12rpx;
|
|
border-bottom-right-radius: 12rpx;
|
|
}
|
|
|
|
.cu-capsule.round .cu-tag:first-child {
|
|
border-top-left-radius: 200rpx;
|
|
border-bottom-left-radius: 200rpx;
|
|
text-indent: 4rpx;
|
|
}
|
|
|
|
.cu-capsule.round .cu-tag:last-child::after,
|
|
.cu-capsule.round .cu-tag:last-child {
|
|
border-top-right-radius: 200rpx;
|
|
border-bottom-right-radius: 200rpx;
|
|
text-indent: -4rpx;
|
|
}
|
|
|
|
.cu-tag.badge {
|
|
border-radius: 200rpx;
|
|
position: absolute;
|
|
/* top: -10rpx; */
|
|
/* right: -10rpx; */
|
|
font-size: 20rpx;
|
|
padding: 0rpx 10rpx;
|
|
height: 30rpx;
|
|
color: var(--white);
|
|
}
|
|
|
|
.cu-tag.badge:not([class*="bg-"]) {
|
|
background-color: #dd514c;
|
|
}
|
|
|
|
.cu-tag:empty:not([class*="cuIcon-"]) {
|
|
padding: 0rpx;
|
|
width: 16rpx;
|
|
height: 16rpx;
|
|
top: -4rpx;
|
|
right: -4rpx;
|
|
}
|
|
|
|
.cu-tag[class*="cuIcon-"] {
|
|
width: 32rpx;
|
|
height: 32rpx;
|
|
top: -4rpx;
|
|
right: -4rpx;
|
|
}
|
|
|
|
/* ==================
|
|
头像
|
|
==================== */
|
|
|
|
.cu-avatar {
|
|
font-variant: small-caps;
|
|
margin: 0;
|
|
padding: 0;
|
|
display: inline-flex;
|
|
text-align: center;
|
|
justify-content: center;
|
|
align-items: center;
|
|
background-color: #ccc;
|
|
color: var(--white);
|
|
white-space: nowrap;
|
|
position: relative;
|
|
width: 64rpx;
|
|
height: 64rpx;
|
|
background-size: cover;
|
|
background-position: center;
|
|
vertical-align: middle;
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.cu-avatar.sm {
|
|
width: 48rpx;
|
|
height: 48rpx;
|
|
font-size: 1em;
|
|
}
|
|
|
|
.cu-avatar.lg {
|
|
width: 96rpx;
|
|
height: 96rpx;
|
|
font-size: 2em;
|
|
}
|
|
|
|
.cu-avatar.slg {
|
|
width: 60rpx;
|
|
height: 60rpx;
|
|
font-size: 2em;
|
|
}
|
|
|
|
.cu-avatar.xl {
|
|
width: 128rpx;
|
|
height: 128rpx;
|
|
font-size: 2.5em;
|
|
}
|
|
|
|
.cu-avatar .avatar-text {
|
|
font-size: 0.4em;
|
|
}
|
|
|
|
.cu-avatar-group {
|
|
direction: rtl;
|
|
unicode-bidi: bidi-override;
|
|
padding: 0 10rpx 0 40rpx;
|
|
display: inline-block;
|
|
}
|
|
|
|
.cu-avatar-group .cu-avatar {
|
|
margin-left: -30rpx;
|
|
border: 4rpx solid var(--ghostWhite);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.cu-avatar-group .cu-avatar.sm {
|
|
margin-left: -20rpx;
|
|
border: 1rpx solid var(--ghostWhite);
|
|
}
|
|
|
|
/* ==================
|
|
操作条
|
|
==================== */
|
|
|
|
.cu-bar {
|
|
display: flex;
|
|
position: relative;
|
|
align-items: center;
|
|
min-height: 100rpx;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.cu-bar .action {
|
|
display: flex;
|
|
align-items: center;
|
|
height: 100%;
|
|
justify-content: center;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.cu-bar .action.border-title {
|
|
position: relative;
|
|
top: -10rpx;
|
|
}
|
|
|
|
.cu-bar .action.border-title text[class*="bg-"]:last-child {
|
|
position: absolute;
|
|
bottom: -0.5rem;
|
|
min-width: 2rem;
|
|
height: 6rpx;
|
|
left: 0;
|
|
}
|
|
|
|
.cu-bar .action.sub-title {
|
|
position: relative;
|
|
top: -0.2rem;
|
|
}
|
|
|
|
.cu-bar .action.sub-title text {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.cu-bar .action.sub-title text[class*="bg-"]:last-child {
|
|
position: absolute;
|
|
display: inline-block;
|
|
bottom: -0.2rem;
|
|
border-radius: 6rpx;
|
|
width: 100%;
|
|
height: 0.6rem;
|
|
left: 0.6rem;
|
|
opacity: 0.3;
|
|
z-index: 0;
|
|
}
|
|
|
|
.cu-bar .action.sub-title text[class*="text-"]:last-child {
|
|
position: absolute;
|
|
display: inline-block;
|
|
bottom: -0.7rem;
|
|
left: 0.5rem;
|
|
opacity: 0.2;
|
|
z-index: 0;
|
|
text-align: right;
|
|
font-weight: 900;
|
|
font-size: 36rpx;
|
|
}
|
|
|
|
.cu-bar.justify-center .action.border-title text:last-child,
|
|
.cu-bar.justify-center .action.sub-title text:last-child {
|
|
left: 0;
|
|
right: 0;
|
|
margin: auto;
|
|
text-align: center;
|
|
}
|
|
|
|
.cu-bar .action:first-child {
|
|
margin-left: 30rpx;
|
|
font-size: 30rpx;
|
|
}
|
|
|
|
.cu-bar .action text.text-cut {
|
|
text-align: left;
|
|
width: 100%;
|
|
}
|
|
|
|
.cu-bar .cu-avatar:first-child {
|
|
margin-left: 20rpx;
|
|
}
|
|
|
|
.cu-bar .action:first-child>text[class*="cuIcon-"] {
|
|
margin-left: -0.3em;
|
|
/* margin-right: 0.3em; */
|
|
}
|
|
|
|
.cu-bar .action:last-child {
|
|
margin-right: 30rpx;
|
|
}
|
|
|
|
.cu-bar .action>text[class*="cuIcon-"], .cu-bar .action>view[class*="cuIcon-"] {
|
|
font-size: 36rpx;
|
|
}
|
|
|
|
.cu-bar .action>text[class*="cuIcon-"]+text[class*="cuIcon-"] {
|
|
margin-left: 0.5em;
|
|
}
|
|
|
|
.cu-bar .content {
|
|
position: absolute;
|
|
text-align: center;
|
|
width: calc(100% - 340rpx);
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
top: 0;
|
|
margin: auto;
|
|
height: 60rpx;
|
|
font-size: 32rpx;
|
|
line-height: 60rpx;
|
|
cursor: none;
|
|
pointer-events: none;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cu-bar.ios .content {
|
|
bottom: 7px;
|
|
height: 30px;
|
|
font-size: 32rpx;
|
|
line-height: 30px;
|
|
}
|
|
|
|
.cu-bar.btn-group {
|
|
justify-content: space-around;
|
|
}
|
|
|
|
.cu-bar.btn-group button {
|
|
padding: 20rpx 32rpx;
|
|
}
|
|
|
|
.cu-bar.btn-group button {
|
|
flex: 1;
|
|
margin: 0 20rpx;
|
|
max-width: 50%;
|
|
}
|
|
|
|
.cu-bar .search-form {
|
|
background-color: #f5f5f5;
|
|
line-height: 64rpx;
|
|
height: 64rpx;
|
|
font-size: 24rpx;
|
|
color: var(--black);
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
margin: 0 24rpx;
|
|
}
|
|
|
|
.cu-bar .search-form+.action {
|
|
margin-right: 20rpx;
|
|
}
|
|
|
|
.cu-bar .search-form input {
|
|
flex: 1;
|
|
padding-right: 30rpx;
|
|
height: 72rpx;
|
|
line-height: 72rpx;
|
|
font-size: 30rpx;
|
|
background-color: transparent;
|
|
}
|
|
|
|
.cu-bar .search-form [class*="cuIcon-"] {
|
|
margin: 0 0.5em 0 0.8em;
|
|
}
|
|
|
|
.cu-bar .search-form [class*="cuIcon-"]::before {
|
|
top: 0rpx;
|
|
}
|
|
|
|
.cu-bar.fixed, .nav.fixed {
|
|
position: fixed;
|
|
width: 100%;
|
|
top: 0;
|
|
z-index: 19;
|
|
box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.cu-bar.foot {
|
|
position: fixed;
|
|
width: 100%;
|
|
bottom: 0;
|
|
z-index: 9;
|
|
/* box-shadow: 0 -1rpx 6rpx rgba(0, 0, 0, 0.1); */
|
|
}
|
|
|
|
.cu-bar.tabbar {
|
|
padding: 0;
|
|
height: calc(100rpx + env(safe-area-inset-bottom) / 2);
|
|
padding-bottom: calc(env(safe-area-inset-bottom) / 2);
|
|
}
|
|
|
|
.cu-tabbar-height {
|
|
min-height: 100rpx;
|
|
height: calc(100rpx + env(safe-area-inset-bottom) / 2);
|
|
}
|
|
|
|
.cu-bar.tabbar.shadow {
|
|
box-shadow: 0 -1rpx 6rpx rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.cu-bar.tabbar .action {
|
|
font-size: 22rpx;
|
|
position: relative;
|
|
flex: 1;
|
|
text-align: center;
|
|
padding: 0;
|
|
display: block;
|
|
height: auto;
|
|
line-height: 1;
|
|
margin: 0;
|
|
overflow: initial;
|
|
}
|
|
|
|
.cu-bar.tabbar.shop .action {
|
|
width: 140rpx;
|
|
flex: initial;
|
|
}
|
|
|
|
.cu-bar.tabbar .action.add-action {
|
|
position: relative;
|
|
z-index: 2;
|
|
padding-top: 50rpx;
|
|
background-color: inherit;
|
|
}
|
|
|
|
.cu-bar.tabbar .action.add-action [class*="cuIcon-"] {
|
|
position: absolute;
|
|
width: 70rpx;
|
|
z-index: 2;
|
|
height: 70rpx;
|
|
border-radius: 50%;
|
|
line-height: 70rpx;
|
|
font-size: 50rpx;
|
|
top: -35rpx;
|
|
left: 0;
|
|
right: 0;
|
|
margin: auto;
|
|
padding: 0;
|
|
}
|
|
|
|
.cu-bar.tabbar .action.add-action::after {
|
|
content: "";
|
|
position: absolute;
|
|
width: 140rpx;
|
|
height: 140rpx;
|
|
top: -45rpx;
|
|
left: 0;
|
|
right: 0;
|
|
margin: auto;
|
|
box-shadow: 0 -3rpx 8rpx rgba(0, 0, 0, 0.08);
|
|
border-radius: 70rpx;
|
|
background-color: inherit;
|
|
z-index: 0;
|
|
}
|
|
|
|
.cu-bar.tabbar .action.add-action::before {
|
|
content: "";
|
|
position: absolute;
|
|
width: 100rpx;
|
|
height: 30rpx;
|
|
bottom: 30rpx;
|
|
left: 0;
|
|
right: 0;
|
|
margin: auto;
|
|
background-color: inherit;
|
|
z-index: 1;
|
|
}
|
|
|
|
.cu-bar.tabbar .btn-group {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
padding: 0 10rpx;
|
|
}
|
|
|
|
.cu-bar.tabbar button.action::after {
|
|
border: 0;
|
|
}
|
|
|
|
.cu-bar.tabbar .action [class*="cuIcon-"] {
|
|
width: 100rpx;
|
|
position: relative;
|
|
display: block;
|
|
height: auto;
|
|
margin: 0 auto 10rpx;
|
|
text-align: center;
|
|
font-size: 40rpx;
|
|
}
|
|
|
|
.cu-bar.tabbar .action .cuIcon-cu-image {
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.cu-bar.tabbar .action .cuIcon-cu-image image {
|
|
width: 50rpx;
|
|
height: 50rpx;
|
|
display: inline-block;
|
|
}
|
|
|
|
.cu-bar.tabbar .submit {
|
|
align-items: center;
|
|
display: flex;
|
|
justify-content: center;
|
|
text-align: center;
|
|
position: relative;
|
|
flex: 2;
|
|
align-self: stretch;
|
|
}
|
|
|
|
.cu-bar.tabbar .submit:last-child {
|
|
flex: 2.6;
|
|
}
|
|
|
|
.cu-bar.tabbar .submit+.submit {
|
|
flex: 2;
|
|
}
|
|
|
|
.cu-bar.tabbar.border .action::before {
|
|
content: " ";
|
|
width: 200%;
|
|
height: 200%;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
transform: scale(0.5);
|
|
transform-origin: 0 0;
|
|
border-right: 1rpx solid rgba(0, 0, 0, 0.1);
|
|
z-index: 3;
|
|
}
|
|
|
|
.cu-bar.tabbar.border .action:last-child:before {
|
|
display: none;
|
|
}
|
|
|
|
.cu-bar.input {
|
|
padding-right: 20rpx;
|
|
background-color: var(--white);
|
|
}
|
|
|
|
.cu-bar.input input {
|
|
overflow: initial;
|
|
line-height: 64rpx;
|
|
height: 64rpx;
|
|
min-height: 64rpx;
|
|
flex: 1;
|
|
font-size: 30rpx;
|
|
margin: 0 20rpx;
|
|
}
|
|
|
|
.cu-bar.input .action {
|
|
margin-left: 20rpx;
|
|
}
|
|
|
|
.cu-bar.input .action [class*="cuIcon-"] {
|
|
font-size: 48rpx;
|
|
}
|
|
|
|
.cu-bar.input input+.action {
|
|
margin-right: 20rpx;
|
|
margin-left: 0rpx;
|
|
}
|
|
|
|
.cu-bar.input .action:first-child [class*="cuIcon-"] {
|
|
margin-left: 0rpx;
|
|
}
|
|
|
|
.cu-custom {
|
|
display: block;
|
|
position: relative;
|
|
}
|
|
|
|
.cu-custom .cu-bar .content {
|
|
width: calc(100% - 440rpx);
|
|
}
|
|
|
|
.cu-custom .cu-bar .content image {
|
|
height: 60rpx;
|
|
width: 240rpx;
|
|
}
|
|
|
|
.cu-custom .cu-bar {
|
|
min-height: 0px;
|
|
padding-right: 220rpx;
|
|
z-index: 99;
|
|
/* box-shadow: 0rpx 0rpx 0rpx; */
|
|
box-shadow: 0 -1rpx 4rpx rgba(0, 0, 0, 0.04)
|
|
}
|
|
|
|
.cu-custom .cu-bar .border-custom {
|
|
position: relative;
|
|
background: rgba(0, 0, 0, 0.15);
|
|
border-radius: 1000rpx;
|
|
height: 30px;
|
|
}
|
|
|
|
.cu-custom .cu-bar .border-custom::after {
|
|
content: " ";
|
|
width: 200%;
|
|
height: 200%;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
border-radius: inherit;
|
|
transform: scale(0.5);
|
|
transform-origin: 0 0;
|
|
pointer-events: none;
|
|
box-sizing: border-box;
|
|
border: 1rpx solid var(--white);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.cu-custom .cu-bar .border-custom::before {
|
|
content: " ";
|
|
width: 1rpx;
|
|
height: 110%;
|
|
position: absolute;
|
|
top: 22.5%;
|
|
left: 0;
|
|
right: 0;
|
|
margin: auto;
|
|
transform: scale(0.5);
|
|
transform-origin: 0 0;
|
|
pointer-events: none;
|
|
box-sizing: border-box;
|
|
opacity: 0.6;
|
|
background-color: var(--white);
|
|
}
|
|
|
|
.cu-custom .cu-bar .border-custom text {
|
|
display: block;
|
|
flex: 1;
|
|
margin: auto !important;
|
|
text-align: center;
|
|
font-size: 34rpx;
|
|
}
|
|
|
|
/* ==================
|
|
导航栏
|
|
==================== */
|
|
|
|
.nav {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.nav .cu-item {
|
|
height: 90rpx;
|
|
display: inline-block;
|
|
line-height: 90rpx;
|
|
margin: 0 10rpx;
|
|
padding: 0 20rpx;
|
|
}
|
|
|
|
.nav .cu-item.cur {
|
|
border-bottom: 4rpx solid;
|
|
}
|
|
/* ==================
|
|
表单
|
|
==================== */
|
|
|
|
.cu-form-group {
|
|
background-color: var(--white);
|
|
padding: 1rpx 30rpx;
|
|
display: flex;
|
|
align-items: center;
|
|
min-height: 100rpx;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.cu-form-group+.cu-form-group {
|
|
border-top: 1rpx solid #eee;
|
|
}
|
|
|
|
.cu-form-group .title {
|
|
text-align: justify;
|
|
/* padding-right: 30rpx; */
|
|
font-size: 30rpx;
|
|
position: relative;
|
|
height: 60rpx;
|
|
line-height: 60rpx;
|
|
}
|
|
|
|
.cu-form-group input {
|
|
flex: 1;
|
|
font-size: 30rpx;
|
|
color: #555;
|
|
padding-right: 20rpx;
|
|
}
|
|
|
|
.cu-form-group>text[class*="cuIcon-"] {
|
|
font-size: 36rpx;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.cu-form-group textarea {
|
|
margin: 32rpx 0 30rpx;
|
|
height: 4.6em;
|
|
width: 100%;
|
|
line-height: 1.2em;
|
|
flex: 1;
|
|
font-size: 28rpx;
|
|
padding: 0;
|
|
}
|
|
|
|
.cu-form-group.align-start .title {
|
|
height: 1em;
|
|
margin-top: 32rpx;
|
|
line-height: 1em;
|
|
}
|
|
|
|
.cu-form-group picker {
|
|
flex: 1;
|
|
padding-right: 40rpx;
|
|
overflow: hidden;
|
|
position: relative;
|
|
}
|
|
|
|
.cu-form-group picker .picker {
|
|
line-height: 100rpx;
|
|
font-size: 28rpx;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
width: 100%;
|
|
text-align: right;
|
|
}
|
|
|
|
.cu-form-group picker::after {
|
|
font-family: "cuIcon";
|
|
display: block;
|
|
content: "\e6a3";
|
|
position: absolute;
|
|
font-size: 34rpx;
|
|
color: var(--grey);
|
|
line-height: 100rpx;
|
|
width: 60rpx;
|
|
text-align: center;
|
|
top: 0;
|
|
bottom: 0;
|
|
right: -20rpx;
|
|
margin: auto;
|
|
}
|
|
|
|
.cu-form-group textarea[disabled],
|
|
.cu-form-group textarea[disabled] .placeholder {
|
|
color: transparent;
|
|
}
|
|
|
|
/* ==================
|
|
轮播
|
|
==================== */
|
|
|
|
swiper .a-swiper-dot {
|
|
display: inline-block;
|
|
width: 16rpx;
|
|
height: 16rpx;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border-radius: 50%;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
swiper[class*="-dot"] .wx-swiper-dots {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
swiper.square-dot .wx-swiper-dot {
|
|
background-color: var(--white);
|
|
opacity: 0.4;
|
|
width: 10rpx;
|
|
height: 10rpx;
|
|
border-radius: 20rpx;
|
|
margin: 0 8rpx !important;
|
|
}
|
|
|
|
swiper.square-dot .wx-swiper-dot.wx-swiper-dot-active {
|
|
opacity: 1;
|
|
width: 30rpx;
|
|
}
|
|
|
|
swiper.round-dot .wx-swiper-dot {
|
|
width: 10rpx;
|
|
height: 10rpx;
|
|
position: relative;
|
|
margin: 4rpx 8rpx !important;
|
|
}
|
|
|
|
swiper.round-dot .wx-swiper-dot.wx-swiper-dot-active::after {
|
|
content: "";
|
|
position: absolute;
|
|
width: 10rpx;
|
|
height: 10rpx;
|
|
top: 0rpx;
|
|
left: 0rpx;
|
|
right: 0;
|
|
bottom: 0;
|
|
margin: auto;
|
|
background-color: var(--white);
|
|
border-radius: 20rpx;
|
|
}
|
|
|
|
swiper.round-dot .wx-swiper-dot.wx-swiper-dot-active {
|
|
width: 18rpx;
|
|
height: 18rpx;
|
|
}
|
|
|
|
.screen-swiper {
|
|
min-height: 300rpx;
|
|
}
|
|
|
|
.screen-swiper image, .screen-swiper video, .swiper-item image,
|
|
.swiper-item video {
|
|
width: 100%;
|
|
display: block;
|
|
height: 100%;
|
|
margin: 0;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.card-swiper {
|
|
height: 420rpx !important;
|
|
}
|
|
|
|
.card-swiper swiper-item {
|
|
width: 610rpx !important;
|
|
left: 70rpx;
|
|
box-sizing: border-box;
|
|
padding: 40rpx 0rpx 70rpx;
|
|
overflow: initial;
|
|
}
|
|
|
|
.card-swiper swiper-item .swiper-item {
|
|
width: 100%;
|
|
display: block;
|
|
height: 100%;
|
|
border-radius: 10rpx;
|
|
transform: scale(0.9);
|
|
transition: all 0.2s ease-in 0s;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.card-swiper swiper-item.cur .swiper-item {
|
|
transform: none;
|
|
transition: all 0.2s ease-in 0s;
|
|
}
|
|
|
|
.tower-swiper {
|
|
height: 420rpx;
|
|
position: relative;
|
|
max-width: 750rpx;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tower-swiper .tower-item {
|
|
position: absolute;
|
|
width: 300rpx;
|
|
height: 380rpx;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 50%;
|
|
margin: auto;
|
|
transition: all 0.2s ease-in 0s;
|
|
opacity: 1;
|
|
}
|
|
|
|
.tower-swiper .tower-item.none {
|
|
opacity: 0;
|
|
}
|
|
|
|
.tower-swiper .tower-item .swiper-item {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 6rpx;
|
|
overflow: hidden;
|
|
}
|
|
/* -- flex弹性布局 -- */
|
|
|
|
.flex {
|
|
display: flex;
|
|
}
|
|
|
|
.flex-direction {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.flex-wrap {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.align-start {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.align-end {
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.align-center {
|
|
align-items: center;
|
|
}
|
|
|
|
.align-stretch {
|
|
align-items: stretch;
|
|
}
|
|
|
|
.self-start {
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.self-center {
|
|
align-self: flex-center;
|
|
}
|
|
|
|
.self-end {
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.self-stretch {
|
|
align-self: stretch;
|
|
}
|
|
|
|
.align-stretch {
|
|
align-items: stretch;
|
|
}
|
|
|
|
.justify-start {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.justify-end {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.justify-center {
|
|
justify-content: center;
|
|
}
|
|
|
|
.justify-between {
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.justify-around {
|
|
justify-content: space-around;
|
|
}
|
|
/* -- 内外边距 -- */
|
|
|
|
.margin-top-sm {
|
|
margin-top: 10rpx;
|
|
}
|
|
|
|
.margin-top {
|
|
margin-top: 20rpx;
|
|
}
|
|
|
|
.padding-0 {
|
|
padding: 0;
|
|
}
|
|
|
|
.padding-xs {
|
|
padding: 10rpx;
|
|
}
|
|
|
|
.padding-sm {
|
|
padding: 20rpx;
|
|
}
|
|
|
|
.padding {
|
|
padding: 30rpx;
|
|
}
|
|
|
|
.padding-lg {
|
|
padding: 40rpx;
|
|
}
|
|
|
|
.padding-xl {
|
|
padding: 50rpx;
|
|
}
|
|
|
|
.padding-top-xs {
|
|
padding-top: 10rpx;
|
|
}
|
|
|
|
.padding-top-sm {
|
|
padding-top: 20rpx;
|
|
}
|
|
|
|
.padding-top {
|
|
padding-top: 30rpx;
|
|
}
|
|
|
|
.padding-right {
|
|
padding-right: 30rpx;
|
|
}
|
|
|
|
.padding-bottom {
|
|
padding-bottom: 30rpx;
|
|
}
|
|
|
|
.padding-left {
|
|
padding-left: 30rpx;
|
|
}
|
|
/* ==================
|
|
文本
|
|
==================== */
|
|
|
|
.text-xs {
|
|
font-size: 22rpx;
|
|
}
|
|
|
|
.text-sm {
|
|
font-size: 24rpx;
|
|
}
|
|
|
|
.text-df {
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.text-sg {
|
|
font-size: 30rpx;
|
|
}
|
|
|
|
.text-lg {
|
|
font-size: 32rpx;
|
|
}
|
|
|
|
.text-xl {
|
|
font-size: 36rpx;
|
|
}
|
|
|
|
.text-xxl {
|
|
font-size: 44rpx;
|
|
}
|
|
|
|
|
|
.text-sl {
|
|
font-size: 80rpx;
|
|
}
|
|
|
|
.text-xsl {
|
|
font-size: 100rpx;
|
|
}
|
|
|
|
.text-Abc {
|
|
text-transform: Capitalize;
|
|
}
|
|
|
|
.text-ABC {
|
|
text-transform: Uppercase;
|
|
}
|
|
|
|
.text-abc {
|
|
text-transform: Lowercase;
|
|
}
|
|
|
|
.text-price::before {
|
|
content: "¥";
|
|
font-size: 80%;
|
|
margin-right: 4rpx;
|
|
}
|
|
|
|
.text-cut {
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.text-bold {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.text-center {
|
|
text-align: center;
|
|
}
|
|
|
|
.text-content {
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.text-left {
|
|
text-align: left;
|
|
}
|
|
|
|
.text-right {
|
|
text-align: right;
|
|
}
|
|
|
|
.text-red, .line-red, .lines-red {
|
|
color: var(--red);
|
|
}
|
|
|
|
.text-orange, .line-orange, .lines-orange {
|
|
color: var(--orange);
|
|
}
|
|
|
|
.text-yellow, .line-yellow, .lines-yellow {
|
|
color: var(--yellow);
|
|
}
|
|
|
|
.text-olive, .line-olive, .lines-olive {
|
|
color: var(--olive);
|
|
}
|
|
|
|
.text-green, .line-green, .lines-green {
|
|
color: var(--green);
|
|
}
|
|
|
|
.text-cyan, .line-cyan, .lines-cyan {
|
|
color: var(--cyan);
|
|
}
|
|
|
|
.text-blue, .line-blue, .lines-blue {
|
|
color: var(--blue);
|
|
}
|
|
|
|
.text-purple, .line-purple, .lines-purple {
|
|
color: var(--purple);
|
|
}
|
|
|
|
.text-mauve, .line-mauve, .lines-mauve {
|
|
color: var(--mauve);
|
|
}
|
|
|
|
.text-pink, .line-pink, .lines-pink {
|
|
color: var(--pink);
|
|
}
|
|
|
|
.text-brown, .line-brown, .lines-brown {
|
|
color: var(--brown);
|
|
}
|
|
|
|
.text-grey, .line-grey, .lines-grey {
|
|
color: var(--grey);
|
|
}
|
|
|
|
.text-gray, .line-gray, .lines-gray {
|
|
color: var(--gray);
|
|
}
|
|
|
|
.text-black, .line-black, .lines-black {
|
|
color: var(--black);
|
|
}
|
|
|
|
.text-white, .line-white, .lines-white {
|
|
color: var(--white);
|
|
}
|
|
|
|
.list-empty {
|
|
margin-top: 10rpx;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.img-empty {
|
|
width: 310rpx;
|
|
height: 220rpx;
|
|
}
|
|
|
|
.text-empty {
|
|
margin-top: 48rpx;
|
|
font-size: 30rpx;
|
|
color: #666;
|
|
text-align: center;
|
|
}
|
|
|
|
.input-grey {
|
|
color: #AAA;
|
|
}
|
|
|
|
.font14 {
|
|
font-size: 28rpx;
|
|
}
|
|
|
|
.cate_item {
|
|
min-height: 80rpx;
|
|
background-color: #eee;
|
|
border-radius: 8rpx;
|
|
margin: 0 24rpx;
|
|
}
|
|
|
|
.margin-b {
|
|
margin-bottom: 16rpx;
|
|
}
|
|
|
|
.flex-sub {
|
|
flex: 1;
|
|
}
|
|
|
|
|
|
/* ==================
|
|
列表
|
|
==================== */
|
|
.grayscale {
|
|
filter: grayscale(1);
|
|
}
|
|
|
|
.cu-list+.cu-list {
|
|
margin-top: 30rpx
|
|
}
|
|
|
|
.cu-list>.cu-item {
|
|
transition: all .6s ease-in-out 0s;
|
|
transform: translateX(0rpx)
|
|
}
|
|
|
|
.cu-list>.cu-item.move-cur {
|
|
transform: translateX(-260rpx)
|
|
}
|
|
|
|
.cu-list>.cu-item .move {
|
|
position: absolute;
|
|
right: 0;
|
|
display: flex;
|
|
width: 260rpx;
|
|
height: 100%;
|
|
transform: translateX(100%)
|
|
}
|
|
|
|
.cu-list>.cu-item .move view {
|
|
display: flex;
|
|
flex: 1;
|
|
justify-content: center;
|
|
align-items: center
|
|
}
|
|
|
|
.cu-list.menu-avatar {
|
|
overflow: hidden;
|
|
}
|
|
|
|
.cu-list.menu-avatar>.cu-item {
|
|
position: relative;
|
|
display: flex;
|
|
padding-right: 10rpx;
|
|
height: 140rpx;
|
|
background-color: var(--white);
|
|
justify-content: flex-end;
|
|
align-items: center
|
|
}
|
|
|
|
.cu-list.menu-avatar>.cu-item>.cu-avatar {
|
|
position: absolute;
|
|
left: 30rpx
|
|
}
|
|
|
|
.cu-list.menu-avatar>.cu-item .flex .text-cut {
|
|
max-width: 510rpx
|
|
}
|
|
|
|
.cu-list.menu-avatar>.cu-item .content {
|
|
position: absolute;
|
|
left: 146rpx;
|
|
width: calc(100% - 96rpx - 60rpx - 120rpx - 20rpx);
|
|
line-height: 1.6em;
|
|
}
|
|
|
|
.cu-list.menu-avatar>.cu-item .content.flex-sub {
|
|
width: calc(100% - 96rpx - 60rpx - 20rpx);
|
|
}
|
|
|
|
.cu-list.menu-avatar>.cu-item .content>view:first-child {
|
|
font-size: 30rpx;
|
|
display: flex;
|
|
align-items: center
|
|
}
|
|
|
|
.cu-list.menu-avatar>.cu-item .content .cu-tag.sm {
|
|
display: inline-block;
|
|
margin-left: 10rpx;
|
|
height: 28rpx;
|
|
font-size: 16rpx;
|
|
line-height: 32rpx
|
|
}
|
|
|
|
.cu-list.menu-avatar>.cu-item .action {
|
|
width: 100rpx;
|
|
text-align: center
|
|
}
|
|
|
|
.cu-list.menu-avatar>.cu-item .action view+view {
|
|
margin-top: 10rpx
|
|
}
|
|
|
|
.cu-list.menu-avatar.comment>.cu-item .content {
|
|
position: relative;
|
|
left: 0;
|
|
width: auto;
|
|
flex: 1;
|
|
}
|
|
|
|
.cu-list.menu-avatar.comment>.cu-item {
|
|
padding: 30rpx 30rpx 30rpx 120rpx;
|
|
height: auto
|
|
}
|
|
|
|
.cu-list.menu-avatar.comment .cu-avatar {
|
|
align-self: flex-start
|
|
}
|
|
|
|
.cu-list.menu>.cu-item {
|
|
position: relative;
|
|
display: flex;
|
|
padding: 0 30rpx;
|
|
min-height: 96rpx;
|
|
background-color: var(--white);
|
|
justify-content: space-between;
|
|
align-items: center
|
|
}
|
|
|
|
.cu-list.menu>.cu-item:last-child:after {
|
|
border: none
|
|
}
|
|
|
|
.cu-list.menu>.cu-item:after {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
box-sizing: border-box;
|
|
width: 200%;
|
|
height: 200%;
|
|
border-bottom: 1rpx solid #ddd;
|
|
border-radius: inherit;
|
|
content: " ";
|
|
transform: scale(.5);
|
|
transform-origin: 0 0;
|
|
pointer-events: none
|
|
}
|
|
|
|
.cu-list.menu>.cu-item.grayscale {
|
|
background-color: #f5f5f5
|
|
}
|
|
|
|
.cu-list.menu>.cu-item.cur {
|
|
background-color: #fcf7e9
|
|
}
|
|
|
|
.cu-list.menu>.cu-item.arrow {
|
|
padding-right: 90rpx
|
|
}
|
|
|
|
.cu-list.menu>.cu-item.arrow:before {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 30rpx;
|
|
bottom: 0;
|
|
display: block;
|
|
margin: auto;
|
|
width: 30rpx;
|
|
height: 30rpx;
|
|
color: var(--grey);
|
|
content: "\e6a3";
|
|
text-align: center;
|
|
font-size: 34rpx;
|
|
font-family: "cuIcon";
|
|
line-height: 30rpx
|
|
}
|
|
|
|
.cu-list.menu>.cu-item button.content {
|
|
padding: 0;
|
|
background-color: transparent;
|
|
justify-content: flex-start
|
|
}
|
|
|
|
.cu-list.menu>.cu-item button.content:after {
|
|
display: none
|
|
}
|
|
|
|
.cu-list.menu>.cu-item .cu-avatar-group .cu-avatar {
|
|
border-color: var(--white)
|
|
}
|
|
|
|
.cu-list.menu>.cu-item .content>view:first-child {
|
|
display: flex;
|
|
align-items: center
|
|
}
|
|
|
|
.cu-list.menu>.cu-item .content>text[class*=cuIcon] {
|
|
display: inline-block;
|
|
margin-right: 10rpx;
|
|
width: 1.6em;
|
|
text-align: center
|
|
}
|
|
|
|
.cu-list.menu>.cu-item .content>image {
|
|
display: inline-block;
|
|
margin-right: 10rpx;
|
|
width: 1.6em;
|
|
height: 1.6em;
|
|
vertical-align: middle
|
|
}
|
|
|
|
.cu-list.menu>.cu-item .content {
|
|
font-size: 30rpx;
|
|
line-height: 1.6em;
|
|
flex: 1
|
|
}
|
|
|
|
.cu-list.menu>.cu-item .content .cu-tag.sm {
|
|
display: inline-block;
|
|
margin-left: 10rpx;
|
|
height: 28rpx;
|
|
font-size: 16rpx;
|
|
line-height: 32rpx
|
|
}
|
|
|
|
.cu-list.menu>.cu-item .action .cu-tag:empty {
|
|
right: 10rpx
|
|
}
|
|
|
|
.cu-list.menu {
|
|
display: block;
|
|
overflow: hidden
|
|
}
|
|
|
|
.cu-list.menu.sm-border>.cu-item:after {
|
|
left: 30rpx;
|
|
width: calc(200% - 120rpx)
|
|
}
|
|
|
|
.cu-list.grid>.cu-item {
|
|
position: relative;
|
|
display: flex;
|
|
padding: 20rpx 0 30rpx;
|
|
transition-duration: 0s;
|
|
flex-direction: column
|
|
}
|
|
|
|
.cu-list.grid>.cu-item:after {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
box-sizing: border-box;
|
|
width: 200%;
|
|
height: 200%;
|
|
border-right: 1px solid rgba(0, 0, 0, .1);
|
|
border-bottom: 1px solid rgba(0, 0, 0, .1);
|
|
border-radius: inherit;
|
|
content: " ";
|
|
transform: scale(.5);
|
|
transform-origin: 0 0;
|
|
pointer-events: none
|
|
}
|
|
|
|
.cu-list.grid>.cu-item text {
|
|
display: block;
|
|
margin-top: 10rpx;
|
|
color: #888;
|
|
font-size: 26rpx;
|
|
line-height: 40rpx
|
|
}
|
|
|
|
.cu-list.grid>.cu-item [class*=cuIcon] {
|
|
position: relative;
|
|
display: block;
|
|
margin-top: 20rpx;
|
|
width: 100%;
|
|
font-size: 48rpx
|
|
}
|
|
|
|
.cu-list.grid>.cu-item .cu-tag {
|
|
right: auto;
|
|
left: 50%;
|
|
margin-left: 20rpx
|
|
}
|
|
|
|
.cu-list.grid {
|
|
background-color: var(--white);
|
|
text-align: center
|
|
}
|
|
|
|
.cu-list.grid.no-border>.cu-item {
|
|
padding-top: 10rpx;
|
|
padding-bottom: 20rpx
|
|
}
|
|
|
|
.cu-list.grid.no-border>.cu-item:after {
|
|
border: none
|
|
}
|
|
|
|
.cu-list.grid.no-border {
|
|
padding: 20rpx 10rpx
|
|
}
|
|
|
|
.cu-list.grid.col-3>.cu-item:nth-child(3n):after,
|
|
.cu-list.grid.col-4>.cu-item:nth-child(4n):after,
|
|
.cu-list.grid.col-5>.cu-item:nth-child(5n):after {
|
|
border-right-width: 0
|
|
}
|
|
|
|
.grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.grid.col-1>view {
|
|
width: 100%;
|
|
}
|
|
|
|
.grid.col-2>view {
|
|
width: 50%;
|
|
}
|
|
|
|
.grid.col-3>view {
|
|
width: 33.33%;
|
|
}
|
|
|
|
.grid.col-4>view {
|
|
width: 25%;
|
|
}
|
|
|
|
.grid.col-5>view {
|
|
width: 20%;
|
|
}
|