aboutsummaryrefslogtreecommitdiffhomepage
path: root/static
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2025-08-01 01:07:36 +0200
committerThomas Voss <mail@thomasvoss.com> 2025-08-01 01:07:36 +0200
commit42314cb90cbc7e8261afcbe3151ddab40a88efc1 (patch)
treee1e45ee71086cc80e8b52bc93453cda5c9209e98 /static
parent6f1c0e8b20721048fb1273a4c88dbfb46e7cd89c (diff)
Include translated language names
Diffstat (limited to 'static')
-rw-r--r--static/style.css28
1 files changed, 23 insertions, 5 deletions
diff --git a/static/style.css b/static/style.css
index 2ceee0c..3f0ac91 100644
--- a/static/style.css
+++ b/static/style.css
@@ -2166,15 +2166,33 @@ textarea,
column-gap: var(--grid-spacing-horizontal);
}
-.country-grid a, .lang-grid button {
- text-align: left;
+.lang-grid {
+ button {
+ display: flex;
+ align-items: center;
+ padding-left: 0;
+
+ > :first-child {
+ font-size: 2em;
+ width: calc(var(--form-element-spacing-horizontal) * 2 + 2ch);
+ }
+ > :nth-child(2) {
+ text-align: left;
+ }
+ }
}
-.country-grid a::before, .lang-grid span::before {
- display: inline-block;
+.country-grid a {
+ display: flex;
+ align-items: center;
+ padding-left: 0;
+}
+
+.country-grid a::before {
content: attr(data-code);
font-weight: bold;
- width: 4ch;
+ width: 2ch;
+ width: calc(var(--form-element-spacing-horizontal) * 2 + 2ch);
}
#nav-icon-lang a {