File tree Expand file tree Collapse file tree
source/css/layout/_partial Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 < ul class = " archive-item-body border-box" >
99 < % postItem .postList .forEach (post => { % >
1010 < li class = " post-item border-box" >
11+ < span class = " starting-point border-box flex-center" >< / span>
1112 < span class = " post-date border-box" >< %= date (post .date , ' MM-DD' ) % >< / span>
1213 < a class = " post-title border-box text-ellipsis"
1314 href= " <%- url_for(post.path) %>"
Original file line number Diff line number Diff line change @@ -38,36 +38,60 @@ $timeline-circle-width = 0.6rem
3838 align-items center
3939 justify-content space-between
4040 width 100%
41- padding ($post-item-padding * 0.68 ) 0 ($post-item-padding * 0.68 ) $post-item-padding
41+ padding ($post-item-padding * 0.8 ) 0 ($post-item-padding * 0.8 ) $post-item-padding * 1.6
4242 font-size 1rem
43- border-left 1px dashed var (-- border-color )
4443
45- & ::before {
44+ .starting-point {
4645 position absolute
47- top 50%
48- left - ($timeline-circle-width * 0.5 )
49- z-index $z-index-1
50- box-sizing border-box
51- width $timeline-circle-width
52- height $timeline-circle-width
53- background var (-- text - color-5 )
54- border-radius 50%
55- transform translateY (- 50% )
56- content ''
57- }
46+ top 0
47+ left 0
48+ width 1rem
49+ height 100%
50+
51+
52+ & ::after {
53+ position absolute
54+ top 0
55+ left 50%
56+ z-index $z-index-1
57+ box-sizing border-box
58+ width 0
59+ height 100%
60+ border-left 1px dashed var (-- text - color-5 )
61+ transform translateX (- 50% )
62+ content ''
63+ }
5864
5965
60- & :hover {
6166 & ::before {
62- background var (-- text - color-4 )
67+ top 50%
68+ left 0
69+ z-index $z-index-2
70+ box-sizing border-box
71+ width $timeline-circle-width * 0.8
72+ height $timeline-circle-width * 2
73+ background var (-- text - color-5 )
74+ border-radius 0.2rem
75+ content ''
76+ transition-t ("height" , "0" , "0.2" , "ease" )
6377 }
78+ }
6479
6580
81+ & :hover {
82+ .starting-point {
83+ & ::before {
84+ height $timeline-circle-width * 2.4
85+ background var (-- text - color-4 )
86+ }
87+ }
88+
6689 a .post-title {
6790 color var (-- primary-color )
6891 }
6992 }
7093
94+
7195 .post-date {
7296 width $post-date-width
7397 margin-right $post-item-padding
You can’t perform that action at this time.
0 commit comments