forked from jakub/jakubb-hugo
re-add whitespace to lang switch label
This commit is contained in:
parent
06b6982c1b
commit
a540c7b60a
@ -31,7 +31,7 @@
|
|||||||
<div class="lang-switch" >
|
<div class="lang-switch" >
|
||||||
<input class="lang-btn" type="checkbox" id="lang-btn" />
|
<input class="lang-btn" type="checkbox" id="lang-btn" />
|
||||||
<label class="lang-switch" for="lang-btn">
|
<label class="lang-switch" for="lang-btn">
|
||||||
<a>{{- .Language.LanguageName -}} ⏷</a>
|
<a>{{ .Language.LanguageName }} ⏷</a>
|
||||||
</label>
|
</label>
|
||||||
<div class="translation-list" >
|
<div class="translation-list" >
|
||||||
{{- with .Translations -}}
|
{{- with .Translations -}}
|
||||||
|
@ -365,7 +365,6 @@ blockquote.location p { padding: inherit; }
|
|||||||
/* lang-switch content (hidden by default) */
|
/* lang-switch content (hidden by default) */
|
||||||
.translation-list {
|
.translation-list {
|
||||||
display: block;
|
display: block;
|
||||||
height: 0;
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
background-color: var(--langs-bg);
|
background-color: var(--langs-bg);
|
||||||
width: 120px;
|
width: 120px;
|
||||||
@ -373,8 +372,10 @@ blockquote.location p { padding: inherit; }
|
|||||||
right: 0;
|
right: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
transition: 400ms;
|
height: 0;
|
||||||
|
max-height: 0;
|
||||||
transition-property: all;
|
transition-property: all;
|
||||||
|
transition: 400ms;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Links inside the lang-switch */
|
/* Links inside the lang-switch */
|
||||||
@ -403,11 +404,8 @@ blockquote.location p { padding: inherit; }
|
|||||||
}
|
}
|
||||||
|
|
||||||
.translation-list {
|
.translation-list {
|
||||||
height: 0;
|
|
||||||
max-height: 0;
|
|
||||||
position: static;
|
position: static;
|
||||||
width: auto;
|
width: auto;
|
||||||
transition: 400ms;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user