Skip to content

Commit ab71fb9

Browse files
add language icons for mobile
1 parent a3be719 commit ab71fb9

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

_includes/language-picker-mobile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
{% for lang in site.data.languages %}
1616
<li class="submenu">
17-
<a href="/{{ lang.code }}/{{ url_remainder }}">{{ lang.name }}</a>
17+
<a class="remove" href="/{{ lang.code }}/{{ url_remainder }}">{% include icons/flags/{{ lang.code }}.svg %}{{ lang.name }}</a>
1818
</li>
1919
{% endfor %}
2020
</ul>

css/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,6 +1668,10 @@ blockquote {
16681668
padding-left: 5%;
16691669
}
16701670

1671+
#langbar a {
1672+
1673+
}
1674+
16711675
#navbar .submenu.open {
16721676
flex-direction: column;
16731677
align-items: initial;

css/variables.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,11 @@
5050
--supported-fg:#299009;
5151
--eol-fg: #ff1a1a;
5252
}
53+
54+
/* TODO: remove following after removing duplicate id styles */
55+
.remove {
56+
display:flex;
57+
gap:0.5rem;
58+
align-items:center;
59+
justify-content:center;
60+
}

0 commit comments

Comments
 (0)