2021-10-13 15:43:40 +00:00
|
|
|
@layer components {
|
|
|
|
.see-more {
|
|
|
|
@apply flex flex-col items-start;
|
|
|
|
}
|
|
|
|
|
|
|
|
.see-more__content {
|
|
|
|
@apply relative overflow-hidden;
|
|
|
|
height: 5rem;
|
|
|
|
}
|
|
|
|
|
|
|
|
.see-more_content-fade {
|
|
|
|
@apply absolute bottom-0 left-0 w-full h-full pointer-events-none;
|
2021-11-05 14:36:34 +00:00
|
|
|
background-image: linear-gradient(
|
|
|
|
to bottom,
|
|
|
|
transparent,
|
|
|
|
hsl(var(--color-background-header))
|
|
|
|
);
|
2021-10-13 15:43:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.see-more__checkbox {
|
|
|
|
@apply absolute overflow-hidden whitespace-nowrap;
|
|
|
|
clip: rect(0 0 0 0);
|
|
|
|
clip-path: inset(100%);
|
|
|
|
height: 1px;
|
|
|
|
width: 1px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.see-more__checkbox ~ .see-more__label {
|
|
|
|
@apply text-xs font-semibold underline cursor-pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Don't forget focus and hover styles for accessibility! */
|
|
|
|
.see-more__checkbox:focus ~ .see-more__label {
|
2021-11-05 14:36:34 +00:00
|
|
|
@apply ring-accent;
|
2021-10-13 15:43:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.see-more__checkbox:hover ~ .see-more__label {
|
|
|
|
@apply no-underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
.see-more__checkbox ~ .see-more__label::before {
|
|
|
|
content: attr(data-see-more);
|
|
|
|
}
|
|
|
|
|
|
|
|
.see-more__checkbox:checked ~ .see-more__label::before {
|
|
|
|
content: attr(data-see-less);
|
|
|
|
}
|
|
|
|
|
|
|
|
.see-more__checkbox:checked ~ .see-more__content {
|
|
|
|
@apply h-auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.see-more__checkbox:checked ~ .see-more__content .see-more_content-fade {
|
|
|
|
@apply bg-none;
|
|
|
|
}
|
|
|
|
}
|