tag.less 1.2 KB
Newer Older
A
afc163 已提交
1
@import "../mixins/index";
A
afc163 已提交
2
@tag-prefix-cls: ~"@{css-prefix}tag";
A
afc163 已提交
3

A
afc163 已提交
4
.@{tag-prefix-cls} {
A
afc163 已提交
5 6 7 8 9 10 11 12 13
  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;
J
jljsj 已提交
14 15
  transition: all 0.3s @ease-in-out-circ;
  transform-origin: 100% 50%;
A
afc163 已提交
16 17
  vertical-align: middle;
  opacity: 0.85;
J
jljsj 已提交
18
  overflow: hidden;
A
afc163 已提交
19 20 21 22 23 24 25 26 27 28 29 30

  &:hover {
    opacity: 1;
  }

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

  .anticon-cross {
31
    .iconfont-size-under-12px(10px);
A
afc163 已提交
32 33 34 35 36
    cursor: pointer;
    font-weight: bold;
    margin-left: 3px;
    position: relative;
    top: -1px;
J
jljsj 已提交
37
    color: #666;
A
afc163 已提交
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
    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 {
A
afc163 已提交
60
    background: @link-color;
A
afc163 已提交
61 62 63 64 65 66 67 68 69 70 71 72 73
  }

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

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

  &-red {
    background: @error-color;
  }
J
jljsj 已提交
74

A
afc163 已提交
75
  &-close {
J
jljsj 已提交
76

J
jljsj 已提交
77 78 79 80
    width: 0 !important;
    padding: 0;
    margin-right: 0;
  }
A
afc163 已提交
81
}