An error occurred while loading the file. Please try again.
-
Arch de Noé authoredd5bf4d1c
navbar.css 1.90 KiB
#menu-area {
position: fixed;
bottom: 1rem;
right: 1rem;
display: flex;
align-items: flex-end;
gap: 0.5em;
}
nav {
perspective: 400px;
perspective-origin: bottom;
}
#menu-area ul {
/* Style */
list-style-type: none;
color: white;
background: var(--fog);
border-radius: 10px;
}
nav > ul {
/* Sizing */
width: 9rem;
padding: 1rem 0 1rem 0;
margin-bottom: 0.5rem;
/* Display */
visibility: hidden;
opacity: 0;
transform: rotateX(15deg) translateZ(-2rem) translateY(-1rem);
/* Transition */
transition-duration: 0.3s;
transition-property: visibility transform opacity max-height;
transition-delay: 0.3s 0s 0s 0s;
}
nav > ul.shown {
transform: none;
opacity: 1;
visibility: visible;
}
nav > ul > li {
font-size: 0.9rem;
text-align: center;
font-weight: 300;
}
nav > ul > li:not(:last-child) {
margin-bottom: 0.8rem;
}
nav > button,
#menu-area > button {
border-radius: 10px;
background: var(--fog);
}
nav > button:hover,
#menu-area > button:hover {
background: var(--marblue);
}
#menu-area > button {
width: 3rem;
height: 3rem;
}
#menu-area > button > i {
margin-right: 0;
}
#menu-area {
perspective: 400px;
perspective-origin: bottom;
}
#menu-area > ul {
/* Sizing */
padding-left: 1em;
padding-right: 1em;
height: 3rem;
/* Layout */
display: flex;
align-items: stretch;
gap: 1rem;
/* Display */
visibility: hidden;
opacity: 0;
transform: rotateY(-15deg) translateZ(-2rem) translateX(-1rem);
/* Transition */
transition-duration: 0.3s;
transition-property: visibility transform opacity max-height;
transition-delay: 0.3s 0s 0s 0s;
}
#menu-area > ul a {
display: block;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
}
#menu-area > ul img {
height: 2rem;
border-radius: 3px;
}
#menu-area > ul.shown {
transform: none;
opacity: 1;
visibility: visible;
}