mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
78 lines
1.4 KiB
CSS
78 lines
1.4 KiB
CSS
@import './common/var.css';
|
|
@import './mixins/border_retina.css';
|
|
|
|
@component-namespace van {
|
|
@b badge-group {
|
|
position: relative;
|
|
width: 85px;
|
|
&::after {
|
|
@mixin border-retina (top);
|
|
}
|
|
}
|
|
|
|
@b badge {
|
|
display: block;
|
|
overflow: hidden;
|
|
position: relative;
|
|
padding: 20px 12px;
|
|
box-sizing: border-box;
|
|
line-height: 1.4;
|
|
background-color: $c-background;
|
|
color: $c-gray-darker;
|
|
font-size: 14px;
|
|
text-decoration: none;
|
|
word-break: break-all;
|
|
|
|
@m select {
|
|
font-weight: bold;
|
|
color: $c-black;
|
|
background-color: $c-white;
|
|
.van-badge__active {
|
|
display: block;
|
|
}
|
|
&::after {
|
|
@mixin border-retina (top);
|
|
@mixin border-retina (right);
|
|
@mixin border-retina (left);
|
|
}
|
|
}
|
|
|
|
@e active {
|
|
display: none;
|
|
position: absolute;
|
|
left: 0;
|
|
top: 0;
|
|
width: 3px;
|
|
height: 100%;
|
|
background-color: #FF4444;
|
|
}
|
|
|
|
@e info {
|
|
position: absolute;
|
|
top: 2px;
|
|
right: 2px;
|
|
font-size: 10px;
|
|
transform:scale(0.8);
|
|
text-align: center;
|
|
box-sizing: border-box;
|
|
padding: 0 6px;
|
|
min-width: 18px;
|
|
height: 18px;
|
|
line-height: 18px;
|
|
border-radius: 9px;
|
|
background-color: #FF4444;
|
|
color: $c-white;
|
|
}
|
|
|
|
&::after {
|
|
@mixin border-retina (bottom);
|
|
}
|
|
|
|
&:last-child {
|
|
&::after {
|
|
border-bottom: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|