Files
offerpai_web/src/assets/styles/components/agent-chat-job-list.scss
T

347 lines
6.1 KiB
SCSS

@use '../variables' as *;
// ==================== Agent推荐岗位列表组件样式 ====================
.agent-chat-job-list {
background: $bg-white;
border: 1px solid #F0F0F0;
box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.04);
border-radius: 0.12rem;
padding: 0.24rem;
font-size: 0.14rem;
// 标题
&__header {
font-size: 0.22rem;
font-weight: 620;
color: $text-dark;
margin-bottom: 0.04rem;
line-height: 0.29rem;
}
// 推荐说明文字
&__summary {
font-size: 0.14rem;
font-weight: 330;
color: $text-middle;
margin-bottom: 0.16rem;
line-height: 0.19rem;
}
// 可滚动岗位列表区域(默认显示约3.5个岗位高度)
&__scroll {
max-height: 3.64rem;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: $border-color transparent;
&::-webkit-scrollbar {
width: 4px;
}
&::-webkit-scrollbar-thumb {
background: $border-color;
border-radius: 2px;
}
&::-webkit-scrollbar-track {
background: transparent;
}
}
// 单个岗位项
&__item {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
padding: 0.16rem 0.2rem;
border: 1px solid #F0F0F0;
border-radius: 0.08rem;
margin-bottom: 0.08rem;
cursor: pointer;
transition: border-color 0.2s ease;
&:last-child {
margin-bottom: 0;
}
&:hover {
border-color: $accent;
}
}
// 左侧区域(匹配度 + 岗位信息)
&__left {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.16rem;
flex: 1;
min-width: 0;
}
// 匹配度环形容器
&__score {
width: 0.62rem;
height: 0.62rem;
position: relative;
flex-shrink: 0;
}
// 环形 SVG
&__ring {
width: 100%;
height: 100%;
}
// 匹配度数字
&__score-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 0.14rem;
font-weight: 630;
color: #9FD051;
line-height: 0.22rem;
}
// 岗位详情区域
&__detail {
min-width: 0;
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 0.24rem;
}
// 岗位标题行(岗位名 + 公司)
&__title-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.32rem;
}
// 岗位名称
&__title {
font-size: 0.18rem;
font-weight: 620;
color: $text-dark;
line-height: 0.27rem;
}
// 公司信息容器
&__company {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.08rem;
}
// 公司 Logo
&__company-logo {
width: 0.24rem;
height: 0.24rem;
border-radius: 0.04rem;
object-fit: cover;
}
// 公司名称
&__company-name {
font-size: 0.18rem;
font-weight: 330;
color: $text-dark;
line-height: 0.27rem;
white-space: nowrap;
}
// 标签行
&__tags {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.12rem;
}
// 单个标签
&__tag {
font-size: 0.14rem;
font-weight: 330;
color: $text-middle;
line-height: 0.19rem;
display: flex;
align-items: center;
gap: 0.02rem;
svg {
width: 0.16rem;
height: 0.16rem;
color: $text-middle;
}
// 招聘分类标签(校招等)
&--category {
padding: 0.02rem 0.04rem;
background: #EDF9FA;
border-radius: 0.04rem;
font-size: 0.12rem;
color: $accent;
}
}
// 右侧操作按钮区域
&__actions {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 0.08rem;
flex-shrink: 0;
margin-left: 0.16rem;
}
// 不再推荐按钮
&__dismiss-btn {
height: 0.35rem;
padding: 0 0.12rem;
background: transparent;
border: none;
font-size: 0.14rem;
font-weight: 620;
color: $accent;
cursor: pointer;
white-space: nowrap;
transition: opacity 0.2s ease;
border-radius: 0.08rem;
&:hover {
opacity: 0.7;
}
}
// 加入投递按钮
&__add-btn {
display: flex;
align-items: center;
gap: 0.04rem;
height: 0.35rem;
padding: 0 0.12rem;
background: $accent;
color: $bg-white;
border: none;
border-radius: 0.08rem;
font-size: 0.14rem;
font-weight: 620;
cursor: pointer;
white-space: nowrap;
transition: all 0.2s ease;
svg {
width: 0.16rem;
height: 0.16rem;
flex-shrink: 0;
}
&:hover {
opacity: 0.85;
}
&:disabled {
cursor: not-allowed;
opacity: 0.7;
}
// 已加入状态
&--added {
background: transparent;
color: $accent;
border: 1px solid $accent;
}
}
// 空状态
&__empty {
text-align: center;
color: $text-light;
padding: 0.4rem 0;
font-size: 0.14rem;
}
// 底部按钮区域
&__footer {
display: flex;
justify-content: center;
gap: 0.32rem;
margin-top: 0.24rem;
flex-wrap: wrap;
}
// 换一批按钮
&__refresh-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 0.04rem;
height: 0.43rem;
padding: 0 0.16rem;
min-width: 2.8rem;
background: $bg-white;
color: $accent;
border: 1px solid $accent;
border-radius: 0.22rem;
font-size: 0.14rem;
font-weight: 620;
cursor: pointer;
transition: all 0.2s ease;
svg {
width: 0.16rem;
height: 0.16rem;
flex-shrink: 0;
}
&:hover {
background: #EDF9FA;
}
&:disabled {
cursor: not-allowed;
opacity: 0.6;
}
}
// 全部添加按钮
&__add-all-btn {
display: flex;
align-items: center;
justify-content: center;
gap: 0.04rem;
height: 0.43rem;
padding: 0 0.16rem;
min-width: 2.8rem;
background: $accent;
color: $bg-white;
border: none;
border-radius: 0.22rem;
font-size: 0.14rem;
font-weight: 620;
cursor: pointer;
transition: all 0.2s ease;
svg {
width: 0.16rem;
height: 0.16rem;
flex-shrink: 0;
}
&:hover {
opacity: 0.85;
}
&:active {
transform: scale(0.98);
}
}
}