Skip to content

Commit

Permalink
Add custom scroll bar (#64)
Browse files Browse the repository at this point in the history
* Add custom scroll bar

* Move styling to GeneralLayout

* Disable custom scrollbar for mobile devices

* Use tailwind breakpoint

Co-authored-by: User1 <xumichael94@yahoo.com>
  • Loading branch information
MZX102208 and User1 committed Aug 13, 2020
1 parent 6bf1de9 commit a95c3ab
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<!DOCTYPE html>
<html ${htmlAttrs}>

<head>
${head}

Expand Down
30 changes: 29 additions & 1 deletion src/layouts/GeneralLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,32 @@ export default {
top:0;
left:0;
}
</style>
@screen md {
/* scrollbar width */
::-webkit-scrollbar {
background-color:#292F362c;
width:8px;
}
/* scrollbar track */
::-webkit-scrollbar-track {
background-color:#292f362c;
}
/* scrollbar handle */
::-webkit-scrollbar-thumb {
background-color:#ffc286;
border-radius:8px;
}
/* scrollbar handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #ce9d6d;
}
::-webkit-scrollbar-button {
display:none
}
}
</style>

0 comments on commit a95c3ab

Please sign in to comment.