city.scss 2.29 KB
@import "../../vars";
@import "../../mixins";

.modal-city {
    width: 100%;
    // height: 100vh;
    padding: 30px 280px 14px 240px;
    left: 0;
    top: 64px;
    border-radius: 0;
    height: 900px;

    &--hidden {
        display: none
    }
}

.modal-city-top {
    display: flex;
    align-items: center;

    &__title {
        font-weight: 700;
        font-size: 48px;
        line-height: 100%;
        color: $vmainGrey;
        margin-right: 60px;
    }

    &__close {
        position: relative;
        cursor: pointer;

        &:after {
            position: absolute;
            content: "";
            background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_314_27095)'%3E%3Cpath d='M4 40L0 36L16 20L0 4L4 0L20 16L36 0L40 4L24 20L40 36L36 40L20 24L4 40Z' fill='%23636B78'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_314_27095'%3E%3Crect width='40' height='40' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
            background-size: cover;
            background-repeat: no-repeat;
            width: 40px;
            height: 40px;
            top: -20px;
            right: -530px;
        }
    }   
}

.modal-city-search {

    &:after {
       right: 20px;
    }
}

.modal-city-content {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    font-size: 14px;
    line-height: 16px;
    color: #283C50;
    height: 700px;

    > :not(:last-child) {
            margin-bottom: 25px;
        }
}

.city-content-column {
    max-width: 220px;
    width: 100%;
      
}

 .city-main {
    max-width: 218px;
    width: 100%;

     > :not(:first-child) {
         margin-top: 11px;
     }

     &__item {
         cursor: pointer;

         &--active {
             color: $vactiveOrange;
         }
     }
 }
 
 .modal-city-block {
    position: relative;
    max-width: 230px;
    width: 100%;
    margin-right: 50px;

    > :not(:last-child) {
        margin-bottom: 8px;
    }

    &__name {
       padding-left: 26px;
       cursor: pointer; 
    }

    &__letter {
        position: absolute;
        top: 0;
        left: 0;
        color: #828CA0;
    }
 }

 .modal-city-overlay {
    top: 64px;

    &--hidden {
        display: none;
    }
 }