@covalent/components 11.19.7 → 11.19.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/theme/_scrollbar.scss +31 -0
package/package.json
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Minimal scrollbar styling to match the host operating system
|
|
2
|
+
// Uses theme tokens for consistent appearance in light and dark modes
|
|
3
|
+
@mixin scrollbar-theme() {
|
|
4
|
+
// Modern Firefox scrollbar styling
|
|
5
|
+
scrollbar-width: thin;
|
|
6
|
+
scrollbar-color: var(--cv-theme-outline) var(--cv-theme-surface-container);
|
|
7
|
+
|
|
8
|
+
// WebKit browsers (Chrome, Safari, Edge, Opera)
|
|
9
|
+
&::-webkit-scrollbar {
|
|
10
|
+
width: 12px;
|
|
11
|
+
height: 12px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&::-webkit-scrollbar-track {
|
|
15
|
+
background: var(--cv-theme-surface-container);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&::-webkit-scrollbar-thumb {
|
|
19
|
+
background: var(--cv-theme-outline);
|
|
20
|
+
border-radius: 6px;
|
|
21
|
+
border: 2px solid var(--cv-theme-surface-container);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&::-webkit-scrollbar-thumb:hover {
|
|
25
|
+
background: var(--cv-theme-on-surface-variant);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&::-webkit-scrollbar-corner {
|
|
29
|
+
background: var(--cv-theme-surface-container);
|
|
30
|
+
}
|
|
31
|
+
}
|