diff --git a/style.css b/style.css index 6ca5e81..f90718b 100644 --- a/style.css +++ b/style.css @@ -2532,12 +2532,13 @@ html.navbar-absolute #leftbar_part2.sticky { } #leftbar_part2_inner { - max-height: calc(100vh - 110px - var(--leftbar-part3-height, 0px)); - overflow-y: auto; padding: 10px; } -#leftbar_part2_inner::-webkit-scrollbar { +#leftbar_part2.sticky #leftbar_part2_inner { + max-height: calc(100vh - 110px - var(--leftbar-part3-height, 0px)); + overflow-y: auto; +} width: 6px; @@ -12486,6 +12487,10 @@ article .post-content .huhua a:before { #leftbar_part3 { margin-top: 10px; transition: top 0.3s ease, transform 0.3s ease; + max-height: 50vh; + overflow: hidden; + display: flex; + flex-direction: column; } #leftbar_part3.sticky { @@ -12493,15 +12498,36 @@ article .post-content .huhua a:before { top: calc(80px + var(--leftbar-part2-height, 300px)); width: 240px; max-height: var(--leftbar-part3-max-height, 50vh); - overflow: hidden; - display: flex; - flex-direction: column; } -#leftbar_part3.sticky .card-body { +#leftbar_part3 .card-body { overflow-y: auto; flex: 1; min-height: 0; + padding: 12px 16px; +} + +#leftbar_part3 .card-body::-webkit-scrollbar { + width: 6px; +} + +#leftbar_part3 .card-body::-webkit-scrollbar-track { + background: transparent; +} + +#leftbar_part3 .card-body::-webkit-scrollbar-thumb { + border-width: 1px; + background-color: rgba(0, 0, 0, 0.2); +} + +html.darkmode #leftbar_part3 .card-body::-webkit-scrollbar-thumb { + border-width: 1px; + background-color: rgba(255, 255, 255, 0.2); +} + +#leftbar_part3 .card-body::-webkit-scrollbar-button { + height: 5px; + pointer-events: none; } body.leftbar-can-headroom.headroom---unpinned #leftbar_part3.sticky { @@ -12522,10 +12548,6 @@ html.navbar-absolute #leftbar_part3.sticky { } } -#leftbar_part3 .card-body { - padding: 12px 16px; -} - .todo-title { display: flex; align-items: center;