Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,28 @@
@unocss default;
@unocss;

* {
scrollbar-color: inherit;
}

Comment on lines +5 to +8
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

就是用来统一容器样式

body {
scrollbar-color: var(--color-scrollbar-thumb) var(--color-scrollbar-track);
/* 对于webkit浏览器的滚动条样式 */
scrollbar-width: thin;
}

body[arco-theme='dark'] {
--color-scrollbar-thumb: #6b6b6b;
--color-scrollbar-track: #2d2d2d;
--color-scrollbar-thumb-hover: #8c8c8c;
}

body[arco-theme='light'] {
--color-scrollbar-thumb: #6b6b6b;
--color-scrollbar-track: #f0f0f0;
--color-scrollbar-thumb-hover: #8c8c8c;
}

#root {
overscroll-behavior: none;
contain: content;
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不需要。#root 已是最外层。不影响

overflow: auto;
}

:root {
Expand Down
Loading
Loading