diff --git a/assets/sass/_zen.scss b/assets/sass/_zen.scss index 02d99ca..6d0c68d 100644 --- a/assets/sass/_zen.scss +++ b/assets/sass/_zen.scss @@ -196,17 +196,13 @@ figure { } &:active, - &.active { + &[aria-current] { background-color: var(--color-brand); text-decoration: underline; } } } -.menu a.active { - text-decoration: none; -} - // Search .search-text { diff --git a/assets/sass/base/links/_links.scss b/assets/sass/base/links/_links.scss index c0d5611..76342ae 100644 --- a/assets/sass/base/links/_links.scss +++ b/assets/sass/base/links/_links.scss @@ -32,6 +32,12 @@ a:active { color: var(--color-link-active); } +// Remove underline from links to current page to +// indicate that there is no need to click on it. +[aria-current] { + text-decoration: none; +} + .link-nav, %link-nav { a { diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index 1684844..eb6296e 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -4,7 +4,7 @@ {{ $currentPage := . -}} {{ range site.Menus.main -}} -
  • {{ .Pre }}{{ .Name }}{{ .Post }}
  • +
  • {{ .Pre }}{{ .Name }}{{ .Post }}
  • {{ end -}} {{ else -}} @@ -12,12 +12,12 @@ {{ $currentSection := .Section -}} {{ $currentID := "" -}} {{ with .File }}{{ $currentID = .UniqueID }}{{ end -}} -{{ with site.Home }}
  • {{ i18n "menu_home" }}
  • {{ end }} +{{ with site.Home }}
  • {{ i18n "menu_home" }}
  • {{ end }} {{ range where site.RegularPages "Section" "" -}} -
  • {{ .Title }}
  • +
  • {{ .Title }}
  • {{ end -}} {{ range site.Sections -}} -
  • {{ .Title }}
  • +
  • {{ .Title }}
  • {{ end -}} {{ end -}} diff --git a/layouts/partials/mobilemenu.html b/layouts/partials/mobilemenu.html index a665295..d531437 100644 --- a/layouts/partials/mobilemenu.html +++ b/layouts/partials/mobilemenu.html @@ -16,7 +16,7 @@ {{ $currentPage := . -}} {{ range site.Menus.main -}} -
  • {{ .Pre }}{{ .Name }}{{ .Post }}
  • +
  • {{ .Pre }}{{ .Name }}{{ .Post }}
  • {{ end -}} {{ else -}} @@ -24,12 +24,12 @@ {{ $currentSection := .Section -}} {{ $currentID := "" -}} {{ with .File }}{{ $currentID = .UniqueID }}{{ end -}} - {{ with site.Home }}
  • {{ i18n "menu_home" }}
  • {{ end }} + {{ with site.Home }}
  • {{ i18n "menu_home" }}
  • {{ end }} {{ range where site.RegularPages "Section" "" -}} -
  • {{ .Title }}
  • +
  • {{ .Title }}
  • {{ end -}} {{ range site.Sections -}} -
  • {{ .Title }}
  • +
  • {{ .Title }}
  • {{ end -}} {{ end -}} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index de4d9f7..cf081ca 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -4,10 +4,10 @@