Skip to content

Commit 2ba1298

Browse files
author
Aytackydln
committed
nav-title contrast fix
1 parent c52f119 commit 2ba1298

2 files changed

Lines changed: 20 additions & 10 deletions

File tree

themes/aurora/assets/scss/_nav.scss

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,18 @@ nav#main-nav {
1212
padding-left: 9px;
1313
}
1414

15+
.nav-section {
16+
padding: 4px;
17+
border-radius: 8px;
18+
border-bottom: 0.5px solid rgba($text-primary, .15);
19+
border-top: 0.5px solid rgba($text-primary, .15);
20+
}
21+
1522
.nav-title {
23+
color: $text-primary;
1624
text-transform: uppercase;
17-
opacity: .4;
18-
font-size: .9rem;
25+
font-size: 1rem;
26+
font-weight: bold;
1927
}
2028

2129
.nav-list {

themes/aurora/layouts/partials/nav.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,16 @@
1717

1818
{{ $cur := . }}
1919
{{ range $.Site.Sections }}
20-
<span class="nav-title">{{ .Title }}</span>
21-
<ul class="nav-list">
22-
{{ range .Pages }}
23-
<li class="{{ if eq $cur.Permalink .Permalink }}active{{ end }}">
24-
<a href="{{ .Permalink }}">{{ .Title }}</a>
25-
</li>
26-
{{ end }}
27-
</ul>
20+
<div class="nav-section">
21+
<span class="nav-title">{{ .Title }}</span>
22+
<ul class="nav-list">
23+
{{ range .Pages }}
24+
<li class="{{ if eq $cur.Permalink .Permalink }}active{{ end }}">
25+
<a href="{{ .Permalink }}">{{ .Title }}</a>
26+
</li>
27+
{{ end }}
28+
</ul>
29+
</div>
2830
{{ end }}
2931
</div>
3032
</div>

0 commit comments

Comments
 (0)