37314-vm/frontend/src/components/InfoCard.module.css
Flatlogic Bot a07e0b335c v1
2026-01-08 12:48:49 +00:00

93 lines
1.6 KiB
CSS

.info-card {
position: relative;
overflow: hidden;
background: #fff;
border-radius: 1rem;
padding: 1.5rem;
display: flex;
justify-content: space-between;
align-items: center;
transition: transform 0.3s ease, box-shadow 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.info-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.info-card::before {
content: '';
position: absolute;
top: 0;
left: -150%;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.4),
transparent
);
transition: left 0.8s ease;
}
.info-card:hover::before {
left: 150%;
}
.info-card-content {
z-index: 1;
}
.info-card-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.5rem;
}
.info-card-title {
font-size: 1.125rem;
line-height: 1.75rem;
color: #6b7280;
}
.dark .info-card-title {
color: #9ca3af;
}
.info-card-wrench {
margin-left: 0.5rem;
}
.info-card-value {
font-size: 1.875rem;
line-height: 2.25rem;
font-weight: 600;
}
.info-card-icon {
z-index: 1;
opacity: 0.8;
}
.dark .info-card {
background: #2d3748;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}
.dark .info-card:hover {
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
}
.dark .info-card::before {
background: linear-gradient(
90deg,
transparent,
rgba(255, 255, 255, 0.1),
transparent
);
}