Files
mini-programs/src/other_pages/new_follow/index.scss
张成 4b5c677856 1
2025-11-15 23:51:38 +08:00

224 lines
4.5 KiB
SCSS

@use '~@/scss/images.scss' as img;
.new-follow-container {
width: 100%;
height: 100vh;
box-sizing: border-box;
display: flex;
flex-direction: column;
background: #FAFAFA;
// 顶部导航栏
.navbar {
height: 100px;
background: #FFFFFF;
flex-shrink: 0;
z-index: 100;
.navbar-content {
height: 56px;
display: flex;
align-items: center;
padding: 0 15px;
margin-top: 44px;
gap: 12px;
.back-button {
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
flex-shrink: 0;
margin-top: 2px;
.back-icon {
width: 10px;
height: 10px;
position: relative;
display: flex;
align-items: center;
justify-content: center;
&::before {
content: '';
position: absolute;
width: 10px;
height: 10px;
border-left: 2px solid #000000;
border-bottom: 2px solid #000000;
transform: rotate(45deg) translateY(-1px);
}
}
}
.navbar-title {
font-family: 'PingFang SC';
font-weight: 600;
font-size: 20px;
line-height: 1.4;
letter-spacing: 0.019em;
color: #000000;
flex: 1;
}
}
}
// 关注列表滚动区域
.follow-scroll {
flex: 1;
height: 0;
overflow-y: auto;
}
// 关注列表
.follow-list {
display: flex;
flex-direction: column;
gap: 12px;
padding: 0 0 20px;
}
// 关注项
.follow-item {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
padding: 8px 20px;
.follow-left {
display: flex;
align-items: center;
gap: 12px;
flex: 1;
min-width: 0;
cursor: pointer;
.user-avatar {
width: 40px;
height: 40px;
border-radius: 999px;
flex-shrink: 0;
}
.user-info {
display: flex;
flex-direction: column;
gap: 8px;
flex: 1;
min-width: 0;
height: 40px;
justify-content: center;
.user-nickname {
font-family: 'PingFang SC';
font-weight: 600;
font-size: 14px;
line-height: 1.14;
color: rgba(0, 0, 0, 0.8);
}
.user-signature {
font-family: 'PingFang SC';
font-weight: 400;
font-size: 12px;
line-height: 1.33;
color: rgba(60, 60, 67, 0.6);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.action-row {
display: flex;
align-items: center;
gap: 8px;
.action-text,
.time-text {
font-family: 'PingFang SC';
font-weight: 400;
font-size: 12px;
line-height: 1.33;
color: rgba(60, 60, 67, 0.6);
}
}
}
}
// 回关按钮
.follow-button {
display: flex;
justify-content: center;
align-items: center;
padding: 4px 16px;
border-radius: 20px;
cursor: pointer;
flex-shrink: 0;
position: relative;
background: transparent;
box-sizing: border-box;
// 使用伪元素实现真正的 0.5px 边框
&::before {
content: '';
position: absolute;
top: -50%;
left: -50%;
right: -50%;
bottom: -50%;
width: 200%;
height: 200%;
border: 1px solid #000000;
border-radius: 40px; // 20px * 2
transform: scale(0.5);
transform-origin: center center;
pointer-events: none;
box-sizing: border-box;
}
&:active {
opacity: 0.8;
}
&.mutual {
&::before {
border-color: rgba(120, 120, 128, 0.2);
}
}
.button-text {
font-family: 'PingFang SC';
font-weight: 400;
font-size: 12px;
line-height: 1.33;
color: #000000;
position: relative;
z-index: 1;
}
&.mutual .button-text {
color: rgba(0, 0, 0, 0.8);
}
}
}
// 到底了提示
.bottom-tip {
display: flex;
justify-content: center;
align-items: center;
padding: 24px 0 12px;
.tip-text {
font-family: 'PingFang SC';
font-weight: 400;
font-size: 14px;
line-height: 1.71;
color: rgba(0, 0, 0, 0.35);
}
}
}