Mobile Organized Content #79

Merged
w25tran merged 53 commits from feat/organized-content into main 2021-08-27 15:18:56 -04:00
2 changed files with 13 additions and 1 deletions
Showing only changes of commit be636c5085 - Show all commits

View File

@ -25,6 +25,11 @@
padding: 0.5rem 2rem 0.5rem 0.5rem;
}
.navLinkSelected {
/* smaller to account for marker width */
padding: 0.5rem 1.15rem 0.5rem 0.5rem;
}
.readAll {
font-weight: bold;
}

View File

@ -87,7 +87,14 @@ const Nav = ({ headings, currentIndex, link: Link }: ChildProps) => {
{index === currentIndex && (
<span className={styles.selectedMarker} />
)}
<Link className={styles.navLink} url={heading.url}>
<Link
className={
styles.navLink +
" " +
(index === currentIndex ? styles.navLinkSelected : "")
}
url={heading.url}
>
{heading.title}
</Link>
</div>