[Improvement] Slider: expand touch area (#977)

This commit is contained in:
neverland
2018-05-03 16:07:16 +08:00
committed by GitHub
parent 70399d0e17
commit 997780f2f5

View File

@@ -21,6 +21,16 @@
background-color: $white;
transform: translate3d(50%, -50%, 0);
box-shadow: 0 1px 2px rgba(0, 0, 0, .5);
/* use pseudo element to expand touch area */
&::after {
content: '';
position: absolute;
width: 200%;
height: 200%;
top: -50%;
left: -50%;
}
}
&--disabled {