]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Add heading
authorJeremy Thomas <bbxdesign@gmail.com>
Sat, 29 Jul 2017 12:02:00 +0000 (13:02 +0100)
committerJeremy Thomas <bbxdesign@gmail.com>
Sat, 29 Jul 2017 17:24:07 +0000 (18:24 +0100)
47 files changed:
docs/_includes/head.html
docs/_includes/heading.html [new file with mode: 0644]
docs/_includes/meta.html
docs/_javascript/main.js
docs/documentation/components/breadcrumb.html
docs/documentation/components/message.html
docs/documentation/components/tabs.html
docs/documentation/elements/box.html
docs/documentation/elements/button.html
docs/documentation/elements/content.html
docs/documentation/elements/delete.html
docs/documentation/elements/form.html
docs/documentation/elements/icon.html
docs/documentation/elements/image.html
docs/documentation/elements/notification.html
docs/documentation/elements/progress.html
docs/documentation/elements/table.html
docs/documentation/elements/tag.html
docs/documentation/elements/title.html
docs/documentation/form/checkbox.html
docs/documentation/form/general.html
docs/documentation/form/input.html
docs/documentation/form/radio.html
docs/documentation/form/select.html
docs/documentation/form/textarea.html
docs/documentation/grid/columns.html
docs/documentation/grid/tiles.html
docs/documentation/layout/container.html
docs/documentation/layout/footer.html
docs/documentation/layout/hero.html
docs/documentation/layout/section.html
docs/documentation/modifiers/helpers.html
docs/documentation/modifiers/responsive-helpers.html
docs/documentation/modifiers/syntax.html
docs/documentation/modifiers/typography-helpers.html
docs/documentation/overview/classes.html
docs/documentation/overview/customize.html
docs/documentation/overview/functions.html
docs/documentation/overview/mixins.html
docs/documentation/overview/modular.html
docs/documentation/overview/responsiveness.html
docs/documentation/overview/start.html
docs/documentation/overview/variables.html
docs/extensions.html
docs/lib/main.js
docs/thank-you.html
docs/versions.html

index cfc9fdd95fbac57a496049b071cdf99fbe75954b..45d483ea19848325b7cbe1f3129db39cca5c1095 100644 (file)
@@ -4,7 +4,7 @@
   <meta name="viewport" content="width=device-width, initial-scale=1">
   <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
 
-  <title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
+  <title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title>
 
   <link rel="stylesheet" href="{{ site.fontawesome }}">
   <link rel="stylesheet" href="{{ site.url }}/css/bulma-docs.css">
diff --git a/docs/_includes/heading.html b/docs/_includes/heading.html
new file mode 100644 (file)
index 0000000..4c74377
--- /dev/null
@@ -0,0 +1,5 @@
+<hr style="margin-bottom: 0;">
+
+<h3 id="{{ include.name | downcase }}" class="title" style="padding-top: 1.5rem;">
+  {{ include.name }}
+</h3>
index 9b31fa7cbb39577c721889066e18f785e45acf9a..f8e86275b5efb6c8abaeb1735e71f7f729858eb5 100644 (file)
@@ -1,4 +1,4 @@
-<div class="field is-grouped">
+<div id="meta" class="field is-grouped">
 
   {% if include.new %}
     <div class="control">
