2016-09-11 11:00:49 +00:00
|
|
|
---
|
2017-07-29 12:02:00 +00:00
|
|
|
title: Box
|
2024-03-21 16:11:54 +00:00
|
|
|
layout: docs
|
|
|
|
theme: library
|
2016-09-11 11:00:49 +00:00
|
|
|
doc-tab: elements
|
|
|
|
doc-subtab: box
|
2018-04-09 13:15:31 +00:00
|
|
|
breadcrumb:
|
2024-03-21 16:11:54 +00:00
|
|
|
- home
|
|
|
|
- documentation
|
|
|
|
- elements
|
|
|
|
- elements-box
|
2018-04-09 13:15:31 +00:00
|
|
|
meta:
|
|
|
|
colors: false
|
|
|
|
sizes: false
|
2021-01-26 08:09:25 +00:00
|
|
|
variables: true
|
2016-09-11 11:00:49 +00:00
|
|
|
---
|
2017-03-12 16:25:41 +00:00
|
|
|
{% capture box_example %}
|
2024-03-21 16:11:54 +00:00
|
|
|
<div class="box">I'm in a box.</div>
|
2021-01-27 23:30:42 +00:00
|
|
|
{% endcapture %}
|
|
|
|
{% capture box_form_example %}
|
|
|
|
<form class="box">
|
|
|
|
<div class="field">
|
|
|
|
<label class="label">Email</label>
|
|
|
|
<div class="control">
|
2024-03-21 16:11:54 +00:00
|
|
|
<input class="input" type="email" placeholder="e.g. alex@example.com" />
|
2021-01-27 23:30:42 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="field">
|
|
|
|
<label class="label">Password</label>
|
|
|
|
<div class="control">
|
2024-03-21 16:11:54 +00:00
|
|
|
<input class="input" type="password" placeholder="********" />
|
2021-01-27 23:30:42 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<button class="button is-primary">Sign in</button>
|
|
|
|
</form>
|
|
|
|
{% endcapture %}
|
|
|
|
{% capture box_card_example %}
|
2016-09-11 11:00:49 +00:00
|
|
|
<div class="box">
|
|
|
|
<article class="media">
|
|
|
|
<div class="media-left">
|
|
|
|
<figure class="image is-64x64">
|
2024-03-21 16:11:54 +00:00
|
|
|
<img src="{{site.url}}/assets/images/placeholders/128x128.png" alt="Image" />
|
2016-09-11 11:00:49 +00:00
|
|
|
</figure>
|
|
|
|
</div>
|
|
|
|
<div class="media-content">
|
|
|
|
<div class="content">
|
|
|
|
<p>
|
2024-03-21 16:11:54 +00:00
|
|
|
<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.
|
2016-09-11 11:00:49 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
2017-03-12 16:25:41 +00:00
|
|
|
<nav class="level is-mobile">
|
2016-09-11 11:00:49 +00:00
|
|
|
<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>
|
2016-09-11 11:00:49 +00:00
|
|
|
</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>
|
2016-09-11 11:00:49 +00:00
|
|
|
</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>
|
2016-09-11 11:00:49 +00:00
|
|
|
</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">
|
2024-03-21 16:11:54 +00:00
|
|
|
<p>The <code>box</code> element is a simple container with a white background, some padding, and a box shadow.</p>
|
2021-01-27 23:30:42 +00:00
|
|
|
</div>
|
|
|
|
|
2024-03-21 16:11:54 +00:00
|
|
|
{% include docs/elements/snippet.html content=box_example %}
|
2021-01-27 23:30:42 +00:00
|
|
|
|
|
|
|
<div class="content">
|
2024-03-21 16:11:54 +00:00
|
|
|
<p>Because it acts as a container, you can easily include other components, like <strong>form elements</strong>:</p>
|
2021-01-27 23:30:42 +00:00
|
|
|
</div>
|
|
|
|
|
2024-03-21 16:11:54 +00:00
|
|
|
{% include docs/elements/snippet.html content=box_form_example more=true %}
|
2021-01-27 23:30:42 +00:00
|
|
|
|
|
|
|
<div class="content">
|
2024-03-21 16:11:54 +00:00
|
|
|
<p>Or a <code>media</code> object:</p>
|
2018-04-09 13:15:31 +00:00
|
|
|
</div>
|
2016-09-11 11:00:49 +00:00
|
|
|
|
2024-03-21 16:11:54 +00:00
|
|
|
{% include docs/elements/snippet.html content=box_card_example more=true %}
|
2017-07-28 21:57:51 +00:00
|
|
|
|