Skip to content

Commit 43d5b24

Browse files
committed
Refactor scrollbar styles for improved visibility and remove dark mode support
1 parent c5c9a6b commit 43d5b24

File tree

1 file changed

+3
-34
lines changed

1 file changed

+3
-34
lines changed

src/containers/viewer/index.css

Lines changed: 3 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -33,48 +33,17 @@
3333

3434
/* 鼠标悬停时显示滚动条 */
3535
.scrolling-html-viewer-page:hover {
36-
scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
36+
scrollbar-color: #ccc transparent;
3737
}
3838

3939
.scrolling-html-viewer-page:hover::-webkit-scrollbar-thumb {
40-
background: rgba(0, 0, 0, 0.3);
40+
background: #ccc;
4141
}
4242

4343
.scrolling-html-viewer-page:hover::-webkit-scrollbar-thumb:hover {
44-
background: rgba(0, 0, 0, 0.5);
44+
background: #ccc;
4545
}
4646

47-
/* 暗黑模式下的滚动条样式 */
48-
body[style*="background: rgba(47, 52, 55, 1)"]
49-
.scrolling-html-viewer-page:hover,
50-
body[style*="background:rgba(47,52,55,1)"] .scrolling-html-viewer-page:hover,
51-
[style*="background-color: rgba(44, 47, 49, 1)"]
52-
.scrolling-html-viewer-page:hover,
53-
[style*="backgroundColor: rgba(44,47,49,1)"] .scrolling-html-viewer-page:hover {
54-
scrollbar-color: rgba(255, 255, 255, 0.4) transparent;
55-
}
56-
57-
body[style*="background: rgba(47, 52, 55, 1)"]
58-
.scrolling-html-viewer-page:hover::-webkit-scrollbar-thumb,
59-
body[style*="background:rgba(47,52,55,1)"]
60-
.scrolling-html-viewer-page:hover::-webkit-scrollbar-thumb,
61-
[style*="background-color: rgba(44, 47, 49, 1)"]
62-
.scrolling-html-viewer-page:hover::-webkit-scrollbar-thumb,
63-
[style*="backgroundColor: rgba(44,47,49,1)"]
64-
.scrolling-html-viewer-page:hover::-webkit-scrollbar-thumb {
65-
background: rgba(255, 255, 255, 0.4);
66-
}
67-
68-
body[style*="background: rgba(47, 52, 55, 1)"]
69-
.scrolling-html-viewer-page:hover::-webkit-scrollbar-thumb:hover,
70-
body[style*="background:rgba(47,52,55,1)"]
71-
.scrolling-html-viewer-page:hover::-webkit-scrollbar-thumb:hover,
72-
[style*="background-color: rgba(44, 47, 49, 1)"]
73-
.scrolling-html-viewer-page:hover::-webkit-scrollbar-thumb:hover,
74-
[style*="backgroundColor: rgba(44,47,49,1)"]
75-
.scrolling-html-viewer-page:hover::-webkit-scrollbar-thumb:hover {
76-
background: rgba(255, 255, 255, 0.6);
77-
}
7847
.popup-menu-container {
7948
position: absolute;
8049
left: 100px;

0 commit comments

Comments
 (0)