Skip to content
Snippets Groups Projects
_cards.scss 1.26 KiB
Newer Older
.flex-cards {
    display: flex;
    flex-flow: wrap;
    justify-content: space-evenly;

    margin-top: 0rem;
    margin-bottom: 0rem;
    @include drop-shadow;
    width: 13rem;
    margin: 0.5rem;

    .badge {
        @include drop-shadow(
            $offset-x:  0.2rem,
            $offset-y:  0.2rem,
            $color:     rgba(black, 0.25)
        );
    }
    justify-content:    center;
    align-items:        center;
    
    padding: .5rem;

    .card-title {
        margin-bottom:  .5rem;
        margin-top:     .5rem;
    }
}

.card-img-equal {
    width: 100%;
    object-fit: cover;
}

.image-card {
    @include drop-shadow;

    max-height: 9rem;

    border: 0;

    .card-text {
        text-shadow: 2px 2px 8px black;
    }

    .card-img {
        height: 100%;
        width: 100%;
        object-fit: cover;

        mix-blend-mode: hard-light;
        filter: brightness(50%);
    }

    .card-img-overlay {
        display:            flex;
        flex-direction:     column;
        justify-content:    flex-start;
    }

    a {
        color: white;

        &:hover {
            color:          $color-helmholtz-bright-blue;
        }
    }

    h4 {
        margin: 0;
    }
}