Skip to content

Commit c7f2268

Browse files
committed
feat(scrollbars): webkit scrollbar styling for desktop
1 parent e6e2e42 commit c7f2268

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

ionic/components.core.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
@import
44
"components/app/normalize",
55
"components/app/structure",
6+
"components/app/scrollbars",
67
"components/app/typography",
78
"util/util";
89

ionic/components/app/scrollbars.scss

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
2+
// Scrollbars
3+
// --------------------------------------------------
4+
// Styling for dekstop webkit browsers
5+
// These do not apply for mobile browsers
6+
7+
::-webkit-scrollbar {
8+
width: 9px;
9+
}
10+
11+
::-webkit-scrollbar-thumb:vertical,
12+
::-webkit-scrollbar-thumb:horizontal {
13+
background: rgba(0, 0, 0, 0.4);
14+
border: 2px solid transparent;
15+
border-radius: 20px;
16+
background-clip: padding-box;
17+
min-height: 10px;
18+
}
19+
20+
::-webkit-scrollbar-thumb:vertical:active,
21+
::-webkit-scrollbar-thumb:horizontal:active {
22+
background: rgba(0, 0, 0, 0.6);
23+
border: 2px solid transparent;
24+
border-radius: 20px;
25+
background-clip: padding-box;
26+
min-height: 10px;
27+
}

0 commit comments

Comments
 (0)