2016-09-11 11:00:49 +00:00
|
|
|
---
|
2017-07-29 12:02:00 +00:00
|
|
|
title: Box
|
2016-09-11 11:00:49 +00:00
|
|
|
layout: documentation
|
|
|
|
doc-tab: elements
|
|
|
|
doc-subtab: box
|
2017-07-28 21:57:51 +00:00
|
|
|
variables:
|
|
|
|
- name: $box-color
|
|
|
|
value: $text
|
|
|
|
- name: $box-background-color
|
|
|
|
value: $white
|
|
|
|
- name: $box-radius
|
|
|
|
value: $radius-large
|
|
|
|
- name: $box-shadow
|
|
|
|
value: 0 2px 3px rgba($black, 0.1), 0 0 0 1px rgba($black, 0.1)
|
|
|
|
- name: $box-padding
|
|
|
|
value: 1.25rem
|
|
|
|
- name: $box-link-hover-shadow
|
|
|
|
value: 0 2px 3px rgba($black, 0.1), 0 0 0 1px $link
|
|
|
|
- name: $box-link-active-shadow
|
|
|
|
value: inset 0 1px 2px rgba($black, 0.2), 0 0 0 1px $link
|
2016-09-11 11:00:49 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
{% include subnav-elements.html %}
|
|
|
|
|
2017-03-12 16:25:41 +00:00
|
|
|
{% capture box_example %}
|
2016-09-11 11:00:49 +00:00
|
|
|
<div class="box">
|
|
|
|
<article class="media">
|
|
|
|
<div class="media-left">
|
|
|
|
<figure class="image is-64x64">
|
2016-12-22 18:17:26 +00:00
|
|
|
<img src="{{site.url}}/images/placeholders/128x128.png" alt="Image">
|
2016-09-11 11:00:49 +00:00
|
|
|
</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">
|
2016-09-11 11:00:49 +00:00
|
|
|
<div class="level-left">
|
|
|
|
<a class="level-item">
|
|
|
|
<span class="icon is-small"><i class="fa fa-reply"></i></span>
|
|
|
|
</a>
|
|
|
|
<a class="level-item">
|
|
|
|
<span class="icon is-small"><i class="fa fa-retweet"></i></span>
|
|
|
|
</a>
|
|
|
|
<a class="level-item">
|
|
|
|
<span class="icon is-small"><i class="fa fa-heart"></i></span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
</article>
|
|
|
|
</div>
|
2017-03-12 16:25:41 +00:00
|
|
|
{% endcapture %}
|
|
|
|
|
2017-07-13 18:44:35 +00:00
|
|
|
<section class="section">
|
|
|
|
<div class="container">
|
|
|
|
<h1 class="title">Box</h1>
|
|
|
|
<h2 class="subtitle">
|
|
|
|
A white <strong>box</strong> to contain other elements
|
|
|
|
</h2>
|
2017-07-28 22:45:40 +00:00
|
|
|
{%
|
|
|
|
include meta.html
|
|
|
|
colors=false
|
|
|
|
sizes=false
|
|
|
|
variables=true
|
|
|
|
%}
|
2017-07-13 18:44:35 +00:00
|
|
|
|
|
|
|
<hr>
|
|
|
|
|
2017-08-30 20:13:17 +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>
|
2017-03-12 16:25:41 +00:00
|
|
|
</div>
|
|
|
|
|
2017-08-30 20:13:17 +00:00
|
|
|
{% include snippet.html content=box_example %}
|
2016-09-11 11:00:49 +00:00
|
|
|
|
2017-07-28 21:57:51 +00:00
|
|
|
{% include variables.html %}
|
|
|
|
|
2016-09-11 11:00:49 +00:00
|
|
|
</div>
|
|
|
|
</section>
|