Files
Orchestrator/privat/CV/andreknie.de/src/components/BottomDock.css
T

142 lines
2.7 KiB
CSS

.dock-container {
position: fixed;
bottom: 30px;
left: 50%;
transform: translateX(-50%);
z-index: 1000;
display: flex;
justify-content: center;
}
.dock {
position: relative;
overflow: hidden;
padding: 8px 12px;
border-radius: var(--radius-lg);
display: flex;
gap: 12px;
align-items: center;
box-shadow: var(--glass-shadow), 0 0 20px rgba(var(--accent-color-rgb), 0.05);
z-index: 1;
}
.dock::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 250%;
height: 250%;
background: conic-gradient(transparent, transparent, transparent, rgba(var(--accent-color-rgb), 1));
transform: translate(-50%, -50%);
animation: rotateLight 4s linear infinite;
z-index: -2;
}
.dock::after {
content: '';
position: absolute;
top: 1px;
left: 1px;
right: 1px;
bottom: 1px;
background: rgba(20, 20, 20, 0.9);
backdrop-filter: blur(20px);
border-radius: calc(var(--radius-lg) - 1px);
z-index: -1;
}
@keyframes rotateLight {
0% { transform: translate(-50%, -50%) rotate(0deg); }
100% { transform: translate(-50%, -50%) rotate(360deg); }
}
.dock-item-wrapper {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
z-index: 2;
}
.dock-item {
width: 44px;
height: 44px;
display: flex;
justify-content: center;
align-items: center;
border-radius: var(--radius-md);
color: var(--text-secondary);
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.dock-item:hover {
color: var(--text-primary);
background: rgba(255, 255, 255, 0.08);
transform: translateY(-8px) scale(1.15);
}
.dock-item:focus-visible {
outline: 2px solid var(--accent-color);
outline-offset: 3px;
}
.dock-item.active {
color: var(--accent-color);
background: rgba(var(--accent-color-rgb), 0.1);
}
.dock-item.active::after {
content: '';
position: absolute;
bottom: -4px;
width: 4px;
height: 4px;
border-radius: 50%;
background-color: var(--accent-color);
box-shadow: 0 0 10px var(--accent-color);
}
.dock-tooltip {
position: absolute;
top: -40px;
background: rgba(10, 10, 10, 0.9);
color: #fff;
padding: 5px 10px;
border-radius: var(--radius-sm);
font-size: 0.75rem;
white-space: nowrap;
opacity: 0;
pointer-events: none;
transform: translateY(10px);
transition: all var(--transition-fast);
border: 1px solid var(--glass-border);
}
.dock-item-wrapper:hover .dock-tooltip {
opacity: 1;
transform: translateY(0);
}
@media (max-width: 600px) {
.dock-container {
bottom: max(12px, env(safe-area-inset-bottom));
max-width: calc(100vw - 24px);
}
.dock {
gap: 6px;
padding: 6px 8px;
max-width: 100%;
}
.dock-item-wrapper-secondary {
display: none;
}
.dock-item {
width: 44px;
height: 44px;
}
}