Skip to content

Commit a71271b

Browse files
committed
corrected the navbar animation
1 parent 914e926 commit a71271b

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

_includes/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<div class="ml-auto mr-4">
1010
<ul class="navbar-nav">
1111
{% if page.active == "home" %}
12-
<li class="nav-item active"><a class="nav-link" href="#">Home</a></li>
12+
<li class="nav-item active"><a class="nav-link" href="/">Home</a></li>
1313
{% else %}
1414
<li class="nav-item"><a class="nav-link" href="/">Home</a></li>
1515
{% endif %}

assets/css/main.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ background: linear-gradient(to top, #E5E5BE, #003973); /* W3C, IE 10+/ Edge, Fir
2222
{
2323
transform: scalex(1);
2424
}
25-
.nav-item a::before
25+
.nav-item a::after
2626
{
2727
content: '';
2828
position: absolute;
@@ -39,6 +39,16 @@ background: linear-gradient(to top, #E5E5BE, #003973); /* W3C, IE 10+/ Edge, Fir
3939
{
4040
transform: scalex(1);
4141
}
42+
.nav-item a {
43+
text-decoration: none;
44+
display: block;
45+
padding: 8px 15px;
46+
margin: 5px;
47+
position: relative;
48+
}
49+
.nav-item {
50+
display: flex;
51+
}
4252
.card-img-top
4353
{
4454
height:230px;

0 commit comments

Comments
 (0)