Skip to content

Commit b59d726

Browse files
authoredMay 30, 2021
Merge pull request #173 from arpit456jain/hover
added hover animations to navbar
2 parents b3751f6 + 50b18a8 commit b59d726

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed
 

‎index.php

+19-2
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,24 @@
228228
}@charset "utf-8";
229229
/* CSS Document */
230230

231-
231+
/* css for hover effect */
232+
.nav .nav-item:hover
233+
{
234+
background-color: #00719d;
235+
color: #fff !important;
236+
border-radius:30px;
237+
transition:1s;
238+
}
239+
.navbar-light .navbar-nav .nav-link.active:hover, .navbar-light .navbar-nav .show>.nav-link:hover
240+
{
241+
color: #fff !important;
242+
}
243+
a:hover , #projectbutton:hover
244+
{
245+
border-radius:30px;
246+
transition:1s;
247+
}
248+
232249
</style>
233250

234251
</head>
@@ -266,7 +283,7 @@
266283
<li class="nav-item"><a class="nav-link active " data-toggle="modal" data-target="#modalregister" href="#"
267284
style="padding: 8px;padding-right:2vw;font-size:20px;">Register</a></li>
268285

269-
<li class="nav-item" style="padding-left: 8px;"> <input type="checkbox" id="toggle" name="checkbox" class="switch" onclick="myfun()"></li>
286+
<li class="nav-item2" style="padding-left: 8px;"> <input type="checkbox" id="toggle" name="checkbox" class="switch" onclick="myfun()"></li>
270287

271288
</ul>
272289
</div>

0 commit comments

Comments
 (0)
Please sign in to comment.