mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
generated docs: highlight active package
This commit is contained in:
parent
2e26aaa70c
commit
ffc0c26b27
@ -94,7 +94,10 @@
|
||||
background-color: #555;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#listPkgs li a.active {
|
||||
background-color: #FFBB4D;
|
||||
color: #000;
|
||||
}
|
||||
#logo {
|
||||
width: 8em;
|
||||
padding: 0.5em 1em;
|
||||
@ -170,6 +173,10 @@
|
||||
background-color: #555;
|
||||
color: #fff;
|
||||
}
|
||||
#listPkgs li a.active {
|
||||
background-color: #FFBB4D;
|
||||
color: #000;
|
||||
}
|
||||
#listSearchResults li.selected {
|
||||
background-color: #000;
|
||||
}
|
||||
|
||||
@ -220,6 +220,11 @@
|
||||
var aDom = liDom.children[0];
|
||||
aDom.textContent = list[i].name;
|
||||
aDom.setAttribute('href', navLinkPkg(list[i].pkg));
|
||||
if (list[i].name === curNav.pkgNames[0]) {
|
||||
aDom.classList.add("active");
|
||||
} else {
|
||||
aDom.classList.remove("active");
|
||||
}
|
||||
}
|
||||
|
||||
domSectPkgs.classList.remove("hidden");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user