- The dropdown component is a container for a dropdown button and a dropdown menu.
-
+
+
+ The dropdown component is a container for a dropdown button and a dropdown menu.
+
+
+
+ dropdown the main container
- dropdown the main container
+ dropdown-trigger the container for a button
+
+
+ dropdown-menu the toggable menu, hidden by default
- dropdown-trigger the container for a button
-
-
- dropdown-menu the toggable menu, hidden by default
+ dropdown-content the dropdown box, with a white background and a shadow
- dropdown-content the dropdown box, with a white background and a shadow
-
-
- dropdown-item each single item of the dropdown, which can either be a a or a div
-
-
- dropdown-divider a horizontal line to separate dropdown items
-
-
+ dropdown-item each single item of the dropdown, which can either be a a or a div
+
+
+ dropdown-divider a horizontal line to separate dropdown items
-
+
+
+
-
-
- {{dropdown_example}}
-
-
- {% highlight html %}{{dropdown_example}}{% endhighlight %}
-
-
+
+
+ {{dropdown_example}}
+
+
+ {% highlight html %}{{dropdown_example}}{% endhighlight %}
+
+
- {% include anchor.html name="Dropdown content" %}
+{% include anchor.html name="Dropdown content" %}
-
-
- While the dropdown-item can be used as an anchor link <a>, you can also use a <div> and insert almost any type of content.
-
-
+
+
+ While the dropdown-item can be used as an anchor link <a>, you can also use a <div> and insert almost any type of content.
+
+
-
-
- {{dropdown_content_example}}
-
-
- {% highlight html %}{{dropdown_content_example}}{% endhighlight %}
-
-
+
+
+ {{dropdown_content_example}}
+
+
+ {% highlight html %}{{dropdown_content_example}}{% endhighlight %}
+
+
- {% include anchor.html name="Hoverable or Toggable" %}
+{% include anchor.html name="Hoverable or Toggable" %}
-
-
- The dropdown component has 2 additional modifiers
-
-
-
- is-hoverable: the dropdown will show up when hovering the dropdown-trigger
-
-
- is-active: the dropdown will show up all the time
-
-
-
+
+
+ The dropdown component has 2 additional modifiers
+
+
+
+ is-hoverable: the dropdown will show up when hovering the dropdown-trigger
+
+
+ is-active: the dropdown will show up all the time
+
+
+
-
-
- While the CSS :hover implementation works perfectly, the is-active class is available for users who want to control the display of the dropdown with JavaScript.
-
-
+
+
+ While the CSS :hover implementation works perfectly, the is-active class is available for users who want to control the display of the dropdown with JavaScript.
+
-
+{% include variables.html type='component' %}
diff --git a/docs/documentation/components/message.html b/docs/documentation/components/message.html
index 9e320ed7..c9ef7440 100644
--- a/docs/documentation/components/message.html
+++ b/docs/documentation/components/message.html
@@ -1,8 +1,18 @@
---
title: Message
+subtitle: "Colored message blocks, to emphasize part of your page"
layout: documentation
doc-tab: components
doc-subtab: message
+meta:
+- colors: true
+- sizes: true
+- variables: true
+breadcrumb:
+- home
+- documentation
+- components
+- components-message
---
{% capture message_example %}
@@ -108,48 +118,28 @@ doc-subtab: message
{% endfor %}
{% endcapture %}
-{% include subnav/subnav-components.html %}
+{% include snippet.html content=message_example %}
-
-
-
Messages
-
- Colored message blocks, to emphasize part of your page
-
- {%
- include meta.html
- colors=true
- sizes=true
- variables=true
- %}
+{% include anchor.html name="Colors" %}
-
+{% include snippet.html content=message_colors_example %}
- {% include snippet.html content=message_example %}
+{% include anchor.html name="Message body only" %}
- {% include anchor.html name="Colors" %}
+
+
You can omit the message header:
+
- {% include snippet.html content=message_colors_example %}
+{% include snippet.html content=message_body_example %}
- {% include anchor.html name="Message body only" %}
+{% include anchor.html name="Sizes" %}
-
-
You can omit the message header:
-
+{% include snippet.html content=message_small %}
- {% include snippet.html content=message_body_example %}
+{% include snippet.html content=message_normal %}
- {% include anchor.html name="Sizes" %}
+{% include snippet.html content=message_medium %}
- {% include snippet.html content=message_small %}
+{% include snippet.html content=message_large %}
- {% include snippet.html content=message_normal %}
-
- {% include snippet.html content=message_medium %}
-
- {% include snippet.html content=message_large %}
-
- {% include variables.html type='component' %}
-
-
-
+{% include variables.html type='component' %}
diff --git a/docs/documentation/components/modal.html b/docs/documentation/components/modal.html
index 30cd3e1a..c044eb6e 100644
--- a/docs/documentation/components/modal.html
+++ b/docs/documentation/components/modal.html
@@ -1,8 +1,18 @@
---
title: Modal
+subtitle: "A classic modal overlay, in which you can include any content you want"
layout: documentation
doc-tab: components
doc-subtab: modal
+meta:
+- colors: false
+- sizes: false
+- variables: true
+breadcrumb:
+- home
+- documentation
+- components
+- components-modal
---
{% capture modal %}
@@ -46,91 +56,73 @@ doc-subtab: modal
{% endcapture %}
-{% include subnav/subnav-components.html %}
-
-
-
-
Modal
-
A classic modal overlay, in which you can include any content you want
The new navbar replaces the deprecated nav component, whose documentation you can still access temporarily here.
-
-
-
-
-
- The navbar component is a responsive and versatile horizontal navigation bar with the following structure:
-
+
+
+ The navbar component is a responsive and versatile horizontal navigation bar with the following structure:
+
+
+
+ navbar the main container
- navbar the main container
+ navbar-brand the left side, always visible, which usually contains the logo and optionally some links or icons
- navbar-brand the left side, always visible, which usually contains the logo and optionally some links or icons
-
-
- navbar-burger the hamburger icon, which toggles the navbar menu on touch devices
-
-
+ navbar-burger the hamburger icon, which toggles the navbar menu on touch devices
+
+
+
+
+ navbar-menu the right side, hidden on touch devices, visible on desktop
+
+
+ navbar-start the left part of the menu, which appears next to the navbar brand on desktop
- navbar-menu the right side, hidden on touch devices, visible on desktop
+ navbar-end the right part of the menu, which appears at the end of the navbar
- navbar-start the left part of the menu, which appears next to the navbar brand on desktop
-
-
- navbar-end the right part of the menu, which appears at the end of the navbar
+ navbar-item each single item of the navbar, which can either be an a or a div
- navbar-item each single item of the navbar, which can either be an a or a div
+ navbar-link a link as the sibling of a dropdown, with an arrow
+
+
+ navbar-dropdown the dropdown menu, which can include navbar items and dividers
- navbar-link a link as the sibling of a dropdown, with an arrow
-
-
- navbar-dropdown the dropdown menu, which can include navbar items and dividers
-
-
- navbar-divider a horizontal line to separate navbar items
-
-
+ navbar-divider a horizontal line to separate navbar items
@@ -595,538 +583,538 @@ document.addEventListener('DOMContentLoaded', function () {
-
+
+
+
- {% include anchor.html name="Navbar brand" %}
+{% include anchor.html name="Navbar brand" %}
+
+
+ The navbar-brand is the left side of the navbar. It can contain:
+
+
+
+ a number of navbar-item
+
+
+ the navbar-burger as last child
+
+
+
+
+{% highlight html %}{{navbar_brand_example}}{% endhighlight %}
+
+
+
+ The navbar brand is always visible: on both touch devices {% include bp/touch.html %} and desktop {% include bp/desktop.html %}. As a result, it is recommended to only use a few navbar items to avoid overflowing horizontally on small devices.
+
+
+
+
+ {{navbar_brand_items_example}}
+
+
+{% highlight html %}{{navbar_brand_items_example}}{% endhighlight %}
+
+
+
+ On desktop {% include bp/desktop.html %}, the navbar brand will only take up the space it needs.
+
+
+
+{% include anchor.html name="Navbar burger" %}
+
+
+
+ The navbar-burger is a hamburger menu that only appears on mobile. It has to appear as the last child of navbar-brand.
+
+
+{% include anchor.html name="Navbar menu" %}
+
+
+
+ The navbar-menu is the counterpart of the navbar brand. As such, it must appear as a direct child of navbar, as a sibling of navbar-brand.
+
+
+
+{% highlight html %}{{navbar_menu_example}}{% endhighlight %}
+
+
+
+ The navbar-menu is hidden on touch devices {% include bp/touch.html %}. You need to add the modifier class is-active to display it.
+
+
+
+{% highlight html %}{{navbar_menu_active_example}}{% endhighlight %}
+
+
+
+ On desktop {% include bp/desktop.html %}, the navbar-menu will fill up the space available in the navbar, leaving the navbar brand just the space it needs. It needs, however, two elements as direct children:
+
+
+
+ navbar-start
+
+
+ navbar-end
+
+
+
+
+
+
+
+
Javascript toggle
+
- The navbar-brand is the left side of the navbar. It can contain:
+ The Bulma package does not come with any JavaScript.
+
+ Here is however an implementation example, which toggles the class is-active on both the navbar-burger and the targeted navbar-menu.
-
- {% highlight html %}{{navbar_brand_example}}{% endhighlight %}
-
-
-
- The navbar brand is always visible: on both touch devices {% include bp/touch.html %} and desktop {% include bp/desktop.html %}. As a result, it is recommended to only use a few navbar items to avoid overflowing horizontally on small devices.
-
-
-
-
- {{navbar_brand_items_example}}
-
-
- {% highlight html %}{{navbar_brand_items_example}}{% endhighlight %}
-
-
-
- On desktop {% include bp/desktop.html %}, the navbar brand will only take up the space it needs.
-
-
-
- {% include anchor.html name="Navbar burger" %}
-
-
-
- The navbar-burger is a hamburger menu that only appears on mobile. It has to appear as the last child of navbar-brand.
-
-
- {% include anchor.html name="Navbar menu" %}
-
-
-
- The navbar-menu is the counterpart of the navbar brand. As such, it must appear as a direct child of navbar, as a sibling of navbar-brand.
-
-
-
- {% highlight html %}{{navbar_menu_example}}{% endhighlight %}
-
-
-
- The navbar-menu is hidden on touch devices {% include bp/touch.html %}. You need to add the modifier class is-active to display it.
-
-
-
- {% highlight html %}{{navbar_menu_active_example}}{% endhighlight %}
-
-
-
- On desktop {% include bp/desktop.html %}, the navbar-menu will fill up the space available in the navbar, leaving the navbar brand just the space it needs. It needs, however, two elements as direct children:
-
-
-
- navbar-start
-
-
- navbar-end
-
-
-
-
-
-
-
-
Javascript toggle
-
-
-
- The Bulma package does not come with any JavaScript.
-
- Here is however an implementation example, which toggles the class is-active on both the navbar-burger and the targeted navbar-menu.
-
-
- {% include anchor.html name="Navbar start and navbar end" %}
-
-
-
- The navbar-start and navbar-end are the two direct and only children of the navbar-menu.
-
-
- On desktop {% include bp/desktop.html %}:
-
-
-
- navbar-start will appear on the left
-
-
- navbar-end will appear on the right
-
-
-
- Each of them can contain any number of navbar-item.
-
-
-
- {% highlight html %}{{navbar_start_end_example}}{% endhighlight %}
-
- {% include anchor.html name="Navbar item" %}
-
-
-
- A navbar-item is a repeatable element that can be:
-
-
-
- a navigation link
- {% highlight html %}{{ navbar_item_link_example }}{% endhighlight %}
-
-
- a container for the brand logo
- {% highlight html %}{{ navbar_item_brand_example }}{% endhighlight %}
-
-
- the parent of a dropdown menu
- {% highlight html %}{{ navbar_item_dropdown_example }}{% endhighlight %}
-
-
- a child of a navbar dropdown
- {% highlight html %}{{ navbar_item_dropdown_bis_example }}{% endhighlight %}
-
-
- a container for almost anything you want, like a field
-
- {% highlight html %}{{ navbar_item_other_example }}{% endhighlight %}
-
-
-
-
- It can either be an anchor tag <a> or a <div>, as a direct child of either:
-
-
-
- navbar
-
-
- navbar-brand
-
-
- navbar-start
-
-
- navbar-end
-
-
- navbar-dropdown
-
-
-
- You can add the modifier class is-expanded to turn it into a full-width element.
-
-
-
- {% include anchor.html name="Transparent navbar" %}
-
-
-
- To seamlessly integrate the navbar in any visual context, you can add the is-transparent modifier on the navbar component. This will remove any hover or active background from the navbar items.
-
-
-
- {% include snippet.html content=navbar_transparent_example paddingless=true horizontal=true more=true %}
-
- {% include anchor.html name="Fixed navbar" %}
-
- {% include elements/new-tag.html version="0.6.1" %}
-
-
-
- You can now fix the navbar to either the top or bottom of the page. This is a 2-step process:
-
-
-
- Add either is-fixed-top or is-fixed-bottom to the navbar component
- {% highlight html %}
-
- Add the corresponding has-navbar-fixed-top or has-navbar-fixed-bottom modifier to either <html> or <body> element to provide the appropriate padding to the page
- {% highlight html %}{% endhighlight %}
-
-
- {% include anchor.html name="Dropdown menu" %}
-
-
-
- To create a dropdown menu, you will need 4 elements:
-
-
-
- navbar-item with the has-dropdown modifier
-
-
- navbar-link which contains the dropdown arrow
-
-
- navbar-dropdown which can contain instances of navbar-item and navbar-divider
-
-
-
-
-
-
-
- {{ navbar_dropdown_example }}
-
-
-
-
- {% highlight html %}{{ navbar_dropdown_example }}{% endhighlight %}
-
-
-
-
- Show/hide the dropdown with either CSS or JavaScript
-
-
-
-
- The navbar-dropdown is visible on touch devices {% include bp/touch.html %} but hidden on desktop {% include bp/desktop.html %}. How the dropdown is displayed on desktop depends on the parent's class.
-
-
- The navbar-item with the has-dropdown modifier, has 2 additional modifiers
-
-
-
- is-hoverable: the dropdown will show up when hovering the parent navbar-item
-
-
- is-active: the dropdown will show up all the time
-
-
-
-
-
-
- While the CSS :hover implementation works perfectly, the is-active class is available for users who want to control the display of the dropdown with JavaScript.
-
- {% highlight html %}{{ navbar_dropdown_right_example }}{% endhighlight %}
-
-
-
-
- Dropup
-
-
- {% include elements/new-tag.html version="0.6.1" %}
-
-
-
- If you're using a navbar at the bottom, like the fixed bottom navbar, you might want to use a dropup menu. Simply add the has-dropdown and has-dropdown-up modifiers to the parent navbar-item.
-
- {% include examples/navbar-color.html color="primary" %}
-
-
-
- {% include examples/navbar-color.html color="link" %}
-
-
-
- {% include examples/navbar-color.html color="info" %}
-
-
-
- {% include examples/navbar-color.html color="success" %}
-
-
-
- {% include examples/navbar-color.html color="warning" light=true %}
-
-
-
- {% include examples/navbar-color.html color="danger" %}
-
-
-
- {% include examples/navbar-color.html color="black" %}
-
-
-
- {% include examples/navbar-color.html color="dark" %}
-
-
-
- {% include examples/navbar-color.html color="light" light=true %}
-
-
-
- {% include examples/navbar-color.html color="white" light=true %}
-
-
- {% include variables.html type='component' %}
-
-
+
+
+{% include anchor.html name="Navbar start and navbar end" %}
+
+
+
+ The navbar-start and navbar-end are the two direct and only children of the navbar-menu.
+
+
+ On desktop {% include bp/desktop.html %}:
+
+
+
+ navbar-start will appear on the left
+
+
+ navbar-end will appear on the right
+
+
+
+ Each of them can contain any number of navbar-item.
+
+
+
+{% highlight html %}{{navbar_start_end_example}}{% endhighlight %}
+
+{% include anchor.html name="Navbar item" %}
+
+
+
+ A navbar-item is a repeatable element that can be:
+
+
+
+ a navigation link
+ {% highlight html %}{{ navbar_item_link_example }}{% endhighlight %}
+
+
+ a container for the brand logo
+ {% highlight html %}{{ navbar_item_brand_example }}{% endhighlight %}
+
+
+ the parent of a dropdown menu
+ {% highlight html %}{{ navbar_item_dropdown_example }}{% endhighlight %}
+
+
+ a child of a navbar dropdown
+ {% highlight html %}{{ navbar_item_dropdown_bis_example }}{% endhighlight %}
+
+
+ a container for almost anything you want, like a field
+
+ {% highlight html %}{{ navbar_item_other_example }}{% endhighlight %}
+
+
+
+
+ It can either be an anchor tag <a> or a <div>, as a direct child of either:
+
+
+
+ navbar
+
+
+ navbar-brand
+
+
+ navbar-start
+
+
+ navbar-end
+
+
+ navbar-dropdown
+
+
+
+ You can add the modifier class is-expanded to turn it into a full-width element.
+
+
+
+{% include anchor.html name="Transparent navbar" %}
+
+
+
+ To seamlessly integrate the navbar in any visual context, you can add the is-transparent modifier on the navbar component. This will remove any hover or active background from the navbar items.
+
+
+
+{% include snippet.html content=navbar_transparent_example paddingless=true horizontal=true more=true %}
+
+{% include anchor.html name="Fixed navbar" %}
+
+{% include elements/new-tag.html version="0.6.1" %}
+
+
+
+ You can now fix the navbar to either the top or bottom of the page. This is a 2-step process:
+
+
+
+ Add either is-fixed-top or is-fixed-bottom to the navbar component
+ {% highlight html %}
+
+ Add the corresponding has-navbar-fixed-top or has-navbar-fixed-bottom modifier to either <html> or <body> element to provide the appropriate padding to the page
+ {% highlight html %}{% endhighlight %}
+
+
+{% include anchor.html name="Dropdown menu" %}
+
+
+
+ To create a dropdown menu, you will need 4 elements:
+
+
+
+ navbar-item with the has-dropdown modifier
+
+
+ navbar-link which contains the dropdown arrow
+
+
+ navbar-dropdown which can contain instances of navbar-item and navbar-divider
+
+
+
+
+
+
+
+ {{ navbar_dropdown_example }}
+
+
+
+
+ {% highlight html %}{{ navbar_dropdown_example }}{% endhighlight %}
+
+
+
+
+ Show/hide the dropdown with either CSS or JavaScript
+
+
+
+
+ The navbar-dropdown is visible on touch devices {% include bp/touch.html %} but hidden on desktop {% include bp/desktop.html %}. How the dropdown is displayed on desktop depends on the parent's class.
+
+
+ The navbar-item with the has-dropdown modifier, has 2 additional modifiers
+
+
+
+ is-hoverable: the dropdown will show up when hovering the parent navbar-item
+
+
+ is-active: the dropdown will show up all the time
+
+
+
+
+
+
+ While the CSS :hover implementation works perfectly, the is-active class is available for users who want to control the display of the dropdown with JavaScript.
+
+ {% highlight html %}{{ navbar_dropdown_right_example }}{% endhighlight %}
+
+
+
+
+ Dropup
+
+
+{% include elements/new-tag.html version="0.6.1" %}
+
+
+
+ If you're using a navbar at the bottom, like the fixed bottom navbar, you might want to use a dropup menu. Simply add the has-dropdown and has-dropdown-up modifiers to the parent navbar-item.
+
- The pagination component consists of several elements:
-
+
+
+ The pagination component consists of several elements:
+
+
+
+ pagination-previous and pagination-next for incremental navigation
+
+
+ pagination-list which displays page items:
- pagination-previous and pagination-next for incremental navigation
+ pagination-link for the page numbers
- pagination-list which displays page items:
-
-
- pagination-link for the page numbers
-
-
- pagination-ellipsis for range separators
-
-
+ pagination-ellipsis for range separators
-
- All elements are optional so you can compose your pagination as you wish.
-
-
+
+
+
+ All elements are optional so you can compose your pagination as you wish.
+
+
- {% include snippet.html content=pagination_example horizontal=true more=true %}
+{% include snippet.html content=pagination_example horizontal=true more=true %}
-
-
- You can disable some links if they are not active, or change the amount of page numbers available.
-
-
+
+
+ You can disable some links if they are not active, or change the amount of page numbers available.
+
+
- {% include snippet.html content=pagination_options_example horizontal=true more=true %}
+{% include snippet.html content=pagination_options_example horizontal=true more=true %}
-
-
- By default on tablet, the list is located on the left, and the previous/next buttons on the right. But you can change the order of these elements by using the is-centered and is-right modifiers.
-
-
+
+
+ By default on tablet, the list is located on the left, and the previous/next buttons on the right. But you can change the order of these elements by using the is-centered and is-right modifiers.
+
+
- {% include snippet.html content=pagination_centered_example horizontal=true more=true %}
+{% include snippet.html content=pagination_centered_example horizontal=true more=true %}
- {% include snippet.html content=pagination_right_example horizontal=true more=true %}
+{% include snippet.html content=pagination_right_example horizontal=true more=true %}
- {% include anchor.html name="Styles" %}
+{% include anchor.html name="Styles" %}
- {% include elements/new-tag.html version="0.6.2" %}
+{% include elements/new-tag.html version="0.6.2" %}
-
- Add the is-rounded modifier to have rounded pagination items.
-
+
+ Add the is-rounded modifier to have rounded pagination items.
+
- {% include snippet.html content=pagination_rounded_example horizontal=true more=true %}
+{% include snippet.html content=pagination_rounded_example horizontal=true more=true %}
- {% include anchor.html name="Sizes" %}
+{% include anchor.html name="Sizes" %}
-
- The pagination comes in 3 additional sizes.
- You only need to append the modifieris-small, is-medium, or is-large to the pagination component.
-
+
+ The pagination comes in 3 additional sizes.
+ You only need to append the modifieris-small, is-medium, or is-large to the pagination component.
+
- {% include snippet.html content=pagination_small_example horizontal=true more=true %}
+{% include snippet.html content=pagination_small_example horizontal=true more=true %}
- {% include snippet.html content=pagination_medium_example horizontal=true more=true %}
+{% include snippet.html content=pagination_medium_example horizontal=true more=true %}
- {% include snippet.html content=pagination_large_example horizontal=true more=true %}
+{% include snippet.html content=pagination_large_example horizontal=true more=true %}
- {% include variables.html type='component' %}
-
-