feat: make home-info-wrapper follow the scroll bar

This commit is contained in:
zsw 2019-10-11 14:41:25 +08:00
parent 7c70825d6f
commit 6e1442fba2
2 changed files with 5 additions and 0 deletions

View File

@ -223,6 +223,9 @@ export default {
flex auto
}
.info-wrapper {
position: -webkit-sticky;
position: sticky;
top: 70px;
transition all .3s
margin-left 15px;
flex 0 0 300px

View File

@ -39,6 +39,8 @@ export default {
box-sizing: border-box;
transition all .3s
background-color $bgColor
&:last-child
margin-bottom 0
&:hover
box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.2);
.title