[improvement] Swipe: add indicator color prop (#2110)

This commit is contained in:
neverland
2018-11-20 21:00:09 +08:00
committed by GitHub
parent bf9db97921
commit acac16f4c5
5 changed files with 27 additions and 7 deletions

View File

@@ -30,17 +30,19 @@
}
&__indicator {
opacity: .3;
border-radius: 100%;
background-color: @gray-dark;
background-color: @blue;
width: @swipe-indicator;
height: @swipe-indicator;
transition: opacity .2s;
&:not(:last-child) {
margin-right: @swipe-indicator;
}
&--active {
background-color: @orange;
opacity: 1;
}
}
}