Skip to content

Commit 37febad

Browse files
authored
Merge pull request #88 from pashachee/master
Fixed active area of the header nav links (move icon to link)
2 parents e201549 + 2aa0f4f commit 37febad

1 file changed

Lines changed: 22 additions & 21 deletions

File tree

public/css/base.css

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -474,13 +474,14 @@ html {
474474
}
475475

476476
#navbar ul li a{
477+
display: inline-block;
477478
color: #fff;
478479
font-size: 16px;
479480
font-weight: 300;
480481
text-decoration: none;
481482
}
482483

483-
#navbar ul li:before{
484+
#navbar ul li a::before{
484485
content: "";
485486
margin: auto;
486487
width: 27px; height: 23px;
@@ -489,34 +490,34 @@ html {
489490
background-image: url(https://randomuser.me/img/nav_icons.png);
490491
}
491492

492-
#navbar ul li:nth-child(2):before {
493+
#navbar ul li:nth-child(2) a::before {
493494
background-position: 0 -200px;
494495
}
495-
#navbar ul li:nth-child(3):before {
496+
#navbar ul li:nth-child(3) a::before {
496497
background-position: 0 -25px;
497498
}
498-
#navbar ul li:nth-child(4):before {
499+
#navbar ul li:nth-child(4) a::before {
499500
background-position: 0 -50px;
500501
}
501-
#navbar ul li:nth-child(5):before {
502+
#navbar ul li:nth-child(5) a::before {
502503
background-position: 0 -75px;
503504
}
504-
#navbar ul li:nth-child(6):before {
505+
#navbar ul li:nth-child(6) a::before {
505506
background-position: 0 -100px;
506507
}
507-
#navbar ul li:nth-child(7):before {
508+
#navbar ul li:nth-child(7) a::before {
508509
background-position: 0 -125px;
509510
}
510-
#navbar ul li:nth-child(9):before {
511+
#navbar ul li:nth-child(9) a::before {
511512
background-position: 0 -150px;
512513
}
513-
#navbar ul li:nth-child(10):before {
514+
#navbar ul li:nth-child(10) a::before {
514515
background-position: 0 -175px;
515516
}
516-
#navbar ul li:nth-child(10):before {
517+
#navbar ul li:nth-child(10) a::before {
517518
opacity: .1;
518519
}
519-
#navbar ul li.blank:before {
520+
#navbar ul li.blank a::before {
520521
display: none;
521522
}
522523

@@ -567,7 +568,7 @@ html {
567568
-webkit-transition: all 0.2s ease-out;
568569
transition: all 0.2s ease-out;
569570
}
570-
#navbar ul li:before {
571+
#navbar ul li a::before {
571572
content: '';
572573
display: inline-block;
573574
width: 28px;
@@ -580,34 +581,34 @@ html {
580581
-webkit-background-size: 27px 27px;
581582
background-size: 27px;
582583
}
583-
#navbar ul li:nth-child(2):before {
584+
#navbar ul li:nth-child(2) a::before {
584585
background-position: 0 -200px;
585586
}
586-
#navbar ul li:nth-child(3):before {
587+
#navbar ul li:nth-child(3) a::before {
587588
background-position: 0 -25px;
588589
}
589-
#navbar ul li:nth-child(4):before {
590+
#navbar ul li:nth-child(4) a::before {
590591
background-position: 0 -50px;
591592
}
592-
#navbar ul li:nth-child(5):before {
593+
#navbar ul li:nth-child(5) a::before {
593594
background-position: 0 -75px;
594595
}
595-
#navbar ul li:nth-child(6):before {
596+
#navbar ul li:nth-child(6) a::before {
596597
background-position: 0 -100px;
597598
}
598-
#navbar ul li:nth-child(7):before {
599+
#navbar ul li:nth-child(7) a::before {
599600
background-position: 0 -125px;
600601
}
601-
#navbar ul li:nth-child(9):before {
602+
#navbar ul li:nth-child(9) a::before {
602603
background-position: 0 -150px;
603604
}
604-
#navbar ul li:nth-child(10):before {
605+
#navbar ul li:nth-child(10) a::before {
605606
background-position: 0 -175px;
606607
}
607608
#navbar ul li:nth-child(10) {
608609
opacity: 1;
609610
}
610-
#navbar ul li.blank:before {
611+
#navbar ul li.blank a::before {
611612
display: none;
612613
}
613614
#navbar ul li:hover {

0 commit comments

Comments
 (0)