mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-09-05 15:39:46 +08:00
Merge pull request #151 from ZWkang/dev
fix button actived had 1px blank
This commit is contained in:
commit
12e1abc782
@ -15,13 +15,16 @@
|
|||||||
&::before {
|
&::before {
|
||||||
content: " ";
|
content: " ";
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 50%;
|
||||||
left: 0;
|
left: 50%;
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border: inherit;
|
||||||
|
border-color: $black;
|
||||||
background-color: $black;
|
background-color: $black;
|
||||||
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