fix language link color on dark theme

pull/75/head
Harvey Tindall 4 years ago
parent 50c6e6031d
commit 1704ae8cb1
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -434,15 +434,15 @@ pre {
overflow-y: scroll;
}
a:link {
a:link:not(.lang-link) {
color: var(--color-urge-200);
}
a:visited {
a:visited:not(.lang-link) {
color: var(--color-urge-100);
}
a:hover, a:active {
a:hover:not(.lang-link), a:active:not(.lang-link) {
color: var(--color-urge-200);
}

@ -56,7 +56,7 @@ export const loadLangSelector = (page: string) => _get("/lang/" + page, null, (r
const list = document.getElementById("lang-list") as HTMLDivElement;
let innerHTML = '';
for (let code in req.response) {
innerHTML += `<a href="?lang=${code}" class="button input ~neutral field mb-half">${req.response[code]}</a>`;
innerHTML += `<a href="?lang=${code}" class="button input ~neutral field mb-half lang-link">${req.response[code]}</a>`;
}
list.innerHTML = innerHTML;
}

Loading…
Cancel
Save