mirror of
https://gitee.com/vant-contrib/vant-weapp.git
synced 2025-04-06 03:58:05 +08:00
93 lines
1.6 KiB
Plaintext
93 lines
1.6 KiB
Plaintext
@import '../common/style/var.less';
|
|
@import '../common/style/theme.less';
|
|
|
|
.van-tag {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
line-height: normal;
|
|
.theme(padding, '@tag-padding');
|
|
.theme(color, '@tag-text-color');
|
|
.theme(font-size, '@tag-font-size');
|
|
.theme(border-radius, '@tag-border-radius');
|
|
|
|
&::after {
|
|
border-color: currentColor;
|
|
.theme(border-radius, '@tag-border-radius * 2');
|
|
}
|
|
|
|
&--default {
|
|
.theme(background-color, '@tag-default-color');
|
|
|
|
&.van-tag--plain {
|
|
.theme(color, '@tag-default-color');
|
|
}
|
|
}
|
|
|
|
&--danger {
|
|
.theme(background-color, '@tag-dander-color');
|
|
|
|
&.van-tag--plain {
|
|
.theme(color, '@tag-dander-color');
|
|
}
|
|
}
|
|
|
|
&--primary {
|
|
.theme(background-color, '@tag-primary-color');
|
|
|
|
&.van-tag--plain {
|
|
.theme(color, '@tag-primary-color');
|
|
}
|
|
}
|
|
|
|
&--success {
|
|
.theme(background-color, '@tag-success-color');
|
|
|
|
&.van-tag--plain {
|
|
.theme(color, '@tag-success-color');
|
|
}
|
|
}
|
|
|
|
&--warning {
|
|
.theme(background-color, '@tag-warning-color');
|
|
|
|
&.van-tag--plain {
|
|
.theme(color, '@tag-warning-color');
|
|
}
|
|
}
|
|
|
|
&--plain {
|
|
.theme(background-color, '@tag-plain-background-color');
|
|
}
|
|
|
|
&--mark {
|
|
padding-right: 0.7em;
|
|
|
|
&,
|
|
&::after {
|
|
.theme(
|
|
border-radius,
|
|
'0 @tag-round-border-radius @tag-round-border-radius 0'
|
|
);
|
|
}
|
|
}
|
|
|
|
&--round {
|
|
&,
|
|
&::after {
|
|
.theme(border-radius, '@tag-round-border-radius');
|
|
}
|
|
}
|
|
|
|
&--medium {
|
|
.theme(font-size, '@tag-medium-font-size');
|
|
}
|
|
|
|
&--large {
|
|
.theme(font-size, '@tag-large-font-size');
|
|
}
|
|
|
|
&__close {
|
|
margin-left: 2px;
|
|
}
|
|
}
|