ISSUE-008 - Hacked together a solution that can softly highlight the NavLink on the current route. And can handle the hover without relying on :hover.

This commit is contained in:
Kyle Geib committed 2021-12-22 17:50:17 -05:00
1 parent f4ccb9b3dd
commit b44e3ff42c
3 files changed
+47 -13

No files matched your search

+6 -2
View File
@@ -10,6 +10,7 @@ export const theme = {
blue: "#387af5",
pink: "#eb57a3",
grey: "#aaa",
lightGrey: "#ddd",
darkGrey: "#303030",
videoFrameBG: "#333",
},
@@ -29,8 +30,6 @@ export const GlobalStyle = createGlobalStyle<MainThemeProps>`
*::before { box-sizing: border-box; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
a { color: ${({ theme }) => theme.colors.blue} }
a:hover { color: ${({ theme }) => theme.colors.pink} }
input,
textarea,
@@ -42,4 +41,9 @@ export const GlobalStyle = createGlobalStyle<MainThemeProps>`
padding: 70px 0 20px;
min-height: calc(100vh - 50px);
}
.activeNavLink {
border-color: ${({ theme }) => theme.colors.darkGrey};
font-style: italic;
text-decoration: underline;
}
`;