diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index b5fa95e..dbe04bb 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -31,7 +31,7 @@
{{- with .Translations -}} diff --git a/static/css/style.css b/static/css/style.css index 92a5c11..894e5ec 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -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; - transition-property: all; + 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; } }