2016-09-11 11:00:49 +00:00
|
|
|
---
|
2017-10-17 09:28:59 +00:00
|
|
|
title: Panel
|
2024-03-21 16:11:54 +00:00
|
|
|
layout: docs
|
|
|
|
theme: library
|
2016-09-11 11:00:49 +00:00
|
|
|
doc-tab: components
|
|
|
|
doc-subtab: panel
|
2018-04-09 12:18:46 +00:00
|
|
|
breadcrumb:
|
2024-03-21 16:11:54 +00:00
|
|
|
- home
|
|
|
|
- documentation
|
|
|
|
- components
|
|
|
|
- components-panel
|
2018-04-09 12:18:46 +00:00
|
|
|
meta:
|
2019-10-14 00:42:05 +00:00
|
|
|
colors: true
|
2018-04-09 13:15:31 +00:00
|
|
|
sizes: false
|
|
|
|
variables: true
|
2016-09-11 11:00:49 +00:00
|
|
|
---
|
|
|
|
|
2016-10-30 23:35:30 +00:00
|
|
|
{% capture panel_example %}
|
2016-09-11 11:00:49 +00:00
|
|
|
<nav class="panel">
|
2024-03-21 16:11:54 +00:00
|
|
|
<p class="panel-heading">Repositories</p>
|
2016-10-30 23:35:30 +00:00
|
|
|
<div class="panel-block">
|
2017-04-15 15:00:10 +00:00
|
|
|
<p class="control has-icons-left">
|
2024-03-21 16:11:54 +00:00
|
|
|
<input class="input" type="text" placeholder="Search" />
|
2019-10-14 00:42:05 +00:00
|
|
|
<span class="icon is-left">
|
2018-03-27 23:28:22 +00:00
|
|
|
<i class="fas fa-search" aria-hidden="true"></i>
|
2016-10-30 23:35:30 +00:00
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</div>
|
2016-09-11 11:00:49 +00:00
|
|
|
<p class="panel-tabs">
|
2019-10-14 00:42:05 +00:00
|
|
|
<a class="is-active">All</a>
|
|
|
|
<a>Public</a>
|
|
|
|
<a>Private</a>
|
|
|
|
<a>Sources</a>
|
|
|
|
<a>Forks</a>
|
2016-09-11 11:00:49 +00:00
|
|
|
</p>
|
2016-10-30 23:35:30 +00:00
|
|
|
<a class="panel-block is-active">
|
2016-09-11 11:00:49 +00:00
|
|
|
<span class="panel-icon">
|
2018-03-27 23:28:22 +00:00
|
|
|
<i class="fas fa-book" aria-hidden="true"></i>
|
2016-09-11 11:00:49 +00:00
|
|
|
</span>
|
|
|
|
bulma
|
|
|
|
</a>
|
2016-10-30 23:35:30 +00:00
|
|
|
<a class="panel-block">
|
2016-09-11 11:00:49 +00:00
|
|
|
<span class="panel-icon">
|
2018-03-27 23:28:22 +00:00
|
|
|
<i class="fas fa-book" aria-hidden="true"></i>
|
2016-09-11 11:00:49 +00:00
|
|
|
</span>
|
|
|
|
marksheet
|
|
|
|
</a>
|
2016-10-30 23:35:30 +00:00
|
|
|
<a class="panel-block">
|
2016-09-11 11:00:49 +00:00
|
|
|
<span class="panel-icon">
|
2018-03-27 23:28:22 +00:00
|
|
|
<i class="fas fa-book" aria-hidden="true"></i>
|
2016-09-11 11:00:49 +00:00
|
|
|
</span>
|
2016-10-30 23:35:30 +00:00
|
|
|
minireset.css
|
2016-09-11 11:00:49 +00:00
|
|
|
</a>
|
2016-10-30 23:35:30 +00:00
|
|
|
<a class="panel-block">
|
2016-09-11 11:00:49 +00:00
|
|
|
<span class="panel-icon">
|
2018-03-27 23:28:22 +00:00
|
|
|
<i class="fas fa-book" aria-hidden="true"></i>
|
2016-09-11 11:00:49 +00:00
|
|
|
</span>
|
|
|
|
jgthms.github.io
|
|
|
|
</a>
|
2016-10-30 23:35:30 +00:00
|
|
|
<a class="panel-block">
|
2016-09-11 11:00:49 +00:00
|
|
|
<span class="panel-icon">
|
2018-05-27 15:07:46 +00:00
|
|
|
<i class="fas fa-code-branch" aria-hidden="true"></i>
|
2016-09-11 11:00:49 +00:00
|
|
|
</span>
|
2017-07-28 22:27:59 +00:00
|
|
|
daniellowtw/infboard
|
2016-09-11 11:00:49 +00:00
|
|
|
</a>
|
2016-10-30 23:35:30 +00:00
|
|
|
<a class="panel-block">
|
2016-09-11 11:00:49 +00:00
|
|
|
<span class="panel-icon">
|
2018-05-27 15:07:46 +00:00
|
|
|
<i class="fas fa-code-branch" aria-hidden="true"></i>
|
2016-09-11 11:00:49 +00:00
|
|
|
</span>
|
2016-10-30 23:35:30 +00:00
|
|
|
mojs
|
2016-09-11 11:00:49 +00:00
|
|
|
</a>
|
2016-09-14 14:01:08 +00:00
|
|
|
<label class="panel-block">
|
2024-03-21 16:11:54 +00:00
|
|
|
<input type="checkbox" />
|
2017-07-28 22:27:59 +00:00
|
|
|
remember me
|
2016-09-11 11:00:49 +00:00
|
|
|
</label>
|
|
|
|
<div class="panel-block">
|
2017-10-09 17:13:02 +00:00
|
|
|
<button class="button is-link is-outlined is-fullwidth">
|
2019-10-14 00:42:05 +00:00
|
|
|
Reset all filters
|
2016-09-11 11:00:49 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</nav>
|
2016-10-30 23:35:30 +00:00
|
|
|
{% endcapture %}
|
2017-07-28 22:27:59 +00:00
|
|
|
|
2021-01-27 23:30:42 +00:00
|
|
|
<div class="content">
|
2024-03-21 16:11:54 +00:00
|
|
|
<p>The <code>panel</code> is a container for several types:</p>
|
2021-01-27 23:30:42 +00:00
|
|
|
<ul>
|
2024-03-21 16:11:54 +00:00
|
|
|
<li><code>panel-heading</code> as the first child</li>
|
|
|
|
<li><code>panel-tabs</code> for navigation</li>
|
2021-01-27 23:30:42 +00:00
|
|
|
<li>
|
|
|
|
<code>panel-block</code> which can contain other elements, like:
|
|
|
|
<ul>
|
|
|
|
<li><code>control</code></li>
|
|
|
|
<li><code>input</code></li>
|
|
|
|
<li><code>button</code></li>
|
|
|
|
<li><code>panel-icon</code></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<p>
|
2024-03-21 16:11:54 +00:00
|
|
|
The <code>panel-block</code> can be an anchor tag <code><a></code> or
|
|
|
|
a label <code><label></code> with a checkbox inside.
|
2021-01-27 23:30:42 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
2024-03-21 16:11:54 +00:00
|
|
|
{% include docs/elements/snippet.html content=panel_example more=true %} {%
|
|
|
|
include docs/elements/anchor.html name="Colors" %}
|
2021-01-27 23:30:42 +00:00
|
|
|
|
|
|
|
<div class="content">
|
|
|
|
<p>
|
2024-03-21 16:11:54 +00:00
|
|
|
The panel 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
|
|
|
|
>. Simply append one of the color modifiers.
|
2021-01-27 23:30:42 +00:00
|
|
|
</p>
|
|
|
|
<p>
|
2024-03-21 16:11:54 +00:00
|
|
|
For example, to use your primary color, use
|
|
|
|
<code>"panel is-primary"</code> as a class.
|
2021-01-27 23:30:42 +00:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
2024-03-21 16:11:54 +00:00
|
|
|
{% for color in site.data.colors.justColors %} {% capture foobar %}
|
2019-10-14 00:42:05 +00:00
|
|
|
<article class="panel is-{{ color }}">
|
2024-03-21 16:11:54 +00:00
|
|
|
<p class="panel-heading">{{ color | capitalize }}</p>
|
2019-10-14 00:42:05 +00:00
|
|
|
<p class="panel-tabs">
|
|
|
|
<a class="is-active">All</a>
|
|
|
|
<a>Public</a>
|
|
|
|
<a>Private</a>
|
|
|
|
<a>Sources</a>
|
|
|
|
<a>Forks</a>
|
|
|
|
</p>
|
|
|
|
<div class="panel-block">
|
|
|
|
<p class="control has-icons-left">
|
2024-03-21 16:11:54 +00:00
|
|
|
<input class="input is-{{ color }}" type="text" placeholder="Search" />
|
2019-10-14 00:42:05 +00:00
|
|
|
<span class="icon is-left">
|
|
|
|
<i class="fas fa-search" aria-hidden="true"></i>
|
|
|
|
</span>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<a class="panel-block is-active">
|
|
|
|
<span class="panel-icon">
|
|
|
|
<i class="fas fa-book" aria-hidden="true"></i>
|
|
|
|
</span>
|
|
|
|
bulma
|
|
|
|
</a>
|
|
|
|
<a class="panel-block">
|
|
|
|
<span class="panel-icon">
|
|
|
|
<i class="fas fa-book" aria-hidden="true"></i>
|
|
|
|
</span>
|
|
|
|
marksheet
|
|
|
|
</a>
|
|
|
|
<a class="panel-block">
|
|
|
|
<span class="panel-icon">
|
|
|
|
<i class="fas fa-book" aria-hidden="true"></i>
|
|
|
|
</span>
|
|
|
|
minireset.css
|
|
|
|
</a>
|
|
|
|
<a class="panel-block">
|
|
|
|
<span class="panel-icon">
|
|
|
|
<i class="fas fa-book" aria-hidden="true"></i>
|
|
|
|
</span>
|
|
|
|
jgthms.github.io
|
|
|
|
</a>
|
|
|
|
</article>
|
2024-03-21 16:11:54 +00:00
|
|
|
{% endcapture %} {% include docs/elements/snippet.html content=foobar more=true
|
|
|
|
%} {% endfor %}
|