Skip to content

Commit 6e1442f

Browse files
author
zsw
committed
feat: make home-info-wrapper follow the scroll bar
1 parent 7c70825 commit 6e1442f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

components/HomeBlog.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,9 @@ export default {
223223
flex auto
224224
}
225225
.info-wrapper {
226+
position: -webkit-sticky;
227+
position: sticky;
228+
top: 70px;
226229
transition all .3s
227230
margin-left 15px;
228231
flex 0 0 300px

components/NoteAbstract.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ export default {
3939
box-sizing: border-box;
4040
transition all .3s
4141
background-color $bgColor
42+
&:last-child
43+
margin-bottom 0
4244
&:hover
4345
box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.2);
4446
.title

0 commit comments

Comments
 (0)