mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 02:09:45 +00:00
51 lines
759 B
SCSS
51 lines
759 B
SCSS
.card {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 250px;
|
|
border-radius: 8px;
|
|
background-color: #e0e0e0;
|
|
overflow: hidden;
|
|
|
|
@media (max-width: 768px) {
|
|
height: 215px !important;
|
|
}
|
|
}
|
|
|
|
.pic {
|
|
width: 100%;
|
|
height: 100%;
|
|
border-radius: 8px;
|
|
background-color: #ddd;
|
|
position: relative;
|
|
}
|
|
|
|
.shimmer {
|
|
position: absolute;
|
|
top: 0;
|
|
left: -150%;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg,
|
|
rgba(255, 255, 255, 0) 0%,
|
|
rgba(255, 255, 255, 0.6) 50%,
|
|
rgba(255, 255, 255, 0) 100%);
|
|
animation: shimmer 1.5s infinite;
|
|
}
|
|
|
|
@keyframes shimmer {
|
|
0% {
|
|
left: -150%;
|
|
}
|
|
|
|
100% {
|
|
left: 150%;
|
|
}
|
|
}
|
|
|
|
.labsCard {
|
|
height: 300px;
|
|
|
|
@media (max-width: 768px) {
|
|
height: 215px !important;
|
|
}
|
|
} |