fix(admission-officer): 修复样式问题并添加视频播放功能
- 修复列表项样式和间距问题 - 添加链接悬停效果 - 实现视频播放弹窗功能 - 优化圆角边框和交互细节 - 调整图片显示和文本溢出处理
This commit is contained in:
@@ -23,6 +23,12 @@
|
||||
.admission-officer .flex1 {
|
||||
flex: 1;
|
||||
}
|
||||
.admission-officer a {
|
||||
text-decoration: none;
|
||||
}
|
||||
.admission-officer a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
.admission-officer .admission-head {
|
||||
width: 100%;
|
||||
height: 144px;
|
||||
@@ -136,7 +142,6 @@
|
||||
overflow: hidden;
|
||||
}
|
||||
.admission-officer .admission-body .interview-box .left .content .img {
|
||||
width: 592px;
|
||||
height: 333px;
|
||||
}
|
||||
.admission-officer .admission-body .interview-box .left .content .play-btn {
|
||||
@@ -254,12 +259,28 @@
|
||||
padding-top: 13px;
|
||||
}
|
||||
.admission-officer .admission-body .interview-box .focus-box .content .introduce-box .introduce-list {
|
||||
padding-left: 49px;
|
||||
margin-left: 49px;
|
||||
}
|
||||
.admission-officer .admission-body .interview-box .focus-box .content .introduce-box .introduce-list .introduce-item {
|
||||
width: 291px;
|
||||
font-size: 14px;
|
||||
line-height: 53px;
|
||||
line-height: 52px;
|
||||
color: #333333;
|
||||
position: relative;
|
||||
white-space: pre-line;
|
||||
}
|
||||
.admission-officer .admission-body .interview-box .focus-box .content .introduce-box .introduce-list .introduce-item::after {
|
||||
content: "";
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
background-color: #000000;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
top: 24px;
|
||||
left: -16px;
|
||||
}
|
||||
.admission-officer .admission-body .interview-box .focus-box .content .introduce-box .introduce-list .introduce-item:not(:last-child) {
|
||||
border-bottom: 1px dotted #d7d7d7;
|
||||
}
|
||||
.admission-officer .admission-body .interview-box .focus-box .content .introduce-box .play-btn {
|
||||
width: 126px;
|
||||
@@ -272,6 +293,8 @@
|
||||
font-size: 16px;
|
||||
color: #ffffff;
|
||||
margin-left: auto;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
.admission-officer .admission-body .interview-box .focus-box .content .introduce-box .play-btn .icon {
|
||||
width: 20px;
|
||||
@@ -327,6 +350,7 @@
|
||||
border-radius: 67px;
|
||||
margin: 0 2px;
|
||||
transition: all 0.3s;
|
||||
cursor: pointer;
|
||||
}
|
||||
.admission-officer .admission-body .preach-box .left .box .indicators .item.pitch {
|
||||
margin: 0 3px;
|
||||
@@ -410,6 +434,7 @@
|
||||
.admission-officer .admission-body .preach-box .right .img-box .img {
|
||||
width: 690px;
|
||||
height: 293px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.admission-officer .admission-body .interview-more {
|
||||
margin-bottom: 102px;
|
||||
@@ -472,6 +497,7 @@
|
||||
height: 200px;
|
||||
position: relative;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.admission-officer .admission-body .interview-more .swiper-box .swiper .swiper-item:not(:last-child) {
|
||||
margin-right: 10px;
|
||||
@@ -543,6 +569,7 @@
|
||||
}
|
||||
.admission-officer .admission-body .school-list .school-item .left .img {
|
||||
width: 505px;
|
||||
border-radius: 20px;
|
||||
}
|
||||
.admission-officer .admission-body .school-list .school-item .right {
|
||||
width: 651px;
|
||||
@@ -564,6 +591,7 @@
|
||||
font-size: 20px;
|
||||
color: #000000;
|
||||
margin-bottom: 6px;
|
||||
display: block;
|
||||
}
|
||||
.admission-officer .admission-body .school-list .school-item .right .info .name .arrows {
|
||||
width: 12px;
|
||||
@@ -578,8 +606,13 @@
|
||||
.admission-officer .admission-body .school-list .school-item .right .introduce {
|
||||
font-size: 14px;
|
||||
color: #555555;
|
||||
padding-top: 19px;
|
||||
padding-bottom: 24px;
|
||||
margin-top: 19px;
|
||||
margin-bottom: 24px;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.admission-officer .admission-body .school-list .school-item .right .content {
|
||||
padding-top: 27px;
|
||||
@@ -623,6 +656,7 @@
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
fill: #fff;
|
||||
}
|
||||
.admission-officer .admission-body .school-list .school-item .right .content .year .item.pitch {
|
||||
color: #ffffff;
|
||||
@@ -639,11 +673,14 @@
|
||||
vertical-align: middle;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.admission-officer .admission-body .school-list .school-item .right .content .year .item.more.pitch .arrows {
|
||||
fill: #fff;
|
||||
}
|
||||
.admission-officer .admission-body .school-list .school-item .right .content .year .item.more.unfold {
|
||||
color: #fff;
|
||||
}
|
||||
.admission-officer .admission-body .school-list .school-item .right .content .year .item.more.unfold .svg {
|
||||
fill: #76c45e;
|
||||
fill: #76c45e !important;
|
||||
}
|
||||
.admission-officer .admission-body .school-list .school-item .right .content .year .item.more.unfold .arrows {
|
||||
fill: #fff;
|
||||
@@ -661,7 +698,7 @@
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
cursor: none;
|
||||
cursor: auto;
|
||||
display: none;
|
||||
}
|
||||
.admission-officer .admission-body .school-list .school-item .right .content .year .item .more-box {
|
||||
@@ -719,7 +756,6 @@
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.admission-officer .admission-body .school-list .school-item .right .content .course-list .item .name .label {
|
||||
width: 120px;
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
background-color: #3c7de9;
|
||||
@@ -786,6 +822,7 @@
|
||||
align-items: flex-start;
|
||||
padding: 20px;
|
||||
margin-right: 12px;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
@@ -809,9 +846,9 @@
|
||||
}
|
||||
.admission-officer .admission-body .retrospect .list .item .bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
height: 180px;
|
||||
top: 10px;
|
||||
right: 1px;
|
||||
height: 160px;
|
||||
display: block;
|
||||
z-index: -2;
|
||||
}
|
||||
@@ -952,6 +989,7 @@
|
||||
text-align: center;
|
||||
z-index: 1;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
}
|
||||
.admission-officer .admission-body .more-school-mask .more-school .content .year .item .svg {
|
||||
width: 100px;
|
||||
@@ -960,6 +998,7 @@
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
fill: #fff;
|
||||
}
|
||||
.admission-officer .admission-body .more-school-mask .more-school .content .year .item.pitch {
|
||||
color: #ffffff;
|
||||
@@ -976,6 +1015,9 @@
|
||||
vertical-align: middle;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.admission-officer .admission-body .more-school-mask .more-school .content .year .item.more.pitch .arrows {
|
||||
fill: #fff;
|
||||
}
|
||||
.admission-officer .admission-body .more-school-mask .more-school .content .year .item.more.unfold {
|
||||
color: #fff;
|
||||
}
|
||||
@@ -998,7 +1040,7 @@
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
cursor: none;
|
||||
cursor: auto;
|
||||
display: none;
|
||||
}
|
||||
.admission-officer .admission-body .more-school-mask .more-school .content .year .item .more-box {
|
||||
@@ -1122,3 +1164,29 @@
|
||||
height: 12px;
|
||||
margin-left: 7px;
|
||||
}
|
||||
.admission-officer .admission-body .paly-box-mask {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
z-index: 100;
|
||||
}
|
||||
.admission-officer .admission-body .paly-box-mask .paly-box {
|
||||
position: relative;
|
||||
}
|
||||
.admission-officer .admission-body .paly-box-mask .paly-box .close {
|
||||
position: absolute;
|
||||
top: -20px;
|
||||
right: -20px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.admission-officer .admission-body .paly-box-mask .paly-box .paly-video {
|
||||
width: 800px;
|
||||
height: 600px;
|
||||
background-color: #000000;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
135
css/index.less
135
css/index.less
@@ -26,6 +26,13 @@
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.admission-head {
|
||||
width: 100%;
|
||||
height: 144px;
|
||||
@@ -139,14 +146,16 @@
|
||||
height: 36px;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
width: 592px;
|
||||
height: 333px;
|
||||
position: relative;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
|
||||
.img {
|
||||
width: 592px;
|
||||
// width: 592px;
|
||||
height: 333px;
|
||||
}
|
||||
|
||||
@@ -277,28 +286,29 @@
|
||||
padding-top: 13px;
|
||||
|
||||
.introduce-list {
|
||||
padding-left: 49px;
|
||||
// .introduce-item {
|
||||
width: 291px;
|
||||
font-size: 14px;
|
||||
line-height: 53px;
|
||||
color: #333333;
|
||||
// padding: 10px 0;
|
||||
position: relative;
|
||||
// &::after {
|
||||
// content: "";
|
||||
// width: 6px;
|
||||
// height: 6px;
|
||||
// background-color: #000000;
|
||||
// border-radius: 50%;
|
||||
// position: absolute;
|
||||
// top: 24px;
|
||||
// left: -16px;
|
||||
// }
|
||||
// &:not(:last-child) {
|
||||
// border-bottom: 1px dotted #d7d7d7;
|
||||
// }
|
||||
// }
|
||||
margin-left: 49px;
|
||||
.introduce-item {
|
||||
width: 291px;
|
||||
font-size: 14px;
|
||||
line-height: 52px;
|
||||
color: #333333;
|
||||
position: relative;
|
||||
white-space: pre-line;
|
||||
|
||||
&::after {
|
||||
content: "";
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
background-color: #000000;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
top: 24px;
|
||||
left: -16px;
|
||||
}
|
||||
&:not(:last-child) {
|
||||
border-bottom: 1px dotted #d7d7d7;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.play-btn {
|
||||
@@ -312,6 +322,8 @@
|
||||
font-size: 16px;
|
||||
color: #ffffff;
|
||||
margin-left: auto;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
.icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
@@ -372,7 +384,7 @@
|
||||
border-radius: 67px;
|
||||
margin: 0 2px;
|
||||
transition: all 0.3s;
|
||||
|
||||
cursor: pointer;
|
||||
&.pitch {
|
||||
margin: 0 3px;
|
||||
width: 20px;
|
||||
@@ -474,6 +486,7 @@
|
||||
.img {
|
||||
width: 690px;
|
||||
height: 293px;
|
||||
border-radius: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -547,6 +560,7 @@
|
||||
height: 200px;
|
||||
position: relative;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
|
||||
&:not(:last-child) {
|
||||
margin-right: 10px;
|
||||
@@ -588,6 +602,7 @@
|
||||
|
||||
.school-list {
|
||||
margin-bottom: 90px;
|
||||
|
||||
.school-item {
|
||||
&:not(:last-child) {
|
||||
margin-bottom: 102px;
|
||||
@@ -601,7 +616,7 @@
|
||||
width: 100px;
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
background-color: rgba(125, 40, 130, 1);
|
||||
background-color: #7d2882;
|
||||
border-radius: 86px;
|
||||
font-family: "Arial-Black", "Arial Black", sans-serif;
|
||||
font-weight: 900;
|
||||
@@ -626,6 +641,7 @@
|
||||
}
|
||||
.img {
|
||||
width: 505px;
|
||||
border-radius: 20px;
|
||||
}
|
||||
}
|
||||
.right {
|
||||
@@ -647,6 +663,7 @@
|
||||
font-size: 20px;
|
||||
color: #000000;
|
||||
margin-bottom: 6px;
|
||||
display: block;
|
||||
.arrows {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
@@ -664,8 +681,14 @@
|
||||
.introduce {
|
||||
font-size: 14px;
|
||||
color: #555555;
|
||||
padding-top: 19px;
|
||||
padding-bottom: 24px;
|
||||
margin-top: 19px;
|
||||
margin-bottom: 24px;
|
||||
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.content {
|
||||
@@ -708,6 +731,7 @@
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
fill: #fff;
|
||||
}
|
||||
|
||||
&.pitch {
|
||||
@@ -728,10 +752,15 @@
|
||||
}
|
||||
|
||||
&.more {
|
||||
&.pitch {
|
||||
.arrows {
|
||||
fill: #fff;
|
||||
}
|
||||
}
|
||||
&.unfold {
|
||||
color: #fff;
|
||||
.svg {
|
||||
fill: #76c45e;
|
||||
fill: #76c45e !important;
|
||||
}
|
||||
.arrows {
|
||||
fill: #fff;
|
||||
@@ -753,7 +782,7 @@
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
cursor: none;
|
||||
cursor: auto;
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -817,7 +846,6 @@
|
||||
color: #333333;
|
||||
margin-bottom: 8px;
|
||||
.label {
|
||||
width: 120px;
|
||||
height: 26px;
|
||||
line-height: 26px;
|
||||
background-color: rgba(60, 125, 233, 1);
|
||||
@@ -853,7 +881,7 @@
|
||||
width: 100px;
|
||||
height: 32px;
|
||||
line-height: 32px;
|
||||
background-color: rgba(125, 40, 130, 1);
|
||||
background-color: #7d2882;
|
||||
border-radius: 86px;
|
||||
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
|
||||
font-weight: 400;
|
||||
@@ -895,6 +923,7 @@
|
||||
align-items: flex-start;
|
||||
padding: 20px;
|
||||
margin-right: 12px;
|
||||
cursor: pointer;
|
||||
|
||||
&:not(:nth-last-child(-n + 3)) {
|
||||
margin-bottom: 12px;
|
||||
@@ -921,9 +950,9 @@
|
||||
|
||||
.bg {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
height: 180px;
|
||||
top: 10px;
|
||||
right: 1px;
|
||||
height: 160px;
|
||||
display: block;
|
||||
z-index: -2;
|
||||
}
|
||||
@@ -1056,6 +1085,7 @@
|
||||
font-size: 20px;
|
||||
color: #000000;
|
||||
margin-bottom: 4px;
|
||||
|
||||
.icon {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
@@ -1084,6 +1114,7 @@
|
||||
text-align: center;
|
||||
z-index: 1;
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
.svg {
|
||||
width: 100px;
|
||||
height: 28px;
|
||||
@@ -1091,6 +1122,7 @@
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: -1;
|
||||
fill: #fff;
|
||||
}
|
||||
|
||||
&.pitch {
|
||||
@@ -1111,6 +1143,11 @@
|
||||
}
|
||||
|
||||
&.more {
|
||||
&.pitch {
|
||||
.arrows {
|
||||
fill: #fff;
|
||||
}
|
||||
}
|
||||
&.unfold {
|
||||
color: #fff;
|
||||
.svg {
|
||||
@@ -1136,7 +1173,7 @@
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
cursor: none;
|
||||
cursor: auto;
|
||||
display: none;
|
||||
}
|
||||
|
||||
@@ -1278,5 +1315,33 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.paly-box-mask {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: rgba(0, 0, 0, 0.4);
|
||||
z-index: 100;
|
||||
.paly-box {
|
||||
position: relative;
|
||||
.close {
|
||||
position: absolute;
|
||||
top: -20px;
|
||||
right: -20px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.paly-video {
|
||||
width: 800px;
|
||||
height: 600px;
|
||||
background-color: rgba(0, 0, 0, 1);
|
||||
border-radius: 10px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user