index 2517f490f88ae7f3c11d9ad78eb7d7a7faa51a3d..a58bd3cbf40ac1f0b7ce4f145583458188398f1d 100644 (file)
@@ -2,6 +2,23 @@ document.addEventListener('DOMContentLoaded', () => {
 
   // Dropdowns
 
+  const $metalinks = getAll('#meta a');
+
+  if ($metalinks.length > 0) {
+    $metalinks.forEach($el => {
+      $el.addEventListener('click', event => {
+        event.preventDefault();
+        const target = $el.getAttribute('href');
+        const $target = document.getElementById(target.substring(1));
+        $target.scrollIntoView(true);
+        window.history.replaceState(null, document.title, `${window.location.origin}${window.location.pathname}${target}`);
+        return false;
+      });
+    });
+  }
+
+  // Dropdowns
+
   const $dropdowns = getAll('.dropdown:not(.is-hoverable)');
 
   if ($dropdowns.length > 0) {
index 38a47e39297c57b3e78c4fad0b1165c271773dcd..fed19e881f449e77960ed6d37734fef5ac26f2f3 100644 (file)
@@ -232,11 +232,7 @@ variables:
 
     {% highlight html %}{{breadcrumb_succeeds_example}}{% endhighlight %}
 
-    <hr style="margin-bottom: 0;">
-
-    <h3 id="sizes" class="title" style="padding-top: 1.5rem;">
-      Sizes
-    </h3>
+    {% include heading.html name="Sizes" %}
 
     <div class="content">
       <p>You can choose between <strong>3 additional sizes</strong>: <code>is-small</code> <code>is-medium</code> and <code>is-large</code>.</p>
index 1662d3493a61d6a057512a2944f24f86ec4221e5..f70380945c2dd1bdef27a4ea3395cf8e9f7e5810 100644 (file)
@@ -225,11 +225,7 @@ variables:
       </div>
     </div>
 
-    <hr style="margin-bottom: 0;">
-
-    <h3 id="colors" class="title" style="padding-top: 1.5rem;">
-      Colors
-    </h3>
+    {% include heading.html name="Colors" %}
 
     <div class="columns">
       <div class="column is-half">
@@ -240,11 +236,7 @@ variables:
       </div>
     </div>
 
-    <hr style="margin-bottom: 0;">
-
-    <h3 id="sizes" class="title" style="padding-top: 1.5rem;">
-      Sizes
-    </h3>
+    {% include heading.html name="Sizes" %}
 
     <div class="columns">
       <div class="column is-half">
index 56f54b856e291603a0a41d2a79ff0dcfe20972bf..5b29b5669e705714c992d5ec1101d923d4ef2cc7 100644 (file)
@@ -418,11 +418,7 @@ variables:
     </div>
     {% highlight html %}{{tabs_icons_example}}{% endhighlight %}
 
-    <hr style="margin-bottom: 0;">
-
-    <h3 id="sizes" class="title" style="padding-top: 1.5rem;">
-      Sizes
-    </h3>
+    {% include heading.html name="Sizes" %}
     <div class="content">
       <p>You can choose between <strong>3 additional sizes</strong>: <code>is-small</code> <code>is-medium</code> and <code>is-large</code>.</p>
     </div>
index 9b20edb323016b503d819c4e323caaf488907bbd..a2f48422e1d667fd654d308fc6dc7ffaa004b183 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Box
 layout: documentation
 doc-tab: elements
 doc-subtab: box
index c76701b22658d0f5a50f12db6377dd624baa2148..6c954d6714491c765bfc87bd6e407f654c8095ce 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Button
 layout: documentation
 doc-tab: elements
 doc-subtab: button
@@ -416,11 +417,7 @@ variables:
       </div>
     </div>
 
-    <hr style="margin-bottom: 0;">
-
-    <h3 id="colors" class="title" style="padding-top: 1.5rem;">
-      Colors
-    </h3>
+    {% include heading.html name="Colors" %}
 
     <div class="columns">
       <div class="column">
@@ -440,11 +437,7 @@ variables:
       </div>
     </div>
 
-    <hr style="margin-bottom: 0;">
-
-    <h3 id="sizes" class="title" style="padding-top: 1.5rem;">
-      Sizes
-    </h3>
+    {% include heading.html name="Sizes" %}
 
     <div class="columns">
       <div class="column">
index 522e6fbab3d9729eed3edf0572202d357e994950..b89b007c2caf1d45b1e69d7bcc962ade28838238 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Content
 layout: documentation
 doc-tab: elements
 doc-subtab: content
@@ -37,6 +38,18 @@ variables:
   value: $text-strong
 ---
 
+{% capture content_pre %}
+&lt;!DOCTYPE html&gt;
+&lt;html&gt;
+  &lt;head&gt;
+    &lt;title&gt;Hello World&lt;/title&gt;
+  &lt;/head&gt;
+  &lt;body&gt;
+    &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra nec nulla vitae mollis.&lt;/p&gt;
+  &lt;/body&gt;
+&lt;/html&gt;
+{% endcapture %}
+
 {% capture content_example %}
 <div class="content">
   <h1>Hello World</h1>
@@ -74,15 +87,7 @@ variables:
   <p>Suspendisse egestas sapien non felis placerat elementum. Morbi tortor nisl, suscipit sed mi sit amet, mollis malesuada nulla. Nulla facilisi. Nullam ac erat ante.</p>
   <h4>Fourth level</h4>
   <p>Nulla efficitur eleifend nisi, sit amet bibendum sapien fringilla ac. Mauris euismod metus a tellus laoreet, at elementum ex efficitur.</p>
-  <pre>&lt;!DOCTYPE html&gt;
-&lt;html&gt;
-  &lt;head&gt;
-    &lt;title&gt;Hello World&lt;/title&gt;
-  &lt;/head&gt;
-  &lt;body&gt;
-    &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec viverra nec nulla vitae mollis.&lt;/p&gt;
-  &lt;/body&gt;
-&lt;/html&gt;</pre>
+  <pre>{{ content_pre }}</pre>
   <p>Maecenas eleifend sollicitudin dui, faucibus sollicitudin augue cursus non. Ut finibus eleifend arcu ut vehicula. Mauris eu est maximus est porta condimentum in eu justo. Nulla id iaculis sapien.</p>
   <table>
     <thead>
@@ -137,6 +142,12 @@ variables:
     <h2 class="subtitle">
       A single class to handle WYSIWYG generated content, where only <strong>HTML tags</strong> are available
     </h2>
+    {%
+      include meta.html
+      colors=false
+      sizes=true
+      variables=true
+    %}
 
     <hr>
 
@@ -159,9 +170,8 @@ variables:
 
     {% highlight html %}{{content_example}}{% endhighlight %}
 
-    <hr>
+    {% include heading.html name="Sizes" %}
 
-    <h3 class="title">Sizes</h3>
     <div class="content">
       <p>You can use the <code>is-small</code>, <code>is-medium</code> and <code>is-large</code> modifiers to change the font size.</p>
     </div>
@@ -208,7 +218,7 @@ variables:
       </div>
     </div>
 
-    {% include variables.html %}
+    {% include variables.html element=true %}
 
   </div>
 </section>
index e5aa69415fdcd3c40d8b9c7abb66404dee134f48..f214d32280c956972c853edd43dac04fec0b5a37 100644 (file)
@@ -1,44 +1,13 @@
 ---
+title: Delete
 layout: documentation
 doc-tab: elements
 doc-subtab: delete
 ---
 
-{% include subnav-elements.html %}
-
-<section class="section">
-  <div class="container">
-    <h1 class="title">Delete</h1>
-    <h2 class="subtitle">
-      A versatile <strong>delete</strong> cross
-    </h2>
-
-    <hr>
-
-    <div class="content">
-      <p>
-        The <code>.delete</code> element is a stand-alone element that can be used in different contexts.
-      </p>
-    </div>
-
 {% capture cross_example %}
 <a class="delete"></a>
 {% endcapture %}
-<div class="columns">
-<div class="column">
-  <div class="content">
-    <p>
-      On its own, it's a simple circle with a cross:
-    </p>
-  </div>
-  {{cross_example}}
-</div>
-<div class="column">
-{% highlight html %}
-{{cross_example}}
-{% endhighlight %}
-</div>
-</div>
 
 {% capture cross_sizes_example %}
 <a class="delete is-small"></a>
@@ -46,21 +15,6 @@ doc-subtab: delete
 <a class="delete is-medium"></a>
 <a class="delete is-large"></a>
 {% endcapture %}
-<div class="columns">
-<div class="column">
-  <div class="content">
-    <p>
-      It comes in <strong>4 sizes</strong>:
-    </p>
-  </div>
-  {{cross_sizes_example}}
-</div>
-<div class="column">
-{% highlight html %}
-{{cross_sizes_example}}
-{% endhighlight %}
-</div>
-</div>
 
 {% capture cross_elements_example %}
 <div class="block">
@@ -85,21 +39,79 @@ doc-subtab: delete
   </div>
 </article>
 {% endcapture %}
-<div class="columns">
-<div class="column">
-  <div class="content">
-    <p>
-      Bulma uses it for the <a href="/documentation/elements/tag/">tags</a>, the <a href="/documentation/elements/notification/">notifications</a>, and the <a href="/documentation/components/message/">messages</a>:
-    </p>
-  </div>
-  {{cross_elements_example}}
-</div>
-<div class="column">
-{% highlight html %}
-{{cross_elements_example}}
-{% endhighlight %}
-</div>
-</div>
+
+{% include subnav-elements.html %}
+
+<section class="section">
+  <div class="container">
+    <h1 class="title">Delete</h1>
+    <h2 class="subtitle">
+      A versatile <strong>delete</strong> cross
+    </h2>
+    {%
+      include meta.html
+      colors=false
+      sizes=true
+      variables=false
+    %}
+
+    <hr>
+
+    <div class="content">
+      <p>
+        The <code>.delete</code> element is a stand-alone element that can be used in different contexts.
+      </p>
+    </div>
+
+    <div class="columns">
+      <div class="column">
+        <div class="content">
+          <p>
+            On its own, it's a simple circle with a cross:
+          </p>
+        </div>
+        {{cross_example}}
+      </div>
+      <div class="column">
+        {% highlight html %}{{cross_example}}{% endhighlight %}
+      </div>
+    </div>
+
+    {% include heading.html name="Sizes" %}
+
+    <div class="columns">
+      <div class="column">
+        <div class="content">
+          <p>
+            It comes in <strong>4 sizes</strong>:
+          </p>
+        </div>
+        {{cross_sizes_example}}
+      </div>
+      <div class="column">
+        {% highlight html %}{{cross_sizes_example}}{% endhighlight %}
+      </div>
+    </div>
+
+    <hr style="margin-bottom: 0;">
+
+    <h3 id="combinations" class="title" style="padding-top: 1.5rem;">
+      Combinations
+    </h3>
+
+    <div class="columns">
+      <div class="column">
+        <div class="content">
+          <p>
+            Bulma uses it for the <a href="/documentation/elements/tag/">tags</a>, the <a href="/documentation/elements/notification/">notifications</a>, and the <a href="/documentation/components/message/">messages</a>:
+          </p>
+        </div>
+        {{cross_elements_example}}
+      </div>
+      <div class="column">
+        {% highlight html %}{{cross_elements_example}}{% endhighlight %}
+      </div>
+    </div>
 
   </div>
 </section>
index 616a5bf12e3aa985ca01de85baac6201073acabb..944806c6f84cd08ee4f7281625540d9262bdf9e2 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Form
 layout: documentation
 doc-tab: elements
 doc-subtab: form
index b57234e10bbc0432e2a257060ce18f0563994a8f..d97cc248d62aca3d4558e3c273755287d96cb921 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Icon
 layout: documentation
 doc-tab: elements
 doc-subtab: icon
@@ -28,6 +29,12 @@ variables:
     <h2 class="subtitle">
       Bulma is compatible with <strong><a href="http://fortawesome.github.io/Font-Awesome/">Font Awesome</a></strong> icons.
     </h2>
+    {%
+      include meta.html
+      colors=false
+      sizes=true
+      variables=true
+    %}
 
     <hr>
 
@@ -45,9 +52,7 @@ variables:
       <p>The <code>icon</code> container will take up <em>exactly</em> <strong>1.5rem x 1.5rem</strong>. The icon itself is sized at <strong>21px</strong>.</p>
     </div>
 
-    <hr>
-
-    <h3 class="title">Sizes</h3>
+    {% include heading.html name="Sizes" %}
 
     <div class="content">
       <p>Font Awesome icons use a font-size of <strong>28px</strong> by default, and are best rendered when using <strong>multiples of 7</strong>.</p>
index 1dbc72936c48f8abd27d431866beba2d0bac81bd..4b7fa36e0d07b28ab7091cb0b12194b0b5224537 100644 (file)
@@ -1,12 +1,33 @@
 ---
+title: Image
 layout: documentation
 doc-tab: elements
 doc-subtab: image
+dimensions:
+- 16
+- 24
+- 32
+- 48
+- 64
+- 96
+- 128
 variables:
 - name: $dimensions
   value: 16 24 32 48 64 96 128
 ---
 
+{% capture image %}
+<figure class="image is-128x128">
+  <img src="{{site.url}}/images/placeholders/128x128.png">
+</figure>
+{% endcapture %}
+
+{% capture retina_image %}
+<figure class="image is-128x128">
+  <img src="{{site.url}}/images/placeholders/256x256.png">
+</figure>
+{% endcapture %}
+
 {% include subnav-elements.html %}
 
 <section class="section">
@@ -15,6 +36,12 @@ variables:
     <h2 class="subtitle">
       A container for <strong>responsive images</strong>
     </h2>
+    {%
+      include meta.html
+      colors=false
+      sizes=false
+      variables=true
+    %}
 
     <hr>
 
@@ -28,11 +55,7 @@ variables:
       </figure>
     </div>
 
-{% highlight html %}
-<figure class="image is-128x128">
-  <img src="{{site.url}}/images/placeholders/128x128.png">
-</figure>
-{% endhighlight %}
+    {% highlight html %}{{ image }}{% endhighlight %}
 
     <hr>
 
@@ -43,41 +66,13 @@ variables:
 
     <table class="table is-bordered">
       <tbody>
-        <tr>
-          <td><code>image is-16x16</code></td>
-          <td><figure class="image is-16x16"><img src="{{site.url}}/images/placeholders/16x16.png"></figure></td>
-          <td>16x16px</td>
-        </tr>
-        <tr>
-          <td><code>image is-24x24</code></td>
-          <td><figure class="image is-24x24"><img src="{{site.url}}/images/placeholders/24x24.png"></figure></td>
-          <td>24x24px</td>
-        </tr>
-        <tr>
-          <td><code>image is-32x32</code></td>
-          <td><figure class="image is-32x32"><img src="{{site.url}}/images/placeholders/32x32.png"></figure></td>
-          <td>32x32px</td>
-        </tr>
-        <tr>
-          <td><code>image is-48x48</code></td>
-          <td><figure class="image is-48x48"><img src="{{site.url}}/images/placeholders/48x48.png"></figure></td>
-          <td>48x48px</td>
-        </tr>
-        <tr>
-          <td><code>image is-64x64</code></td>
-          <td><figure class="image is-64x64"><img src="{{site.url}}/images/placeholders/64x64.png"></figure></td>
-          <td>64x64px</td>
-        </tr>
-        <tr>
-          <td><code>image is-96x96</code></td>
-          <td><figure class="image is-96x96"><img src="{{site.url}}/images/placeholders/96x96.png"></figure></td>
-          <td>96x96px</td>
-        </tr>
-        <tr>
-          <td><code>image is-128x128</code></td>
-          <td><figure class="image is-128x128"><img src="{{site.url}}/images/placeholders/128x128.png"></figure></td>
-          <td>128x128px</td>
-        </tr>
+        {% for dimension in page.dimensions %}
+          <tr>
+            <td><code>image is-{{ dimension }}x{{ dimension }}</code></td>
+            <td><figure class="image is-{{ dimension }}x{{ dimension }}"><img src="{{site.url}}/images/placeholders/{{ dimension }}x{{ dimension }}.png"></figure></td>
+            <td>{{ dimension }}x{{ dimension }}px</td>
+          </tr>
+        {% endfor %}
       </tbody>
     </table>
 
@@ -93,11 +88,7 @@ variables:
       </figure>
     </div>
 
-{% highlight html %}
-<figure class="image is-128x128">
-  <img src="{{site.url}}/images/placeholders/256x256.png">
-</figure>
-{% endhighlight %}
+    {% highlight html %}{{ retina_image }}{% endhighlight %}
 
     <hr>
 
index 2c915d80ebb9eb5400191069e39ff5f377d87773..309b1b2a0ef7f777d88cbefa428f05dd39638c20 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Notification
 layout: documentation
 doc-tab: elements
 doc-subtab: notification
@@ -11,53 +12,16 @@ variables:
   value: 1.25rem 2.5rem 1.25rem 1.5rem
 ---
 
-{% include subnav-elements.html %}
-
-<section class="section">
-  <div class="container">
-    <h1 class="title">Notifications</h1>
-    <h2 class="subtitle">
-      Bold <strong>notification</strong> blocks, to alert your users of something
-    </h2>
-
-    <hr>
-
-    <div class="columns">
-      <div class="column">
-        <div class="notification">
-          <button class="delete"></button>
-          Lorem ipsum dolor sit amet, consectetur adipiscing elit lorem ipsum dolor. <strong>Pellentesque risus mi</strong>, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum <a>felis venenatis</a> efficitur. Sit amet, consectetur adipiscing elit
-        </div>
-        <div class="notification is-primary">
-          <button class="delete"></button>
-          Info lorem ipsum dolor sit amet, consectetur adipiscing elit lorem ipsum dolor. <strong>Pellentesque risus mi</strong>, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum <a>felis venenatis</a> efficitur. Sit amet, consectetur adipiscing elit
-        </div>
-        <div class="notification is-info">
-          <button class="delete"></button>
-          Info lorem ipsum dolor sit amet, consectetur adipiscing elit lorem ipsum dolor. <strong>Pellentesque risus mi</strong>, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum <a>felis venenatis</a> efficitur. Sit amet, consectetur adipiscing elit
-        </div>
-        <div class="notification is-success">
-          <button class="delete"></button>
-          Success lorem ipsum dolor sit amet, consectetur adipiscing elit lorem ipsum dolor. <strong>Pellentesque risus mi</strong>, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum <a>felis venenatis</a> efficitur. Sit amet, consectetur adipiscing elit
-        </div>
-        <div class="notification is-warning">
-          <button class="delete"></button>
-          Warning lorem ipsum dolor sit amet, consectetur adipiscing elit lorem ipsum dolor. <strong>Pellentesque risus mi</strong>, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum <a>felis venenatis</a> efficitur. Sit amet, consectetur adipiscing elit
-        </div>
-        <div class="notification is-danger">
-          <button class="delete"></button>
-          Danger lorem ipsum dolor sit amet, consectetur adipiscing elit lorem ipsum dolor. <strong>Pellentesque risus mi</strong>, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum <a>felis venenatis</a> efficitur. Sit amet, consectetur adipiscing elit
-        </div>
-      </div>
-      <div class="column">
-{% highlight html %}
+{% capture notification %}
 <div class="notification">
   <button class="delete"></button>
   Lorem ipsum dolor sit amet, consectetur
   adipiscing elit lorem ipsum dolor. <strong>Pellentesque risus mi</strong>, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum <a>felis venenatis</a> efficitur. Sit amet,
   consectetur adipiscing elit
 </div>
+{% endcapture %}
 
+{% capture notification_colors %}
 <div class="notification is-primary">
   <button class="delete"></button>
   Primar lorem ipsum dolor sit amet, consectetur
@@ -92,7 +56,42 @@ variables:
   adipiscing elit lorem ipsum dolor. <strong>Pellentesque risus mi</strong>, tempus quis placerat ut, porta nec nulla. Vestibulum rhoncus ac ex sit amet fringilla. Nullam gravida purus diam, et dictum <a>felis venenatis</a> efficitur. Sit amet,
   consectetur adipiscing elit
 </div>
-{% endhighlight %}
+{% endcapture %}
+
+{% include subnav-elements.html %}
+
+<section class="section">
+  <div class="container">
+    <h1 class="title">Notifications</h1>
+    <h2 class="subtitle">
+      Bold <strong>notification</strong> blocks, to alert your users of something
+    </h2>
+    {%
+      include meta.html
+      colors=true
+      sizes=false
+      variables=true
+    %}
+
+    <hr>
+
+    <div class="columns">
+      <div class="column">
+        {{ notification }}
+      </div>
+      <div class="column">
+        {% highlight html %}{{ notification }}{% endhighlight %}
+      </div>
+    </div>
+
+    {% include heading.html name="Colors" %}
+
+    <div class="columns">
+      <div class="column">
+        {{ notification_colors }}
+      </div>
+      <div class="column">
+        {% highlight html %}{{ notification_colors }}{% endhighlight %}
       </div>
     </div>
 
index 82bf3e60759e5a61b076c666bc84b7e40d27765b..3b1a5326922388a2f8e28f55d5ac7abf2af8e014 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Progess Bar
 layout: documentation
 doc-tab: elements
 doc-subtab: progress
@@ -9,6 +10,25 @@ variables:
   value: $text
 ---
 
+{% capture progress %}
+<progress class="progress" value="15" max="100">15%</progress>
+{% endcapture %}
+
+{% capture progress_colors %}
+<progress class="progress is-primary" value="30" max="100">30%</progress>
+<progress class="progress is-info" value="45" max="100">45%</progress>
+<progress class="progress is-success" value="60" max="100">60%</progress>
+<progress class="progress is-warning" value="75" max="100">75%</progress>
+<progress class="progress is-danger" value="90" max="100">90%</progress>
+{% endcapture %}
+
+{% capture progress_sizes %}
+<progress class="progress is-small" value="15" max="100">15%</progress>
+<progress class="progress" value="30" max="100">30%</progress>
+<progress class="progress is-medium" value="45" max="100">45%</progress>
+<progress class="progress is-large" value="60" max="100">60%</progress>
+{% endcapture %}
+
 {% include subnav-elements.html %}
 
 <section class="section">
@@ -17,41 +37,33 @@ variables:
     <h2 class="subtitle">
       Native HTML <strong>progress</strong> bars
     </h2>
+    {%
+      include meta.html
+      colors=true
+      sizes=true
+      variables=true
+    %}
 
     <hr>
 
     <div class="example">
-      <progress class="progress" value="15" max="100">15%</progress>
-      <progress class="progress is-primary" value="30" max="100">30%</progress>
-      <progress class="progress is-info" value="45" max="100">45%</progress>
-      <progress class="progress is-success" value="60" max="100">60%</progress>
-      <progress class="progress is-warning" value="75" max="100">75%</progress>
-      <progress class="progress is-danger" value="90" max="100">90%</progress>
+      {{ progress }}
     </div>
-{% highlight html %}
-<progress class="progress" value="15" max="100">15%</progress>
-<progress class="progress is-primary" value="30" max="100">30%</progress>
-<progress class="progress is-info" value="45" max="100">45%</progress>
-<progress class="progress is-success" value="60" max="100">60%</progress>
-<progress class="progress is-warning" value="75" max="100">75%</progress>
-<progress class="progress is-danger" value="90" max="100">90%</progress>
-{% endhighlight %}
+    {% highlight html %}{{ progress }}{% endhighlight %}
 
-    <hr>
+    {% include heading.html name="Colors" %}
 
-    <h3 class="title">Sizes</h3>
     <div class="example">
-      <progress class="progress is-small" value="15" max="100">15%</progress>
-      <progress class="progress" value="30" max="100">30%</progress>
-      <progress class="progress is-medium" value="45" max="100">45%</progress>
-      <progress class="progress is-large" value="60" max="100">60%</progress>
+      {{ progress_colors }}
     </div>
-{% highlight html %}
-<progress class="progress is-small" value="15" max="100">15%</progress>
-<progress class="progress" value="30" max="100">30%</progress>
-<progress class="progress is-medium" value="45" max="100">45%</progress>
-<progress class="progress is-large" value="60" max="100">60%</progress>
-{% endhighlight %}
+    {% highlight html %}{{ progress_colors }}{% endhighlight %}
+
+    {% include heading.html name="Sizes" %}
+
+    <div class="example">
+      {{ progress_sizes }}
+    </div>
+    {% highlight html %}{{ progress_sizes }}{% endhighlight %}
 
     {% include variables.html element=true %}
 
index 4034e6ef2c167b4f9e1cd884a05c9bac8a55ab0c..6392324748002e0695505666288c1558710a07de 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Table
 layout: documentation
 doc-tab: elements
 doc-subtab: table
@@ -343,6 +344,12 @@ variables:
   <div class="container">
     <h1 class="title">Tables</h1>
     <h2 class="subtitle">The inevitable HTML <strong>table</strong>, with special case cells</h2>
+    {%
+      include meta.html
+      colors=false
+      sizes=false
+      variables=true
+    %}
 
     <hr>
 
index f0fe2d3f5e61e62f724f44398684c24929b82a3a..a2d35a9a6b167b3e0c91ea75138fec44e0b0b7de 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Tags
 layout: documentation
 doc-tab: elements
 doc-subtab: tag
@@ -32,6 +33,10 @@ variables:
 <span class="tag is-info is-large">Large</span>
 {% endcapture %}
 
+{% capture rounded %}
+<span class="tag is-rounded">Rounded</span>
+{% endcapture %}
+
 {% capture delete %}
 <span class="tag is-success">
   Bar
@@ -55,6 +60,12 @@ variables:
     <h2 class="subtitle">
       Small <strong>tag labels</strong> to insert anywhere
     </h2>
+    {%
+      include meta.html
+      colors=true
+      sizes=true
+      variables=true
+    %}
 
     <hr>
 
@@ -72,6 +83,8 @@ variables:
       </div>
     </div>
 
+    {% include heading.html name="Colors" %}
+
     <div class="columns">
       <div class="column is-4">
         Like with buttons, there are <strong>9 different colors</strong> available.
@@ -126,6 +139,8 @@ variables:
       </div>
     </div>
 
+    {% include heading.html name="Sizes" %}
+
     <div class="columns">
       <div class="column is-4">
         And <strong>2 additional</strong> sizes.
@@ -147,6 +162,22 @@ variables:
       </div>
     </div>
 
+    {% include heading.html name="Modifiers" %}
+
+    <div class="columns">
+      <div class="column is-4">
+        You can add the <code>is-rounded</code> modifier to make a <strong>rounded</strong> tag.
+      </div>
+      <div class="column is-2">
+        {{ rounded }}
+      </div>
+      <div class="column is-6">
+        {% highlight html %}{{ rounded }}{% endhighlight %}
+      </div>
+    </div>
+
+    {% include heading.html name="Combinations" %}
+
     <div class="columns">
       <div class="column is-4">
         You can also append a <strong>delete button</strong>.
index cebcba770347e2881e3e86a108997058ce56b502..61ffbb98ad444e4fdf7a817fd63c5c0b3eb42aef 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Title and Subtitle
 layout: documentation
 doc-tab: elements
 doc-subtab: title
@@ -74,12 +75,28 @@ variables:
     <h2 class="subtitle">
       Simple <strong>headings</strong> to add depth to your page
     </h2>
+    {%
+      include meta.html
+      colors=false
+      sizes=true
+      variables=true
+    %}
 
     <hr>
 
     <div class="columns">
       <div class="column">
-        <p>There are <strong>2 types</strong> of heading:</p>
+        <div class="content">
+          <p>There are <strong>2 types</strong> of heading:</p>
+          <ul>
+            <li>
+              <code>.title</code>
+            </li>
+            <li>
+              <code>.subtitle</code>
+            </li>
+          </ul>
+        </div>
       </div>
       <div class="column">
         <p class="title">Title</p>
@@ -90,7 +107,7 @@ variables:
       </div>
     </div>
 
-    <hr>
+    {% include heading.html name="Sizes" %}
 
     <div class="columns">
       <div class="column">
index da2a44f6eaffed747ee4adc8e82680303db24597..4674d7f9e8871cd5ad87d8393655eafeb7cd56af 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Checkbox
 layout: documentation
 doc-tab: form
 doc-subtab: checkbox
index c142561a5caa94c7716013548ceede1aed992853..cb45c3346e4727b18490ab216a445705a88a2c07 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Form controls
 layout: documentation
 doc-tab: form
 doc-subtab: general
index 6e3f2c9b24e5a7a40ad3c932790981c3e6283e6d..9827249d681751810e91a3692bb1b20a9651efd0 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Input
 layout: documentation
 doc-tab: form
 doc-subtab: input
index dc0df9c48916d1a86c41a9bdb07aace7000d9023..c0533d59ab1832a0c16ce513d4bcf09a39d802c8 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Radio button
 layout: documentation
 doc-tab: form
 doc-subtab: radio
index 0511f77361d308ac954ac3e54749678b4fe46ad8..621e0902ada6771cfc15fb1e70e7799b6317fbba 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Select
 layout: documentation
 doc-tab: form
 doc-subtab: select
index e4635c0ad384c0781a5d74cc3a9a0b2debf3e38b..ab7b55756342f4a23e9bd853a79975df728987c3 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Textarea
 layout: documentation
 doc-tab: form
 doc-subtab: textarea
index 8d50203e167427ba57eb8a325177feec36df0dd0..8a5083618a5e62210ca60ebdbcb4a26a78df8d6f 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Columns powered by Flexbox
 layout: documentation
 doc-tab: grid
 doc-subtab: columns
index 8571f67ae74c8c3063f9f86a5b6cbe074e85a5da..84bec57ef88d5d50465cc096744b8417eaa61507 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Tiles powered by Flexbox
 layout: documentation
 doc-tab: grid
 doc-subtab: tiles
index 907465250eb1c298f46e743f9f2ab3b9adce59d3..a8e2848305b3340fa396a33237bf41d09f79d058 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Container
 layout: documentation
 doc-tab: layout
 doc-subtab: container
index 18a9550fe15fd8b0499862188d81926dfd3b6883..3ff0a9c6a6b28bcd0a5a96de8aeabb816394b159 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Footer
 layout: documentation
 doc-tab: layout
 doc-subtab: footer
index db32a9aeedeceaaf5357978f2fa4beb649c8a830..cfa0cb5a05852e0f0888833cb3170189dc644336 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Hero
 layout: documentation
 doc-tab: layout
 doc-subtab: hero
index e82126a6c6e15256ab2808e27d78bdfcc222d2e6..b0b5c27eb5773c320c79efca57e1cdadc972e19f 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Section
 layout: documentation
 doc-tab: layout
 doc-subtab: section
index 89838cd7089cd3c48d0196957d92fffce32e005c..ab2c34ce91d5e9e93ce267a723621b791f657a44 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Helpers
 layout: documentation
 doc-tab: modifiers
 doc-subtab: helpers
index 4ea188c9987f01e8eec7604b4869fd43ad9d1eea..b7a7e3d5a2dac71090057c43e6767f3d62bb1d85 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Responsive helpers
 layout: documentation
 doc-tab: modifiers
 doc-subtab: responsive-helpers
index 74dc331da57c48ce2d08527f9691b746f26cfd61..586123e48b592b09c302a15dd6dc486f47cc6a32 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Modifiers syntax
 layout: documentation
 doc-tab: modifiers
 doc-subtab: syntax
index 3c9a70cc377e7c5e430d42925f81c60a4836776e..2e1194e321f36e2ca59f8652f16faa0c2945a583 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Typography helpers
 layout: documentation
 doc-tab: modifiers
 doc-subtab: typography-helpers
index 9d4b6a7de315f6d562f1401b0928b66c14f27c2e..05be9fcfc9ba507c99783bd76934937db907a20e 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: CSS classes
 layout: documentation
 doc-tab: overview
 doc-subtab: classes
index 407340d25a7ee4383aaa1e7dadbc5cb77f354006..b5ebc8a8d0b25bbcf5623e615bcee8354c4bfa86 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Customize Bulma
 layout: documentation
 doc-tab: overview
 doc-subtab: customize
index 473583bcacc564a433581a9a5212c464e9d3a421..aa2f3d26691a548bf6540de2313cefa549e0485a 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Functions
 layout: documentation
 doc-tab: overview
 doc-subtab: functions
index 8a9976b415dfbc7037004a2747ae18f05e5d3fe4..dcc9cebfb71302b912cf480ee187c2a117603203 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Mixins
 layout: documentation
 doc-tab: overview
 doc-subtab: mixins
index ddb65184085e6befccd6cb84fff24977e36b54b9..a37608b0338ee28d9e82dd5f3c943184c75d8b26 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Modularity
 layout: documentation
 doc-tab: overview
 doc-subtab: modular
index 6ca21950479aced6f787511d9761d89626179ef9..1f66d8265da8f28da3a9a831ac19bf94378dba60 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Responsiveness
 layout: documentation
 doc-tab: overview
 doc-subtab: responsiveness
index 51b520d262ca20701c97b503f2e7f8f5a6ecd506..26fa2ac0dc2644951329dbe39332fad26375064a 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Get started with Bulma
 layout: documentation
 doc-tab: overview
 doc-subtab: start
index 970253d237bdfe0e81f39b959e0259c18de93926..1e9e63228f5b3827ad69309a9102d120db528d18 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Variables
 layout: documentation
 doc-tab: overview
 doc-subtab: variables
index 0b8e65a204b48e3e23677ee0bf52913061043efe..748e9ee5163c2772e65a34ed4003be2467e3940e 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Extensions
 layout: default
 route: extensions
 extensions:
index 07bd60a9d10d38fb56b3794e8d6dd493ae0a3110..482e2cf0e30fb482645044d7e7700c5b8fa3839b 100644 (file)
@@ -4,6 +4,23 @@ document.addEventListener('DOMContentLoaded', function () {
 
   // Dropdowns
 
+  var $metalinks = getAll('#meta a');
+
+  if ($metalinks.length > 0) {
+    $metalinks.forEach(function ($el) {
+      $el.addEventListener('click', function (event) {
+        event.preventDefault();
+        var target = $el.getAttribute('href');
+        var $target = document.getElementById(target.substring(1));
+        $target.scrollIntoView(true);
+        window.history.replaceState(null, document.title, '' + window.location.origin + window.location.pathname + target);
+        return false;
+      });
+    });
+  }
+
+  // Dropdowns
+
   var $dropdowns = getAll('.dropdown:not(.is-hoverable)');
 
   if ($dropdowns.length > 0) {
index cf13c9804f245b8c6576639135b646d0ffadf5d8..0f1d3bf44356832f57067d4ba5a1f68ea18a1c69 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Thank you
 layout: default
 route: index
 ---
index 231f032e0af77c6452b580cac2503e4501bc5caa..5fdc0ff5c91e3c086145e2d7567571f38e9997ac 100644 (file)
@@ -1,4 +1,5 @@
 ---
+title: Versions
 layout: default
 route: versions
 ---