- This topic has 4 replies, 2 voices, and was last updated 4 years, 1 month ago by
Tom.
-
AuthorPosts
-
February 22, 2019 at 2:18 pm #818133
Ender
I would like customize a little the slide menu. I currently user the menu only on mobile. To open the menu in full screen i use this code
with this little modification:
.slideout-overlay { background: #000; } .offside--right.is-open { right: auto; left: calc(50% - 132.5px); transform: translate3d(0,0,0); } .nav-aligned-right.nav-below-header .main-navigation.slideout-navigation { text-align: left; } #generate-slideout-menu .slideout-menu li { text-align: left; } #generate-slideout-menu .slideout-menu li a { border-bottom: 1px solid #282828; padding: 0; } .offside-js--is-right.slide-opened .slideout-overlay button.slideout-exit { left: 0; margin-left: -15px; } .main-navigation.slideout-navigation { background: transparent; padding-top: 10%; } li.slideout-toggle { position: absolute; left: 0; } .main-navigation .main-nav ul li.slideout-toggle a { padding: 15px; line-height: normal; } .inside-navigation { position: static; }
1. Chrome / Safari problem
Adding this CSS to have the close button on the left corner is working on Chrome (Win / iMac).
.offside-js--is-right.slide-opened .slideout-overlay button.slideout-exit { left: 0; margin-left: -15px; }
But unfortunately not on Safari (iMac).
Can u help?
2. How can I stop the scrolling when using this full screen menu?
3. How could I make a little transition, for example the menu names will pull from top to the bottom with little fade?
GeneratePress 2.2.2February 22, 2019 at 2:38 pm #818149Ender
I could solve now the Question 1 with adding this for Safari:
.offside-js--is-right.slide-opened .slideout-overlay button.slideout-exit { right: unset; }
Any Ideas for the other two questions? Many thanks.
February 22, 2019 at 5:32 pm #818276Tom
Lead DeveloperLead DeveloperHi there,
2. Try this:
.slide-opened body { overflow: hidden; }
3. Try this:
.slideout-navigation .main-nav { opacity: 0; transform: translateY(-50px); transition: opacity 500ms ease-in-out, transform 500ms ease-in-out; } .slide-opened .slideout-navigation .main-nav { opacity: 1; transform: translateY(0); }
Let me know ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-developmentFebruary 23, 2019 at 12:17 am #818439Ender
That’s why I love your service and recommend it to all friends.
Thank you so much. It works really well.
February 23, 2019 at 8:25 am #818873Tom
Lead DeveloperLead DeveloperYou’re welcome ๐
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/
Ongoing Development: https://generatepress.com/ongoing-development -
AuthorPosts
- You must be logged in to reply to this topic.