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

229 lines
3.9 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%;
/* 最大高度约 75% 屏幕 */
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-handle {
width: 72rpx;
height: 6rpx;
background-color: #77849E;
border-radius: 3rpx;
margin: 32rpx auto 40rpx;
}
/* 标题栏 */
.drawer-header {
width: 100%;
height: 32rpx;
padding: 0 30rpx;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: space-between;
.drawer-title {
color: #252535;
height: 32rpx;
font-size: 32rpx;
font-weight: 700;
line-height: 32rpx;
}
/* 关闭按钮 */
.drawer-close {
width: 32rpx;
height: 32rpx;
display: flex;
align-items: center;
justify-content: center;
.drawer-close-icon {
width: 28rpx;
height: 28rpx;
position: relative;
&::before,
&::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 3rpx;
background-color: #252535;
border-radius: 2rpx;
}
&::before {
transform: translate(-50%, -50%) rotate(45deg);
}
&::after {
transform: translate(-50%, -50%) rotate(-45deg);
}
}
}
}
/* 顶部分隔线 */
.drawer-divider {
width: 690rpx;
height: 2rpx;
background-color: #EAEDF1;
margin: 39rpx 30rpx 0;
flex-shrink: 0;
}
/* 成员滚动列表 */
.drawer-list {
flex: 1;
overflow: hidden;
padding-bottom: env(safe-area-inset-bottom);
}
/* 成员行 */
.member-item {
width: 100%;
height: 90rpx;
padding: 0 30rpx;
box-sizing: border-box;
display: flex;
flex-direction: row;
align-items: center;
margin-top: 24rpx;
/* 有图片头像 */
.member-avatar {
width: 90rpx;
height: 90rpx;
border-radius: 24rpx;
flex-shrink: 0;
&--selected {
border: 3rpx solid #50A6FF;
}
}
/* 纯色占位头像 */
.member-avatar-placeholder {
width: 90rpx;
height: 90rpx;
border-radius: 24rpx;
flex-shrink: 0;
/* 男:蓝色 */
&--male {
background-color: #C6E6FF;
}
/* 女:粉色 */
&--female {
background-color: #FFD5E3;
}
/* 选中男 */
&--selected-male {
border: 3rpx solid #50A6FF;
width: 96rpx;
height: 96rpx;
margin: -3rpx 0 0 -3rpx;
}
/* 选中女 */
&--selected-female {
border: 3rpx solid #FF8FB5;
width: 96rpx;
height: 96rpx;
margin: -3rpx 0 0 -3rpx;
}
}
/* 姓名 + 副标题 */
.member-info {
flex: 1;
height: 78rpx;
display: flex;
flex-direction: column;
justify-content: space-between;
margin-left: 23rpx;
.member-name {
color: #333333;
font-size: 32rpx;
font-weight: 500;
line-height: 32rpx;
white-space: nowrap;
}
.member-sub {
color: #77849E;
font-size: 26rpx;
line-height: 34rpx;
white-space: nowrap;
}
}
/* 竖向分隔线 */
.member-divider {
width: 2rpx;
height: 24rpx;
background-color: #EAEDF1;
border-radius: 1rpx;
margin-left: 17rpx;
flex-shrink: 0;
}
/* 身高 */
.member-height {
color: #77849E;
font-size: 26rpx;
line-height: 34rpx;
white-space: nowrap;
margin-left: 19rpx;
width: 76rpx;
flex-shrink: 0;
}
}
/* 行间水平分隔线 */
.member-separator {
width: 690rpx;
height: 2rpx;
background-color: #EAEDF1;
margin: 24rpx 30rpx 0;
}