1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-06-25 02:47:47 +02:00

fix language link color on dark theme

This commit is contained in:
Harvey Tindall 2021-03-20 18:24:35 +00:00
parent 50c6e6031d
commit 1704ae8cb1
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2
2 changed files with 4 additions and 4 deletions

View File

@ -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);
}

View File

@ -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;
}