Private
Public Access
1
0

hover behavior in nav bar

This commit is contained in:
Sander Roosendaal
2018-09-26 15:04:00 +02:00
parent c1dea26080
commit b2d8f0ff2c
2 changed files with 25 additions and 8 deletions

View File

@@ -13,6 +13,11 @@
padding: 5px; padding: 5px;
} }
.wrapper nav {
padding-top: 0;
padding-bottom: 0;
}
a { a {
text-decoration: none; text-decoration: none;
color: #1c75bc; color: #1c75bc;
@@ -232,18 +237,30 @@
} }
nav li { nav li {
margin: 0.2em; margin: 0;
} padding: 0.2em;
nav a {
color: white;
transition: all .2s ease-in-out;
} }
nav a,
nav a i { nav a i {
color: white; color: white;
} }
nav li:hover,
nav li:hover a,
nav li:hover a i {
color: #1c75bc;
background: white;
}
.nav-active,
.nav-active a,
.nav-active a i {
color: #1c75bc;
background: white;
}
.main-head { .main-head {
grid-area: header; grid-area: header;

View File

@@ -183,7 +183,7 @@
<i class="fas fa-clipboard-list"></i>&nbsp;Workouts <i class="fas fa-clipboard-list"></i>&nbsp;Workouts
</a> </a>
</li> </li>
<li> <li class="nav-active">
<a href="/rowers/new_racing"> <a href="/rowers/new_racing">
<i class="fas fa-flag-checkered"></i>&nbsp;Racing <i class="fas fa-flag-checkered"></i>&nbsp;Racing
</a> </a>