fix(carousel): fix issue #1543 (#1548)

This commit is contained in:
Zcating 2024-04-12 14:33:50 +08:00 committed by GitHub
parent cca1a5eab4
commit f834ca7e05
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 0 deletions

View File

@ -71,6 +71,19 @@
color: var(--ti-carousel-arrow-text-color);
}
&.@{carousel-prefix-cls}__arrow-top {
@apply top-0;
@apply ~'left-1/2';
@apply ~'-translate-x-2/4';
}
&.@{carousel-prefix-cls}__arrow-bottom {
@apply bottom-0;
@apply ~'left-1/2';
top: unset;
@apply ~'-translate-x-2/4';
}
&:hover {
background-color: var(--ti-carousel-arrow-hover-bg-color);
color: var(--ti-carousel-arrow-hover-text-color);