ant-design/style/components/tag.less

97 lines
1.4 KiB
Plaintext
Raw Normal View History

2015-07-28 20:03:10 +08:00
@import "../mixins/index";
2015-08-20 16:55:42 +08:00
@tag-prefix-cls: ~"@{css-prefix}tag";
2015-07-28 20:03:10 +08:00
2015-08-20 16:55:42 +08:00
.@{tag-prefix-cls} {
2015-07-28 20:03:10 +08:00
display: inline-block;
line-height: 22px;
height: 22px;
padding: 0 8px;
border-radius: @border-radius-base;
2015-07-28 20:03:10 +08:00
background: #f3f3f3;
font-size: @font-size-base;
margin-right: 4px;
margin-bottom: 8px;
2015-08-19 17:26:55 +08:00
transition: all 0.3s @ease-in-out-circ;
2015-07-28 20:03:10 +08:00
vertical-align: middle;
opacity: 0.85;
2015-08-19 15:46:33 +08:00
overflow: hidden;
2015-07-28 20:03:10 +08:00
&:hover {
opacity: 1;
}
&,
a,
a:hover {
color: @text-color;
}
2016-01-27 01:23:30 +08:00
&-text {
a:first-child:last-child {
display: block;
margin: 0 -8px;
padding: 0 8px;
}
}
2015-07-28 20:03:10 +08:00
.anticon-cross {
.iconfont-size-under-12px(10px);
2015-07-28 20:03:10 +08:00
cursor: pointer;
font-weight: bold;
margin-left: 3px;
2015-08-19 17:26:55 +08:00
color: #666;
2015-07-28 20:03:10 +08:00
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 {
2015-11-10 18:24:06 +08:00
background: @link-color;
2015-07-28 20:03:10 +08:00
}
&-green {
background: @success-color;
}
&-yellow {
background: @warning-color;
}
&-red {
background: @error-color;
}
2015-08-19 15:46:33 +08:00
2015-08-19 17:50:20 +08:00
&-close {
2015-08-19 17:26:55 +08:00
width: 0 !important;
padding: 0;
2016-01-27 01:47:12 +08:00
margin: 0;
2015-08-19 17:26:55 +08:00
}
2015-11-19 00:13:16 +08:00
2016-01-27 14:48:25 +08:00
&-zoom-enter,
&-zoom-appear {
animation: antZoomIn .2s @ease-in-out-circ;
animation-fill-mode: both;
}
2015-11-19 00:13:16 +08:00
&-zoom-leave {
animation: antZoomOut .2s @ease-in-out-circ;
2015-11-19 00:13:16 +08:00
animation-fill-mode: both;
}
2015-07-28 20:03:10 +08:00
}