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 @@...@@ -94,7 +94,10 @@
94 background-color: #555;94 background-color: #555;
95 color: #fff;95 color: #fff;
96 }96 }
9797 #listPkgs li a.active {
98 background-color: #FFBB4D;
99 color: #000;
100 }
98 #logo {101 #logo {
99 width: 8em;102 width: 8em;
100 padding: 0.5em 1em;103 padding: 0.5em 1em;
...@@ -170,6 +173,10 @@...@@ -170,6 +173,10 @@
170 background-color: #555;173 background-color: #555;
171 color: #fff;174 color: #fff;
172 }175 }
176 #listPkgs li a.active {
177 background-color: #FFBB4D;
178 color: #000;
179 }
173 #listSearchResults li.selected {180 #listSearchResults li.selected {
174 background-color: #000;181 background-color: #000;
175 }182 }
lib/std/special/docs/main.js+5
...@@ -220,6 +220,11 @@...@@ -220,6 +220,11 @@
220 var aDom = liDom.children[0];220 var aDom = liDom.children[0];
221 aDom.textContent = list[i].name;221 aDom.textContent = list[i].name;
222 aDom.setAttribute('href', navLinkPkg(list[i].pkg));222 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 }
223 }228 }
224229
225 domSectPkgs.classList.remove("hidden");230 domSectPkgs.classList.remove("hidden");