Skip to content

Commit 129b619

Browse files
committed
[Fix] improve styling for active nav links when navbar has collapsed.creativecommons#25
1 parent 9d5df3d commit 129b619

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

assets/static/style.css

+15-2
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,32 @@ h2 {
6464
}
6565
.nav-item, .dropdown-item {
6666
font-size: 1.2em;
67+
text-align: center;
6768
}
6869
.dropdown:hover .dropdown-menu {
6970
display: block;
7071
}
7172
.dropdown-menu {
7273
margin-top: 0px;
7374
}
75+
.nav-item:hover{
76+
background: #e15803!important;
77+
}
7478
.navbar-dark .navbar-nav .nav-item .nav-link {
75-
padding-bottom: .3rem;
7679
color: white;
80+
line-height: 1rem;
81+
border-left: 1px solid rgba(255, 255, 255, 0.6)
82+
}
83+
.navbar-dark .navbar-toggler {
84+
border-color: rgba(255,255,255);
7785
}
7886
.navbar-dark .navbar-nav .nav-item.active .nav-link {
79-
border-bottom: 2px solid white;
87+
background: #e15803!important;
88+
}
89+
@media only screen and (max-width : 1200px) {
90+
.navbar-dark .navbar-nav .nav-item .nav-link {
91+
border: None;
92+
text-align: center;
8093
}
8194
.toc-card {
8295
width: 18rem;

0 commit comments

Comments
 (0)