Skip to content

Commit c4e07f2

Browse files
authored
feat(theme): add .hide-scrollbar style (#1835)
1 parent 145de7d commit c4e07f2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

packages/theme/system/utils/_scrollbar.less

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,25 @@
5151
.scrollbar-mixin(~'.@{ant-prefix}-table-header, .@{ant-prefix}-table-body');
5252
}
5353
.scrollbar-table-mixin(@scrollbar-table-enabled);
54+
55+
/**
56+
* Hide scrollbar
57+
*
58+
* 隐藏滚动条
59+
*/
60+
.hide-scrollbar {
61+
scrollbar-width: none;
62+
scrollbar-color: transparent transparent;
63+
64+
&::-webkit-scrollbar {
65+
width: 1px;
66+
}
67+
68+
&::-webkit-scrollbar-track {
69+
background: transparent;
70+
}
71+
72+
&::-webkit-scrollbar-thumb {
73+
background-color: transparent;
74+
}
75+
}

0 commit comments

Comments
 (0)