Skip to content

Commit

Permalink
[edit] offcanvas scrollbar effect
Browse files Browse the repository at this point in the history
  • Loading branch information
Joy-port committed Aug 17, 2021
1 parent 7ba0c36 commit f7e58b5
Show file tree
Hide file tree
Showing 6 changed files with 251 additions and 185 deletions.
35 changes: 26 additions & 9 deletions app/assets/style/all.css

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

2 changes: 1 addition & 1 deletion app/assets/style/all.css.map

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions app/assets/style/components/_scrollbar.scss
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
.scroll-bar{
//捲軸底色
&::-webkit-scrollbar-track {
background-color: map-get($theme-colors, "white");
}
//捲軸寬度
&::-webkit-scrollbar {
width: 2px;
background-color: black;
}
//捲軸底色
&::-webkit-scrollbar-track {
background-color: map-get($theme-colors, "white");
}
//捲軸本體顏色
&::-webkit-scrollbar-thumb {
background-color: map-get($theme-colors, "secondary");
}
//hover本體顏色改動效果
&::-webkit-scrollbar-thumb:hover {
background-color: map-get($theme-colors, "primary");
}

}
7 changes: 4 additions & 3 deletions app/assets/style/utilities/_sizing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@
.w-40px {
width: 40px;
}

.w-65 {
width: 65px;
}
.w-120 {
width: 120px;
}
.w-128{
.w-128 {
width: 128px;
}

.w-540 {
width: 540px;
}
.w-md-350 {
@include media-breakpoint-up(md) {
width: 350px;
Expand Down
12 changes: 3 additions & 9 deletions app/assets/style/utilities/_spacing.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
padding-bottom: 44px;
}

.mt-60{
margin-top: 60px;
.pt-60 {
padding-top: 60px;
}

.mb-42 {
Expand All @@ -39,10 +39,4 @@
@include media-breakpoint-up(md) {
margin-bottom: 42px;
}
}

.mt-md-82 {
@include media-breakpoint-up(md) {
margin-top: 82px;
}
}
}
Loading

0 comments on commit f7e58b5

Please sign in to comment.