Skip to content

Commit

Permalink
feat(theme): add .hide-scrollbar style (#1835)
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk authored Sep 17, 2024
1 parent 145de7d commit c4e07f2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/theme/system/utils/_scrollbar.less
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,25 @@
.scrollbar-mixin(~'.@{ant-prefix}-table-header, .@{ant-prefix}-table-body');
}
.scrollbar-table-mixin(@scrollbar-table-enabled);

/**
* Hide scrollbar
*
* 隐藏滚动条
*/
.hide-scrollbar {
scrollbar-width: none;
scrollbar-color: transparent transparent;

&::-webkit-scrollbar {
width: 1px;
}

&::-webkit-scrollbar-track {
background: transparent;
}

&::-webkit-scrollbar-thumb {
background-color: transparent;
}
}

0 comments on commit c4e07f2

Please sign in to comment.