Files
offerpai_web/src/assets/styles/components/job-resume-template.scss
T

182 lines
3.3 KiB
SCSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@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内容区(默认预览模式用小padding,导出模式用大padding
.resume-html {
padding: 10px;
font-family: 'SimSun', 'Songti SC', serif;
color: $text-dark;
line-height: 1.6;
// 导出模式:恢复完整内边距,去除差异样式 → 见底部统一 &--export 块
// 姓名
&__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 {
font-weight: 700;
color: #52CAD1;
text-decoration: underline;
text-decoration-color: #52CAD1;
text-underline-offset: 2px;
}
// 含有差异文字的经历块/个人概述背景色(仅预览模式)
&__diff-block {
background-color: #EDF9FA;
}
// 导出模式下去除差异相关样式
&--export {
padding: 50px 60px;
.resume-html__diff-highlight {
font-weight: inherit;
color: inherit;
text-decoration: none;
}
.resume-html__diff-block {
background-color: transparent;
}
}
}