Bulma: Fixed navbar is on top of overlays

Created on 14 Nov 2017  路  7Comments  路  Source: jgthms/bulma

Overview of the problem

This is about the Bulma CSS framework
I'm using Bulma version 0.6.1

Description

Fixed navbar is on top of overlays, I think it's not intended.

Steps to Reproduce

See documentation Modal page: https://bulma.io/documentation/components/modal/
Scroll up to see the navbar and open modal.

Expected behavior

Overlay to be on top of everything.

Actual behavior

Navbar on top.

Most helpful comment

My error was to have a section following a nav without class="section". This also resulted in an overlapping behavior.

All 7 comments

Can I take this up @jgthms ?

This has been fixed.

I'm seeing this behavior in version 0.7.1. Any ideas?

The z-index is set to 30 by default. It needs to be set to auto.

.navbar {
    background-color: white;
    min-height: 3.25rem;
    position: relative;
    z-index: auto;
}

Add 'has-navbar-fixed-top' class for or navbar. BULMA Document is very clear. Thanks @jgthms
<nav class="navbar has-shadow is-transparent has-navbar-fixed-top"> or <html class="has-navbar-fixed-top">

My error was to have a section following a nav without class="section". This also resulted in an overlapping behavior.

My error was to have a section following a nav without class="section". This also resulted in overlapping behavior.

Yes, having both section and container is nicer. Containers do not have top and bottom padding. Section does.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

guillecro picture guillecro  路  3Comments

dotMastaz picture dotMastaz  路  3Comments

Laraveldeep picture Laraveldeep  路  3Comments

Wikiki picture Wikiki  路  3Comments

jaredreich picture jaredreich  路  3Comments