level-left for the left side. This element is required, even if it is empty
-
- level-right for the right side
-
-
level-item for each individual element
-
-
-
-
-
-
In a level-item, you can then insert almost anything you want: a title, a button, a text input, or just simple text. No matter what elements you put inside a Bulma level, they will always be vertically centered.
- By default, for space concerns, the level is vertical on mobile. If you want the level to be horizontal on mobile as well, add the is-mobile modifier on the level container.
-
The media object is a UI element perfect for repeatable and nestable content.
-
-
-
-
-
-
-
-
-
-
-
-
- John Smith @johnsmith 31m
-
- 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.
-
-
-
-
-
-
-
-
-
-
-{% capture media_example %}
-
-
-
-
-
-
-
-
-
- John Smith @johnsmith 31m
-
- 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.
-
-
-
-
-
-
-
-
-{% endcapture %}
-
-{{media_example}}
-
-{% highlight html %}
-{{media_example}}
-{% endhighlight %}
-
-
-
You can include any other Bulma element, like inputs, textareas, icons, buttons... or even a nav bar.
- Barbara Middleton
-
- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis porta eros lacus, nec ultricies elit blandit non. Suspendisse pellentesque mauris sit amet dolor blandit rutrum. Nunc in tempus turpis.
-
- Like · Reply · 3 hrs
-
-
-
-
-
-
-
-
-
-
-
-
- Sean Brown
-
- Donec sollicitudin urna eget eros malesuada sagittis. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Aliquam blandit nisl a nulla sagittis, a lobortis leo feugiat.
-
- Like · Reply · 2 hrs
-
-
-
-
- Vivamus quis semper metus, non tincidunt dolor. Vivamus in mi eu lorem cursus ullamcorper sit amet nec massa.
-
-
-
- Morbi vitae diam et purus tincidunt porttitor vel vitae augue. Praesent malesuada metus sed pharetra euismod. Cras tellus odio, tincidunt iaculis diam non, porta aliquet tortor.
-
-
-
-
-
-
-
-
-
-
-
-
-
- Kayli Eunice
-
- Sed convallis scelerisque mauris, non pulvinar nunc mattis vel. Maecenas varius felis sit amet magna vestibulum euismod malesuada cursus libero. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Phasellus lacinia non nisl id feugiat.
-
- Like · Reply · 2 hrs
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-{% endcapture %}
-
-{{media_nested_example}}
-
-{% highlight html %}
-{{media_nested_example}}
-{% endhighlight %}
-
-
-
- {% highlight html %}{{pagination_example}}{% endhighlight %}
+ {% include snippet.html content=pagination_example horizontal=true clipped=true %}
@@ -221,11 +217,7 @@ variables:
-
- {{pagination_options_example}}
-
-
- {% highlight html %}{{pagination_options_example}}{% endhighlight %}
+ {% include snippet.html content=pagination_options_example horizontal=true clipped=true %}
@@ -233,17 +225,9 @@ variables:
-
- {{pagination_centered_example}}
-
+ {% include snippet.html content=pagination_centered_example horizontal=true clipped=true %}
- {% highlight html %}{{pagination_centered_example}}{% endhighlight %}
-
-
- {{pagination_right_example}}
-
-
- {% highlight html %}{{pagination_right_example}}{% endhighlight %}
+ {% include snippet.html content=pagination_right_example horizontal=true clipped=true %}
{% include anchor.html name="Sizes" %}
@@ -252,17 +236,11 @@ variables:
You only need to append the modifieris-small, is-medium, or is-large to the pagination component.
-
- {{pagination_small_example}}
-
+ {% include snippet.html content=pagination_small_example horizontal=true clipped=true %}
-
- {{pagination_medium_example}}
-
+ {% include snippet.html content=pagination_medium_example horizontal=true clipped=true %}
-
- {{pagination_large_example}}
-
+ {% include snippet.html content=pagination_large_example horizontal=true clipped=true %}
{% include variables.html %}
diff --git a/docs/documentation/elements/form.html b/docs/documentation/elements/form.html
index 282483708..5408f4b9b 100644
--- a/docs/documentation/elements/form.html
+++ b/docs/documentation/elements/form.html
@@ -6,1208 +6,3 @@ doc-subtab: form
---
-
-{% capture form_example %}
-
- All generic form controls, designed for consistency
-
-
-
-
-
-
The following form controls classes are supported:
-
-
.label
-
.input
-
.textarea
-
.select
-
.checkbox
-
.radio
-
.button
-
.help
-
-
Each of them should be wrapped in a .control container.
- When combining several controls in a form, use the .field class as a container, to keep the spacing consistent.
-
-
-
-
- {{form_example}}
-
-
- {% highlight html %}{{form_example}}{% endhighlight %}
-
-
-
-
-
-
Colors
-
-
- {{colors_example}}
-
-
- {% highlight html %}{{colors_example}}{% endhighlight %}
-
-
-
-
-
Sizes
-
-
- {{sizes_example}}
-
-
- {% highlight html %}{{sizes_example}}{% endhighlight %}
-
-
-
-
-
-
States
-
Normal
-
-
- {{normal_example}}
-
-
- {% highlight html %}{{normal_example}}{% endhighlight %}
-
-
-
-
Hover
-
-
- {{hover_example}}
-
-
- {% highlight html %}{{hover_example}}{% endhighlight %}
-
-
-
-
Focus
-
-
- {{focus_example}}
-
-
- {% highlight html %}{{focus_example}}{% endhighlight %}
-
-
-
-
Loading
-
-
- {{loading_example}}
-
-
- {% highlight html %}{{loading_example}}{% endhighlight %}
-
-
-
- {% if site.vernum >= 43 %}
-
-
-
- New!
- 0.4.3
-
-
-
- You can resize the loading spinner by appending is-small, is-medium or is-large to the control container.
-
-
- {{loading_sizes_example}}
-
-
- {% highlight html %}{{loading_sizes_example}}{% endhighlight %}
-
-
- {% endif %}
-
-
Disabled
-
-
- {{disabled_example}}
-
-
- {% highlight html %}{{disabled_example}}{% endhighlight %}
-
-
-
-
-
-
-
With icons
-
-
You can append one of 2 modifiers on a control:
-
-
- has-icons-left
-
-
- and/or has-icons-right
-
-
-
You also need to add a modifier on the icon:
-
-
- icon is-left if has-icons-left is used
-
-
- icon is-right if has-icons-right is used
-
-
-
The size of the input will define the size of the icon container.
-
-
-
- {{icons_example}}
-
-
- {% highlight html %}{{icons_example}}{% endhighlight %}
-
-
-
-
-
-
-
- New!
- 0.4.2
-
-
- You can now append icons to select dropdowns as well.
-
-
- {{select_icons_example}}
-
-
- {% highlight html %}{{select_icons_example}}{% endhighlight %}
-
-
-
-
-
- If the control contains an icon, Bulma will make sure the icon remains centered, no matter the size of the input or of the icon.
-
-
-
-
-
- {{has_icons_small_example}}
-
-
- {% highlight html %}{{has_icons_small_example}}{% endhighlight %}
-
-
-
-
-
- {{has_icons_normal_example}}
-
-
- {% highlight html %}{{has_icons_normal_example}}{% endhighlight %}
-
-
-
-
-
- {{has_icons_medium_example}}
-
-
- {% highlight html %}{{has_icons_medium_example}}{% endhighlight %}
-
-
-
-
-
- {{has_icons_large_example}}
-
-
- {% highlight html %}{{has_icons_large_example}}{% endhighlight %}
-
-
-
-
-
-
Form addons
-
-
If you want to attach controls together, use the has-addons modifier on the control container:
-
-
- {{addons_example}}
-
- {% highlight html %}{{addons_example}}{% endhighlight %}
-
-
You can attach inputs, buttons, and dropdowns only.
- If you want to group controls together, use the is-grouped modifier on the control container.
-
- Use the is-grouped-centered or the is-grouped-right modifers to alter the alignment.
-
-
- Add the is-expanded modifier on the control element you want to fill up the remaining space.
-
- {% highlight html %}{{ file }}{% endhighlight %}
-
-
+ {% include snippet.html content=file %}
{% include anchor.html name="Modifiers" %}
@@ -686,29 +677,21 @@ variables:
{% include anchor.html name="Colors" %}
-
-
-
-
- You can style the file element by appending one of the 9 color modifiers:
-
-
- {% for color in site.colors %}
-
- is-{{ color }}
-
- {% endfor %}
-
-
-
- {{ file_colors }}
-
-
-
- {% highlight html %}{{ file_colors }}{% endhighlight %}
-
+
+
+ You can style the file element by appending one of the 9 color modifiers:
+
+
+ {% for color in site.colors %}
+
+ is-{{ color }}
+
+ {% endfor %}
+
+ {% include snippet.html content=file_colors clipped=true %}
+
{% include anchor.html name="Sizes" %}
@@ -728,49 +711,13 @@ variables:
-
-
-
- {{ file_sizes }}
-
-
-
- {% highlight html %}{{ file_sizes }}{% endhighlight %}
-
-
+ {% include snippet.html content=file_sizes clipped=true %}
-
-
-
- {{ file_sizes_name }}
-
-
-
- {% highlight html %}{{ file_sizes_name }}{% endhighlight %}
-
-
+ {% include snippet.html content=file_sizes_name clipped=true %}
-
-
-
- {{ file_sizes_boxed }}
-
-
-
- {% highlight html %}{{ file_sizes_boxed }}{% endhighlight %}
-
-
+ {% include snippet.html content=file_sizes_boxed clipped=true %}
-
-
-
- {{ file_sizes_boxed_name }}
-
-
-
- {% highlight html %}{{ file_sizes_boxed_name }}{% endhighlight %}
-
-
+ {% include snippet.html content=file_sizes_boxed_name clipped=true %}
{% include anchor.html name="Alignment" %}
@@ -788,27 +735,9 @@ variables:
-
-
-
- {{ file_centered }}
-
-
-
- {% highlight html %}{{ file_centered }}{% endhighlight %}
-
-
+ {% include snippet.html content=file_centered %}
-
-
-
- {{ file_right }}
-
-
-
- {% highlight html %}{{ file_right }}{% endhighlight %}
-
-
+ {% include snippet.html content=file_right %}
{% include anchor.html name="JavaScript" %}
diff --git a/docs/documentation/form/general.html b/docs/documentation/form/general.html
index 69c12b755..43e71de9a 100644
--- a/docs/documentation/form/general.html
+++ b/docs/documentation/form/general.html
@@ -815,16 +815,14 @@ doc-subtab: general
- {{example}}
+ {{ example }}
- {% highlight html %}{{example}}{% endhighlight %}
+ {% highlight html %}{{ example }}{% endhighlight %}
-
-
-
Form field
+ {% include anchor.html name="Form field" %}
The field container is a simple container for:
@@ -835,31 +833,15 @@ doc-subtab: general
-
-
- {{field_example}}
-
-
- {% highlight html %}{{field_example}}{% endhighlight %}
-
-
+ {% include snippet.html content=field_example %}
This container allows form fields to be spaced consistently.
-
-
- {{fields_example}}
-
-
- {% highlight html %}{{fields_example}}{% endhighlight %}
-
-
-
-
+ {% include snippet.html content=fields_example %}
-
Form control
+ {% include anchor.html name="Form control" %}
The control is a versatile container meant to enhance single form controls. Because it has the same height as a control elements, it can only contain the following elements:
@@ -871,37 +853,15 @@ doc-subtab: general
-
-
- {{control_input_example}}
-
-
- {% highlight html %}{{control_input_example}}{% endhighlight %}
-
-
+ {% include snippet.html content=control_input_example %}
-
-
- {{control_select_example}}
-
-
- {% highlight html %}{{control_select_example}}{% endhighlight %}
-
-
+ {% include snippet.html content=control_select_example %}
-
-
- {{control_button_example}}
-
-
- {% highlight html %}{{control_button_example}}{% endhighlight %}
-
-
+ {% include snippet.html content=control_button_example %}
-
+ {% include anchor.html name="With icons" %}
-
With icons
You can append one of 2 modifiers on a control:
@@ -923,80 +883,39 @@ doc-subtab: general
The size of the input will define the size of the icon container.
-
-
- {{icons_example}}
-
-
- {% highlight html %}{{icons_example}}{% endhighlight %}
-
-
-
-
-
-
- You can append icons to select dropdowns as well.
-
-
- {{select_icons_example}}
-
-
- {% highlight html %}{{select_icons_example}}{% endhighlight %}
-
-
+ {% include snippet.html content=icons_example clipped=true %}
-
-
-
-
- If the control contains an icon, Bulma will make sure the icon remains centered, no matter the size of the input or of the icon.
-
-
- {{has_icons_small_example}}
-
-
- {% highlight html %}{{has_icons_small_example}}{% endhighlight %}
-
+
+
+ You can append icons to select dropdowns as well.
+
-
-
- {{has_icons_normal_example}}
-
-
- {% highlight html %}{{has_icons_normal_example}}{% endhighlight %}
-
-
+ {% include snippet.html content=select_icons_example %}
-
-
- {{has_icons_medium_example}}
-
-
- {% highlight html %}{{has_icons_medium_example}}{% endhighlight %}
-
+
+
+ If the control contains an icon, Bulma will make sure the icon remains centered, no matter the size of the input or of the icon.
+
-
-
- {{has_icons_large_example}}
-
-
- {% highlight html %}{{has_icons_large_example}}{% endhighlight %}
-
-
+ {% include snippet.html content=has_icons_small_example %}
-
+ {% include snippet.html content=has_icons_normal_example clipped=true %}
+
+ {% include snippet.html content=has_icons_medium_example clipped=true %}
+
+ {% include snippet.html content=has_icons_large_example clipped=true %}
+
+ {% include anchor.html name="Form addons" %}
-
Form addons
If you want to attach controls together, use the has-addons modifier on the field container:
-
- {{addons_example}}
-
- {% highlight html %}{{addons_example}}{% endhighlight %}
+
+ {% include snippet.html content=addons_example %}
+
You can attach inputs, buttons, and dropdowns only.