Skip to content

Commit e66dfdc

Browse files
🎨 style: Update App.css scrollbar styles
- Add support for customizable scrollbar styles - Include both standard and dark mode scrollbar styles - Remove prefers-reduced-motion media query for animation This commit enhances the user experience by adding customizable scrollbar styles for improved visual consistency and removes the animation for better performance on certain devices.
1 parent 71b66bb commit e66dfdc

1 file changed

Lines changed: 30 additions & 6 deletions

File tree

‎apps/desktop/src/App.css‎

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,40 @@ button {
4141
-webkit-app-region: no-drag;
4242
}
4343

44-
/* @media (prefers-reduced-motion: no-preference) {
45-
a:nth-of-type(2) .logo {
46-
animation: logo-spin infinite 20s linear;
47-
}
48-
} */
49-
5044
.card {
5145
padding: 2em;
5246
}
5347

5448
.read-the-docs {
5549
color: #888;
50+
}
51+
52+
/* Standard mode scrollbar styles */
53+
::-webkit-scrollbar {
54+
width: 8px;
55+
}
56+
57+
::-webkit-scrollbar-track {
58+
@apply bg-gray-200; /* Standard mode track color */
59+
}
60+
61+
::-webkit-scrollbar-thumb {
62+
@apply bg-gray-400 rounded-lg border border-gray-200; /* Standard mode thumb color */
63+
}
64+
65+
::-webkit-scrollbar-thumb:hover {
66+
@apply bg-gray-500; /* Standard mode thumb hover color */
67+
}
68+
69+
/* Dark mode scrollbar styles */
70+
.dark ::-webkit-scrollbar-track {
71+
@apply bg-gray-700; /* Dark mode track color */
72+
}
73+
74+
.dark ::-webkit-scrollbar-thumb {
75+
@apply bg-gray-500 rounded-lg border border-gray-700; /* Dark mode thumb color */
76+
}
77+
78+
.dark ::-webkit-scrollbar-thumb:hover {
79+
@apply bg-gray-400; /* Dark mode thumb hover color */
5680
}

0 commit comments

Comments
 (0)