mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Update scroll bars styles
This commit is contained in:
@@ -17,6 +17,20 @@ const Global = createGlobalStyle<Props>`
|
||||
user-select: text;
|
||||
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
|
||||
|
||||
@media(max-width: 768px) {
|
||||
overflow-x: scroll;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
width: 0;
|
||||
height: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
&::selection {
|
||||
background: ${({ dark, theme }) => (dark ? theme.colors.dark.text : theme.colors.light.text)};
|
||||
color: ${({ dark, theme }) =>
|
||||
@@ -37,11 +51,12 @@ const Global = createGlobalStyle<Props>`
|
||||
}
|
||||
|
||||
body::-webkit-scrollbar {
|
||||
width: 0.5rem;
|
||||
width: 0.5rem !important;
|
||||
}
|
||||
|
||||
body::-webkit-scrollbar-thumb {
|
||||
background-color: ${({ dark, theme }) => (dark ? theme.colors.dark.text : theme.colors.light.text)};
|
||||
background-color: ${({ dark, theme }) =>
|
||||
dark ? theme.colors.dark.text : theme.colors.light.text} !important;
|
||||
}
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user