feat(carousel): add active transform style for button (#534)

This commit is contained in:
doom-9 2021-07-22 00:49:48 +08:00 committed by GitHub
parent df8186480d
commit 661cf152c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,6 +79,9 @@ export default cB('carousel', `
`, [
c('&:hover', {
transform: 'translateY(-50%) scale(1.1)'
}),
c('&:active', {
transform: 'translateY(-50%) scale(1)'
})
]),
cM('top', `
@ -88,6 +91,9 @@ export default cB('carousel', `
`, [
c('&:hover', {
transform: 'translateX(-50%) scale(1.1) rotate(90deg)'
}),
c('&:active', {
transform: 'translateX(-50%) scale(1) rotate(90deg)'
})
]),
cM('bottom', `
@ -97,6 +103,9 @@ export default cB('carousel', `
`, [
c('&:hover', {
transform: 'translateX(-50%) scale(1.1) rotate(90deg)'
}),
c('&:active', {
transform: 'translateX(-50%) scale(1) rotate(90deg)'
})
])
]),