homegrade_theme_production/template-components/cards/card-news.css

51 lines
857 B
CSS

.card-news {
@keyframes fadeIn {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0px);
}
}
@apply bg-white shadow-lg rounded-3xl relative;
animation: fadeIn 0.6s ease-in-out;
&__thumbnail {
@apply rounded-t-3xl
h-[190px]
object-cover;
}
&__inner {
@apply p-6;
/* @apply h-full ; */
}
&__heading {
@apply flex flex-col !mb-6;
}
&__tag {
@apply bg-secondary-light
text-secondary
w-fit
px-4 py-2
rounded-lg
mb-4;
}
&__thematique-tag {
@apply bg-secondary-light
text-secondary
w-fit
px-4 py-1
rounded-xl
mb-4;
}
&__title {
@apply text-lg font-bold text-secondary mb-1;
line-height: 1.2;
}
}