authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-07 21:03:04-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-10-08 00:15:16-04:00
logffc0c26b27b14fbaedc0def018fd962a93e420bc
tree739ead83b176eeffe47824884241400e2e3046a3
parent2e26aaa70c2fd0fd9fdb036c71ab058e794f1f87
signaturelock-open Commit is signed but in an unrecognized format.

generated docs: highlight active package


2 files changed, 13 insertions(+), 1 deletions(-)

lib/std/special/docs/index.html+8-1
......@@ -94,7 +94,10 @@
9494 background-color: #555;
9595 color: #fff;
9696 }
97
97 #listPkgs li a.active {
98 background-color: #FFBB4D;
99 color: #000;
100 }
98101 #logo {
99102 width: 8em;
100103 padding: 0.5em 1em;
......@@ -170,6 +173,10 @@
170173 background-color: #555;
171174 color: #fff;
172175 }
176 #listPkgs li a.active {
177 background-color: #FFBB4D;
178 color: #000;
179 }
173180 #listSearchResults li.selected {
174181 background-color: #000;
175182 }
lib/std/special/docs/main.js+5
......@@ -220,6 +220,11 @@
220220 var aDom = liDom.children[0];
221221 aDom.textContent = list[i].name;
222222 aDom.setAttribute('href', navLinkPkg(list[i].pkg));
223 if (list[i].name === curNav.pkgNames[0]) {
224 aDom.classList.add("active");
225 } else {
226 aDom.classList.remove("active");
227 }
223228 }
224229
225230 domSectPkgs.classList.remove("hidden");