355 lines
6.3 KiB
SCSS
355 lines
6.3 KiB
SCSS
@use '../variables' as *;
|
|
|
|
.profile-page-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0;
|
|
padding-bottom: 0.2rem ;
|
|
background: $bg-white;
|
|
border-radius: 0.12rem;
|
|
font-size: 0.14rem;
|
|
overflow: hidden;
|
|
|
|
// Tab 导航栏(固定不动)
|
|
&__tabs {
|
|
display: flex;
|
|
align-items: center;
|
|
padding-bottom: 0.14rem;
|
|
flex-shrink: 0;
|
|
margin-bottom:0.14rem
|
|
}
|
|
|
|
&__tab-item {
|
|
font-size: 0.14rem;
|
|
color: $text-middle;
|
|
cursor: pointer;
|
|
padding: 0.16rem 0.2rem;
|
|
border-bottom: 2px solid transparent;
|
|
transition: all 0.2s;
|
|
white-space: nowrap;
|
|
|
|
&:hover {
|
|
color: $text-dark;
|
|
}
|
|
|
|
&--active {
|
|
color: $accent;
|
|
font-weight: 600;
|
|
border-bottom-color: $accent;
|
|
}
|
|
}
|
|
|
|
// 内容滚动区域
|
|
&__body {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 0 0.24rem 0.2rem 0.24rem;
|
|
|
|
// 隐藏滚动条
|
|
&::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
-ms-overflow-style: none;
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
// 卡片通用(不再有独立背景,只做分隔)
|
|
&__card {
|
|
padding: 0.16rem 0;
|
|
line-height: 1.5;
|
|
border-radius: 0.08rem;
|
|
|
|
&:hover .profile-page-content__card-header{
|
|
background: #F0FAFA;
|
|
.profile-page-content__edit-btn-inline{
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
}
|
|
|
|
&:not(:last-child) {
|
|
//border-bottom: 1px solid $border-color;
|
|
}
|
|
}
|
|
|
|
&__card-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 0.14rem;
|
|
padding: 0.06rem 0.14rem;
|
|
border-radius: 0.06rem;
|
|
}
|
|
|
|
&__card-title {
|
|
font-size: 0.20rem;
|
|
font-weight: 700;
|
|
color: $text-dark;
|
|
margin: 0;
|
|
position: relative;
|
|
padding-bottom: 0.02rem;
|
|
|
|
// 底部装饰线
|
|
&::after {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
bottom: 0.02rem;
|
|
width: 100%;
|
|
height: 0.06rem;
|
|
background: $accent;
|
|
border-radius: 0.02rem;
|
|
z-index: -1;
|
|
}
|
|
}
|
|
|
|
&__edit-btn {
|
|
background: none;
|
|
border: none;
|
|
color: $text-light;
|
|
cursor: pointer;
|
|
padding: 0.04rem;
|
|
border-radius: 0.04rem;
|
|
display: flex;
|
|
align-items: center;
|
|
transition: all 0.2s;
|
|
|
|
&:hover {
|
|
color: $accent;
|
|
background: $theme-color;
|
|
}
|
|
}
|
|
|
|
&__edit-icon {
|
|
width: 0.15rem;
|
|
height: 0.15rem;
|
|
}
|
|
|
|
// 个人信息
|
|
&__info-name {
|
|
font-size: 0.18rem;
|
|
font-weight: 600;
|
|
color: $text-dark;
|
|
margin-bottom: 0.12rem;
|
|
}
|
|
|
|
&__info-contacts {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.16rem;
|
|
}
|
|
|
|
&__contact-item {
|
|
font-size: 0.12rem;
|
|
color: #555;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.04rem;
|
|
}
|
|
|
|
// 通用 section item
|
|
&__section-item {
|
|
padding: 0.12rem 0;
|
|
|
|
&:not(:last-child) {
|
|
}
|
|
}
|
|
|
|
&__item-row {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
&__item-left {
|
|
flex: 1;
|
|
min-width: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-start;
|
|
gap: 0.2rem;
|
|
}
|
|
|
|
&__item-title {
|
|
font-size: 0.16rem;
|
|
font-weight: 600;
|
|
color: $text-dark;
|
|
margin-bottom: 0.03rem;
|
|
}
|
|
|
|
&__item-sub {
|
|
font-size: 0.16rem;
|
|
color: $text-dark;
|
|
margin-bottom: 0.02rem;
|
|
}
|
|
|
|
&__item-date {
|
|
font-size: 0.13rem;
|
|
color: #64748B;
|
|
margin-bottom: 0.04rem;
|
|
}
|
|
|
|
&__item-period {
|
|
font-size: 0.13rem;
|
|
color: #666;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
&__item-desc {
|
|
font-size: 0.12rem;
|
|
color: #666;
|
|
line-height: 1.6;
|
|
margin: 0.06rem 0 0 0;
|
|
}
|
|
|
|
&__item-list {
|
|
margin: 0.08rem 0 0 0;
|
|
padding-left: 0.16rem;
|
|
list-style: disc;
|
|
|
|
li {
|
|
font-size: 0.12rem;
|
|
color: #555;
|
|
line-height: 1.8;
|
|
}
|
|
}
|
|
|
|
// 作品集链接
|
|
&__portfolio-link {
|
|
font-size: 0.13rem;
|
|
line-height: 1.6;
|
|
color: $text-middle;
|
|
word-break: break-all;
|
|
text-decoration: underline;
|
|
transition: color 0.2s;
|
|
display: inline-block;
|
|
vertical-align: text-bottom;
|
|
|
|
&:hover {
|
|
|
|
}
|
|
}
|
|
|
|
// 作品集空状态提示
|
|
&__portfolio-empty {
|
|
font-size: 0.12rem;
|
|
line-height: 1.5;
|
|
color: $text-light;
|
|
}
|
|
|
|
// 标签(技能 / 证书)
|
|
&__tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.08rem;
|
|
padding: 0 0.14rem;
|
|
}
|
|
|
|
&__tag {
|
|
font-size: 0.12rem;
|
|
color: $text-dark;
|
|
background: $bg-main;
|
|
border: 1px solid $border-color;
|
|
border-radius: 0.16rem;
|
|
padding: 0.05rem 0.16rem;
|
|
transition: all 0.2s;
|
|
|
|
&:hover {
|
|
border-color: $accent;
|
|
color: $accent;
|
|
background: $theme-color;
|
|
}
|
|
}
|
|
|
|
// ---- 新版内联编辑按钮(品牌色图标+文字,hover显示) ----
|
|
&__edit-btn-inline {
|
|
background: none;
|
|
border: none;
|
|
color: $accent;
|
|
cursor: pointer;
|
|
padding: 0 0.08rem;
|
|
border-radius: 0.04rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.04rem;
|
|
font-size: 0.13rem;
|
|
font-weight: 500;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: all 0.2s;
|
|
flex-shrink: 0;
|
|
margin-left: auto;
|
|
|
|
.el-icon {
|
|
font-size: 0.15rem;
|
|
}
|
|
|
|
&:hover {
|
|
}
|
|
}
|
|
|
|
// 卡片hover时显示编辑按钮(个人信息/技能/证书)
|
|
&__card-hover:hover &__edit-btn-inline {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
&__card-hover:hover {
|
|
background: #F0FAFA;
|
|
}
|
|
|
|
// 标题行hover显示添加按钮(5大经历)
|
|
&__header-hover:hover {
|
|
border-radius: 0.06rem;
|
|
}
|
|
|
|
&__header-hover:hover &__edit-btn-inline {
|
|
pointer-events: auto;
|
|
}
|
|
|
|
// 经历条目hover显示编辑按钮
|
|
&__section-item {
|
|
padding: 0.12rem 0.14rem;
|
|
border-radius: 0.08rem;
|
|
|
|
&:hover {
|
|
background: #F0FAFA;
|
|
}
|
|
|
|
&:not(:last-child) {
|
|
}
|
|
}
|
|
|
|
// 条目hover时显示编辑按钮
|
|
&__section-item:hover &__item-edit-btn {
|
|
display: flex;
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
}
|
|
|
|
// hover条目时隐藏时间
|
|
&__section-item:hover &__item-date--toggle {
|
|
display: none;
|
|
}
|
|
|
|
// 条目内编辑按钮(默认隐藏不占位)
|
|
&__item-edit-btn {
|
|
margin-left: 0.08rem;
|
|
display: none;
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
// 时间切换样式(默认显示,靠右)
|
|
&__item-date--toggle {
|
|
margin-left: auto;
|
|
font-size: 0.13rem;
|
|
color: #64748B;
|
|
flex-shrink: 0;
|
|
}
|
|
}
|