mirror of
https://github.com/R0m1k3/Menu.git
synced 2026-10-11 17:28:28 +02:00
71 lines
1.4 KiB
CSS
71 lines
1.4 KiB
CSS
.menuButton {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 1rem;
|
|
padding: 2rem 1.25rem 1.75rem;
|
|
text-decoration: none;
|
|
color: var(--fg);
|
|
width: 160px;
|
|
aspect-ratio: 1 / 1;
|
|
cursor: pointer;
|
|
background: var(--card-bg);
|
|
backdrop-filter: blur(24px) saturate(1.4);
|
|
-webkit-backdrop-filter: blur(24px) saturate(1.4);
|
|
border: 1px solid var(--card-border);
|
|
box-shadow: var(--card-shadow);
|
|
border-radius: 22px;
|
|
transition: all 240ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.menuButton:hover {
|
|
background: var(--card-hover-bg);
|
|
box-shadow: var(--card-hover-shadow);
|
|
transform: translateY(-5px) scale(1.02);
|
|
}
|
|
|
|
.menuButton:active {
|
|
transform: scale(0.97);
|
|
transition-duration: 80ms;
|
|
}
|
|
|
|
/* Favicon */
|
|
.faviconWrapper {
|
|
width: 56px;
|
|
height: 56px;
|
|
border-radius: 14px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.favicon {
|
|
width: 48px;
|
|
height: 48px;
|
|
object-fit: contain;
|
|
}
|
|
|
|
.faviconFallback {
|
|
color: rgba(255,255,255,0.7);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
/* Label */
|
|
.label {
|
|
font-size: 0.82rem;
|
|
font-weight: 600;
|
|
text-align: center;
|
|
letter-spacing: -0.01em;
|
|
color: var(--fg);
|
|
max-width: 130px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|