Bulma: BUG: navbar is-transparent not working

Created on 31 Oct 2017  路  8Comments  路  Source: jgthms/bulma

Overview of the problem

This is about the Bulma CSS framework
I'm using Bulma version [0.6.0]
My browser is: Chrome 61.0.3163.100
I am sure this issue is not a duplicate

Description

With this markup:

<nav class="navbar is-transparent" role="navigation" aria-label="main navigation">

It's not working on any screen sizes.

Also I think it should be better to make this work on all screen sizes. (not only desktop as the doc said)

Most helpful comment

To make transparent navbar, you must add this code

.navbar {
&.is-transparent {
background-color: transparent;
background-image: none;
}
}

All 8 comments

Hi Jim, I was trying to do something similar, but when you closely read the documentation it says:

This will remove any hover or active background from the navbar items.

It doesn't actually say it will remove the background of the navbar. It is confusing though.
It's easy to implement yourself by extending the SCSS file.

Hi @dlgoodchild and thanks for you message.

Indeed it's only remove hover and active background. I will extend bulma then.

Cheers

Yes I agree the name is not the best but I couldn't find a better one.

To make transparent navbar, you must add this code

.navbar {
&.is-transparent {
background-color: transparent;
background-image: none;
}
}

@jgthms what about stateless or non-interactive, then implement transparent as true transparency (as with what would be expected)

To make transparent navbar, you must add this code

.navbar {
&.is-transparent {
background-color: transparent;
background-image: none;
}
}

Add to where?

To make transparent navbar, you must add this code
.navbar {
&.is-transparent {
background-color: transparent;
background-image: none;
}
}

Add to where?

To the scss file you are using

A workaround can be to set the navbar-background-color variable to transparent:

$navbar-background-color: transparent;

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NurdinDev picture NurdinDev  路  3Comments

dotMastaz picture dotMastaz  路  3Comments

Antrikshy picture Antrikshy  路  3Comments

Wikiki picture Wikiki  路  3Comments

leofontes picture leofontes  路  3Comments