Bulma: Introduce a new helper class for text overflow

Created on 14 Sep 2017  路  4Comments  路  Source: jgthms/bulma

Overview of the problem

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

Description

While working with Bulma today, I had to use to text-overflow CSS property to ensure the sentence remains in one line and don't push other elements. However, I couldn't find a helper class that would help me to do this. So, I thought why not to submit a feature request for a new helper class is-text-overflow.

Example

.is-text-overflow {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

More information can be found here.

stale

Most helpful comment

This requires the parent to have display: flex or the element to have display: block.

All 4 comments

This requires the parent to have display: flex or the element to have display: block.

@jgthms How to make overflow: hidden and ellipsis , only if its mobile and not desktop?

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.

I also tried to do this same thing with Bulma by adding a helper class. It worked!

A beauty about designing with Bulma CSS is the simple programmatic class naming. It made the design like a logic.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DAreRodz picture DAreRodz  路  3Comments

leofontes picture leofontes  路  3Comments

jaredreich picture jaredreich  路  3Comments

Yard8 picture Yard8  路  3Comments

swthate picture swthate  路  3Comments