bulma/docs/documentation/elements/box.html

68 lines
1.8 KiB
HTML
Raw Normal View History

---
2017-07-29 12:02:00 +00:00
title: Box
layout: documentation
doc-tab: elements
doc-subtab: box
2018-04-09 13:15:31 +00:00
breadcrumb:
- home
- documentation
- elements
- elements-box
meta:
colors: false
sizes: false
variables: true
---
2017-03-12 16:25:41 +00:00
{% capture box_example %}
<div class="box">
<article class="media">
<div class="media-left">
<figure class="image is-64x64">
<img src="{{site.url}}/images/placeholders/128x128.png" alt="Image">
</figure>
</div>
<div class="media-content">
<div class="content">
<p>
<strong>John Smith</strong> <small>@johnsmith</small> <small>31m</small>
<br>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean efficitur sit amet massa fringilla egestas. Nullam condimentum luctus turpis.
</p>
</div>
2017-03-12 16:25:41 +00:00
<nav class="level is-mobile">
<div class="level-left">
2018-03-27 23:28:22 +00:00
<a class="level-item" aria-label="reply">
<span class="icon is-small">
<i class="fas fa-reply" aria-hidden="true"></i>
</span>
</a>
2018-03-27 23:28:22 +00:00
<a class="level-item" aria-label="retweet">
<span class="icon is-small">
<i class="fas fa-retweet" aria-hidden="true"></i>
</span>
</a>
2018-03-27 23:28:22 +00:00
<a class="level-item" aria-label="like">
<span class="icon is-small">
<i class="fas fa-heart" aria-hidden="true"></i>
</span>
</a>
</div>
</nav>
</div>
</article>
</div>
2017-03-12 16:25:41 +00:00
{% endcapture %}
2018-04-09 13:15:31 +00:00
<div class="content">
<p>
The <code>.box</code> element is simply a container with a shadow, a border, a radius, and some padding.
<br>
For example, you can include a media object:
</p>
</div>
2018-04-09 13:15:31 +00:00
{% include snippet.html content=box_example more=true %}
2017-07-28 21:57:51 +00:00
2018-04-09 13:15:31 +00:00
{% include variables.html type='element' %}