- This topic has 5 replies, 3 voices, and was last updated 2 years, 11 months ago by
Ying.
-
AuthorPosts
-
March 24, 2023 at 1:50 am #2579939
Manzelov
Hi,
I have created an off-canvas panel which worked fine. It contains the output of a widget, showing last seen content by the visitor.
Lately, I am seeing a strange change in its closing behavior which I would like to fix.
The issue is, that when I close the panel it kind of stops half-way through and only then continues to fully close.
I use the following custom css in the customizer (I believe it is from your documentation):
/** Off canvas panel width - Start */ body .offside--left.is-open, .offside-js--is-left .offside-sliding-element { -webkit-transform: translate3d(600px,0,0); -moz-transform: translate3d(600px,0,0); -ms-transform: translate3d(600px,0,0); -o-transform: translate3d(600px,0,0); transform: translate3d(600px,0,0); } body .offside--right.is-open, .offside-js--is-right .offside-sliding-element { -webkit-transform: translate3d(-600px,0,0); -moz-transform: translate3d(-600px,0,0); -ms-transform: translate3d(-600px,0,0); -o-transform: translate3d(-600px,0,0); transform: translate3d(-600px,0,0); } body .main-navigation.offside { width: 600px; } /** body .offside--left { left: -600px; } These couple of lines used to work but now I have comment it out, because if they are active the content of the off-canvas panel is going somewhere 50% left and not entirely visible*/ body .offside--right { right: -600px; } body.offside-js--is-left.slide-opened .slideout-overlay button.slideout-exit { left: 595px; } /** Off canvas panel width - End */Thank you!
March 24, 2023 at 3:26 am #2580077David
StaffCustomer SupportHi there,
can you, first remove any CSS you have added, and then in Customizer > Layout > Off Canvas check which side you have it set to open and make sure it is the side you want. Then let me know and ill rewrite your CSS
March 26, 2023 at 11:04 am #2583071Manzelov
Thank you very much, David!
I confirm that I have deleted the related CSS and checked the side it is set to open – it is left.
My goal is for the off-canvas to take 40% of the screen when opened in order to accommodate the contents better.
Looking forward to your feedback!
March 26, 2023 at 11:30 am #2583092Ying
StaffCustomer SupportCan you try adding this CSS?
:root { --gp-slideout-width:40vw; }March 26, 2023 at 1:10 pm #2583177Manzelov
Works perfectly, Ying! Thank you very much!
March 27, 2023 at 9:18 am #2584403Ying
StaffCustomer SupportYou are welcome 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.