@qq1948037137/adminsmart-ui 0.0.0-stage → 0.1.21

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.
@@ -0,0 +1,48 @@
1
+ /* 自有页面统一采用细滚动条;悬停或键盘聚焦时显示滑块。 */
2
+ html,
3
+ * {
4
+ scrollbar-width: thin;
5
+ scrollbar-color: transparent transparent;
6
+ }
7
+
8
+ *:hover,
9
+ *:focus-within {
10
+ scrollbar-color: var(--ant-color-border-secondary, #eaeaea) transparent;
11
+ }
12
+
13
+ *::-webkit-scrollbar {
14
+ width: 8px;
15
+ height: 8px;
16
+ }
17
+
18
+ *::-webkit-scrollbar-track {
19
+ background: transparent;
20
+ }
21
+
22
+ *::-webkit-scrollbar-thumb {
23
+ border: 2px solid transparent;
24
+ border-radius: 8px;
25
+ background: transparent;
26
+ background-clip: padding-box;
27
+ }
28
+
29
+ *:hover::-webkit-scrollbar-thumb,
30
+ *:focus-within::-webkit-scrollbar-thumb {
31
+ background-color: var(--ant-color-border-secondary, #eaeaea);
32
+ }
33
+
34
+ *::-webkit-scrollbar-thumb:hover,
35
+ *::-webkit-scrollbar-thumb:active {
36
+ background-color: var(--ant-color-border, #d9d9d9);
37
+ }
38
+
39
+ @media (hover: none) {
40
+ html,
41
+ * {
42
+ scrollbar-color: var(--ant-color-border-secondary, #eaeaea) transparent;
43
+ }
44
+
45
+ *::-webkit-scrollbar-thumb {
46
+ background-color: var(--ant-color-border-secondary, #eaeaea);
47
+ }
48
+ }