ACC SHELL

Path : /srv/www/vhosts/eqnxold/boardman/assets/css/src/components/
File Upload :
Current File : /srv/www/vhosts/eqnxold/boardman/assets/css/src/components/_card.scss

/* ==========================================================================
   Components.Card
   ========================================================================== */

.c-card {
    position: relative;
    margin-bottom: 30px;
    background-position: right top;
    background-repeat: no-repeat;
    background-size: 120% auto;

    @include mq("medium-up") {
        padding-top: 0;
        background-position: right top;
        background-repeat: no-repeat;
        background-size: auto 100%;
    }

    @include mq("large-up") {
        background-size: auto;

        &:before {
            content: "";
            position: absolute;
            top: 0;
            right: 525px;
            z-index: 2;
            width: 330px;
            height: 100%;
            background-color: $color-white;
            transform: skewX(-12deg);
            transform-origin: right top;
        }
    }
}

.c-card--alt {
    background-color: $color-white;
}

.c-card--lead {
    padding-top: percentage(500 / 781) * 1.2;
    background-color: $color-white;
    background-position: left top;

    @include mq("medium-up") {
        padding-top: 0;
        background-position: -130px top;
    }

    @media only screen and (min-width: 900px) {
        background-position: -80px top;
    }

    @include mq("large-up") {
        min-height: 500px;

        &:before {
            top: 0;
            right: auto;
            left: 605px;
            background-color: $color-white;
            transform: skewX(-12deg);
            transform-origin: left top;
        }
    }

    @media only screen and (min-width: 1320px) {
        &:before {
            left: 775px;
        }
    }
}

.c-card--image {
    padding-top: percentage(360 / 601) * 1.1;
    background-size: 110% auto;

    @include mq("medium-up") {
        padding-top: 0;
        background-size: auto 100%;
    }

    @include mq("large-up") {
        min-height: 360px;
    }
}

.c-card--image1 {
    background-color: $color-black;
    background-image: url('../img/bg/benefit1.jpg');

    @include mq("medium-up") {
        background-color: $color-white;
        background-image: url('../img/bg/benefit1.medium.jpg');
    }
}

.c-card--image2 {
    background-color: #222222;
    background-image: url('../img/bg/benefit2.jpg');

    @include mq("medium-up") {
        background-color: $color-white;
        background-image: url('../img/bg/benefit2.medium.jpg');
    }
}

.c-card--contact {
    @include mq("medium-up") {
        background: $color-white url('../img/bg/showroom.jpg') no-repeat 320px top;
        background-size: auto 100%;
    }

    @media only screen and (min-width: 880px) {
        background-position: 480px top;
    }

    @include mq("large-up") {
        background-color: #222222;
        background-position: right top;
        background-size: auto;
    }
}

.c-card--map {
    padding-top: 200px;
    background-color: $color-white;

    @include mq("medium-up") {
        padding-top: 0;
    }
}

    .c-card__body {
        position: relative;
        z-index: 3;
        padding: 20px;
        // padding: 40px 0 40px 40px;
        // margin-right: 630px;
        background-color: $color-white;

        // .c-card--lead & {
        //     padding-right: 40px;
        //     padding-left: 0;
        //     margin-right: 0;
        //     margin-left: 630px;

        //     @media only screen and (min-width: 1320px) {
        //         padding-right: 160px;
        //         margin-left: 810px;
        //     }
        // }

        // .c-card--alt & {
        //     padding-right: 40px;
        //     margin-right: 0;
        // }

        @include mq("medium-up") {
            margin-right: 50%;
            background-color: transparent;

            .c-card--lead & {
                margin-right: 0;
                margin-left: 50%;
            }

            .c-card--alt & {
                margin-right: 0;
            }
        }

        @media only screen and (min-width: 880px) {
            padding: 40px;
        }

        @include mq("large-up") {
            padding: 40px 0 40px 40px;
            margin-right: 630px;
            background-color: $color-white;

            .c-card--lead & {
                padding-right: 40px;
                padding-left: 0;
                margin-right: 0;
                margin-left: 630px;
            }

            .c-card--alt & {
                padding-right: 40px;
                margin-right: 0;
            }
        }

        @media only screen and (min-width: 1320px) {
            .c-card--lead & {
                padding-right: 160px;
                margin-left: 810px;
            }
        }
    }

        .c-card__col {
            // &:first-child {
            //     margin-bottom: $base-unit;
            // }

            // @include mq("medium-up") {
            //     width: 50%;

            //     &:first-child {
            //         float: left;
            //         margin-bottom: 0;
            //     }
            // }
        }

            .c-card__title {
                @include rem(font-size, 18px);
                color: $color-black;
                font-style: italic;
                font-weight: normal;
                line-height: 1.2;
                text-transform: uppercase;

                .c-card--lead & {
                    @include rem(font-size, 24px);
                }

                @include mq("medium-up") {
                    @include rem(font-size, 20px);

                    .c-card--lead & {
                        @include rem(font-size, 28px);
                    }
                }

                @include mq("large-up") {
                    @include rem(font-size, 24px);

                    .c-card--lead & {
                        @include rem(font-size, 36px);
                    }
                }
            }

            .c-card__content {
                @include rem(font-size, 13px);
                margin-bottom: 0;

                & + & {
                    margin-top: $base-unit;
                }

                > span,
                > a {
                    color: $color-black;
                }

                // .c-card--lead & {
                //     @include rem(font-size, 15px);
                // }

                // @include mq("medium-up") {
                //     @include rem(font-size, 13px);
                // }

                @include mq("large-up") {
                    @include rem(font-size, 14px);

                    .c-card--lead & {
                        @include rem(font-size, 15px);
                    }
                }
            }

                .c-card__subtitle {
                    color: $color-black;
                    font-weight: bold;
                }

        .c-card__map {
            position: absolute;
            top: 0;
            right: 0;
            width: 100%;
            height: 200px;

            @include mq("medium-up") {
                width: 50%;
                height: 100%;
            }

            @include mq("large-up") {
                width: 630px;
            }
        }

ACC SHELL 2018