311 lines
6.3 KiB
SCSS
311 lines
6.3 KiB
SCSS
@use '~@/scss/images.scss' as img;
|
|
|
|
.comment-reply-container {
|
|
width: 100%;
|
|
height: 100vh;
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: #FFFFFF;
|
|
|
|
// 顶部导航栏
|
|
.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;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 评论列表滚动区域
|
|
.comment-scroll {
|
|
flex: 1;
|
|
height: 0;
|
|
padding: 0 15px;
|
|
box-sizing: border-box;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
// 评论列表
|
|
.comment-list {
|
|
padding-bottom: 20px;
|
|
}
|
|
|
|
// 评论项
|
|
.comment-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 16px 0;
|
|
border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
|
|
box-sizing: border-box;
|
|
|
|
.comment-left {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
|
|
.user-avatar {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 999px;
|
|
flex-shrink: 0;
|
|
cursor: pointer;
|
|
|
|
&:active {
|
|
opacity: 0.8;
|
|
}
|
|
}
|
|
|
|
.comment-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
|
|
.user-nickname {
|
|
font-family: 'PingFang SC';
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
line-height: 1.43;
|
|
color: #000000;
|
|
cursor: pointer;
|
|
width: fit-content;
|
|
|
|
&:active {
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
|
|
.action-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
|
|
.action-text,
|
|
.time-text {
|
|
font-family: 'PingFang SC';
|
|
font-weight: 400;
|
|
font-size: 10px;
|
|
line-height: 1.6;
|
|
color: rgba(60, 60, 67, 0.6);
|
|
}
|
|
}
|
|
|
|
.comment-text {
|
|
font-family: 'PingFang SC';
|
|
font-weight: 400;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
color: #000000;
|
|
word-break: break-word;
|
|
}
|
|
|
|
// 被回复的评论
|
|
.original-comment {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 4px;
|
|
margin-top: 4px;
|
|
|
|
.quote-line {
|
|
width: 2px;
|
|
height: 14px;
|
|
background: rgba(120, 120, 128, 0.12);
|
|
border-radius: 7px;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.original-text {
|
|
font-family: 'PingFang SC';
|
|
font-weight: 400;
|
|
font-size: 12px;
|
|
line-height: 1.5;
|
|
color: rgba(60, 60, 67, 0.6);
|
|
word-break: break-word;
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
// 回复按钮
|
|
.reply-button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 4px 8px;
|
|
background: rgba(120, 120, 128, 0.12);
|
|
border-radius: 20px;
|
|
width: fit-content;
|
|
margin-top: 4px;
|
|
cursor: pointer;
|
|
|
|
&:active {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.reply-icon {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
.reply-text {
|
|
font-family: 'PingFang SC';
|
|
font-weight: 400;
|
|
font-size: 10px;
|
|
line-height: 1.6;
|
|
color: #000000;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// 右侧球局图片
|
|
.activity-image {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 9px;
|
|
background: #F5F5F5;
|
|
flex-shrink: 0;
|
|
cursor: pointer;
|
|
|
|
&:active {
|
|
opacity: 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);
|
|
}
|
|
}
|
|
|
|
// 回复输入框
|
|
.reply-input-container {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: #F8F8F8;
|
|
border-top: 0.5px solid rgba(0, 0, 0, 0.06);
|
|
padding: 8px 12px;
|
|
padding-bottom: calc(20px + env(safe-area-inset-bottom));
|
|
z-index: 200;
|
|
|
|
.reply-input-wrapper {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0;
|
|
background: #FFFFFF;
|
|
border-radius: 20px;
|
|
|
|
.input-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
width: 100%;
|
|
|
|
height: 36px;
|
|
padding-left: 16px;
|
|
margin: 12px 0px;
|
|
|
|
|
|
.reply-input {
|
|
flex: 1;
|
|
border: none;
|
|
font-family: 'PingFang SC';
|
|
font-weight: 400;
|
|
font-size: 15px;
|
|
line-height: 1.4;
|
|
color: #000000;
|
|
|
|
&::placeholder {
|
|
color: rgba(60, 60, 67, 0.3);
|
|
font-size: 15px;
|
|
}
|
|
}
|
|
|
|
.input-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
|
|
.send-btn {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
flex-shrink: 0;
|
|
|
|
.send-icon {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |