Wow, been a member since '03, and my last login was in 2011. My how Sitepoint has changed.
Anyway, If this is the incorrect category, please move it, or let me know.
I’m working with Zurb Foundation 6 and always tend to have two separate issues with the TopBar when it comes to navigation items.
PROBLEM 1
The first issue, in the first example, is whenever I use whitespace in navigation items such as"FOR SALE" on an expanded navigation menu, when the width of the browser is reduced the words stack on top of each other.
I tried adding a white-space:nowrap;, hover when the screen width is reduced the navigation text starts breaking out of its container.
Here is an example of this problem on codepen, with the nowrap added to the css just resize your browser width:
PROBLEM TWO
The second problem I always seem to have is that if I create a logo on the left of the screen, then put my navigation in top-bar-right, whenever the width of the browser is reduced the navigation will stack under the logo until it hits a breakpoint.
here is a link to this codepen:
I tried to create a custom breakpoint in the _settings.scss file such as
p.s. I don’t see a code icon in the editor here.
$breakpoints: (
small: 0,
tiny:460px,
medium: 640px,
custom: 950px,
large: 1024px,
xlarge: 1200px,
xxlarge: 1440px,
);
$print-breakpoint: large;
$breakpoint-classes: (small tiny custom medium large);
...
...
// 37. Top Bar
...
$topbar-unstack-breakpoint: custom;
Then I modified the .title-bar and use the custom breakpoint like so:
.title-bar {
@include breakpoint(custom) {
width:950px;
}
}
It seems that defining a “custom” size, I should be able to use things like data-hide-for=“custom”, “custom-dropdown”, etc., in my html, but it fails to work.
Any suggestions and help would be greatly appreciated.