| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- @import './index.scss';
- // 滚动条的宽度
- ::-webkit-scrollbar {
- width : 2px !important;
- height: 2px !important;
- }
- ::-webkit-scrollbar-track-piece {
- background-color: var(--next-bg-main-color);
- }
- // 滚动条的设置
- ::-webkit-scrollbar-thumb {
- background-color: rgba(144, 147, 153, 0.3);
- background-clip : padding-box;
- min-height : 28px;
- border-radius : 5px;
- transition : 0.3s background-color;
- }
- ::-webkit-scrollbar-thumb:hover {
- background-color: rgba(144, 147, 153, 0.5);
- }
- // element plus scrollbar
- .el-scrollbar__bar.is-vertical {
- width: 8px !important;
- }
- .el-scrollbar__bar.is-horizontal {
- height: 8px !important;
- }
- /* 页面宽度小于768px
- -------------------------------
- @media screen and (max-width: $sm) {
- // 滚动条的宽度
- ::-webkit-scrollbar {
- width: 3px !important;
- height: 3px !important;
- }
- ::-webkit-scrollbar-track-piece {
- background-color: var(--next-bg-main-color);
- }
- // 滚动条的设置
- ::-webkit-scrollbar-thumb {
- background-color: rgba(144, 147, 153, 0.3);
- background-clip: padding-box;
- min-height: 28px;
- border-radius: 5px;
- transition: 0.3s background-color;
- }
- ::-webkit-scrollbar-thumb:hover {
- background-color: rgba(144, 147, 153, 0.5);
- }
- // element plus scrollbar
- .el-scrollbar__bar.is-vertical {
- width: 2px !important;
- }
- .el-scrollbar__bar.is-horizontal {
- height: 2px !important;
- }
- }
- */
- /* 页面宽度大于768px
- -------------------------------
- @media screen and (min-width: 769px) {
- // 滚动条的宽度
- ::-webkit-scrollbar {
- width: 7px;
- height: 7px;
- }
- ::-webkit-scrollbar-track-piece {
- background-color: var(--next-bg-main-color);
- }
- // 滚动条的设置
- ::-webkit-scrollbar-thumb {
- background-color: rgba(144, 147, 153, 0.3);
- background-clip: padding-box;
- min-height: 28px;
- border-radius: 5px;
- transition: 0.3s background-color;
- }
- ::-webkit-scrollbar-thumb:hover {
- background-color: rgba(144, 147, 153, 0.5);
- }
- }
- */
|