aboutsummaryrefslogtreecommitdiffhomepage
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/language-switch.js3
-rw-r--r--static/style.css5
2 files changed, 7 insertions, 1 deletions
diff --git a/static/language-switch.js b/static/language-switch.js
new file mode 100644
index 0000000..a357ef0
--- /dev/null
+++ b/static/language-switch.js
@@ -0,0 +1,3 @@
+addEventListener("languagechange", (e) => {
+ location.reload();
+});
diff --git a/static/style.css b/static/style.css
index 07960ab..15f2665 100644
--- a/static/style.css
+++ b/static/style.css
@@ -53,12 +53,15 @@ nav {
padding: 0;
> li {
display: inline;
- > a {
+ > .navlink {
border-radius: 4px;
background: #fff3;
padding: 4px 8px;
color: white;
text-decoration: none;
+ &.disabled {
+ opacity: 0.6;
+ }
}
}
}