How do I define different fixed_top values within magellan's options, or css, to accommodate different header heights on various devices? My header height varies from 60px on medium to 120px on large.
The inline nature of Magellan's options trumps all css I use to change this within my media queries.
I have also tried interchange to swap out values to no avail.
I've had the same problem. Currently there is not really a way to fix this with solely Magellan, for it uses fixed parameters setting the offset. I've applied the following fix:
fixedfrom thedata-magellan-expeditionattribute. Magellan will no longer handle the fixed-positioningbodywhich you can use to applied media queries. These break point classes are reusable for other applications as well. An example:Let's say your html is like:
Note the missing
fixedindata-magellan-expedition="fixed".Now add some JS to your document:
The above will add a class
break-310once the user scrolls more than 310px and another classbreak-500if the user scrolls 310px.Now in your CSS you could do something like: