programa.scss 2.04 KB
// Variables
$program-box-space: 20px;
$scale: 1.1;
$time: .3s;

// sandbox
.program-box {
    cursor: pointer;
    background-color: #fff;
    margin-bottom: $program-box-space;

    .contraste & {
        color: #fff;
        background-color: #262626;
    }

    &--category {
        font-size: 14px;
        font-weight: bold;
        text-transform: uppercase;
        line-height: 22px;
        display: block;
        height: 30px;
        margin: 0;
        padding: 5px $program-box-space;
        color: #ffffff;

        @each $category, $color in $categories {
            .#{$category} & {
                background-color: $color;
            }
        }

        .contraste & {
            background-color: #262626;
        }
    }

    &--title {
        font-size: 18px;
        font-weight: bold;
        padding: 0 $program-box-space;
        margin: 0 0 10px 0;
    }

    &--abstract {
        padding: 0 $program-box-space;
    }

    &--button {
        padding: $program-box-space;
        .btn {
            color: #fff;
            font-weight: bold;

            @each $category, $color in $categories {
                .#{$category} & {
                    background-color: $color;
                }
            }

            .contraste & {
                color: #262626;
                background-color: #fff;
            }
        }
    }

    &--image-wrapper {
        position: relative;
        // width: 100%;
        // width: 370px;
        // height: 170px;

        overflow: hidden;
        text-align: center;
        min-height: 170px;
    }

    &--image {
        -webkit-transition: all $time ease-in-out;
        -moz-transition: all $time ease-in-out;
        -o-transition: all $time ease-in-out;
        transition: all $time ease-in-out;
    }

    &:hover .program-box--image {
        -webkit-transform: scale($scale); /* prefixo para browsers webkit */
        -moz-transform: scale($scale); /* prefixo para browsers gecko */
        -o-transform: scale($scale); /* prefixo para opera */
        transform: scale($scale);
    }
}