Skip to content

Commit

Permalink
fix lighthouse issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ricokahler committed May 11, 2020
1 parent 71a02dc commit 5a1034c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
23 changes: 16 additions & 7 deletions website/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ a {
.search {
display: none;
}

.search-label {
display: none;
}
}

.nav {
Expand All @@ -88,8 +92,19 @@ a {
}
}

.list {
.jump-to {
margin: 0;
margin-top: 3rem;
font-size: 18px;
font-weight: bold;
}

.search-label {
margin-right: 1rem;
flex: 0 0 auto;
}

.list {
list-style-type: none;
padding: 0;
}
Expand All @@ -98,12 +113,6 @@ a {
margin-top: 0.5rem;
}

.h2 {
font-size: 18px;
font-weight: bold;
margin: 0;
}

.nav-link {
color: #444;
text-decoration: none;
Expand Down
4 changes: 3 additions & 1 deletion website/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ function App({ docs, readmeHtml }: Props) {
<a className="logo" href="/">
<h1>color2k</h1>
</a>
<label className="search-label" htmlFor="search">Search</label>
<input
id="search"
autoFocus
className="search"
value={value}
Expand Down Expand Up @@ -56,8 +58,8 @@ function App({ docs, readmeHtml }: Props) {
</header>

<nav className="nav">
<h2 className="jump-to">Jump to</h2>
<ul className="list">
<h2 className="h2">Jump to</h2>
{docs.map(({ functionName, id }) => {
const index = functionName
.toLowerCase()
Expand Down

0 comments on commit 5a1034c

Please sign in to comment.