_page-map.scss 4.33 KB
.page-map {
    &__wrap {
        overflow: hidden;
    }

    &__map {
        height: 700px;
        background-color: #ccc;

        [class*="copyrights-pane"],
        [class*="ground-pane"] {
            filter: grayscale(1);
        }

        [class*="image-with-content-content"] {
            width: 100% !important;
        }
    }

    &__inner {
        position: relative;
    }
}

.page-map-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(calc(100% - 70px));
    box-shadow: 0px 0px 28px rgba(14, 56, 94, 0.08), 0px 0px 16px rgba(14, 56, 94, 0.08);
    border-radius: 10px 10px 0px 0px;
    background-color: $white;
    transition: .3s;

    @media (min-width: 480px) {
        left: 0;
        right: auto;
        width: 350px;
    }

    &.active {
        transform: translateY(0);

        .page-map-bar__close svg {
            transform: rotate(0);
        }
    }

    &__top {
        position: relative;
        font-size: 20px;
        line-height: 30px;
        font-weight: 700;
        padding: 20px 60px 20px 20px;
        background-color: #EDF7FF;
    }

    &__close {
        position: absolute;
        top: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 70px;

        svg {
            fill: $blue;
            transform: rotate(45deg);
            transition: .3s;
        }
    }

    &__list {
        display: flex;
        flex-direction: column;
    }

    &__item {
        position: relative;
        color: #4B4E53;
        font-size: 14px;
        line-height: 20px;
        font-weight: 500;
        padding: 12px 45px 12px 20px;
        cursor: pointer;
        transition: .3s;

        &::after {
            content: '';
            position: absolute;
            top: 50%;
            right: 23px;
            transform: translateY(-50%);
            width: 12px;
            height: 7px;
            background-repeat: no-repeat;
            background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 1L6 6L1 1' stroke='%2342AAFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            transition: .3s;
        }

        &:not(:last-child) {
            border-bottom: 1px solid #E6E7E7;
        }

        &:hover {
            @media (min-width: 1200px) {
                color: $white;
                background-color: $blue;

                &::after {
                    background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 1L6 6L1 1' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
                }
            }
        }

        &.active {
            order: -1;
            color: $white;
            background-color: $blue;

            @media (min-width: 780px) {
                order: 0;
            }

            &::after {
                background-image: url("data:image/svg+xml,%3Csvg width='12' height='7' viewBox='0 0 12 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 1L6 6L1 1' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
                transform: translateY(-50%) rotate(-90deg);
            }
        }
    }



    .card-news {
        position: absolute;
        bottom: 0;
        left: 20px;
        right: 20px;
        height: 384px;
        border-radius: 10px 10px 0 0;
        transform: translateY(calc(100% + 25px));
        transition: .3s;

        @media (min-width: 780px) {
            left: calc(100% + 10px);
            right: auto;
            width: 360px;
        }

        &.active {
            transform: translateY(0);
            z-index: 1;
        }
    }

    .card-news__top {
        min-height: 150px;
    }

    .card-news__date {
        span {
            font-weight: 800;
            font-size: 24px;
            line-height: 28px;
            -webkit-line-clamp: 2;

            &:nth-child(1) {
                margin-bottom: 0;
            }

            &:nth-child(n + 2) {
                display: none;
            }
        }
    }

    .card-news__descr {
        -webkit-line-clamp: 6;
    }
}