Skip to content
Snippets Groups Projects
_team-card-mini.scss 1.39 KiB
Newer Older
Erxleben, Fredo's avatar
Erxleben, Fredo committed

/*
    Team card mini is an inline representation of a team member.
    It inherits its color from the surroundings and overrides the elements
    default colors to adapt to the color scheme of its surroundings.
*/
.team-card-mini {

    display:        flex;
    align-items:    baseline;
    flex-direction: row wrap;

    padding-left:   0.5rem;
    padding-right:  0.5rem;

    margin-bottom:  0.5rem;
    margin-top:     0.5rem;

    img {
        @include respond-to-medium(width,       1.5rem);
        @include respond-to-medium(height,      2rem);
        @include respond-to-medium(min-width,   1.5rem);
        @include respond-to-medium(min-height,  2rem);
        @include respond-to-medium(max-width,   1.5rem);
        @include respond-to-medium(max-height,  2rem);

        @include drop-shadow();

        flex-shrink:    0; /* Don't shrink */

        object-fit:         cover;
        object-position:    center;

        vertical-align: middle;
        border-radius:  $border-radius;
    }

    .fas {
        @include respond-to-medium(width,       1.5rem);
        @include respond-to-medium(font-size,   1.5rem);

        text-align:     center;
        vertical-align: middle;
    }

    /*
        The following are included to remind of the enclosed structure
        even though they have no specific CSS at the moment.
    */
    .org-short {
    }

    .name {
    }

    .title {
    }

}