mirror of
https://github.com/jgthms/bulma
synced 2026-03-19 20:04:30 -07:00
Improve components documentation
This commit is contained in:
@@ -117,22 +117,53 @@ meta:
|
||||
{% endfor %}
|
||||
{% endcapture %}
|
||||
|
||||
<div class="content">
|
||||
<p>
|
||||
The Bulma <code>message</code> is a multi-part component:
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
the <code>message</code> container
|
||||
</li>
|
||||
<li>
|
||||
the optional <code>message-header</code> that can hold a title and a <code>delete</code> element
|
||||
</li>
|
||||
<li>
|
||||
the <code>message-body</code> for the longer body of the message
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{% include elements/snippet.html content=message_example %}
|
||||
|
||||
{% include elements/anchor.html name="Colors" %}
|
||||
|
||||
<div class="content">
|
||||
<p>
|
||||
The message component is available in all the <strong>different colors</strong> defined by the <a href="{{ site.data.links.by_id.customize-variables.path }}"><code>$colors</code> Sass map</a>.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{% include elements/snippet.html content=message_colors_example %}
|
||||
|
||||
{% include elements/anchor.html name="Message body only" %}
|
||||
|
||||
<div class="content">
|
||||
<p>You can <strong>omit</strong> the message header:</p>
|
||||
<p>
|
||||
You can remove the <code>message-header</code> if you don't need it, which will add a left border to the <code>message-body</code>:
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{% include elements/snippet.html content=message_body_example %}
|
||||
|
||||
{% include elements/anchor.html name="Sizes" %}
|
||||
|
||||
<div class="content">
|
||||
<p>
|
||||
You can add one of <strong>3 size modifiers</strong> to the <code>message</code> component:
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{% include elements/snippet.html content=message_small %}
|
||||
|
||||
{% include elements/snippet.html content=message_normal %}
|
||||
|
||||
Reference in New Issue
Block a user