mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
[improvement] Badge: update style (#1907)
This commit is contained in:
@@ -41,12 +41,10 @@
|
||||
}
|
||||
|
||||
&__info {
|
||||
top: 7px;
|
||||
left: auto;
|
||||
top: 4px;
|
||||
right: 4px;
|
||||
right: 5px;
|
||||
font-size: 12px;
|
||||
min-width: 1.5em;
|
||||
line-height: 1.5em;
|
||||
transform: scale(0.7);
|
||||
transform: scale(0.9);
|
||||
}
|
||||
}
|
||||
|
@@ -4,13 +4,14 @@
|
||||
color: #fff;
|
||||
left: 100%;
|
||||
top: -.5em;
|
||||
font-size: .5em;
|
||||
padding: 0 .3em;
|
||||
font-size: .6em;
|
||||
font-weight: 500;
|
||||
padding: 0 .25em;
|
||||
text-align: center;
|
||||
min-width: 1.2em;
|
||||
line-height: 1.2;
|
||||
min-width: 1.4em;
|
||||
line-height: 1.4;
|
||||
position: absolute;
|
||||
border-radius: .6em;
|
||||
border-radius: .7em;
|
||||
box-sizing: border-box;
|
||||
background-color: $red;
|
||||
transform: translateX(-50%);
|
||||
|
Reference in New Issue
Block a user