re-add whitespace to lang switch label

This commit is contained in:
Jakub 2024-02-16 21:44:20 -05:00
parent 06b6982c1b
commit a540c7b60a
2 changed files with 5 additions and 7 deletions

View File

@ -31,7 +31,7 @@
<div class="lang-switch" >
<input class="lang-btn" type="checkbox" id="lang-btn" />
<label class="lang-switch" for="lang-btn">
<a>{{- .Language.LanguageName -}} ⏷</a>
<a>{{ .Language.LanguageName }} ⏷</a>
</label>
<div class="translation-list" >
{{- with .Translations -}}

View File

@ -365,7 +365,6 @@ blockquote.location p { padding: inherit; }
/* lang-switch content (hidden by default) */
.translation-list {
display: block;
height: 0;
position: absolute;
background-color: var(--langs-bg);
width: 120px;
@ -373,8 +372,10 @@ blockquote.location p { padding: inherit; }
right: 0;
overflow: hidden;
transition: 400ms;
height: 0;
max-height: 0;
transition-property: all;
transition: 400ms;
}
/* Links inside the lang-switch */
@ -403,11 +404,8 @@ blockquote.location p { padding: inherit; }
}
.translation-list {
height: 0;
max-height: 0;
position: static;
width: auto;
transition: 400ms;
}
}