Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Change breakpoint for topbar/tab-bar #260

Closed
Strutsagget opened this issue Mar 4, 2015 · 3 comments
Closed

Change breakpoint for topbar/tab-bar #260

Strutsagget opened this issue Mar 4, 2015 · 3 comments

Comments

@Strutsagget
Copy link

Hi im trying to find out but can't really get it working.

If i want to hide the topbar on everything below 1024px and show tab-bar.

Cant find how to set it in _settings.scss

@Tralapo
Copy link
Contributor

Tralapo commented Mar 5, 2015

Line 1428:

// $topbar-breakpoint: #{lower-bound($medium-range)}; // Change to 9999px for always mobile layout

For you, should become:

$topbar-breakpoint: 1024px;

@Tralapo
Copy link
Contributor

Tralapo commented Mar 18, 2015

Oh wow, I just realise how stupid my answer is just now. I'm sorry. The _settings.scss topbar-breakpoint only works for the top-bar, it's not for the tab-bar.

To do what you want, you have to look at header.php. On line 42, you see:

<nav class="tab-bar show-for-small-only">

This tells the tab-bar is only shown on small screens. In parts/top-bar.php you can see the top-bar is shown on everything but small:

<div class="top-bar-container contain-to-grid show-for-medium-up">

Makes sense, right? You can play with those visibility classes to change the 'breakpoint' between the two. You could choose other classes, or change the current classes in _settings.scss

@olefredrik
Copy link
Owner

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants