577 lines
13 KiB
SCSS
577 lines
13 KiB
SCSS
// 他人用户页面样式
|
|
.other_user_page {
|
|
height: 100vh;
|
|
position: relative;
|
|
overflow-y: auto;
|
|
box-sizing: border-box;
|
|
background: radial-gradient(
|
|
circle at 50% 0,
|
|
/* 光晕圆心在顶部中间 */ rgba(191, 255, 239, 0.9) 0px,
|
|
/* 中间更深的浅蓝 */ rgba(191, 255, 239, 0.5) 200px,
|
|
/* 100px 处开始淡化 */ #fafafa 300px,
|
|
/* 到 200px 变成白色 */ #fafafa 100% /* 200px 以下全白 */
|
|
);
|
|
|
|
&::-webkit-scrollbar {
|
|
display: none;
|
|
width: 0;
|
|
height: 0;
|
|
color: transparent;
|
|
}
|
|
|
|
// 导航栏内容
|
|
.navbar_content {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
height: 44px;
|
|
|
|
.navbar_back {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
margin-left: 10px;
|
|
cursor: pointer;
|
|
|
|
.back_icon {
|
|
height: 16px;
|
|
width: 8px;
|
|
background: url("../../static/userInfo/back_icon.svg") no-repeat center;
|
|
background-size: contain;
|
|
}
|
|
}
|
|
|
|
.navbar_title {
|
|
font-family: PingFang SC;
|
|
font-weight: 600;
|
|
font-size: 20px;
|
|
line-height: 28px;
|
|
letter-spacing: 1.9%;
|
|
color: #000000;
|
|
position: absolute;
|
|
left: 50px;
|
|
}
|
|
|
|
.navbar_action {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 83px;
|
|
height: 30px;
|
|
margin-right: 7px;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 主要内容区域
|
|
.other_main_content {
|
|
// min-height: calc(100vh + 5px);
|
|
position: relative;
|
|
z-index: 5;
|
|
flex: 1;
|
|
margin-top: 0;
|
|
box-sizing: border-box;
|
|
padding-bottom: 15px;
|
|
|
|
// 用户信息区域
|
|
.user_info_section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
// margin-bottom: 16px;
|
|
padding: 0 15px;
|
|
|
|
// margin-top: 98px;
|
|
|
|
// 基本信息
|
|
.basic_info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
|
|
.avatar_container {
|
|
width: 64px;
|
|
height: 64px;
|
|
border-radius: 50%;
|
|
overflow: hidden;
|
|
box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.12),
|
|
0px 0px 1px 0px rgba(0, 0, 0, 0.2);
|
|
|
|
.avatar {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
}
|
|
|
|
.info_container {
|
|
flex: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
|
|
.nickname {
|
|
font-family: "PingFang SC";
|
|
font-weight: 600;
|
|
font-size: 20px;
|
|
line-height: 1.4em;
|
|
letter-spacing: 1.9%;
|
|
color: #000000;
|
|
}
|
|
|
|
.join_date {
|
|
font-family: "PingFang SC";
|
|
font-weight: 400;
|
|
font-size: 14px;
|
|
line-height: 1.4em;
|
|
letter-spacing: 2.7%;
|
|
color: rgba(0, 0, 0, 0.35);
|
|
}
|
|
}
|
|
}
|
|
|
|
// 统计数据
|
|
.stats_section {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 24px;
|
|
|
|
.stats_container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 20px;
|
|
|
|
.stat_item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
|
|
.stat_number {
|
|
font-family: "PingFang SC";
|
|
font-weight: 600;
|
|
font-size: 18px;
|
|
line-height: 1.4em;
|
|
letter-spacing: 2.1%;
|
|
color: rgba(0, 0, 0, 0.85);
|
|
}
|
|
|
|
.stat_label {
|
|
font-family: "PingFang SC";
|
|
font-weight: 500;
|
|
font-size: 12px;
|
|
line-height: 1.4em;
|
|
letter-spacing: 3.2%;
|
|
color: rgba(0, 0, 0, 0.35);
|
|
}
|
|
}
|
|
}
|
|
|
|
.action_buttons {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
|
|
.follow_button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 12px 16px 12px 12px;
|
|
height: 40px;
|
|
background: #000000;
|
|
border: 1pt solid rgba(0, 0, 0, 0.06);
|
|
border-radius: 999px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
|
|
&.following {
|
|
background: #ffffff;
|
|
color: #000000;
|
|
}
|
|
|
|
.button_icon {
|
|
width: 20px;
|
|
height: 20px;
|
|
}
|
|
|
|
.button_text {
|
|
font-family: "PingFang SC";
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
line-height: 1.4em;
|
|
color: #ffffff;
|
|
|
|
.following & {
|
|
color: #000000;
|
|
}
|
|
}
|
|
}
|
|
|
|
.message_button {
|
|
width: 40px;
|
|
height: 40px;
|
|
background: #ffffff;
|
|
border: 0.5px solid rgba(0, 0, 0, 0.12);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
|
|
.button_icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// 标签和简介
|
|
.tags_bio_section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
|
|
.tags_container {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
|
|
.tag_item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 6px 8px;
|
|
height: 20px;
|
|
background: #ffffff;
|
|
border: 0.5px solid rgba(0, 0, 0, 0.16);
|
|
border-radius: 999px;
|
|
|
|
.tag_icon {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
|
|
.tag_text {
|
|
font-family: "PingFang SC";
|
|
font-weight: 500;
|
|
font-size: 11px;
|
|
line-height: 1.8em;
|
|
letter-spacing: -2.1%;
|
|
color: #000000;
|
|
}
|
|
}
|
|
}
|
|
|
|
.bio_text {
|
|
font-family: "PingFang SC";
|
|
font-weight: 400;
|
|
font-size: 14px;
|
|
line-height: 1.571em;
|
|
color: rgba(0, 0, 0, 0.65);
|
|
white-space: pre-line;
|
|
word-break: break-all;
|
|
}
|
|
}
|
|
}
|
|
|
|
.game_list_container {
|
|
.game_class_text {
|
|
font-family: "PingFang SC";
|
|
font-weight: 600;
|
|
font-size: 20px;
|
|
line-height: 1.4em;
|
|
letter-spacing: 1.9%;
|
|
color: rgba(0, 0, 0, 0.85);
|
|
}
|
|
}
|
|
|
|
// 球局类型标签页
|
|
.game_tabs_section {
|
|
margin-bottom: 0;
|
|
|
|
.tab_container {
|
|
display: flex;
|
|
gap: 16px;
|
|
padding: 12px 15px;
|
|
|
|
.tab_item {
|
|
padding: 12px 0;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
|
|
.tab_text {
|
|
font-family: "PingFang SC";
|
|
font-weight: 600;
|
|
font-size: 20px;
|
|
line-height: 1.4em;
|
|
letter-spacing: 1.9%;
|
|
color: rgba(0, 0, 0, 0.85);
|
|
transition: color 0.3s ease;
|
|
}
|
|
|
|
&.active {
|
|
.tab_text {
|
|
color: #000000;
|
|
}
|
|
}
|
|
|
|
&:not(.active) {
|
|
.tab_text {
|
|
color: rgba(0, 0, 0, 0.2);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// 球局列表区域
|
|
.game_list_section {
|
|
.date_header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
padding: 10px 15px;
|
|
margin-bottom: 16px;
|
|
|
|
.date_text {
|
|
font-family: "PingFang SC";
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
line-height: 1.4em;
|
|
letter-spacing: 2.71%;
|
|
color: rgba(0, 0, 0, 0.85);
|
|
}
|
|
|
|
.separator {
|
|
font-family: "PingFang SC";
|
|
font-weight: 400;
|
|
font-size: 18px;
|
|
line-height: 1.4em;
|
|
letter-spacing: 2.11%;
|
|
color: rgba(0, 0, 0, 0.35);
|
|
}
|
|
|
|
.weekday_text {
|
|
font-family: "PingFang SC";
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
line-height: 1.4em;
|
|
letter-spacing: 2.71%;
|
|
color: rgba(0, 0, 0, 0.85);
|
|
}
|
|
}
|
|
|
|
// 球局卡片
|
|
.game_cards {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
padding: 0 5px 15px;
|
|
|
|
.game_card {
|
|
background: #ffffff;
|
|
border: 0.5px solid rgba(0, 0, 0, 0.08);
|
|
border-radius: 20px;
|
|
padding: 0 0 12px;
|
|
box-shadow: 0px 4px 36px 0px rgba(0, 0, 0, 0.06);
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
|
|
&:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
// 球局标题和类型
|
|
.game_header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 12px 15px 0;
|
|
|
|
.game_title {
|
|
font-family: "PingFang SC";
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
line-height: 1.5em;
|
|
color: #000000;
|
|
}
|
|
|
|
.game_type_icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
|
|
.type_icon {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 球局时间
|
|
.game_time {
|
|
padding: 6px 15px 0;
|
|
|
|
.time_text {
|
|
font-family: "PingFang SC";
|
|
font-weight: 400;
|
|
font-size: 12px;
|
|
line-height: 1.5em;
|
|
color: rgba(60, 60, 67, 0.6);
|
|
}
|
|
}
|
|
|
|
// 球局地点和类型
|
|
.game_location {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 2px;
|
|
padding: 4px 15px 0;
|
|
|
|
.location_text,
|
|
.type_text,
|
|
.distance_text {
|
|
font-family: "PingFang SC";
|
|
font-weight: 400;
|
|
font-size: 12px;
|
|
line-height: 1.5em;
|
|
color: rgba(60, 60, 67, 0.6);
|
|
}
|
|
|
|
.separator {
|
|
font-family: "PingFang SC";
|
|
font-weight: 400;
|
|
font-size: 14px;
|
|
line-height: 1.3em;
|
|
color: rgba(60, 60, 67, 0.3);
|
|
}
|
|
}
|
|
|
|
// 球局图片
|
|
.game_images {
|
|
position: absolute;
|
|
top: 11px;
|
|
right: 5px;
|
|
width: 100px;
|
|
height: 100px;
|
|
box-shadow: 0px 4px 24px 0px rgba(0, 0, 0, 0.2);
|
|
|
|
.game_image {
|
|
position: absolute;
|
|
width: 56.44px;
|
|
height: 56.44px;
|
|
border-radius: 9px;
|
|
border: 1.5px solid #ffffff;
|
|
|
|
&:nth-child(1) {
|
|
top: 4.18px;
|
|
left: 19.18px;
|
|
}
|
|
|
|
&:nth-child(2) {
|
|
top: 26.5px;
|
|
left: 38px;
|
|
width: 61.86px;
|
|
height: 61.86px;
|
|
}
|
|
|
|
&:nth-child(3) {
|
|
top: 32.5px;
|
|
left: 0;
|
|
width: 62.04px;
|
|
height: 62.04px;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 球局信息标签
|
|
.game_tags {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 6px;
|
|
padding: 8px 15px 0;
|
|
|
|
.participants_info {
|
|
display: flex;
|
|
gap: 4px;
|
|
|
|
.avatars {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: -8px;
|
|
|
|
.participant_avatar {
|
|
width: 20px;
|
|
height: 20px;
|
|
border-radius: 50%;
|
|
border: 1px solid #ffffff;
|
|
}
|
|
}
|
|
|
|
.participants_count {
|
|
background: #ffffff;
|
|
border: 0.5px solid rgba(0, 0, 0, 0.16);
|
|
border-radius: 999px;
|
|
padding: 6px;
|
|
height: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
.count_text {
|
|
font-family: "PingFang SC";
|
|
font-weight: 500;
|
|
font-size: 11px;
|
|
line-height: 1.8em;
|
|
letter-spacing: -2.1%;
|
|
color: #000000;
|
|
}
|
|
}
|
|
}
|
|
|
|
.game_info_tags {
|
|
display: flex;
|
|
gap: 4px;
|
|
|
|
.info_tag {
|
|
background: #ffffff;
|
|
border: 0.5px solid rgba(0, 0, 0, 0.16);
|
|
border-radius: 999px;
|
|
padding: 6px 8px;
|
|
height: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
|
|
.tag_text {
|
|
font-family: "PingFang SC";
|
|
font-weight: 500;
|
|
font-size: 11px;
|
|
line-height: 1.8em;
|
|
letter-spacing: -2.1%;
|
|
color: #000000;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.ended_game_text {
|
|
font-family: "PingFang SC";
|
|
font-weight: 600;
|
|
font-size: 20px;
|
|
line-height: 1.4em;
|
|
letter-spacing: 1.9%;
|
|
color: rgba(0, 0, 0, 0.85);
|
|
transition: color 0.3s ease;
|
|
padding: 24px 15px;
|
|
}
|