bulma/docs/index.html

498 lines
16 KiB
HTML
Raw Normal View History

---
layout: default
route: index
2017-10-24 09:31:45 +00:00
fixed_navbar: true
---
2018-04-03 21:21:56 +00:00
{% include navbar.html id="Index" fixed=true has_container=true boxed=true transparent=true hide_fortyfour=true %}
2017-10-10 16:24:19 +00:00
{% include index/intro.html %}
<section class="hero is-primary">
<div class="hero-body">
<div class="container">
<nav class="columns">
2016-10-16 18:15:56 +00:00
<a class="column has-text-centered" href="{{ site.url }}/documentation/overview/responsiveness/">
<span class="icon is-large" style="margin-right: -15px;">
2018-01-10 16:30:23 +00:00
<i class="fas fa-lg fa-mobile-alt"></i>
</span>
<span class="icon is-large">
2018-01-10 16:30:23 +00:00
<i class="fas fa-2x fa-tablet-alt"></i>
</span>
<span class="icon is-large" style="margin-right: 10px;">
2018-01-10 16:30:23 +00:00
<i class="fas fa-3x fa-desktop"></i>
</span>
2017-10-10 16:48:01 +00:00
<p class="title is-4" style="margin-top: 0.5em;"><strong>100% Responsive</strong></p>
<p class="subtitle">Designed for <strong>mobile</strong> first</p>
2016-09-23 21:08:03 +00:00
</a>
2016-10-16 18:15:56 +00:00
<a class="column has-text-centered" href="{{ site.url }}/documentation/overview/modular/">
2016-09-23 21:08:03 +00:00
<span class="icon is-large">
2018-01-10 16:30:23 +00:00
<i class="fas fa-3x fa-cubes"></i>
2016-09-23 21:08:03 +00:00
</span>
2017-10-07 16:34:16 +00:00
<p class="title is-4" style="margin-top: 0.5em;"><strong>Modular</strong></p>
2016-09-23 21:08:03 +00:00
<p class="subtitle">Just import what you <strong>need</strong></p>
</a>
2017-08-14 18:12:07 +00:00
<a class="column has-text-centered" href="{{ site.url }}/documentation/columns/basics/">
<span class="icon is-large">
2018-01-10 16:30:23 +00:00
<i class="fab fa-3x fa-css3"></i>
</span>
2017-10-07 16:34:16 +00:00
<p class="title is-4" style="margin-top: 0.5em;"><strong>Modern</strong></p>
2016-09-23 21:08:03 +00:00
<p class="subtitle">Built with <strong>Flexbox</strong></p>
</a>
2018-03-26 13:46:39 +00:00
<a class="column has-text-centered" href="{{ site.data.meta.github }}">
<span class="icon is-large">
2018-01-10 16:30:23 +00:00
<i class="fab fa-3x fa-github"></i>
</span>
2017-10-07 16:34:16 +00:00
<p class="title is-4" style="margin-top: 0.5em;"><strong>Free</strong></p>
2016-09-23 21:08:03 +00:00
<p class="subtitle">Open source on <strong>GitHub</strong></p>
</a>
</nav>
</div>
</div>
</section>
2017-09-01 07:09:39 +00:00
<section class="bd-tws-home">
{% include tws.html %}
2017-07-30 17:22:13 +00:00
</section>
<section class="section is-medium">
<div class="container">
<h3 class="title is-2">
2017-07-26 20:06:52 +00:00
<span class="icon is-medium">
2018-01-10 16:30:23 +00:00
<i class="fas fa-pause"></i>
2017-07-26 20:06:52 +00:00
</span>
2017-08-14 18:12:07 +00:00
<a href="{{ site.url }}/documentation/columns/basics">
Simple <strong>columns</strong>
</a>
</h3>
<h4 class="subtitle is-4">Just add columns, they will resize themselves</h4>
<div id="grid" class="columns">
<div class="column">
<div class="notification is-primary has-text-centered">
<p class="title">1</p>
</div>
</div>
<div class="column">
<div class="notification is-info has-text-centered">
<p class="title">2</p>
</div>
</div>
<div class="column">
<div class="notification is-success has-text-centered">
<p class="title">3</p>
</div>
</div>
<div class="column">
<div class="notification is-warning has-text-centered">
<p class="title">4</p>
</div>
</div>
<div class="column">
<div class="notification is-danger has-text-centered">
<p class="title">5</p>
</div>
</div>
<div class="column" style="display: none;">
<div class="notification is-primary has-text-centered">
<p class="title">6</p>
</div>
</div>
<div class="column" style="display: none;">
<div class="notification is-info has-text-centered">
<p class="title">7</p>
</div>
</div>
<div class="column" style="display: none;">
<div class="notification is-success has-text-centered">
<p class="title">8</p>
</div>
</div>
<div class="column" style="display: none;">
<div class="notification is-warning has-text-centered">
<p class="title">9</p>
</div>
</div>
<div class="column" style="display: none;">
<div class="notification is-danger has-text-centered">
<p class="title">10</p>
</div>
</div>
<div class="column" style="display: none;">
<div class="notification is-primary has-text-centered">
<p class="title">11</p>
</div>
</div>
<div class="column" style="display: none;">
<div class="notification is-info has-text-centered">
<p class="title">12</p>
</div>
</div>
</div>
2017-03-12 17:49:24 +00:00
<div class="field has-addons has-addons-centered">
<p class="control">
<a id="add" class="button is-unselectable">Add column</a>
</p>
<p class="control">
<a id="remove" class="button is-unselectable">Remove column</a>
</p>
</div>
<div id="message" class="message is-info">
<p class="message-header">Info</p>
2016-11-13 21:40:24 +00:00
<p class="message-body">While it's possible to add as many columns as you want, it is recommended to stick with <strong>12 columns</strong>.<br>
If you want smaller divisions, you can always <strong>nest</strong> columns.</p>
</div>
<div id="markup">
{% highlight html %}
<div class="columns">
<div class="column">1</div>
<div class="column">2</div>
<div class="column">3</div>
<div class="column">4</div>
<div class="column">5</div>
</div>
{% endhighlight %}
</div>
</div>
</section>
<hr class="is-marginless">
<section class="section is-medium">
<div class="container">
<h3 class="title is-2">
2017-07-26 20:06:52 +00:00
<span class="icon is-medium">
2018-01-10 16:30:23 +00:00
<i class="fas fa-th-large"></i>
2017-07-26 20:06:52 +00:00
</span>
2017-08-14 18:12:07 +00:00
<a href="{{ site.url }}/documentation/layout/tiles">
Magic <strong>tiles</strong>
</a>
</h3>
<h4 class="subtitle is-4">A single element for a Metro UI-style CSS grid</h4>
<div class="tile is-ancestor">
<div class="tile is-vertical is-8">
<div class="tile">
<div class="tile is-parent is-vertical">
<article class="tile is-child notification is-primary">
<p class="title">Vertical...</p>
<p class="subtitle">Top tile</p>
</article>
<article class="tile is-child notification is-warning">
<p class="title">...tiles</p>
<p class="subtitle">Bottom tile</p>
</article>
</div>
<div class="tile is-parent">
<article class="tile is-child notification is-info">
<p class="title">Middle tile</p>
<p class="subtitle">With an image</p>
<figure class="image is-4by3">
<img src="{{site.url}}/images/placeholders/640x480.png">
</figure>
</article>
</div>
</div>
<div class="tile is-parent">
<article class="tile is-child notification is-danger">
<p class="title">Wide tile</p>
<p class="subtitle">Aligned with the right tile</p>
<div class="content">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin ornare magna eros, eu pellentesque tortor vestibulum ut. Maecenas non massa sem. Etiam finibus odio quis feugiat facilisis.</p>
</div>
</article>
</div>
</div>
<div class="tile is-parent">
<article class="tile is-child notification is-success">
2016-09-22 22:14:18 +00:00
<p class="title">Tall tile</p>
<p class="subtitle">With even more content</p>
<div class="content">
2016-09-22 22:14:18 +00:00
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam semper diam at erat pulvinar, at pulvinar felis blandit. Vestibulum volutpat tellus diam, consequat gravida libero rhoncus ut. Morbi maximus, leo sit amet vehicula eleifend, nunc dui porta orci, quis semper odio felis ut quam.</p>
<p>Suspendisse varius ligula in molestie lacinia. Maecenas varius eget ligula a sagittis. Pellentesque interdum, nisl nec interdum maximus, augue diam porttitor lorem, et sollicitudin felis neque sit amet erat. Maecenas imperdiet felis nisi, fringilla luctus felis hendrerit sit amet. Aenean vitae gravida diam, finibus dignissim turpis. Sed eget varius ligula, at volutpat tortor.</p>
<p>Integer sollicitudin, tortor a mattis commodo, velit urna rhoncus erat, vitae congue lectus dolor consequat libero. Donec leo ligula, maximus et pellentesque sed, gravida a metus. Cras ullamcorper a nunc ac porta. Aliquam ut aliquet lacus, quis faucibus libero. Quisque non semper leo.</p>
</div>
</article>
</div>
</div>
2017-07-26 20:06:52 +00:00
<div class="highlight-full">
{% highlight html %}
<div class="tile is-ancestor">
<div class="tile is-vertical is-8">
<div class="tile">
<div class="tile is-parent is-vertical">
<article class="tile is-child">
<!-- Any content you want here -->
</article>
<article class="tile is-child">
<!-- Any content you want here -->
</article>
</div>
<div class="tile is-parent">
<article class="tile is-child">
<!-- Any content you want here -->
</article>
</div>
</div>
<div class="tile is-parent">
<article class="tile is-child">
<!-- Any content you want here -->
</article>
</div>
</div>
<div class="tile is-parent">
<article class="tile is-child">
<!-- Any content you want here -->
</article>
</div>
</div>
{% endhighlight %}
</div>
2017-07-26 20:06:52 +00:00
</div>
</section>
<hr class="is-marginless">
<section class="section is-medium">
<div class="container">
<h3 class="title is-2">
2017-07-26 20:06:52 +00:00
<span class="icon is-medium">
2018-01-10 16:30:23 +00:00
<i class="fas fa-arrows-alt-h"></i>
2017-07-26 20:06:52 +00:00
</span>
2017-08-30 16:44:44 +00:00
<a href="{{ site.url }}/documentation/layout/level/">
Flexible <strong>horizontal level</strong>
</a>
</h3>
<h4 class="subtitle is-4">Include any type of element, they will remain vertically centered</h4>
<nav class="level">
<div class="level-left">
<div class="level-item">
<p class="title is-4">
<strong>123</strong> posts
</p>
</div>
<p class="level-item">
2017-10-08 15:16:05 +00:00
<a class="button is-link">
New
</a>
</p>
<div class="level-item">
2017-03-12 17:49:24 +00:00
<div class="field has-addons">
<p class="control">
<input class="input" type="text" placeholder="Filter">
</p>
<p class="control">
<button class="button">
Search
</button>
</p>
</div>
</div>
</div>
<div class="level-right">
<div class="level-item">
Show:
</div>
<p class="level-item">
<strong>All</strong>
</p>
<p class="level-item">
<a href="#">Published</a>
</p>
<p class="level-item">
<a href="#">Drafts</a>
</p>
<div class="level-item">
Sort:
</div>
<div class="level-item">
<span class="select">
<select>
<option>Date created</option>
</select>
</span>
</div>
</div>
</nav>
</div>
</section>
<hr class="is-marginless">
<section class="section is-medium">
<div class="container">
<div class="columns is-vcentered">
<div class="column">
<h3 class="title is-2">
2017-07-26 20:06:52 +00:00
<span class="icon is-medium">
2018-01-10 16:30:23 +00:00
<i class="fas fa-magic"></i>
2017-07-26 20:06:52 +00:00
</span>
2017-08-30 16:44:44 +00:00
<a href="{{ site.url }}/documentation/layout/media-object/">
Versatile <strong>media object</strong>
</a>
</h3>
<h4 class="subtitle is-4">A simple block with an image that will solve 90% of your UI problems</h4>
</div>
<div class="column">
<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. Proin ornare magna eros, eu pellentesque tortor vestibulum ut. Maecenas non massa sem. Etiam finibus odio quis feugiat facilisis.
</p>
</div>
2017-03-12 17:49:24 +00:00
<nav class="level is-mobile">
<div class="level-left">
<a class="level-item">
2018-01-10 16:30:23 +00:00
<span class="icon is-small"><i class="fas fa-reply"></i></span>
</a>
<a class="level-item">
2018-01-10 16:30:23 +00:00
<span class="icon is-small"><i class="fas fa-retweet"></i></span>
</a>
<a class="level-item">
2018-01-10 16:30:23 +00:00
<span class="icon is-small"><i class="fas fa-heart"></i></span>
</a>
</div>
</nav>
</div>
</article>
</div>
</div>
</div>
</div>
</section>
<section class="hero is-fullheight is-primary">
<div class="hero-head">
<div class="container">
<div class="tabs is-centered">
<ul>
<li><a>This is always at the top</a></li>
</ul>
</div>
</div>
</div>
<div class="hero-body">
<div class="container has-text-centered">
<h3 class="title is-2">
2017-07-26 20:06:52 +00:00
<span class="icon is-medium">
2018-01-10 16:30:23 +00:00
<i class="fas fa-arrows-v"></i>
2017-07-26 20:06:52 +00:00
</span>
2016-10-16 18:15:56 +00:00
<a href="{{ site.url }}/documentation/layout/hero/">
Easy <strong>vertical centering</strong> in <strong>fullscreen</strong>
</a>
</h3>
<h4 class="subtitle is-4">Include any content you want, it's always centered</h4>
</div>
</div>
<div class="hero-foot">
<div class="container">
<div class="tabs is-centered">
<ul>
<li><a>And this at the bottom</a></li>
</ul>
</div>
</div>
</div>
</section>
<section class="section is-medium">
<div class="container">
<div class="columns is-vcentered">
<div class="column">
<h3 class="title is-2">
2017-07-26 20:06:52 +00:00
<span class="icon is-medium">
2018-01-10 16:30:23 +00:00
<i class="fas fa-cogs"></i>
2017-07-26 20:06:52 +00:00
</span>
2017-07-24 18:58:06 +00:00
<a href="{{ site.url }}/documentation/modifiers/syntax/" style="display: block;">
Compose your element with <strong>modifier</strong> classes
</a>
</h3>
<h4 class="subtitle is-4">Add and combine <code>is-*</code> CSS classes to quickly alter styles</h4>
</div>
<div class="column">
<div class="block">
2017-03-12 17:49:24 +00:00
<div class="field">
<p class="control">
<code>button</code>
</p>
</div>
<a class="button">Button</a>
</div>
<div class="block">
2017-03-12 17:49:24 +00:00
<div class="field">
<p class="control">
<code>button is-primary</code>
</p>
</div>
<a class="button is-primary">Button</a>
</div>
<div class="block">
2017-03-12 17:49:24 +00:00
<div class="field">
<p class="control">
<code>button is-primary is-large</code>
</p>
</div>
<a class="button is-primary is-large">Button</a>
</div>
<div class="block">
2017-03-12 17:49:24 +00:00
<div class="field">
<p class="control">
<code>button is-primary is-large is-loading</code>
</p>
</div>
<a class="button is-primary is-large is-loading">Button</a>
</div>
</div>
</div>
</div>
</section>
<hr class="is-marginless">
<section class="section is-medium">
<div class="container">
<h3 class="title is-2">
2017-07-26 20:06:52 +00:00
<span class="icon is-medium">
2018-01-10 16:30:23 +00:00
<i class="fas fa-asterisk"></i>
2017-07-26 20:06:52 +00:00
</span>
2016-10-16 18:15:56 +00:00
<a href="{{ site.url }}/documentation/elements/box/">
2017-07-25 18:12:00 +00:00
And all the usual <strong>elements</strong> and <strong>components</strong>
</a>
</h3>
2017-07-25 18:12:00 +00:00
</div>
</section>
2017-07-26 20:06:52 +00:00
{% include features.html %}
<hr class="is-marginless">
<section class="section is-medium">
<div class="container">
<p class="title has-text-centered">Get started</p>
<div class="hero-buttons">
2018-03-26 13:46:39 +00:00
<a class="button is-link is-large" href="{{ site.data.meta.documentation }}">
<span class="icon">
2018-01-10 16:30:23 +00:00
<i class="fas fa-book"></i>
</span>
<span>Check the <strong>docs</strong></span>
</a>
2018-03-26 13:46:39 +00:00
<a class="button is-black is-large" href="{{ site.data.meta.github }}">
<span class="icon">
2018-01-10 16:30:23 +00:00
<i class="fab fa-github"></i>
</span>
<span>Contribute</span>
</a>
</div>
</div>
</section>