feat: first commit
This commit is contained in:
274
src/pages/job-detail/index.less
Normal file
274
src/pages/job-detail/index.less
Normal file
@ -0,0 +1,274 @@
|
||||
@import '@/styles/common.less';
|
||||
@import '@/styles/variables.less';
|
||||
|
||||
.job-detail {
|
||||
&__container {
|
||||
padding: 0 24px;
|
||||
}
|
||||
|
||||
&__header {
|
||||
padding: 24px;
|
||||
border-radius: 16px;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
|
||||
&__header-info {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: flex-start;
|
||||
overflow: hidden;
|
||||
line-height: 48px;
|
||||
}
|
||||
|
||||
&__header-title {
|
||||
font-size: 36px;
|
||||
line-height: 48px;
|
||||
font-weight: 500;
|
||||
color: @blColor;
|
||||
display: -webkit-box;
|
||||
word-break: break-all;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
}
|
||||
|
||||
&__employ-type {
|
||||
width: fit-content;
|
||||
padding: 3px 6px;
|
||||
font-size: 20px;
|
||||
line-height: 24px;
|
||||
font-weight: 400;
|
||||
background: @blHighlightBg;
|
||||
color: @blHighlightColor;
|
||||
white-space: nowrap;
|
||||
margin-top: 6px;
|
||||
margin-left: 22px;
|
||||
}
|
||||
|
||||
&__salary {
|
||||
font-size: 36px;
|
||||
font: 500;
|
||||
color: @blHighlightColor;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
&__update-time {
|
||||
margin: 16px 0;
|
||||
font-size: 24px;
|
||||
line-height: 40px;
|
||||
font-weight: 400;
|
||||
color: @blColorG1;
|
||||
}
|
||||
|
||||
&__tips {
|
||||
padding: 18px 32px;
|
||||
font-size: 26px;
|
||||
line-height: 28px;
|
||||
font-weight: 400;
|
||||
color: #946724;
|
||||
background: #FFF4F0;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
&__group,
|
||||
&__publisher,
|
||||
&__company {
|
||||
font-size: 24px;
|
||||
line-height: 40px;
|
||||
font-weight: 400;
|
||||
color: @blColorG2;
|
||||
margin-top: 16px;
|
||||
.flex-row();
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
&__group-name,
|
||||
&__publisher-name {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
|
||||
&__group__not-follow {
|
||||
height: 36px;
|
||||
padding: 0 12rpx;
|
||||
font-size: 24px;
|
||||
line-height: 36px;
|
||||
color: @blHighlightColor;
|
||||
background: transparent;
|
||||
border: 2px solid @blHighlightColor;
|
||||
border-radius: 32px;
|
||||
margin-left: 14px;
|
||||
|
||||
&::after {
|
||||
border-color: transparent
|
||||
}
|
||||
}
|
||||
|
||||
&__group__followed {
|
||||
height: 36px;
|
||||
padding: 0 12rpx;
|
||||
font-size: 24px;
|
||||
line-height: 36px;
|
||||
color: @blHighlightColor;
|
||||
background: @blHighlightBg;
|
||||
border-radius: 4px;
|
||||
margin-left: 14px;
|
||||
}
|
||||
|
||||
&__certification-type {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
&__publisher-avatar {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 50%;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
&__content {
|
||||
padding: 24px;
|
||||
margin-top: 24px;
|
||||
border-radius: 16px;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
|
||||
&__content-title {
|
||||
font-size: 36px;
|
||||
line-height: 48px;
|
||||
font-weight: 500;
|
||||
color: @blColor;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
&__tags {
|
||||
max-width: 100%;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 23px;
|
||||
// 抵消最后一行的 margin-bottom
|
||||
margin-bottom: -10px;
|
||||
}
|
||||
|
||||
&__tag {
|
||||
padding: 3px 6px;
|
||||
font-size: 20px;
|
||||
line-height: 24px;
|
||||
font-weight: 400;
|
||||
background: #F2F2F2;
|
||||
white-space: nowrap;
|
||||
color: @blColorG2;
|
||||
margin-right: 8px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
&__description {
|
||||
font-size: 28px;
|
||||
line-height: 56px;
|
||||
margin-top: 16px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
&__address-wrapper {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
&__detailed-address {
|
||||
font-size: 28px;
|
||||
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;
|
||||
}
|
||||
|
||||
&__distance-icon {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin-right: 6px;
|
||||
}
|
||||
|
||||
&__distance {
|
||||
font-size: 24px;
|
||||
line-height: 40px;
|
||||
font-weight: 400;
|
||||
color: @blColorG1;
|
||||
}
|
||||
|
||||
&__map__wrapper {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 270px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
&__map {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
&__map__mask {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
&__bottom-space {
|
||||
// 按钮的高度 + 底部边距
|
||||
height: calc(88px + 26px);
|
||||
padding-bottom: calc(constant(safe-area-inset-bottom) + 12px);
|
||||
/* 兼容 iOS < 11.2 */
|
||||
padding-bottom: calc(env(safe-area-inset-bottom) + 12px);
|
||||
/* 兼容 iOS >= 11.2 */
|
||||
}
|
||||
|
||||
&__footer {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
background: #FFFFFF;
|
||||
padding: 12px 32px;
|
||||
padding-bottom: calc(constant(safe-area-inset-bottom) + 12px);
|
||||
/* 兼容 iOS < 11.2 */
|
||||
padding-bottom: calc(env(safe-area-inset-bottom) + 12px);
|
||||
/* 兼容 iOS >= 11.2 */
|
||||
box-shadow: 0px -4px 20px 0px #00000014;
|
||||
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
&__share-button {
|
||||
flex: 1 1;
|
||||
.button(@height: 88px; @fontSize: 32px; @fontWeight: 500; @borderRadius: 44px; @highlight: 0);
|
||||
}
|
||||
|
||||
&__contact-publisher {
|
||||
flex: 2 2;
|
||||
.button(@height: 88px; @fontSize: 32px; @fontWeight: 500; @borderRadius: 44px;);
|
||||
margin-left: 32px;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user