Files
bodyWeight/miniprogram/components/selectMemberDrawer/selectMemberDrawer.less
T

217 lines
4.8 KiB
Plaintext

/* 遮罩层 */
.drawer-mask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(37, 37, 53, 0.6);
z-index: 100;
opacity: 0;
transition: opacity 0.3s ease;
&--visible {
opacity: 1;
}
}
/* 抽屉面板 */
.drawer-panel {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 85vh;
background-color: #FFFFFF;
border-radius: 24rpx 24rpx 0 0;
z-index: 101;
display: flex;
flex-direction: column;
transform: translateY(100%);
transition: transform 0.3s ease;
&--visible {
transform: translateY(0);
}
}
/* 标题栏(标题居中,关闭按钮绝对定位右侧) */
.drawer-header {
position: relative;
width: 100%;
height: 124rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
.drawer-title {
color: #252535;
font-size: 36rpx;
font-weight: bolder;
line-height: 36rpx;
}
/* 关闭按钮:圆形浅灰底 + 灰色 × */
.drawer-close {
position: absolute;
right: 32rpx;
top: 50%;
transform: translateY(-50%);
width: 48rpx;
height: 48rpx;
border-radius: 50%;
background-color: #F1F5F9;
display: flex;
align-items: center;
justify-content: center;
.drawer-close-icon {
width: 26rpx;
height: 26rpx;
position: relative;
&::before,
&::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 3rpx;
background-color: #77849E;
border-radius: 2rpx;
}
&::before {
transform: translate(-50%, -50%) rotate(45deg);
}
&::after {
transform: translate(-50%, -50%) rotate(-45deg);
}
}
}
}
/* 顶部分隔线 */
.drawer-divider {
width: 100%;
height: 2rpx;
background-color: #EAECFA;
flex-shrink: 0;
}
.scrollViewContent {
width: 100%;
height: 100%;
box-sizing: border-box;
/* 用户行 */
.member-item {
width: 100%;
padding: 24rpx 0;
display: flex;
flex-direction: row;
align-items: center;
border-bottom: 2rpx solid #EAECF1;
/* 有图片头像 */
.member-avatar {
width: 88rpx;
height: 88rpx;
overflow: hidden;
margin-right: 15rpx;
border-radius: 24rpx;
&--selected {
border: 3rpx solid #50A6FF;
}
}
/* 纯色占位头像 */
.member-avatar-placeholder {
width: 88rpx;
height: 88rpx;
overflow: hidden;
border-radius: 24rpx;
margin-right: 15rpx;
/* 男:蓝色 */
&--male {
background-color: #C6E6FF;
}
/* 女:粉色 */
&--female {
background-color: #FFD5E3;
}
/* 选中男 */
&--selected-male {
border: 3rpx solid #50A6FF;
width: 94rpx;
height: 94rpx;
margin: -3rpx 0 0 -3rpx;
}
/* 选中女 */
&--selected-female {
border: 3rpx solid #FF8FB5;
width: 94rpx;
height: 94rpx;
margin: -3rpx 0 0 -3rpx;
}
}
/* 姓名 + 副标题 */
.member-info {
flex: 1;
width: 0;
.member-name {
color: #252535;
width: 100%;
height: 32rpx;
font-size: 32rpx;
font-weight: bolder;
line-height: 32rpx;
margin-bottom: 16rpx;
}
.member-sub {
color: #808080;
width: 100%;
height: 26rpx;
font-size: 26rpx;
line-height: 26rpx;
}
}
.member-type {
height: 40rpx;
flex-shrink: 0;
.member-type-tag {
height: 40rpx;
padding: 0 10rpx;
font-size: 24rpx;
line-height: 40rpx;
border-radius: 8rpx;
color: #FFFFFF;
}
.member-type-tag--self {
background-color: #1385FA;
}
.member-type-tag--employee {
background-color: #10B981;
}
.member-type-tag--family {
background-color: #F59E0B;
}
}
}
}