programa.scss 7.05 KB
// Variables
$program-box-space: 20px;
$scale: 1.1;
$time: .2s;
$darken: 15%;

// Commons
.button--themed {
    padding: $program-box-space;
    .btn {
        color: #fff;
        font-weight: bold;
        padding: 15px 0;
        border-left: 0;
        border-right: 0;
        border-top: 0;
        border-radius: 6px;

        -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;

        @each $category, $color in $categories {
            .#{$category} & {
                background-color: $color;
                border-bottom: 3px solid darken($color, $darken);
            }
        }

        &:hover,
        &:focus {
            @each $category, $color in $categories {
                .#{$category} & {
                    background-color: darken($color, $darken);
                }
            }
        }

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

.program-box {
    cursor: pointer;
    background-color: #fff;
    margin-top: $program-box-space;
    margin-bottom: $program-box-space;
    border-radius: 3px;
    overflow: hidden;

    .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 {

        padding: 0 $program-box-space;

        h1 {
            font-size: 18px;
            font-weight: bold;
            margin: 0 0 $program-box-space 0;
            display: table-cell;
            vertical-align: middle;

            // Altura das linhas do abstract
            $hLine: 20px;
            // default
            height: $hLine * 2;

            @media (max-width: $screen-xs) {
                // height: $hLine * 3;
                height: auto;
            }

            @media (min-width: $screen-xs + 1) {
                // height: $hLine * 2;
                height: auto;
            }

            @media (min-width: $screen-sm + 1) {
                height: $hLine * 2;
            }

            @media (min-width: $screen-md + 1) {
                height: $hLine * 2;
            }
        }
    }

    &--abstract {
        padding: 0 $program-box-space;
        display: table-cell;
        vertical-align: middle;

        // Altura das linhas do abstract
        $pLine: 20px;
        // 1 linha: 19px -> 20
        // 2 linhas: 38px -> 40
        // 3 linhas: 57px -> 60
        // 4 linhas: 76px -> 80

        height: $pLine * 2; // default

        @media (max-width: $screen-xs) {
            // height: $pLine * 4;
            height: auto;
        }

        @media (min-width: $screen-xs + 1) {
            // height: $pLine * 3;
            height: auto;
        }

        @media (min-width: $screen-sm + 1) {
            height: $pLine * 4;
        }

        @media (min-width: $screen-md + 1) {
            height: $pLine * 3;
        }

        p { margin: 0; }
    }

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

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

    &--image {
        min-height: 170px;
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;

        -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 {
        background-color: #d9d9d9;

        .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);
        }

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

.program-preview {
    .program-banner {
        position: relative;
    }

    .program-banner--image {
        width: 100%;
    }

    .program-banner--strip {
        color: #fff;
        position: absolute;
        bottom: 15%;
        right: 0;
        width: 50%;
        text-align: center;

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

        @media (max-width: $screen-sm){
            position: relative;
            width: 100%;
        }
    }

    .program-banner--title {
        font-size: 32px;
        text-transform: uppercase;
        margin-top: 0;
        padding-top: 20px;
    }
    .program-banner--title,
    .program-banner--abstract {
        font-weight: bold;
    }
    .program-banner--abstract {
        padding-bottom: 10px;
    }

    .button--themed {
        .btn {
            font-size: 38px;

            @media (max-width: $screen-sm){
                font-size: 20px;
            }
        }
    }
}

// .flexbox {
//     .proposal-row {
//         display: flex;
//         flex-flow: row nowrap;
//         // flex-direction: row;
//         // flex-wrap: wrap;
//     }

//     .proposal-box {
//         // flex: 1 100%;
//         flex: 1 0 auto;
//         // align-items: stretch;
//     }
// }
// .flexboxlegacy {}

.row-height {
  display: table;
  table-layout: fixed;
  height: 100%;
  width: 100%;
  border-spacing: 20px;
}

.col-height {
    display: table-cell;
    float: none;
    height: 100%;
    vertical-align: top;

    border: 1px solid #000;
    border-radius: 3px;

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

.inside {
  margin-top: 20px;
  margin-bottom: 20px;
}

.inside-full-height {
    height: 100%;
    margin-top: 0;
    margin-bottom: 0;
}

.talk-proposal {
    margin-top: -20px;
}

.proposal-box {

    // padding: 10px 20px;

    .proposal-box--title {
        font-size: 38px;
        font-weight: 400;
        text-align: center;

        margin-bottom: 20px;
    }

    .proposal-box--text {
        font-size: 24px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 20px;
    }

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

            .proposal-box--title {
                color: $color;
            }
        }
    }
}

.program-content {
    h2 {
        font-size: 38px;
        font-weight: 500;
        margin-bottom: 40px;
        padding-bottom: 20px;

        small {
            display: block;
            font-size: 16px;
            padding-top: 5px;
            text-transform: none;
        }
    }
}