Skip to content

Commit

Permalink
Fix nav link colors (closes #2 🤞🏾), limit CSS selector scope
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonappah committed Jun 27, 2024
1 parent 980f68d commit c3b776c
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import useMedia from '../utils/useMediaQuery'
const menuBg = 'var(--text-dark)'
const gradBg = 'linear-gradient(180deg, rgba(0, 0, 0, 0.67) 0%, rgba(0, 0, 0, 0.00) 100%)'
const styles = `
.nav-links > a:any-link {
color: var(--text);
}
.menubar {
background: ${gradBg};
}
Expand All @@ -14,16 +18,16 @@ const styles = `
background: ${menuBg};
}
summary > svg {
.menubar > details > summary > svg {
width: 32px;
height: 32px;
}
summary {
.menubar > details > summary {
list-style: none;
}
summary::-webkit-details-marker {
.menubar > details > summary::-webkit-details-marker {
display: none;
}`
function Navbar() {
Expand Down Expand Up @@ -126,6 +130,7 @@ function NavLinks(props: { mobile: boolean }) {
const { mobile } = props
return (
<nav
className='nav-links'
style={{
display: 'flex',
flexDirection: mobile ? 'column' : 'row',
Expand Down

0 comments on commit c3b776c

Please sign in to comment.