|
| 1 | +<style> |
| 2 | + #nav-menu .nav-link.active, |
| 3 | + #nav-menu .nav-dropdown-link.active { |
| 4 | + font-weight: 700; |
| 5 | + color: rgb(var(--color-primary-700)); |
| 6 | + } |
| 7 | + |
| 8 | + .dark #nav-menu .nav-link.active, |
| 9 | + .dark #nav-menu .nav-dropdown-link.active { |
| 10 | + color: rgb(var(--color-primary-300)); |
| 11 | + } |
| 12 | + |
| 13 | + #nav-menu:hover .nav-link.active:not(:hover), |
| 14 | + #nav-menu:hover .nav-dropdown-link.active:not(:hover) { |
| 15 | + font-weight: 600; |
| 16 | + color: inherit; |
| 17 | + } |
| 18 | +</style> |
| 19 | + |
1 | 20 | <header id="site-header" class="header"> |
2 | 21 | <nav class="navbar px-3 flex justify-left"> |
3 | 22 | <div class="order-0 h-100"> |
|
63 | 82 | class="nav-link {{ range .Children }} |
64 | 83 | {{ $childURL := .URL | absLangURL }} |
65 | 84 | {{ $active := eq $childURL $pageURL }} |
66 | | - {{ if $active }}active font-bold text-black/90 dark:text-white{{ end }} |
| 85 | + {{ if $active }}active{{ end }} |
67 | 86 | {{ end }} inline-flex items-center"> |
68 | 87 | {{ .Name }} |
69 | 88 | <svg class="h-4 w-4 fill-current inline-block" viewBox="0 0 20 20"> |
|
87 | 106 | {{- end -}} |
88 | 107 | <li class="nav-dropdown-item"> |
89 | 108 | <a |
90 | | - class="nav-dropdown-link {{ if $active }}active font-bold text-black/90 dark:text-white{{- end -}}" |
| 109 | + class="nav-dropdown-link {{ if $active }}active{{- end -}}" |
91 | 110 | {{ if findRE `^http` .URL }} |
92 | 111 | target="_blank" rel="noopener" |
93 | 112 | {{ end }} |
|
110 | 129 | {{- end -}} |
111 | 130 | <li class="nav-item"> |
112 | 131 | <a |
113 | | - class="nav-link {{ if $active }}active font-bold text-black/90 dark:text-white{{- end -}}" |
| 132 | + class="nav-link {{ if $active }}active{{- end -}}" |
114 | 133 | {{ if findRE `^http` .URL }} |
115 | 134 | target="_blank" rel="noopener" |
116 | 135 | {{ end }} |
|
0 commit comments