Skip to content

Commit

Permalink
style: change scrollbar width and hover color for docs nav and sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Aug 23, 2024
1 parent f92b229 commit 8aa8ded
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
11 changes: 6 additions & 5 deletions assets/main/scss/_sidebar.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
.sidebar {
scrollbar-width: thin;

&:hover {
scrollbar-color: var(--#{$prefix}primary) rgba(0,0,0,0);
}

@if $fixedSidebar {
@include media-breakpoint-up(lg) {
height: calc(100vh - 84px);
overflow: auto;
position: sticky;
scrollbar-width: thin;
top: 84px;

&:hover {
scrollbar-color: var(--#{$prefix}primary) rgba(0,0,0,0);
}
}
}
}
Expand Down
5 changes: 5 additions & 0 deletions assets/main/scss/docs/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

.docs-nav {
word-break: break-word;
scrollbar-width: thin;

&:hover {
scrollbar-color: var(--#{$prefix}primary) rgba(0,0,0,0);
}

@include media-breakpoint-up(xxl) {
position: sticky;
Expand Down

0 comments on commit 8aa8ded

Please sign in to comment.