You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be awesome to have the ability to define multiple "distanceX" for one scotch panel at the different breakpoints in Bootstrap (xs, sm, md, lg). At smaller screens, an offcanvas navigations needs to be wider than a larger screen.
For example:
$(function() {
$('.scotch-panel').scotchPanel({
containerSelector: '#super-container',
enableEscapeKey: true, // Allow the user to quickly shut this down if unwelcomed
distanceXS: '80%', // phones , .visible-xs
distanceSM: '70%', // tablets. .visible-sm
distanceMD: '50%', // desktop, .visible-md
distanceLG: '30%' // large, visible-lg
});
});
The text was updated successfully, but these errors were encountered:
I definitely agree. I definitely want to do that down the road. In the meantime, you could just override it with CSS. Here's an example for the panel "#main-nav" that comes from the left:
It would be awesome to have the ability to define multiple "distanceX" for one scotch panel at the different breakpoints in Bootstrap (xs, sm, md, lg). At smaller screens, an offcanvas navigations needs to be wider than a larger screen.
For example:
The text was updated successfully, but these errors were encountered: