feat: first commit
This commit is contained in:
163
src/components/job-card/index.less
Normal file
163
src/components/job-card/index.less
Normal file
@ -0,0 +1,163 @@
|
||||
@import '@/styles/common.less';
|
||||
@import '@/styles/variables.less';
|
||||
|
||||
.job-card {
|
||||
&__container {
|
||||
width: 100%;
|
||||
height: fit-content;
|
||||
padding: 24px;
|
||||
box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
border-radius: 16px;
|
||||
background: #FFFFFF;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
&__header {
|
||||
width: 100%;
|
||||
.flex-row();
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
&__title {
|
||||
font-size: 30px;
|
||||
line-height: 32px;
|
||||
font-weight: 500;
|
||||
color: @blColor;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
&__employment-type {
|
||||
width: fit-content;
|
||||
padding: 3px 6px;
|
||||
font-size: 20px;
|
||||
line-height: 24px;
|
||||
font-weight: 400;
|
||||
background: @blHighlightBg;
|
||||
color: @blHighlightColor;
|
||||
white-space: nowrap;
|
||||
margin-left: 8px;
|
||||
|
||||
&__wrapper {
|
||||
flex: 1;
|
||||
}
|
||||
}
|
||||
|
||||
&__certification-type {
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
&__tags {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
overflow: hidden;
|
||||
margin-top: 32px;
|
||||
// 抵消最后一行的 margin-bottom
|
||||
margin-bottom: -10px;
|
||||
}
|
||||
|
||||
&__tag {
|
||||
padding: 3px 6px;
|
||||
font-size: 20px;
|
||||
line-height: 24px;
|
||||
font-weight: 400;
|
||||
background: #F2F2F2;
|
||||
color: @blColorG2;
|
||||
white-space: nowrap;
|
||||
margin-right: 8px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
&__salary {
|
||||
font-size: 30px;
|
||||
line-height: 32px;
|
||||
font: 400;
|
||||
color: @blHighlightColor;
|
||||
margin-top: 32px;
|
||||
}
|
||||
|
||||
&__content {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
&__summary {
|
||||
font-size: 28px;
|
||||
line-height: 40px;
|
||||
font-weight: 400;
|
||||
color: @blColor;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
&__distance-wrapper {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
&__detailed-address {
|
||||
flex: 1 1;
|
||||
font-size: 28px;
|
||||
font-weight: 400;
|
||||
color: @blColorG1;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
&__distance-icon {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin-left: 15px;
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
&__distance {
|
||||
font-size: 24px;
|
||||
line-height: 40px;
|
||||
font-weight: 400;
|
||||
color: @blColorG1;
|
||||
}
|
||||
|
||||
&__divider {
|
||||
width: 100%;
|
||||
height: 1px;
|
||||
background: #E0E0E0;
|
||||
margin-top: 32px;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
&__footer {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
&__publisher {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
&__publisher-avatar {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 50%;
|
||||
margin-right: 18px;
|
||||
}
|
||||
|
||||
&__publisher-name,
|
||||
&__city {
|
||||
font-size: 24px;
|
||||
line-height: 40px;
|
||||
font-weight: 400;
|
||||
color: @blColorG2;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user