Newer
Older
pre-www / src / assets / css / components / marquee-posts-row.css
.block-marquee-posts-row{
    --marquee-card-width: 27.5vw;
    /* @apply overflow-hidden mb-5; */
    @apply overflow-x-clip;
    @apply mb-5;
    &__wrapper{
        @apply flex;
        .card{
            width: var(--marquee-card-width);
            @apply mr-5;
        }
    }
    &.is-hovered{
        @apply relative z-10;
    }
}

/* .marquee-card{
    @apply relative bg-grey-100 p-4;
    &--black{
        @apply bg-black;
        p, span{
            @apply text-white;
        }
    }
    &__content{
        @apply aspect-square flex flex-col justify-between;
    }
    .marquee-card-header, .marquee-card-main{
        @apply relative z-10;
    }
    .marquee-card-header{
        @apply flex justify-between text-grey-300;
    }
    .marquee-card-date{
        @apply text-size-sm;
    }
    .marquee-card-title{
        @apply text-size-md font-bold;
    }
    .marquee-card-bg{
        @apply absolute left-0 top-0 w-full h-full scale-125 origin-center opacity-0 pointer-events-none bg-black;
        img{
            @apply w-full h-full bg-cover z-10 opacity-75;
        }
    }
    &--has-background{
        &.is-hovered{
            @apply bg-transparent z-20;
            p, span{
                @apply text-accent-200;
            }
            .marquee-card-bg{
                @apply opacity-100;
            }
            &::after{
                content: '';
                @apply w-full h-full border border-accent-200 absolute left-0 top-0;
            }
        }
    }
    &--has-keyword{
        .marquee-card-keyword{
            font-size: calc(70vw / var(--marquee-card-keyword-chars));
            @apply absolute top-[50%] left-[50%] translate-y-[-50%] translate-x-[-50%] opacity-0 pointer-events-none text-accent-200 whitespace-nowrap z-50;
        }
        &.is-hovered{
            @apply z-20 bg-white;
            .marquee-card-header{
                span{
                    @apply text-grey-300;
                }
            }
            .marquee-card-main{
                p, span{
                    @apply text-black;
                }
            }
            .marquee-card-keyword{
                @apply opacity-100;
            }
            &::after{
                content: '';
                @apply w-full h-full border border-grey-200 absolute left-0 top-0;
            }
        }
    }
} */

.block-marquee-posts-grid{
    @apply grid grid-cols-4 gap-5;
}