Skip to content

Commit

Permalink
style: changed board scrollbar style
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-Web3 committed Jul 27, 2023
1 parent 6ec575b commit 5d1aaa0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/sass/index.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
@use './resets';
@use './variables' as *;

html {
&::-webkit-scrollbar {
width: 6px !important;
height: 6px !important;
}
&::-webkit-scrollbar-thumb {
background-color: rgba(#000000, 0.2);
}
&:has(body > #root > .homepage[data-theme='dark']) {
&::-webkit-scrollbar-thumb {
background-color: rgba($white, 0.16) !important;
}
}
}
body {
font-family: 'Plus Jakarta Sans', Nunito, sans-serif;
display: grid;
Expand Down
4 changes: 4 additions & 0 deletions src/sass/pages/homepage.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@
.body {
background-color: $dark-300;

&::-webkit-scrollbar-thumb {
background-color: rgba($white, 0.16);
}

&__add-board {
background: linear-gradient(
180deg,
Expand Down
8 changes: 8 additions & 0 deletions src/sass/shared/body.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
padding: $spacer;
overflow-x: auto;

&::-webkit-scrollbar {
width: 6px !important;
height: 6px !important;
}
&::-webkit-scrollbar-thumb {
background-color: rgba(#000000, 0.2);
}

@include screen(700) {
min-height: unset;
}
Expand Down

0 comments on commit 5d1aaa0

Please sign in to comment.