Skip to content

Commit

Permalink
Merge pull request #148 from lkhrs:lkhrs/issue147
Browse files Browse the repository at this point in the history
Class for current nav item
  • Loading branch information
lkhrs committed May 16, 2023
2 parents 9404413 + 525a94e commit 92c5a05
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ <h1>Simple.css Test Page</h1>
<p>This is a test page filled with common HTML elements.</p>
<nav>
<ul>
<li><a href="#text">Text</a></li>
<li><a class="current" href="#text">Text</a></li>
<li><a href="#embedded">Embedded content</a></li>
<li><a href="#forms">Form elements</a></li>
<li><a href="https://simplecss.org/">Project homepage</a></li>
Expand Down
3 changes: 2 additions & 1 deletion simple.css
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,8 @@ header > nav a:visited {
text-decoration: none;
}

header > nav a:hover {
header > nav a:hover,
header > nav a.current {
border-color: var(--accent);
color: var(--accent);
cursor: pointer;
Expand Down
2 changes: 1 addition & 1 deletion simple.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 92c5a05

Please sign in to comment.