Add size units to carousel offsets #30062
StenderIternum
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Prerequisites
What problem is your feature request going to solve? Please describe..
Using the carousel widget, you can under settings set Offset sides and Offset Width - But Offset width is a number input.
Meaning that you can't set it to take percentages or calculations.
Describe the solution you'd like.
Like all other width and height settings - I would like to be able to chose between px, percentages and custom.
Describe alternatives you've considered.
It can also be solved to overwriting the variable :
--e-n-carousel-swiper-offset-size()
I tested it in custom css with the following rule :
selector { --e-n-carousel-swiper-offset-size:calc(20%) !important; }
And it works perfectly. (calc was needed for some reason)
Additional context
Adding scaling to the offsets would also be nice - But here is an image of percentages working on the carousel.
And my complete CSS to make it like this :
Agreement
Beta Was this translation helpful? Give feedback.
All reactions