Skip to content

Commit

Permalink
fix language link color on dark theme
Browse files Browse the repository at this point in the history
  • Loading branch information
hrfee committed Mar 20, 2021
1 parent 50c6e60 commit 1704ae8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions css/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion ts/modules/lang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 1704ae8

Please sign in to comment.