Bulma: Levels frequently don't work as expected

Created on 25 Mar 2018  路  6Comments  路  Source: jgthms/bulma


This is about Bulma.




There is a bug/are bugs.

Overview of the problem

This is about the Bulma CSS framework

I'm using Bulma version 0.6.2
My browser is: Chrome 64/Firefox 60

I am sure this issue is not a duplicate

Description

The level component could use improvement especially in regards to level-right as in my experiments with Bulma it frequently does not work as expected. Please take a look as this sample Codepen for a couple of examples:

https://codepen.io/anon/pen/JLrjPg

If the behavior is intended then the documentation should be much more comprehensive as it suggests that a level is a good way to left/right align content on the same level anywhere.

Expected behavior

Level component would right align a level-right item under all circumstances and on the same level as a level-left. Direct level-item descendants would be equally distributed.

Actual behavior

Everything is left aligned.

stale

Most helpful comment

level-responsivity-fail-screenshot from 2018-07-12 17-41-55
^^^ .level-right extends outside .level with certain window widths (or is that outline the snippet?)

I had a similar issue specifically in Firefox, fixed with

.level-item {
  flex-shrink: 1;
}

All 6 comments

Two firsts (.level-right & .level-item in .card-header) are directly related to .card-header with flex capability. Is this necessary ?

For the input case (in fact: one child in .level container), justify-content: flex-end in .level-right doesn't seems to work with one child only, margin-left: auto is prefered with display: flex for parent.

I totally agree that it's not necessary for level to work in the way I expected, but it's kind of weird to have an element that is supposed to do X but doesn't under circumstances Y and Z.

level-responsivity-fail-screenshot from 2018-07-12 17-41-55
^^^ .level-right extends outside .level with certain window widths (or is that outline the snippet?)

I am also having the same issue. .level-right is protruding.
I thought it was the is-offset that pulls everything to the side. Any solutions to this?

level-responsivity-fail-screenshot from 2018-07-12 17-41-55
^^^ .level-right extends outside .level with certain window widths (or is that outline the snippet?)

I had a similar issue specifically in Firefox, fixed with

.level-item {
  flex-shrink: 1;
}

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Qard picture Qard  路  3Comments

leofontes picture leofontes  路  3Comments

choonggg picture choonggg  路  3Comments

dotMastaz picture dotMastaz  路  3Comments

fundon picture fundon  路  3Comments