Files
jiaowu-test/src/pages/CompanyJobsPage/components/JobInfoModal/index.css

612 lines
13 KiB
CSS
Raw Normal View History

.job-info-modal-content {
max-height: 80vh;
max-width: 860px;
width: 100%;
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-start;
background-color: #f2f3f5;
background-image: url("@/assets/images/CompanyJobsPage/background.png");
background-size: 100% auto;
background-position: top center;
background-repeat: no-repeat;
border-radius: 8px;
box-sizing: border-box;
overflow-y: auto;
overflow-x: hidden;
padding: 20px;
/* 自定义滚动条样式 */
&::-webkit-scrollbar {
width: 6px;
}
&::-webkit-scrollbar-track {
background: #f1f1f1;
border-radius: 3px;
}
&::-webkit-scrollbar-thumb {
background: #667eea;
border-radius: 3px;
&:hover {
background: #764ba2;
}
}
.job-info-modal-search {
width: 319px;
height: 36px;
border: 1px solid #2c7aff;
span {
background-color: #fff;
}
input {
background-color: #fff;
}
}
.empty-data-wrapper {
width: 100%;
min-height: 555px;
display: flex;
}
.job-info-modal-user-resumes-list {
width: 100%;
min-height: 400px;
margin-top: 16px;
display: grid;
grid-template-columns: repeat(2, 1fr); /* 每行两列 */
gap: 20px; /* 网格间距 */
justify-items: start; /* 项目左对龁 */
overflow-y: visible;
.list-item {
width: 390px;
height: 100px;
background-color: #fff;
border-radius: 8px;
position: relative;
box-sizing: border-box;
padding: 16px 12px;
display: flex;
justify-content: space-between;
align-items: center;
.list-item-info {
height: 68px;
width: 300px;
display: flex;
justify-content: flex-start;
align-items: center;
.file-icon {
width: 68px;
height: 68px;
filter: none !important;
box-shadow: none !important;
}
.file-info {
width: 220px;
height: 68px;
> p {
text-align: left;
}
.file-info-targetPosition {
width: 100%;
height: 28px;
color: #09090b;
line-height: 28px;
font-size: 18px;
font-weight: 600;
}
.file-info-skills {
margin-top: 5px;
width: 100%;
height: 21px;
color: #788089;
line-height: 21px;
font-size: 15px;
font-weight: 400;
overflow: hidden; /* 超出隐藏 */
white-space: nowrap; /* 禁止换行 */
text-overflow: ellipsis; /* 文本溢出显示省略号 */
}
.version-selector {
margin-top: 8px;
width: 100%;
height: 32px;
display: flex;
align-items: center;
.arco-select {
font-size: 12px !important;
}
.arco-select-view-single {
height: 28px !important;
font-size: 12px !important;
}
}
}
}
.info-btn {
width: 64px;
height: 28px;
line-height: 28px;
text-align: center;
border-radius: 2px;
border: 1px solid #2c7aff;
color: #2c7aff;
font-size: 12px;
cursor: pointer;
transition: all 0.3s ease;
background-color: #ffffff;
font-weight: 500;
&:hover {
background-color: #2c7aff;
color: #ffffff;
box-shadow: 0 2px 8px rgba(44, 122, 255, 0.3);
transform: translateY(-1px);
}
&:active {
transform: scale(0.98);
box-shadow: 0 1px 4px rgba(44, 122, 255, 0.2);
}
}
}
}
.job-info-modal-content-position-info {
width: 100%;
min-height: 30px;
display: flex;
align-items: center;
justify-content: flex-start;
position: relative;
flex-wrap: wrap;
gap: 10px;
.job-info-modal-content-position-info-position {
font-size: 20px;
font-weight: 600;
line-height: 30px;
color: #1d2129;
}
.job-category-tag {
display: inline-flex;
align-items: center;
padding: 4px 12px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
font-size: 12px;
font-weight: 500;
border-radius: 12px;
white-space: nowrap;
box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}
/* 根据岗位相关标签内容设置不同颜色 */
.job-category-tag[data-category="专业相关岗位"] {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.job-category-tag[data-category="非专业相关岗位"] {
background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
}
.job-category-tag[data-category="人才出海岗位"] {
background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
}
.job-remaining-positions {
display: inline-flex;
align-items: center;
margin-left: 8px;
color: #ff4d4f;
font-size: 12px;
font-weight: 600;
white-space: nowrap;
.warning-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 14px;
height: 14px;
border-radius: 50%;
background-color: #ff4d4f;
color: #ffffff;
font-size: 10px;
font-weight: 700;
font-style: normal;
margin-right: 4px;
flex-shrink: 0;
}
}
.job-info-modal-content-position-info-num {
font-size: 14px;
font-weight: 400;
line-height: 22px;
color: #ff7d00;
}
.job-info-modal-content-position-info-salary {
font-size: 16px;
font-weight: 600;
line-height: 24px;
color: #ff7d00;
position: absolute;
right: 0;
}
}
.job-info-modal-info-tags {
width: 100%;
display: flex;
justify-content: flex-start;
align-items: center;
flex-wrap: wrap;
margin-top: 10px;
.job-info-modal-info-tag {
background-color: #ffffff;
box-sizing: border-box;
margin-bottom: 5px;
padding: 4px 12px;
color: #86909c;
font-size: 12px;
font-weight: 500;
border-radius: 4px;
margin-right: 10px;
}
}
.job-info-modal-content-position-info-description,
.job-info-modal-content-position-info-requirements,
.job-info-modal-content-position-info-companyInfo {
width: 100%;
box-sizing: border-box;
padding: 16px;
border-radius: 8px;
background-color: #fff;
margin: 10px 0;
border: 1px solid #e5e6eb;
> p {
width: 100%;
text-align: left;
}
.description-title,
.requirements-title,
.companyInfo-title {
font-size: 18px;
font-weight: 600;
line-height: 28px;
color: #1d2129;
margin-bottom: 12px;
display: flex;
align-items: center;
.title-icon {
width: 20px;
height: 20px;
margin-right: 8px;
object-fit: contain;
}
}
.description-content {
font-size: 14px;
font-weight: 400;
line-height: 24px;
color: #4e5969;
text-align: left;
.description-item {
display: flex;
align-items: flex-start;
margin-bottom: 8px;
text-align: left;
.description-number {
display: inline-block;
min-width: 20px;
font-size: 14px;
font-weight: 500;
color: #1d2129;
margin-right: 6px;
text-align: left;
}
.description-text {
flex: 1;
font-size: 14px;
font-weight: 400;
line-height: 24px;
color: #4e5969;
text-align: left;
}
&:last-child {
margin-bottom: 0;
}
}
}
.companyInfo-content {
font-size: 14px;
font-weight: 400;
line-height: 24px;
color: #4e5969;
text-align: left;
white-space: pre-wrap;
word-break: break-word;
}
.requirements-content {
width: 100%;
text-align: left;
.requirements-item {
display: flex;
align-items: flex-start;
margin-bottom: 8px;
text-align: left;
.requirement-number {
display: inline-block;
min-width: 20px;
font-size: 14px;
font-weight: 500;
color: #1d2129;
margin-right: 6px;
text-align: left;
}
.requirement-text {
flex: 1;
font-size: 14px;
font-weight: 400;
line-height: 24px;
color: #4e5969;
text-align: left;
}
&:last-child {
margin-bottom: 0;
}
}
.requirement-line {
margin-bottom: 8px;
padding-left: 16px;
position: relative;
font-size: 14px;
line-height: 22px;
color: #4e5969;
text-align: left;
&:before {
content: "•";
position: absolute;
left: 0;
color: #667eea;
}
&:last-child {
margin-bottom: 0;
}
}
}
}
.job-info-modal-btn {
width: 120px;
height: 36px;
line-height: 36px;
color: #fff;
background-color: #2c7aff;
display: flex;
justify-content: center;
align-items: center;
border-radius: 2px;
cursor: pointer;
> i {
width: 12px;
height: 12px;
margin-right: 5px;
background-image: url("@/assets/images/CompanyJobsPage/btn_icon_2.png");
background-size: 100% 100%;
}
> span {
font-size: 12px;
font-weight: 600;
color: #fff;
}
}
}
/* 公司图片网格布局样式 */
.company-images-grid {
margin-top: 16px;
width: 100%;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 12px;
max-width: 100%;
}
/* 根据图片数量调整列数 */
.company-images-grid:has(.company-image-item:nth-child(1):last-child) {
grid-template-columns: 1fr;
}
.company-images-grid:has(.company-image-item:nth-child(2):last-child) {
grid-template-columns: repeat(2, 1fr);
}
.company-images-grid:has(.company-image-item:nth-child(3):last-child) {
grid-template-columns: repeat(3, 1fr);
}
.company-images-grid:has(.company-image-item:nth-child(4)) {
grid-template-columns: repeat(4, 1fr);
}
.company-image-item {
position: relative;
width: 100%;
aspect-ratio: 4/3;
border-radius: 8px;
overflow: hidden;
cursor: pointer;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
transition: all 0.3s ease;
}
.company-image-item:hover {
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
transform: translateY(-4px);
}
.company-grid-image {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.3s ease;
}
.company-image-item:hover .company-grid-image {
transform: scale(1.05);
}
/* 图片预览模态框样式 */
.image-preview-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.9);
z-index: 10000;
display: flex;
align-items: center;
justify-content: center;
animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
.image-preview-content {
position: relative;
max-width: 90vw;
max-height: 90vh;
display: flex;
align-items: center;
justify-content: center;
}
.image-preview-img {
max-width: 100%;
max-height: 90vh;
object-fit: contain;
border-radius: 8px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}
.image-preview-close {
position: absolute;
top: -50px;
right: 0;
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
color: white;
border: 2px solid rgba(255, 255, 255, 0.5);
font-size: 28px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
backdrop-filter: blur(4px);
&:hover {
background: rgba(255, 255, 255, 0.3);
transform: rotate(90deg);
}
}
.image-preview-counter {
position: absolute;
bottom: -40px;
left: 50%;
transform: translateX(-50%);
background: rgba(255, 255, 255, 0.2);
color: white;
padding: 6px 16px;
border-radius: 16px;
font-size: 14px;
font-weight: 500;
backdrop-filter: blur(4px);
border: 1px solid rgba(255, 255, 255, 0.3);
}
.image-preview-btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 50px;
height: 50px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
color: white;
border: 2px solid rgba(255, 255, 255, 0.5);
font-size: 32px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
backdrop-filter: blur(4px);
&:hover {
background: rgba(255, 255, 255, 0.3);
transform: translateY(-50%) scale(1.1);
}
&:active {
transform: translateY(-50%) scale(0.95);
}
}
.image-preview-btn-prev {
left: -70px;
}
.image-preview-btn-next {
right: -70px;
}