Open animation for lang menu and emojis

This commit is contained in:
daudix
2024-06-18 00:04:42 +03:00
parent dab00bd98c
commit 58f4e9975e
2 changed files with 14 additions and 3 deletions

View File

@ -148,8 +148,8 @@ links = [
] ]
# List of languages that the website is translated to (comment if there's no additional languages) # List of languages that the website is translated to (comment if there's no additional languages)
langs = [ langs = [
{ code = "en", name = "English" }, { code = "en", name = "🇬🇧 English" },
{ code = "ru", name = "Русский" }, { code = "ru", name = "🇷🇺 Русский" },
] ]
[extra.footer] [extra.footer]

View File

@ -183,8 +183,20 @@
} }
} }
&[open] ul {
animation: open var(--transition);
@keyframes open {
from {
transform: translate(-50%, 0);
opacity: 0;
}
}
}
ul { ul {
-webkit-backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
text-wrap: nowrap;
position: absolute; position: absolute;
left: 50%; left: 50%;
transform: translate(-50%, 1rem); transform: translate(-50%, 1rem);
@ -194,7 +206,6 @@
border-radius: calc(var(--rounded-corner) + 0.25rem); border-radius: calc(var(--rounded-corner) + 0.25rem);
background-color: var(--nav-bg); background-color: var(--nav-bg);
padding: 0.25rem; padding: 0.25rem;
text-align: center;
li { li {
width: 100%; width: 100%;