rating.less 1.27 KB
Newer Older
Felipe Escala Torres committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
// CORE
@import "../../../global/less/core/variable.less";
@import "../../../global/less/core/mixins.less";
@import "../../../global/less/core/functions.less";

/* ========================================================================
 * RATING STAR
 * ======================================================================== */
.rating{
  unicode-bidi: bidi-override;
  direction: rtl;
  font-size: 13px;
  &.rating-2x {
    font-size: 26px;
  }
  &.rating-3x {
    font-size: 39px;
  }
  &.rating-4x {
    font-size: 52px;
  }
  &.rating-5x {
    font-size: 65px;
  }
  .star{
    font-family: "FontAwesome";
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    cursor: pointer;
    &:hover{
      &:before{
        content: "\f005";
      }
    }
    &:before{
      content: "\f006";
      padding-right: 0;
    }
    &.active{
      &:before{
        content: "\f005";
      }
      &~.star{
        &:before{
          content: "\f005";
        }
      }
    }
  }
}

.rating-color(primary,@color-primary);
.rating-color(success,@color-success);
.rating-color(info,@color-info);
.rating-color(warning,@color-warning);
.rating-color(danger,@color-danger);
.rating-color(lilac,@color-lilac);
.rating-color(teals,@color-teal);
.rating-color(inverse,@color-inverse);