mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
91 lines
1.4 KiB
Plaintext
91 lines
1.4 KiB
Plaintext
@import '../style/var';
|
|
|
|
.van-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
padding: @tag-padding;
|
|
color: @tag-text-color;
|
|
font-size: @tag-font-size;
|
|
line-height: normal;
|
|
border-radius: @tag-border-radius;
|
|
|
|
&::after {
|
|
border-color: currentColor;
|
|
border-radius: @tag-border-radius * 2;
|
|
}
|
|
|
|
&--default {
|
|
background-color: @tag-default-color;
|
|
|
|
&.van-tag--plain {
|
|
color: @tag-default-color;
|
|
}
|
|
}
|
|
|
|
&--danger {
|
|
background-color: @tag-danger-color;
|
|
|
|
&.van-tag--plain {
|
|
color: @tag-danger-color;
|
|
}
|
|
}
|
|
|
|
&--primary {
|
|
background-color: @tag-primary-color;
|
|
|
|
&.van-tag--plain {
|
|
color: @tag-primary-color;
|
|
}
|
|
}
|
|
|
|
&--success {
|
|
background-color: @tag-success-color;
|
|
|
|
&.van-tag--plain {
|
|
color: @tag-success-color;
|
|
}
|
|
}
|
|
|
|
&--warning {
|
|
background-color: @tag-warning-color;
|
|
|
|
&.van-tag--plain {
|
|
color: @tag-warning-color;
|
|
}
|
|
}
|
|
|
|
&--plain {
|
|
background-color: @tag-plain-background-color;
|
|
}
|
|
|
|
&--mark {
|
|
padding-right: 0.7em;
|
|
|
|
&,
|
|
&::after {
|
|
border-radius: 0 @tag-round-border-radius @tag-round-border-radius 0;
|
|
}
|
|
}
|
|
|
|
&--round {
|
|
&,
|
|
&::after {
|
|
border-radius: @tag-round-border-radius;
|
|
}
|
|
}
|
|
|
|
&--medium {
|
|
font-size: @tag-medium-font-size;
|
|
}
|
|
|
|
&--large {
|
|
font-size: @tag-large-font-size;
|
|
}
|
|
|
|
&__close {
|
|
min-width: 1em;
|
|
margin-left: 2px;
|
|
cursor: pointer;
|
|
}
|
|
}
|