Keep current page link in nav, mark with aria-current for focused style
Every page now shows all nav links instead of omitting its own. Current page link gets aria-current="page" with reduced opacity & bold weight so visitors see where they stand.
This commit is contained in:
parent
eef1b92c48
commit
1d2427f89c
6 changed files with 12 additions and 5 deletions
|
|
@ -20,6 +20,13 @@
|
|||
margin-bottom: 2em;
|
||||
}
|
||||
|
||||
.nav-links a[aria-current="page"] {
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
.content-wide {
|
||||
max-width: 960px;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue