mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Update global styles
This commit is contained in:
@@ -14,13 +14,20 @@ const Global = createGlobalStyle<Props>`
|
|||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
outline: none;
|
outline: none;
|
||||||
|
user-select: text;
|
||||||
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
|
-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
|
||||||
|
|
||||||
|
&::selection {
|
||||||
|
background: ${({ dark, theme }) => (dark ? theme.colors.dark.text : theme.colors.light.text)};
|
||||||
|
color: ${({ dark, theme }) =>
|
||||||
|
dark ? theme.colors.dark.background : theme.colors.light.background};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: ${({ dark, theme }) =>
|
background: ${({ dark, theme }) =>
|
||||||
dark ? theme.colors.dark.background : theme.colors.light.background};
|
dark ? theme.colors.dark.background : theme.colors.light.background};
|
||||||
color: ${({ dark, theme }) => (dark ? theme.colors.dark.text : theme.colors.light.text)};
|
color: ${({ dark, theme }) => (dark ? theme.colors.dark.text : theme.colors.light.text)};
|
||||||
transition: color 250ms ease-in-out, background 250ms ease-in-out;
|
transition: color 250ms ease-in-out, background 250ms ease-in-out;
|
||||||
scroll-behavior: smooth;
|
scroll-behavior: smooth;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user