Skip to content

Commit

Permalink
styling body scrollbar to match nav scrollbar
Browse files Browse the repository at this point in the history
medium screen sizes (details below stage) can have a body scrollbar
  • Loading branch information
landjonathan committed Nov 14, 2020
1 parent 2b846fb commit 68eb042
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/assets/styles/sass/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ body {
color: var(--text);
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;

@include medium {
&::-webkit-scrollbar {
width: 10px;
background: var(--bg-main);
}

&::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: var(--bg-dark);
}
}
}

body.no-transition * {
Expand Down
10 changes: 10 additions & 0 deletions src/assets/styles/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/assets/styles/style.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 68eb042

Please sign in to comment.