Sha256: db76445ec8801dab119900c2b08e2386b109b62a7f7b7e93a9be6a9ed8637472

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

.cart-item {
  border-bottom: solid 1px $color-border-light;
  font-size: 1.3rem;
  padding: 2rem 0;

  @include desktop {
    align-items: center;
    display: flex;

    > * {
      margin-bottom: 0;
    }

    &__image {
      flex-grow: 0;
      flex-shrink: 0;
      width: 20%;

      img {
        max-width: 100%;
      }
    }

    &__info {
      flex-grow: 1;
      padding-left: 4rem;
      padding-right: 2rem;
    }

    &__price-single,
    &__price {
      padding: 0 1rem;
    }

    &__quantity,
    &__price,
    &__remove {
      margin: 0;
    }

    &__price {
      font-size: 1.5rem;
    }

    &__quantity {
      flex-grow: 0;
      flex-shrink: 0;
      width: 10%;
    }

    &__remove {
      text-align: right;
      width: 12%;
    }
  }

  > * {
    margin-bottom: 1rem;
  }

  &:first-child {
    border-top: solid 1px $color-border-light;
  }

  &__image {
    text-align: center;
  }

  &__quantity,
  &__price,
  &__remove {
    margin: 10px 0 10px auto;
    text-align: right;
    width: 10rem;
  }

  &__remove {
    > input {
      background: transparent;
      border: 0;
      cursor: pointer;
      padding: 0;
      text-decoration: underline;
    }
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
solidus_starter_frontend-0.1.0 app/assets/stylesheets/spree/frontend/components/cart/_cart_item.scss