Skip to content

Hide top level navigation? #8192

Answered by kamilkrzyskow
contagon asked this question in Q&A
Discussion options

You must be logged in to vote

The <label class="md-nav__title" for="__drawer"> is always included. It's part of the mobile navigation, but when navigation.tabs are not enabled, then the title is also visible in the desktop version without the logo.

To hide it on desktop mode one would use extra CSS with media query:

@media screen and (min-width: 76.25em) {
  label[for="__drawer"] {
    display: none;
  }
}

References:

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kamilkrzyskow
Comment options

Answer selected by contagon
@contagon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants