mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-23 18:00:27 +08:00
fix button actived 1px blank
This commit is contained in:
parent
771bd7eba2
commit
9d7417b386
@ -15,13 +15,16 @@
|
|||||||
&::before {
|
&::before {
|
||||||
content: " ";
|
content: " ";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -1px;
|
top: 50%;
|
||||||
left: -1px;
|
left: 50%;
|
||||||
right: -1px;
|
|
||||||
bottom: -1px;
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
background-color: $black;
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border: inherit;
|
||||||
|
border-color: #000;
|
||||||
|
background-color: #000;
|
||||||
border-radius: inherit;/* inherit parent's border radius */
|
border-radius: inherit;/* inherit parent's border radius */
|
||||||
|
transform: translate3d(-50%, -50%, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not([disabled]):active::before {
|
&:not([disabled]):active::before {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user