File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,30 @@ const PostTocBlock = styled(Sticky)`
23
23
margin-left: 5rem;
24
24
border-left: 2px solid ${ palette . gray2 } ;
25
25
padding-left: 0.75rem;
26
+ padding-right: 0.75rem;
26
27
padding-top: 0.25rem;
27
28
padding-bottom: 0.25rem;
28
29
color: ${ palette . gray6 } ;
29
30
line-height: 1.5;
30
31
font-size: 0.875rem;
32
+ max-height: calc(100vh - 128px);
33
+ overflow-y: auto;
34
+ overflow-x: hidden;
35
+
36
+ &::-webkit-scrollbar {
37
+ border-radius: 1px;
38
+ width: 2px;
39
+ &:hover {
40
+ width: 16px;
41
+ }
42
+ background: ${ palette . gray1 } ;
43
+ }
44
+
45
+ &::-webkit-scrollbar-thumb {
46
+ z-index: 100;
47
+ background: ${ palette . gray8 } ;
48
+ /* -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.75); */
49
+ }
31
50
` ;
32
51
33
52
const TocItem = styled . div < { active : boolean } > `
You can’t perform that action at this time.
0 commit comments