mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
feat(scrollbars): webkit scrollbar styling for desktop
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
@import
|
||||
"components/app/normalize",
|
||||
"components/app/structure",
|
||||
"components/app/scrollbars",
|
||||
"components/app/typography",
|
||||
"util/util";
|
||||
|
||||
|
||||
27
ionic/components/app/scrollbars.scss
Normal file
27
ionic/components/app/scrollbars.scss
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
// Scrollbars
|
||||
// --------------------------------------------------
|
||||
// Styling for dekstop webkit browsers
|
||||
// These do not apply for mobile browsers
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 9px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:vertical,
|
||||
::-webkit-scrollbar-thumb:horizontal {
|
||||
background: rgba(0, 0, 0, 0.4);
|
||||
border: 2px solid transparent;
|
||||
border-radius: 20px;
|
||||
background-clip: padding-box;
|
||||
min-height: 10px;
|
||||
}
|
||||
|
||||
::-webkit-scrollbar-thumb:vertical:active,
|
||||
::-webkit-scrollbar-thumb:horizontal:active {
|
||||
background: rgba(0, 0, 0, 0.6);
|
||||
border: 2px solid transparent;
|
||||
border-radius: 20px;
|
||||
background-clip: padding-box;
|
||||
min-height: 10px;
|
||||
}
|
||||
Reference in New Issue
Block a user