279 lines
5.7 KiB
SCSS
279 lines
5.7 KiB
SCSS
// 编辑资料页面样式
|
|
.edit_profile_page {
|
|
min-height: 100vh;
|
|
background: radial-gradient(circle at 50% 0%, rgba(238, 255, 220, 1) 0%, rgba(255, 255, 255, 1) 37%);
|
|
position: relative;
|
|
overflow: hidden;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
// 导航栏
|
|
.navbar {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
z-index: 100;
|
|
height: 98px;
|
|
background: rgba(255, 255, 255, 0.9);
|
|
backdrop-filter: blur(10px);
|
|
border-radius: 44px 44px 0px 0px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 21px 16px 0px;
|
|
box-sizing: border-box;
|
|
|
|
.navbar_left {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 30px;
|
|
height: 30px;
|
|
cursor: pointer;
|
|
|
|
.back_icon {
|
|
width: 18px;
|
|
height: 18px;
|
|
}
|
|
}
|
|
|
|
.navbar_title {
|
|
font-family: 'PingFang SC';
|
|
font-weight: 600;
|
|
font-size: 17px;
|
|
line-height: 1.4em;
|
|
color: #000000;
|
|
text-align: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.navbar_right {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 30px;
|
|
height: 30px;
|
|
cursor: pointer;
|
|
|
|
.save_text {
|
|
font-family: 'PingFang SC';
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
line-height: 1.4em;
|
|
color: #000000;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 主要内容区域
|
|
.main_content {
|
|
position: relative;
|
|
z-index: 5;
|
|
flex: 1;
|
|
margin-top: 98px;
|
|
box-sizing: border-box;
|
|
overflow-y: auto;
|
|
padding: 0px 16px;
|
|
padding-bottom: 48px;
|
|
|
|
// 头像编辑区域
|
|
.avatar_section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
gap: 12px;
|
|
margin-bottom: 48px;
|
|
margin-top: 98px;
|
|
|
|
.avatar_container {
|
|
position: relative;
|
|
|
|
|
|
|
|
.avatar {
|
|
width: 100px;
|
|
height: 100px;
|
|
object-fit: cover;
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.12), 0px 0px 1px 0px rgba(0, 0, 0, 0.2);
|
|
border: 0.5px solid rgba(255, 255, 255, 0.65);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.avatar_overlay {
|
|
position: absolute;
|
|
bottom: 0;
|
|
right: 0;
|
|
width: 32px;
|
|
height: 32px;
|
|
background: #000000;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border: 0.5px solid rgba(0, 0, 0, 0.06);
|
|
z-index: 10;
|
|
|
|
.upload_icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// 表单区域
|
|
.form_section {
|
|
margin-bottom: 48px;
|
|
box-shadow: 0px 4px 36px 0px rgba(0, 0, 0, 0.06);
|
|
|
|
.form_group {
|
|
background: #FFFFFF;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
|
|
&:not(:first-child) {
|
|
border-top: 1px solid rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
.form_item {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 10px 12px;
|
|
min-height: 44px;
|
|
box-sizing: border-box;
|
|
|
|
.item_left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex: 1;
|
|
|
|
.item_icon {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.item_label {
|
|
font-family: 'PingFang SC';
|
|
font-weight: 500;
|
|
font-size: 14px;
|
|
line-height: 1.71em;
|
|
color: #000000;
|
|
}
|
|
}
|
|
|
|
.item_right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
flex: 1;
|
|
justify-content: flex-end;
|
|
|
|
.item_input {
|
|
flex: 1;
|
|
text-align: right;
|
|
font-family: 'PingFang SC';
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
line-height: 1.71em;
|
|
color: #000000;
|
|
border: none;
|
|
background: transparent;
|
|
outline: none;
|
|
|
|
&::placeholder {
|
|
color: rgba(0, 0, 0, 0.4);
|
|
}
|
|
}
|
|
|
|
.item_value {
|
|
font-family: 'PingFang SC';
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
line-height: 1.71em;
|
|
color: #000000;
|
|
}
|
|
|
|
.bio_textarea {
|
|
flex: 1;
|
|
text-align: right;
|
|
font-family: 'PingFang SC';
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
line-height: 1.71em;
|
|
color: #000000;
|
|
border: none;
|
|
background: transparent;
|
|
outline: none;
|
|
min-height: 20px;
|
|
resize: none;
|
|
|
|
&::placeholder {
|
|
color: rgba(0, 0, 0, 0.4);
|
|
}
|
|
}
|
|
|
|
.arrow_icon {
|
|
width: 14px;
|
|
height: 14px;
|
|
opacity: 0.2;
|
|
}
|
|
}
|
|
|
|
.divider {
|
|
position: absolute;
|
|
left: 36px;
|
|
right: 12px;
|
|
height: 0.5px;
|
|
background: rgba(0, 0, 0, 0.06);
|
|
border-radius: 99px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// 退出登录区域
|
|
.logout_section {
|
|
margin-top: 16px;
|
|
|
|
.logout_button {
|
|
background: #FFFFFF;
|
|
border: 1px solid rgba(0, 0, 0, 0.06);
|
|
border-radius: 16px;
|
|
padding: 2px 6px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
min-height: 48px;
|
|
|
|
.logout_text {
|
|
font-family: 'PingFang SC';
|
|
font-weight: 600;
|
|
font-size: 16px;
|
|
line-height: 1.4em;
|
|
color: #000000;
|
|
}
|
|
}
|
|
}
|
|
|
|
// 加载状态
|
|
.loading_container {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 200px;
|
|
|
|
.loading_text {
|
|
font-family: 'PingFang SC';
|
|
font-weight: 400;
|
|
font-size: 16px;
|
|
line-height: 1.4em;
|
|
color: rgba(0, 0, 0, 0.6);
|
|
}
|
|
}
|
|
} |