Files
shz-admin/src/pages/JobPortal/index.less

296 lines
5.8 KiB
Plaintext
Raw Normal View History

2026-06-04 16:25:38 +08:00
@import './theme.less';
2025-11-10 16:28:01 +08:00
.job-portal {
min-height: 100vh;
2026-06-04 16:25:38 +08:00
background-color: @jp-bg-page;
2025-11-10 16:28:01 +08:00
.main-content {
2026-06-04 16:25:38 +08:00
.jp-page-container();
2025-11-10 16:28:01 +08:00
margin-top: 20px;
2026-06-04 16:25:38 +08:00
padding-bottom: 48px;
.category-layout {
margin-bottom: 24px;
.ant-col {
padding: 0 8px !important;
}
2025-11-10 16:28:01 +08:00
}
2026-06-04 16:25:38 +08:00
.panel-header {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 12px;
margin-bottom: 16px;
flex-wrap: wrap;
.panel-title {
margin: 0;
font-size: 16px;
font-weight: 600;
color: @jp-text-primary;
}
.panel-tip {
font-size: 13px;
}
2025-11-10 16:28:01 +08:00
}
.industry-panel {
2026-06-04 16:25:38 +08:00
.jp-card-base();
height: 420px;
min-height: 420px;
display: flex;
flex-direction: column;
.panel-header {
padding: 16px 20px 0;
margin-bottom: 8px;
flex-shrink: 0;
}
2025-11-10 16:28:01 +08:00
.industry-list {
2026-06-04 16:25:38 +08:00
flex: 1;
min-height: 0;
padding: 8px 0;
overflow: hidden;
2025-11-10 16:28:01 +08:00
.industry-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 20px;
cursor: pointer;
2026-06-04 16:25:38 +08:00
transition: all 0.2s;
2025-11-10 16:28:01 +08:00
border-left: 3px solid transparent;
2026-06-04 16:25:38 +08:00
color: @jp-text-secondary;
2025-11-10 16:28:01 +08:00
&:hover,
&.active {
2026-06-04 16:25:38 +08:00
background-color: @jp-primary-light;
border-left-color: @jp-primary;
color: @jp-primary;
2025-11-10 16:28:01 +08:00
}
.anticon {
2026-06-04 16:25:38 +08:00
color: @jp-text-muted;
2025-11-10 16:28:01 +08:00
font-size: 12px;
}
&:hover .anticon,
&.active .anticon {
2026-06-04 16:25:38 +08:00
color: @jp-primary;
2025-11-10 16:28:01 +08:00
}
}
}
.pagination {
2026-06-04 16:25:38 +08:00
flex-shrink: 0;
2025-11-10 16:28:01 +08:00
display: flex;
justify-content: center;
align-items: center;
2026-06-04 16:25:38 +08:00
padding: 12px 16px;
border-top: 1px solid @jp-border;
2025-11-10 16:28:01 +08:00
.ant-btn {
border: none;
box-shadow: none;
2026-06-04 16:25:38 +08:00
color: @jp-primary;
2025-11-10 16:28:01 +08:00
}
span {
margin: 0 16px;
2026-06-04 16:25:38 +08:00
color: @jp-text-muted;
font-size: 13px;
2025-11-10 16:28:01 +08:00
}
}
2026-06-04 16:25:38 +08:00
.industry-count {
flex-shrink: 0;
text-align: center;
font-size: 12px;
color: @jp-text-muted;
padding: 0 16px 12px;
2025-11-10 16:28:01 +08:00
}
2026-06-04 16:25:38 +08:00
}
2025-11-10 16:28:01 +08:00
2026-06-04 16:25:38 +08:00
.profession-panel {
.jp-card-base();
min-height: 420px;
height: 100%;
2025-11-10 16:28:01 +08:00
2026-06-04 16:25:38 +08:00
.profession-content {
max-height: 340px;
overflow-y: auto;
padding-right: 4px;
2025-11-10 16:28:01 +08:00
2026-06-04 16:25:38 +08:00
&::-webkit-scrollbar {
width: 6px;
2025-11-10 16:28:01 +08:00
}
2026-06-04 16:25:38 +08:00
&::-webkit-scrollbar-thumb {
background: #d1d5db;
border-radius: 3px;
}
2025-11-10 16:28:01 +08:00
.profession-category {
2026-06-04 16:25:38 +08:00
margin-bottom: 20px;
&:last-child {
margin-bottom: 0;
}
2025-11-10 16:28:01 +08:00
.category-title {
2026-06-04 16:25:38 +08:00
margin-bottom: 10px;
color: @jp-text-primary;
2025-11-10 16:28:01 +08:00
font-weight: 600;
2026-06-04 16:25:38 +08:00
font-size: 14px;
2025-11-10 16:28:01 +08:00
}
.profession-tags {
display: flex;
2026-06-04 16:25:38 +08:00
flex-wrap: wrap;
gap: 8px;
2025-11-10 16:28:01 +08:00
.profession-tag {
2026-06-04 16:25:38 +08:00
.jp-job-tag();
padding: 4px 12px;
2025-11-10 16:28:01 +08:00
cursor: pointer;
2026-06-04 16:25:38 +08:00
font-size: 13px;
transition: all 0.2s;
2025-11-10 16:28:01 +08:00
&:hover {
2026-06-04 16:25:38 +08:00
background: @jp-primary !important;
color: #fff !important;
border-color: @jp-primary !important;
2025-11-10 16:28:01 +08:00
}
}
}
}
2026-06-04 16:25:38 +08:00
.profession-empty {
display: flex;
align-items: center;
justify-content: center;
min-height: 200px;
2025-11-10 16:28:01 +08:00
}
}
}
2026-06-04 16:25:38 +08:00
.jobs-section {
.jobs-section-header {
2025-11-10 16:28:01 +08:00
display: flex;
2026-06-04 16:25:38 +08:00
justify-content: space-between;
2025-11-10 16:28:01 +08:00
align-items: center;
2026-06-04 16:25:38 +08:00
margin-bottom: 20px;
2025-11-10 16:28:01 +08:00
2026-06-04 16:25:38 +08:00
.jobs-title {
.jp-section-title();
margin: 0;
2025-11-10 16:28:01 +08:00
}
2026-06-04 16:25:38 +08:00
.view-more {
color: @jp-primary;
font-size: 14px;
cursor: pointer;
2025-11-10 16:28:01 +08:00
2026-06-04 16:25:38 +08:00
&:hover {
color: @jp-primary-dark;
2025-11-10 16:28:01 +08:00
}
}
}
.job-card {
height: 100%;
2026-06-04 16:25:38 +08:00
.jp-card-base();
2025-11-10 16:28:01 +08:00
cursor: pointer;
2026-06-04 16:25:38 +08:00
transition: all 0.2s;
2025-11-10 16:28:01 +08:00
&:hover {
2026-06-04 16:25:38 +08:00
border-color: @jp-primary-border;
box-shadow: @jp-shadow-hover;
2025-11-10 16:28:01 +08:00
}
.job-header {
display: flex;
justify-content: space-between;
2026-06-04 16:25:38 +08:00
align-items: flex-start;
margin-bottom: 10px;
gap: 8px;
2025-11-10 16:28:01 +08:00
.job-title {
margin: 0;
font-size: 16px;
2026-06-04 16:25:38 +08:00
color: @jp-text-primary;
2025-11-10 16:28:01 +08:00
font-weight: 600;
flex: 1;
}
.job-salary {
2026-06-04 16:25:38 +08:00
.jp-salary-text();
font-size: 15px;
2025-11-10 16:28:01 +08:00
white-space: nowrap;
flex-shrink: 0;
}
}
.job-company {
display: block;
2026-06-04 16:25:38 +08:00
color: @jp-text-muted;
font-size: 13px;
margin-bottom: 10px;
2025-11-10 16:28:01 +08:00
}
.job-info {
display: flex;
2026-06-04 16:25:38 +08:00
flex-wrap: wrap;
gap: 8px;
margin-bottom: 10px;
2025-11-10 16:28:01 +08:00
.job-location,
.job-experience,
.job-education {
2026-06-04 16:25:38 +08:00
color: @jp-text-muted;
2025-11-10 16:28:01 +08:00
font-size: 12px;
}
}
.job-tags {
display: flex;
flex-wrap: wrap;
gap: 6px;
.job-tag {
2026-06-04 16:25:38 +08:00
.jp-job-tag();
2025-11-10 16:28:01 +08:00
font-size: 12px;
2026-06-04 16:25:38 +08:00
padding: 2px 8px;
2025-11-10 16:28:01 +08:00
}
}
}
}
}
}
2026-06-04 16:25:38 +08:00
@media (max-width: 992px) {
.job-portal .main-content {
.category-layout {
2025-11-10 16:28:01 +08:00
.profession-panel {
2026-06-04 16:25:38 +08:00
margin-top: 16px;
min-height: auto;
2025-11-10 16:28:01 +08:00
.profession-content {
2026-06-04 16:25:38 +08:00
max-height: none;
2025-11-10 16:28:01 +08:00
}
}
}
}
}
@media (max-width: 768px) {
2026-06-04 16:25:38 +08:00
.job-portal .main-content {
padding: 0 12px 32px;
margin-top: 12px;
2025-11-10 16:28:01 +08:00
}
}