I have a phone # set up in the Drop Zone for my full menus, which is on desktop and landscape iPad.
I’ve hidden that for the portrait iPad and iPhone, and added a Pin Stack for the Phone.
It’s not working well. It doesn’t switch back and forth between landscape and portrait without refreshing.
It’s also showing the Drop Zone in these views as well.
@joeworkman@tav@zeebe can one of you please help? I’m obviously trying to do too much and RW doesn’t like it
The problem is that you have used the Stacks responsive hide controls. This does a simple display: none so the Pin stack has zero size above the breakpoint.
When the page loads, the Pin positioning calcaulations will work on this zero size. As you then rotate your device to below the breakpoint it will suddenly appear but still be positioned according to the zero size calculation.
This is why Pin has its own Hide setting, either above or below its custom breakpoint.
If a stack has its own setting for this function it is most likely because it needs to do things in a more controlled way than just display:none and it is worth using theses specialised settings.
Andrew @tav -
Ah, I remember now why I didn’t do that. I started out that way, but would need it to not show up on iPhone, or larger screens, only on iPad. So I couldn’t figure out how to set both above and below with the breakpoints.
Is there a way to add blank spaces or a blank box or push the menu to the left in Top Box? and just have the Pin stack for all screens except iPhone?
thanks
It is pushed to the right because of the zero size problems as above. If you refresh the page on a smaller screen when it is visible it is positioned correctly.
Its bed time for ducks so I’ll check back on this in the morning and see what you figured out.
arg. I give up. I spent 2 hours trying to get this to work. If you can help me out with my file, I’d appreciate it. I tried putting the pin inside the drop zone and it jumps all over the place. I tried left, right, centered with the menu and I just can’t get the right combo of settings. https://www.lisasandlerphotography.com is the only page published.
thanks
Honestly, at this point I’d just like the Top Bar Drop Zone to show up in Portrait Tablet view. I got rid of the extra Pin stack and it all seems to be working except for tablet landscape. New file replaced old one. Home page is published. https://www.dropbox.com/s/uulcy9yijmaqfnl/tests-2017.rw.zip?dl=0
I think this is a good idea, and we can make it very simple with just a couple of lines of CSS. We will hide the zone first and then selectively show it between two breakpoints:
.top-bar ul.zone{
display:none!important
}
@media screen and (min-width:640px) and (max-width:1024px){
.top-bar ul.zone{
display:block!important
}
}
The only real question is what is tablet portrait size. Just adjust the minimum and maximum width values to suit. You will inevitably catch other devices due to the huge variety of screen sizes but these numbers may help in deciding:
Your hamburger menu does not appear until about 780px. If you use @tav’s code above you will still get the phone number on the drop down menu from the 780px down to the 640px:
Yes, I see that. I cannot figure this out no matter what I do. Even if I just use one top bar and one drop zone, it still shows in the hamburger menu drop down. Care to look at the file and see if you can make it work? Using foundation and Big White Duck stacks. https://www.dropbox.com/s/8n97ocrgngsdg7f/tests-2017.rw.zip?dl=0
OK Took a look. The test project file has a bunch of top bars in it. I just worked on the one on the top. In fact, I deleted the others as they had different break points.
It looks like you are setting the breakpoint for top-bar to 840px, is that correct?
If so try this:
In your page level CSS you have a couple @media querries still set to 780px change them to 840px.
Doug-
So I have since gotten rid of all the extra sizes, as you did. I quickly had pasted it into the 2nd page of the test file, not remembering that it wouldn’t work because it was in the same partial.
I’m working my way through your suggestions on my code and will get back to you.
thanks again
I think I screwed something up. Can you please update the code you gave me to replace my master code? with the correct setting so I don’t have things twice?
ooh I think I got it… just deleted the first set? Nope that got rid of the lines
You’re so awesome with code, Doug
This seems to work, but I was wondering if I could get the phone # to show up on portrait iPad with the hamburger menu. Is this possible or should I give up? Published home page: https://www.lisasandlerphotography.com