Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 492439d

Browse files
added hover color to navlinks
1 parent 3ac9cd5 commit 492439d

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

layouts/partials/header.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
{{ else if eq $text "Home" }}
2727
{{ $sitetitle := "OSU Security Club - Oregon State University Security Club" }}
2828
<li class="nav-item px-1">
29-
<a class="nav-link text-black {{ if eq $page.Title $sitetitle }}userisonthisnavnow{{ end }}" href="{{ .URL }}">{{ $text }}</a>
29+
<a class="nav-link highlight-orange-nav {{ if eq $page.Title $sitetitle }}userisonthisnavnow{{ end }}" href="{{ .URL }}">{{ $text }}</a>
3030
</li>
3131
{{ else }}
3232
<li class="nav-item px-1">
33-
<a class="nav-link text-black {{ if eq $text $page.Title }}userisonthisnavnow{{ end }}" href="{{ .URL }}">{{ $text }}</a>
33+
<a class="nav-link highlight-orange-nav {{ if eq $text $page.Title }}userisonthisnavnow{{ end }}" href="{{ .URL }}">{{ $text }}</a>
3434
</li>
3535
{{ end }}
3636
{{ end }}

static/caseyhates.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ body {
1010
display: flex;
1111
flex-direction: column;
1212
}
13+
1314
#main {
1415
margin-top: 150px;
1516
flex-grow: 1;
@@ -38,3 +39,14 @@ body {
3839
.userisonthisnavnow {
3940
border-bottom: 3px solid var(--primary-color);
4041
}
42+
43+
.highlight-orange-nav {
44+
color: black;
45+
}
46+
47+
.highlight-orange-nav:hover {
48+
color: var(--secondary-color) !important;
49+
}
50+
51+
52+

0 commit comments

Comments
 (0)