Open animation for lang menu and emojis
This commit is contained in:
@ -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]
|
||||||
|
@ -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%;
|
||||||
|
Reference in New Issue
Block a user