jiaqingjiayi-xiaochengxu/甲情_甲意/miniprogram/node_modules/antd-mini/less/Badge/index.less

70 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-11-10 07:01:22 +00:00
@import (reference) './variable.less';
@badgePrefix: ant-badge;
.@{badgePrefix} {
display: inline-block;
position: relative;
&-content {
position: absolute;
display: flex;
height: 28 * @rpx;
align-self: center;
align-items: center;
font-size: 18 * @rpx;
padding: 4 * @rpx 8 * @rpx;
box-sizing: border-box;
word-break: keep-all;
justify-content: center;
top: 0;
left: 100%;
transform: translate(-50%, -50%);
&-stroke {
border: 2 * @rpx solid @COLOR_WHITE;
}
&-text {
padding-left: 4 * @rpx;
&:empty {
display: none;
}
2024-12-01 11:56:54 +00:00
.ant-badge-icon-container:empty ~ & {
2024-11-10 07:01:22 +00:00
padding-left: 0;
}
}
.ant-icon {
font-size: 18 * @rpx;
color: @COLOR_WHITE;
}
&-not-dot {
min-width: 28 * @rpx;
height: 28 * @rpx;
border-radius: 28 * @rpx;
display: flex;
background-color: @badge-background-color;
}
}
&-dot {
width: 20 * @rpx;
height: 20 * @rpx;
border-radius: 50%;
background-color: @badge-background-color;
&-stroke {
border: 2 * @rpx solid @COLOR_WHITE;
}
}
&-number,
&-text,
&-bubble {
color: @COLOR_WHITE;
}
}