From 2da0508cfc1acc9fdeaca82bb6ac208e66ae239b Mon Sep 17 00:00:00 2001 From: neri Date: Tue, 18 Feb 2020 21:37:42 +0100 Subject: [PATCH] fix nav item lines --- src/components/nav.js | 1 - src/components/nav.module.css | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/nav.js b/src/components/nav.js index be50b26..c37c094 100644 --- a/src/components/nav.js +++ b/src/components/nav.js @@ -38,7 +38,6 @@ export default ({ path }) => { key={title} className={navStyles.navItem + activeClasses(link) + " " + device} activeClassName={navStyles.navItemActive} - activeStyle={{ textDecoration: `solid underline white 0.2em` }} to={`/${link}`} > {title} diff --git a/src/components/nav.module.css b/src/components/nav.module.css index 21dcd32..29d17f5 100644 --- a/src/components/nav.module.css +++ b/src/components/nav.module.css @@ -50,10 +50,12 @@ a.navItem:visited { text-decoration: none; } -a.navItem:hover, -a.navItemActive { +a.navItem:hover { text-decoration: solid underline white 0.1em; } +a.navItem.navItemActive { + text-decoration: solid underline white 0.2em; +} @media only screen and (max-width: 600px) { a.navItem.desktopOnly {