Bulma: Any integration of p or m class system?

Created on 24 May 2018  路  5Comments  路  Source: jgthms/bulma


This is about *Bulma *.




This is a feature request/question.

Overview of the problem

This is about the Bulma CSS framework




Description

With bootstrap there is the class system to use p-* or m-* to edit the padding and margin of a container. For example you can use pl-0 (padding-left = 0).

Does this exist with Bulma? If not it would be nice if it was added, its the only thing keeping me from switching over form bootstrap 4.

Steps to Reproduce

Expected behavior

Actual behavior

stale

Most helpful comment

You can already use .is-marginless and .is-paddingless. We could add the same for each of the 4 sides.

However, having px- is like designing in the HTML, which I want to avoid. I feel like people would just use these classes all over the places. I've seen terrible things with such a system.

All 5 comments

Can you describe how it's used exactly?

Yes when adding the class of p-0 it removes the padding from the element same goes for m-0, where p-5 adds padding around the entire element.

Both p- and m- act the same however one modifies pudding and the other margin. You can also use pr- and pl- for padding right and padding left along with pt- and pb- for padding top and padding bottom. You can also use px- to modify the padding left and right and py- to modify the padding top and bottom. You can do the exact same with margin using m in replace of p

You can already use .is-marginless and .is-paddingless. We could add the same for each of the 4 sides.

However, having px- is like designing in the HTML, which I want to avoid. I feel like people would just use these classes all over the places. I've seen terrible things with such a system.

Here is more information on the subject from the bootstrap docs.

Bootstrap Documentation

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

fundon picture fundon  路  3Comments

scottgrayson picture scottgrayson  路  3Comments

Qard picture Qard  路  3Comments

rogervila picture rogervila  路  3Comments

Cosbgn picture Cosbgn  路  3Comments