_status.scss 1.85 KB

.status_wrapp {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
}

.ribbon {
  position: relative;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 13px;
  &:first-child {
    margin-top: 0;
  }

  .ribbon-background {
    position: absolute;
    top: 0;
    right: 0;
  }

  .theribbon {
    text-shadow: 0px 1px 2px #bbb;
    position: relative;
    min-width: 80px;
    text-align: center;
    margin: 0 0 0 0;
    color: #fff;
    background-color: $colorStatusSale;
    font-family: "Roboto", Helvetica, Arial, sans-serif;
    padding: 3px 0;

    &:after {
      content: ' ';
      position: absolute;
      width: 0;
      height: 0;
      left: 0;
      top: 100%;
      border-width: 4px 5px;
      border-style: solid;
      border-color: $colorStatusSale $colorStatusSale transparent transparent;
    }
    &:before {
      content: ' ';
      position: absolute;
      width: 0;
      height: 0;
      left: 0;
      top: 100%;
      border-width: 4px 5px;
      border-style: solid;
      border-color: #000 #000 transparent transparent;
      z-index: 2;
      @include Opacity(0.3);
    }
  }


  &.sale {
    .theribbon {
      background-color: $colorStatusSale;
      &:after {
        border-color: $colorStatusSale $colorStatusSale transparent transparent;
      }
    }
  }
  &.new {
    .theribbon {
      background-color: $colorStatusNew;
      &:after {
        border-color: $colorStatusNew $colorStatusNew transparent transparent;
      }
    }
  }

  &.top {
    .theribbon {
      background-color: $colorStatusTop;
      &:after {
        border-color: $colorStatusTop $colorStatusTop transparent transparent;
      }
    }
  }

  &.gift {

    .theribbon {
      background-color: $colorStatusGift;
      &:after {
        border-color: $colorStatusGift $colorStatusGift transparent transparent;
      }
    }
  }

}