Skip to content

Commit

Permalink
feat: 加上全局滚动条样式
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Jan 9, 2023
1 parent c7341a7 commit 365e065
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/styles/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import './element-plus.scss';
@import './transition.scss';

html {
body {
margin: 0;
Expand Down Expand Up @@ -72,7 +73,39 @@ a {
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
}

.popover-scrollbar-y {
margin: 0 -12px;
padding: 0 12px;
}

::-webkit-scrollbar {
width: 6px;
}

::-webkit-scrollbar:horizontal {
height: 6px;
}

::-webkit-scrollbar-track {
border-radius: 10px;
}

::-webkit-scrollbar-thumb {
background-color: #0003;
border-radius: 10px;
transition: all 0.2s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
cursor: pointer;
background-color: #0000004d;
}

.dark ::-webkit-scrollbar-thumb {
background-color: #fff3;
}

.dark ::-webkit-scrollbar-thumb:hover {
background-color: #fff6;
}

0 comments on commit 365e065

Please sign in to comment.