tag.less 1.0 KB
Newer Older
A
afc163 已提交
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 61 62 63 64 65 66 67 68 69 70 71 72
@import "../mixins/index";
@tagPrefixClass: ~"@{css-prefix}tag";

.@{tagPrefixClass} {
  display: inline-block;
  line-height: 22px;
  height: 22px;
  padding: 0 8px;
  border-radius: 20px;
  background: #f3f3f3;
  font-size: @font-size-base;
  margin-right: 4px;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  vertical-align: middle;
  opacity: 0.85;

  &:hover {
    opacity: 1;
  }

  &,
  a,
  a:hover {
    color: @text-color;
  }

  .anticon-cross {
    .iconfont-size-under-12px(7px);
    cursor: pointer;
    font-weight: bold;
    margin-left: 3px;
    position: relative;
    top: -1px;
    color: #6666;
    transition: all 0.3s ease;
    opacity: 0.66;

    &:hover {
      opacity: 1;
    }
  }

  &-blue,
  &-green,
  &-yellow,
  &-red {
    &,
    a,
    a:hover,
    .anticon-cross,
    .anticon-cross:hover {
      color: #fff;
    }
  }

  &-blue {
    background: @primary-color;
  }

  &-green {
    background: @success-color;
  }

  &-yellow {
    background: @warning-color;
  }

  &-red {
    background: @error-color;
  }
}