_basket.scss 5.33 KB
/****modal***/
.basket_modal {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
  display: none;
  z-index: 99998;
  opacity: 0;
}

.basket-modal-bg {
  background: #fff;
  border-radius: 4px;
  position: relative;
  padding: 0 30px 30px;
}

.basket-modal-bg {
  #modal_close {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
  }
}
.model-name-test {
  text-align: center;
  font-size: 18px;
  text-transform: uppercase;
  color: $main-color;
  margin-top: 26px;
}
.basket-tb {
  width: 100%;
  float: left;
  margin-top: 30px;
}
.basket-modal-bg {
  .basket-tb {
    margin-top: 50px;
  }
}
.basket-tb {
  tr {
    td {
      text-align: center;
      font-size: 13px;
      border-top: 1px solid silver;
      height: 180px;
      vertical-align: middle;
      width: 16.66666667%;
      img {
        max-width: 100%;
        max-height: 100%;
        vertical-align: middle;
      }
      .title, .size, .code {
        width: 100%;
        display: block;
        text-align: left;
        padding-left: 30px;
      }
      .title {
        text-transform: uppercase;
        font-size: 14px;
        font-weight: 700;
      }

      .new_price, p {
        font-size: 15px;
        font-weight: 700;
        //color: #f26522;
        color: $main-color;
        span {
          font-weight: 400;
          font-size: 13px;
        }
      }
      .lang_sep {
        &:before {
          top: -1px;
        }
      }
      &.confirm {
        span.remove_ico {
          display: none;
        }
        .remove_confirm {
          display: block;
        }
      }

    }

    &:hover {
      td {
        img {
          @include Opacity(0.85);
          @include Transition(0.2);
        }
      }
    }

    &:first-child {
      td {
        font-weight: 700;
        background: $Main-bg;
        line-height: 25px;
        border-top: 0;
        height: auto;
      }
    }
    &:nth-child(2) {
      td {
        border-top: 0;
      }
    }
  }
}

.price-one-item {
  font-size: 11px;
  color: #a9a9a9;
  font-weight: 400;
}

.quantity-wr {
  width: 136px;
  height: 34px;
  margin: 0 auto;
  span {
    border-radius: 2px;
    display: block;
    width: 28px;
    cursor: pointer;
    text-align: center;
    line-height: 34px;
    border: 1px solid $seo-border;
    color: #88888f;
    background: #fff;
    background: -moz-linear-gradient(top,rgba(255,255,255,1) 0,rgba(245,245,245,1) 100%);
    background: -webkit-linear-gradient(top,rgba(255,255,255,1) 0,rgba(245,245,245,1) 100%);
    background: linear-gradient(to bottom,rgba(255,255,255,1) 0,rgba(245,245,245,1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff', endColorstr='#f5f5f5', GradientType=0);
  }
}
.credits-blocks-basked input, .quantity-wr input, .quantity-wr span {
  height: 34px;
  float: left;
}
.credits-blocks-basked input, .quantity-wr input {
  width: 68px;
  border: 1px solid $seo-border;
  outline: 0!important;
  background: #fff;
  border-radius: 4px;
  text-align: center;
  margin: 0 6px;
  font-size: 15px;
  font-weight: 700;
}

span.remove_ico {
  width: 100%;
  height: 45px;
  display: block;
  background: url(../images/ico-all/ico-64.png) 50% 50% no-repeat;
  cursor: pointer;
  margin: 0 auto;
}

.remove_confirm {
  display: none;
  width: 100%;
  margin: 0 auto;
}
.remove-yes {
  margin-right: 10px;
}
.lang_sep {
  position: relative;
  &:before {
    position: absolute;
    content: '';
    width: 1px;
    height: 18px;
    top: 2px;
    left: -2px;
    background: #e1e1e1;
  }
}
.remove-no {
  margin-left: 10px;
}

.price-total-wr {
  height: 57px;
  background: $Main-bg;
  position: relative;
}

.total_txt {
  font-size: 15px;
  line-height: 58px;
}

#basket-modal-form {
  width: 100%;
  float: left;
}
.btn_link_basket {
  float: right;

  width: 156px;

  text-align: center;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  display: block;
  cursor: pointer;
  margin-left: 68px;
  margin-top: 13px;
}
#modal_close-2 {
  margin-top: 13px;
  line-height: 34px;
  display: block;
  float: right;
  color: #0072bc;
  font-size: 13px;
  cursor: pointer;
  position: relative;
  &:before {
    position: absolute;
    content: '';
    left: 0;
    bottom: 10px;
    height: 1px;
    width: 100%;
    border-bottom: 1px dashed #0072bc;
  }
}

.price-total {
  text-align: center;
  font-size: 18px;
  color: $main-color;
  line-height: 57px;
  font-weight: 700;
  span {
    font-weight: 400;
    font-size: 15px;
  }
}
/************/
.title_empty_basket {
  margin-top: 30px;
  font-size: 15px;
  color: #f26522;
  height: 200px;
}
/************/
@media (max-width: 992px) {

}

@media (max-width: 890px) {
  .quantity-wr {
    width: 114px;
    span {
      width: 25px;
    }
    input {
      margin: 0 4px;
      width: 56px;
    }
  }
}

@media (max-width: 767px) {
  .basket-tb {
    tr {
      td {
        width: 100%;
        height: auto;
        float: left;
        padding-top: 15px;
        border-top: 0;

        .code, .size, .title {
          text-align: center;
          padding-left: 0;
        }

        &:first-child {
          border-top: 1px solid silver;
        }
      }

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

        td {
          border-top: 0;
        }

      }
    }
  }
  .remove_confirm {
    height: 45px;
    line-height: 45px;
  }
}