This commit is contained in:
谢思 2022-06-10 16:15:35 +08:00
parent 33609e087e
commit 62f265f56e
1 changed files with 14 additions and 16 deletions

View File

@ -19,28 +19,26 @@
bottom: -168px;
}
}
&:hover{
.showBox{
display: none;
}
.hoverShow{
padding-top: 35px;
width: 100%;
bottom: 0;
transition: all 0.6s;
background-image:linear-gradient(90deg,#e4f4ff 0%,#c4d9ff 50.63%,#ffffff 100%);
border:1px solid #ffffff;
border-radius:4px;
box-shadow:0px 0px 6px rgba(255, 255, 255, 0.73);
color:#1140ff;
}
}
}
.teacher_item:nth-child(4n) {
margin-right: 0;
}
.teacher_picture {
width: 100%;
&:hover~.showBox{
display: none;
}
&:hover~.hoverShow{
padding-top: 35px;
width: 100%;
bottom: 0;
transition: all 0.6s;
background-image:linear-gradient(90deg,#e4f4ff 0%,#c4d9ff 50.63%,#ffffff 100%);
border:1px solid #ffffff;
border-radius:4px;
box-shadow:0px 0px 6px rgba(255, 255, 255, 0.73);
color:#1140ff;
}
}
.showBox {
background-color: #466aff;