Files
jiaowu-test/src/pages/ProjectLibraryPage/index.css

244 lines
5.7 KiB
CSS
Raw Normal View History

.project-library-page {
width: 100%;
height: 100%;
box-sizing: border-box;
padding: 20px;
position: relative;
.project-library-wrapper {
width: 1120px;
/* height: 790px; */
background-color: #fff;
border-radius: 8px;
box-sizing: border-box;
padding: 20px;
overflow: hidden;
.project-library-title {
width: 100%;
height: 42px;
font-size: 20px;
font-weight: 600;
line-height: 30px;
margin-bottom: 20px;
color: #1d2129;
flex-shrink: 0;
position: relative;
border-bottom: 1px solid #e5e6eb;
padding-bottom: 10px;
&::after {
content: "";
position: absolute;
left: 20px;
bottom: 10px;
width: 32px;
height: 6px;
background-image: url("@/assets/images/Common/title_icon.png");
background-size: contain;
background-repeat: no-repeat;
}
}
.project-library-search-area {
width: 100%;
height: 36px;
.ser-portfolio-searc {
width: 100%;
height: 36px;
border: 1px solid #2c7aff;
span {
background-color: #fff;
}
input {
background-color: #fff;
}
}
}
.project-library-list {
width: 100%;
overflow-y: auto;
box-sizing: border-box;
display: flex;
justify-content: flex-start;
align-items: flex-start;
flex-wrap: wrap;
padding: 20px 0;
.project-library-item:nth-child(3n) {
margin-right: 0;
}
.project-library-item {
flex-shrink: 0;
width: 340px;
height: 100px;
box-sizing: border-box;
padding: 15px 20px;
border-radius: 8px;
background-color: #e5f1ff;
background-image: url("@/assets/images/CompanyJobsPage/jobs_page_left_list_item_bg.png");
background-size: 100% 100%;
background-repeat: no-repeat;
border: 1px solid #e5e6eb;
margin-right: 20px;
margin-bottom: 20px;
position: relative;
overflow: hidden;
transition: all 0.3s ease;
cursor: pointer;
&:hover {
border-color: #4080ff;
box-shadow: 0 4px 12px rgba(44, 127, 255, 0.2);
transform: translateY(-2px);
background-color: #f0f7ff;
}
display: flex;
justify-content: flex-start;
align-items: flex-start;
flex-direction: column;
.project-library-item-title {
display: inline-block;
border: 1px solid #4080ff;
background-color: #ffffff;
min-height: 22px;
height: 22px;
border-radius: 3px;
padding: 0 10px;
box-sizing: border-box;
color: #4080ff;
font-size: 12px;
font-weight: 500;
line-height: 22px;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
margin: 0 0 4px 0;
width: fit-content;
}
> div {
width: 100%;
height: 48px;
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 5px;
> p {
width: 80%;
font-size: 16px;
font-weight: 600;
color: #1d2129;
line-height: 1.5;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
> span {
cursor: pointer;
font-size: 12px;
font-weight: 400;
color: #2c7aff;
flex-shrink: 0;
margin-left: 10px;
align-self: center;
}
}
}
}
}
.my-project-library {
margin-top: 20px;
.project-library-empty {
width: 100%;
height: 200px;
display: flex;
justify-content: center;
align-items: center;
p {
color: #86909c;
font-size: 14px;
}
}
.my-project-item {
background-color: #f7f8fa !important;
border-color: #e5e6eb !important;
cursor: default !important;
&:hover {
border-color: #e5e6eb !important;
box-shadow: none !important;
transform: none !important;
background-color: #f7f8fa !important;
}
.project-library-item-title {
color: #86909c !important;
border-color: #c9cdd4 !important;
background-color: #f7f8fa !important;
}
> div {
> p {
color: #86909c !important;
}
.disabled-detail {
color: #c9cdd4 !important;
cursor: default !important;
}
}
}
/* 可点击的特殊项目样式 */
.clickable-project-item {
background-color: #e5f1ff !important;
border-color: #e5e6eb !important;
cursor: pointer !important;
&:hover {
border-color: #4080ff !important;
box-shadow: 0 4px 12px rgba(44, 127, 255, 0.2) !important;
transform: translateY(-2px) !important;
background-color: #f0f7ff !important;
}
.project-library-item-title {
color: #4080ff !important;
border-color: #4080ff !important;
background-color: #ffffff !important;
}
> div {
> p {
color: #1d2129 !important;
font-weight: 600 !important;
}
> span {
color: #2c7aff !important;
cursor: pointer !important;
&:hover {
color: #1d4ed8 !important;
}
}
}
}
}
}