Bulma: Unstyled lists

Created on 31 Mar 2016  路  14Comments  路  Source: jgthms/bulma

Can we have a ul class which will remove bullet points from lists?

Most helpful comment

<div class="content">
   <ul>
      <li></li>
   </ul>
</div>

More info here: http://bulma.io/documentation/elements/content/

All 14 comments

That seems a bit less semantic than one or more classes which use ul + a class name to create a specific effect.

Something like ul.menu.flyout or ul.tabs - which would both remove the bullet points, for example, but also create a specific type of component styling.

Is there a specific semantic type of component which this would fit? unstyled-list or something similar?

I was thinking ul.is-unstyled or similar?

Sounds like it would be something like:

ul.is-unstyled {
  list-style: none;
  margin: 0;
  padding: 0;
}

Yeah.

By default, lists are unstyled. I'm not sure what is needed here.

Ah it may be in the .content class.

If you need a container that only adds a margin at the bottom, but without styling anything, use class="block".

Thanks!

If lists are unstyled by default, is there a class included to add bullets/numbering back?

@gdude2002 Yes you just need to put your <ul> into a <div class="content">.

Directly? What if I have it inside, eg, a message?

Or, wait, am I meant to put a content inside those as well?

<div class="content">
   <ul>
      <li></li>
   </ul>
</div>

More info here: http://bulma.io/documentation/elements/content/

Yeah, I knew that, I was just wondering whether it's appropriate to put within another container, eg:

<article class="message">
  <div class="message-header">
    <p>Hello World</p>
    <button class="delete"></button>
  </div>
  <div class="message-body">
    <div class="content">
      <ul>
        <li>...</li>
      </ul>
    </div>
  </div>
</article>

yes!

You could even get rid of that extra div like that I guess

<article class="message">
  <div class="message-header">
    <p>Hello World</p>
    <button class="delete"></button>
  </div>
  <div class="message-body content">
    <ul>
      <li>...</li>
    </ul>
  </div>
</article>
Was this page helpful?
0 / 5 - 0 ratings