Files
offerpai_web/src/assets/styles/components/job-resume-template.scss
T
2026-05-15 19:02:11 +08:00

159 lines
2.7 KiB
SCSS

@use '../variables' as *;
// ==================== 简历HTML模板组件 ====================
// 注意:此组件样式全部使用 px 单位,不用 rem
// 原因:后续需要提取简历 HTML 生成 PDF/Word,脱离页面环境后
// rem 会按浏览器默认 16px 计算导致尺寸错乱,px 可保证一致性
.job-resume-template {
width: 100%;
max-width: 1668px;
background: $bg-white;
box-sizing: border-box;
}
// 简历HTML内容区
.resume-html {
padding: 50px 60px;
font-family: 'SimSun', 'Songti SC', serif;
color: $text-dark;
line-height: 1.6;
// 姓名
&__name {
font-size: 28px;
font-weight: 700;
margin: 0 0 6px 0;
line-height: 1.3;
}
// 联系方式
&__contact {
font-size: 12px;
color: $text-dark;
margin-bottom: 4px;
line-height: 1.5;
}
&__contact-row {
display: flex;
align-items: center;
gap: 0;
}
&__separator {
margin: 0 6px;
color: $text-middle;
}
// 板块标题
&__section-title {
font-size: 15px;
font-weight: 700;
color: $text-dark;
margin-top: 16px;
margin-bottom: 2px;
line-height: 1.3;
break-after: avoid;
page-break-after: avoid;
}
// 分割线
&__divider {
height: 1.5px;
background: $text-dark;
margin-bottom: 10px;
}
// 个人概述
&__summary {
font-size: 12px;
line-height: 1.7;
margin-bottom: 6px;
}
// 经历条目
&__item {
margin-bottom: 12px;
}
&__item-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-bottom: 2px;
break-inside: avoid;
page-break-inside: avoid;
}
&__item-main {
font-size: 13px;
font-weight: 600;
color: $text-dark;
line-height: 1.4;
}
&__item-right {
display: flex;
align-items: center;
gap: 6px;
flex-shrink: 0;
text-align: right;
}
&__item-location {
font-size: 12px;
color: $text-dark;
}
&__item-date {
font-size: 12px;
color: $text-dark;
white-space: nowrap;
}
&__item-desc {
font-size: 12px;
color: $text-dark;
line-height: 1.7;
margin-top: 2px;
}
// 描述列表
&__desc-list {
margin: 0;
padding-left: 16px;
list-style: disc;
li {
font-size: 12px;
line-height: 1.7;
color: $text-dark;
break-inside: avoid;
page-break-inside: avoid;
}
}
// 技能区域
&__skills {
font-size: 12px;
line-height: 1.7;
}
&__skill-row {
margin-bottom: 2px;
}
&__skill-label {
font-weight: 600;
}
// ==================== 差异对比高亮样式 ====================
&__diff-highlight {
background-color: #D4EDDA;
color: #155724;
border-radius: 2px;
padding: 0 1px;
}
}