+ The .box
element is simply a container with a shadow, a border, a radius, and some padding.
+
+ For example, you can include a media object:
+
diff --git a/docs/_data/links.json b/docs/_data/links.json
index f7abf855..19b160e4 100644
--- a/docs/_data/links.json
+++ b/docs/_data/links.json
@@ -40,10 +40,50 @@
"name": "Elements",
"path": "/documentation/elements"
},
- "button": {
+ "elements-box": {
+ "name": "Box",
+ "path": "/documentation/elements/box"
+ },
+ "elements-button": {
"name": "Button",
"path": "/documentation/elements/button"
},
+ "elements-content": {
+ "name": "Content",
+ "path": "/documentation/elements/content"
+ },
+ "elements-delete": {
+ "name": "Delete",
+ "path": "/documentation/elements/delete"
+ },
+ "elements-icon": {
+ "name": "Icon",
+ "path": "/documentation/elements/icon"
+ },
+ "elements-image": {
+ "name": "Image",
+ "path": "/documentation/elements/image"
+ },
+ "elements-notification": {
+ "name": "Notification",
+ "path": "/documentation/elements/notification"
+ },
+ "elements-progress": {
+ "name": "Progress bars",
+ "path": "/documentation/elements/progress"
+ },
+ "elements-table": {
+ "name": "Table",
+ "path": "/documentation/elements/table"
+ },
+ "elements-tag": {
+ "name": "Tag",
+ "path": "/documentation/elements/tag"
+ },
+ "elements-title": {
+ "name": "Title",
+ "path": "/documentation/elements/title"
+ },
"components": {
"name": "Components",
"path": "/documentation/components"
@@ -91,6 +131,7 @@
},
"order": {
"columns": ["columns-basics", "columns-sizes", "columns-responsiveness", "columns-nesting", "columns-gap", "columns-options"],
+ "elements": ["elements-box", "elements-button", "elements-content", "elements-delete", "elements-icon", "elements-image", "elements-notification", "elements-progress", "elements-table", "elements-tag", "elements-title"],
"components": ["components-breadcrumb", "components-card", "components-dropdown", "components-menu", "components-message", "components-modal", "components-navbar", "components-pagination", "components-panel", "components-tabs"]
}
}
diff --git a/docs/_includes/elements/improve-page.html b/docs/_includes/elements/improve-page.html
index 738dd03f..05b3c6fc 100644
--- a/docs/_includes/elements/improve-page.html
+++ b/docs/_includes/elements/improve-page.html
@@ -1,16 +1,14 @@
-
-
-
-
-
- This page is open source.
- Noticed a typo? Or something unclear?
-
-
- Improve this page on GitHub
-
-
+
+
+
+
+ This page is open source.
+ Noticed a typo? Or something unclear?
+
+
+ Improve this page on GitHub
+
+
{{ page.subtitle }}
+ + {% if page.meta %} + {% + include meta.html + colors=page.meta.colors + sizes=page.meta.sizes + variables=page.meta.variables + %} + {% endif %}
+ The .box
element is simply a container with a shadow, a border, a radius, and some padding.
+
+ For example, you can include a media object:
+
- The .box
element is simply a container with a shadow, a border, a radius, and some padding.
-
- For example, you can include a media object:
-
When you can't use the CSS classes you want, or when you just want to directly use HTML tags, use content
as container. It can handle almost any HTML tag:
<p>
paragraphs<ul>
<ol>
<dl>
lists<h1>
to <h6>
headings<blockquote>
quotes<em>
and <strong>
<table>
<tr>
<th>
<td>
tablesThis content
class can be used in any context where you just want to (or can only) write some text. For example, it's used for the paragraph you're currently reading.
When you can't use the CSS classes you want, or when you just want to directly use HTML tags, use content
as container. It can handle almost any HTML tag:
<p>
paragraphs<ul>
<ol>
<dl>
lists<h1>
to <h6>
headings<blockquote>
quotes<em>
and <strong>
<table>
<tr>
<th>
<td>
tablesThis content
class can be used in any context where you just want to (or can only) write some text. For example, it's used for the paragraph you're currently reading.
You can use the is-small
, is-medium
and is-large
modifiers to change the font size.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque.
-Curabitur accumsan turpis pharetra augue tincidunt blandit. Quisque condimentum maximus mi, sit amet commodo arcu rutrum id. Proin pretium urna vel cursus venenatis. Suspendisse potenti. Etiam mattis sem rhoncus lacus dapibus facilisis. Donec at dignissim dui. Ut et neque nisl.
-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque.
-Curabitur accumsan turpis pharetra augue tincidunt blandit. Quisque condimentum maximus mi, sit amet commodo arcu rutrum id. Proin pretium urna vel cursus venenatis. Suspendisse potenti. Etiam mattis sem rhoncus lacus dapibus facilisis. Donec at dignissim dui. Ut et neque nisl.
-Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque.
-Curabitur accumsan turpis pharetra augue tincidunt blandit. Quisque condimentum maximus mi, sit amet commodo arcu rutrum id. Proin pretium urna vel cursus venenatis. Suspendisse potenti. Etiam mattis sem rhoncus lacus dapibus facilisis. Donec at dignissim dui. Ut et neque nisl.
-You can use the is-small
, is-medium
and is-large
modifiers to change the font size.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque.
+Curabitur accumsan turpis pharetra augue tincidunt blandit. Quisque condimentum maximus mi, sit amet commodo arcu rutrum id. Proin pretium urna vel cursus venenatis. Suspendisse potenti. Etiam mattis sem rhoncus lacus dapibus facilisis. Donec at dignissim dui. Ut et neque nisl.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque.
+Curabitur accumsan turpis pharetra augue tincidunt blandit. Quisque condimentum maximus mi, sit amet commodo arcu rutrum id. Proin pretium urna vel cursus venenatis. Suspendisse potenti. Etiam mattis sem rhoncus lacus dapibus facilisis. Donec at dignissim dui. Ut et neque nisl.
+Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla accumsan, metus ultrices eleifend gravida, nulla nunc varius lectus, nec rutrum justo nibh eu lectus. Ut vulputate semper dui. Fusce erat odio, sollicitudin vel erat vel, interdum mattis neque.
+Curabitur accumsan turpis pharetra augue tincidunt blandit. Quisque condimentum maximus mi, sit amet commodo arcu rutrum id. Proin pretium urna vel cursus venenatis. Suspendisse potenti. Etiam mattis sem rhoncus lacus dapibus facilisis. Donec at dignissim dui. Ut et neque nisl.
+
+ The .delete
element is a stand-alone element that can be used in different contexts.
+
+ On its own, it's a simple circle with a cross: +
+
- The .delete
element is a stand-alone element that can be used in different contexts.
-
- On its own, it's a simple circle with a cross: -
-+ It comes in 4 sizes: +
+- It comes in 4 sizes: -
-+ Bulma uses it for the tags, the notifications, and the messages: +
+- Bulma uses it for the tags, the notifications, and the messages: -
-
- The icon
element is a container for any type of icon font. Because the icons can take a few seconds to load, and because you want control over the space the icons will take, you can use the icon
class as a reliable square container that will prevent the page to "jump" on page load.
- By default, the icon
container will take up exactly 1.5rem x 1.5rem
. The icon itself is sized accordingly to the icon library you're using. For example, Font Awesome 5 icons will inherit the font size.
- Since icon fonts are simply text, you can use the text color modifiers to change the icon's color. -
-
- The Bulma icon
container comes in 4 sizes. It should always be slightly bigger than the icon it contains. For example, Font Awesome 5 icons use a font-size of 1em
by default (since it inherits the font size), but provides additional sizes.
-
Container class | -Container size | -Font Awesome 5 class | -Icon size | -Result | -
---|---|---|---|---|
- icon is-small
- |
-
- 1rem x 1rem
- |
-
- fas
- |
-
- 1em
- |
- - - - - | -
- icon
- |
-
- 1.5rem x 1.5rem
- |
-
- fas
- |
-
- 1em
- |
- - - - - | -
- fas fa-lg
- |
-
- 1.33em
- |
- - - - - | -||
- icon is-medium
- |
-
- 2rem x 2rem
- |
-
- fas
- |
-
- 1em
- |
- - - - - | -
- fas fa-lg
- |
-
- 1.33em
- |
- - - - - | -||
- fas fa-2x
- |
-
- 2em
- |
- - - - - | -||
- icon is-large
- |
-
- 3rem x 3rem
- |
-
- fas
- |
-
- 1em
- |
- - - - - | -
- fas fa-lg
- |
-
- 1.33em
- |
- - - - - | -||
- fas fa-2x
- |
-
- 2em
- |
- - - - - | -||
- fas fa-3x
- |
-
- 3em
- |
- - - - - | -
- Font Awesome also provides modifier classes for: -
-Type | -Font Awesome class | -Result | -
---|---|---|
- Fixed width - | -
- fas fa-fw
- |
- - - - - | -
- Bordered - | -
- fas fa-border
- |
- - - - - | -
- Animated - | -
- fas fa-spinner fa-pulse
- |
- - - - - | -
- Rotated & flipped - | -
- fas fa-shield-alt - fas fa-shield-alt data-fa-transform="rotate-90" - fas fa-shield-alt data-fa-transform="rotate-180" - fas fa-shield-alt data-fa-transform="rotate-270" - fas fa-shield-alt data-fa-transform="flip-h" - fas fa-shield-alt data-fa-transform="flip-v"
- |
-
-
-
-
- - - - - - - - - - - - - - - - - - - - - |
-
- Stacked - | -- {% highlight html %} +{% capture stacked_medium %} + -{% endhighlight %} - | -- - - - - - - | -
- {% highlight html %} + +{% endcapture %} + +{% capture stacked_large %} + -{% endhighlight %} - | -- - - - - - - | -
+ The icon
element is a container for any type of icon font. Because the icons can take a few seconds to load, and because you want control over the space the icons will take, you can use the icon
class as a reliable square container that will prevent the page to "jump" on page load.
- Here is how the icon
container can be used with Material Design Icons.
-
Container class | -Container size | -MDI class | -Icon size | -Result | -
---|---|---|---|---|
- icon is-small
- |
-
- 1rem x 1rem
- |
-
- mdi
- |
-
- 1em
- |
- - - - - | -
- icon
- |
-
- 1.5rem x 1.5rem
- |
-
- mdi mdi-18px
- |
-
- 18px
- |
- - - - - | -
- mdi mdi-24px
- |
-
- 24px
- |
- - - - - | -||
- icon is-medium
- |
-
- 2rem x 2rem
- |
-
- mdi
- |
-
- 1em
- |
- - - - - | -
- mdi mdi-18px
- |
-
- 18px
- |
- - - - - | -||
- mdi mdi-24px
- |
-
- 24px
- |
- - - - - | -||
- mdi mdi-36px
- |
-
- 36px
- |
- - - - - | -||
- icon is-large
- |
-
- 3rem x 3rem
- |
-
- mdi
- |
-
- 1em
- |
- - - - - | -
- mdi mdi-18px
- |
-
- 18px
- |
- - - - - | -||
- mdi mdi-24px
- |
-
- 24px
- |
- - - - - | -||
- mdi mdi-36px
- |
-
- 36px
- |
- - - - - | -||
- mdi mdi-48px
- |
-
- 48px
- |
- - - - - | -
- MDI also provides modifier classes for: -
-Type | -Material Design Icon class | -Result | -
---|---|---|
- Light color - | -
- mdi mdi-light
- |
- - - - - | -
- Dark color - | -
- mdi mdi-dark
- |
- - - - - | -
- Light inactive color - | -
- mdi mdi-light mdi-inactive
- |
- - - - - | -
- Dark inactive color - | -
- mdi mdi-dark mdi-inactive
- |
- - - - - | -
- Flipped - | -
- mdi mdi-flip-h
- - mdi mdi-flip-v
- |
-
-
-
-
- - - - - |
-
- Rotated - | -
- mdi mdi-rotate-45
- - mdi mdi-rotate-90
- - mdi mdi-rotate-180
- |
-
-
-
-
- - - - - - - - - |
-
- Here is how the icon
container can be used with Open Iconic.
-
Container class | -Container size | -Iconic class | -Icon size | -Result | -
---|---|---|---|---|
- icon is-small
- |
-
- 1rem x 1rem
- |
-
- oi [data-glyph=puzzle-piece]
- |
-
- 1em
- |
- - - - - | -
- icon
- |
-
- 1.5rem x 1.5rem
- |
-
- oi [data-glyph=puzzle-piece]
- |
-
- 1em
- |
- - - - - | -
- icon is-medium
- |
-
- 2rem x 2rem
- |
-
- oi [data-glyph=puzzle-piece]
- |
-
- 1em
- |
- - - - - | -
- icon is-large
- |
-
- 3rem x 3rem
- |
-
- oi [data-glyph=puzzle-piece]
- |
-
- 1em
- |
- - - - - | -
- Here is how the icon
container can be used with Ionicons.
-
Container class | -Container size | -Ionicon class | -Icon size | -Result | -
---|---|---|---|---|
- icon is-small
- |
-
- 1rem x 1rem
- |
-
- ion-ionic
- |
-
- 1em
- |
- - - - - | -
- icon
- |
-
- 1.5rem x 1.5rem
- |
-
- ion-ionic
- |
-
- 1em
- |
- - - - - | -
- icon is-medium
- |
-
- 2rem x 2rem
- |
-
- ion-ionic
- |
-
- 1em
- |
- - - - - | -
- icon is-large
- |
-
- 3rem x 3rem
- |
-
- ion-ionic
- |
-
- 1em
- |
- - - - - | -
+ By default, the icon
container will take up exactly 1.5rem x 1.5rem
. The icon itself is sized accordingly to the icon library you're using. For example, Font Awesome 5 icons will inherit the font size.
+ Since icon fonts are simply text, you can use the text color modifiers to change the icon's color. +
+
+ The Bulma icon
container comes in 4 sizes. It should always be slightly bigger than the icon it contains. For example, Font Awesome 5 icons use a font-size of 1em
by default (since it inherits the font size), but provides additional sizes.
+
Container class | +Container size | +Font Awesome 5 class | +Icon size | +Result | +
---|---|---|---|---|
+ icon is-small
+ |
+
+ 1rem x 1rem
+ |
+
+ fas
+ |
+
+ 1em
+ |
+ + + + + | +
+ icon
+ |
+
+ 1.5rem x 1.5rem
+ |
+
+ fas
+ |
+
+ 1em
+ |
+ + + + + | +
+ fas fa-lg
+ |
+
+ 1.33em
+ |
+ + + + + | +||
+ icon is-medium
+ |
+
+ 2rem x 2rem
+ |
+
+ fas
+ |
+
+ 1em
+ |
+ + + + + | +
+ fas fa-lg
+ |
+
+ 1.33em
+ |
+ + + + + | +||
+ fas fa-2x
+ |
+
+ 2em
+ |
+ + + + + | +||
+ icon is-large
+ |
+
+ 3rem x 3rem
+ |
+
+ fas
+ |
+
+ 1em
+ |
+ + + + + | +
+ fas fa-lg
+ |
+
+ 1.33em
+ |
+ + + + + | +||
+ fas fa-2x
+ |
+
+ 2em
+ |
+ + + + + | +||
+ fas fa-3x
+ |
+
+ 3em
+ |
+ + + + + | +
+ Font Awesome also provides modifier classes for: +
+Type | +Font Awesome class | +Result | +
---|---|---|
+ Fixed width + | +
+ fas fa-fw
+ |
+ + + + + | +
+ Bordered + | +
+ fas fa-border
+ |
+ + + + + | +
+ Animated + | +
+ fas fa-spinner fa-pulse
+ |
+ + + + + | +
+ Rotated & flipped + | +
+ fas fa-shield-alt + fas fa-shield-alt data-fa-transform="rotate-90" + fas fa-shield-alt data-fa-transform="rotate-180" + fas fa-shield-alt data-fa-transform="rotate-270" + fas fa-shield-alt data-fa-transform="flip-h" + fas fa-shield-alt data-fa-transform="flip-v"
+ |
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + |
+
+ Stacked + | ++ {% highlight html %}{{ stacked_medium }}{% endhighlight %} + | ++ + + + + + + | +
+ {% highlight html %}{{ stacked_large }}{% endhighlight %} + | ++ + + + + + + | +
+ Here is how the icon
container can be used with Material Design Icons.
+
Container class | +Container size | +MDI class | +Icon size | +Result | +
---|---|---|---|---|
+ icon is-small
+ |
+
+ 1rem x 1rem
+ |
+
+ mdi
+ |
+
+ 1em
+ |
+ + + + + | +
+ icon
+ |
+
+ 1.5rem x 1.5rem
+ |
+
+ mdi mdi-18px
+ |
+
+ 18px
+ |
+ + + + + | +
+ mdi mdi-24px
+ |
+
+ 24px
+ |
+ + + + + | +||
+ icon is-medium
+ |
+
+ 2rem x 2rem
+ |
+
+ mdi
+ |
+
+ 1em
+ |
+ + + + + | +
+ mdi mdi-18px
+ |
+
+ 18px
+ |
+ + + + + | +||
+ mdi mdi-24px
+ |
+
+ 24px
+ |
+ + + + + | +||
+ mdi mdi-36px
+ |
+
+ 36px
+ |
+ + + + + | +||
+ icon is-large
+ |
+
+ 3rem x 3rem
+ |
+
+ mdi
+ |
+
+ 1em
+ |
+ + + + + | +
+ mdi mdi-18px
+ |
+
+ 18px
+ |
+ + + + + | +||
+ mdi mdi-24px
+ |
+
+ 24px
+ |
+ + + + + | +||
+ mdi mdi-36px
+ |
+
+ 36px
+ |
+ + + + + | +||
+ mdi mdi-48px
+ |
+
+ 48px
+ |
+ + + + + | +
+ MDI also provides modifier classes for: +
+Type | +Material Design Icon class | +Result | +
---|---|---|
+ Light color + | +
+ mdi mdi-light
+ |
+ + + + + | +
+ Dark color + | +
+ mdi mdi-dark
+ |
+ + + + + | +
+ Light inactive color + | +
+ mdi mdi-light mdi-inactive
+ |
+ + + + + | +
+ Dark inactive color + | +
+ mdi mdi-dark mdi-inactive
+ |
+ + + + + | +
+ Flipped + | +
+ mdi mdi-flip-h
+ + mdi mdi-flip-v
+ |
+
+
+
+
+ + + + + |
+
+ Rotated + | +
+ mdi mdi-rotate-45
+ + mdi mdi-rotate-90
+ + mdi mdi-rotate-180
+ |
+
+
+
+
+ + + + + + + + + |
+
+ Here is how the icon
container can be used with Open Iconic.
+
Container class | +Container size | +Iconic class | +Icon size | +Result | +
---|---|---|---|---|
+ icon is-small
+ |
+
+ 1rem x 1rem
+ |
+
+ oi [data-glyph=puzzle-piece]
+ |
+
+ 1em
+ |
+ + + + + | +
+ icon
+ |
+
+ 1.5rem x 1.5rem
+ |
+
+ oi [data-glyph=puzzle-piece]
+ |
+
+ 1em
+ |
+ + + + + | +
+ icon is-medium
+ |
+
+ 2rem x 2rem
+ |
+
+ oi [data-glyph=puzzle-piece]
+ |
+
+ 1em
+ |
+ + + + + | +
+ icon is-large
+ |
+
+ 3rem x 3rem
+ |
+
+ oi [data-glyph=puzzle-piece]
+ |
+
+ 1em
+ |
+ + + + + | +
+ Here is how the icon
container can be used with Ionicons.
+
Container class | +Container size | +Ionicon class | +Icon size | +Result | +
---|---|---|---|---|
+ icon is-small
+ |
+
+ 1rem x 1rem
+ |
+
+ ion-ionic
+ |
+
+ 1em
+ |
+ + + + + | +
+ icon
+ |
+
+ 1.5rem x 1.5rem
+ |
+
+ ion-ionic
+ |
+
+ 1em
+ |
+ + + + + | +
+ icon is-medium
+ |
+
+ 2rem x 2rem
+ |
+
+ ion-ionic
+ |
+
+ 1em
+ |
+ + + + + | +
+ icon is-large
+ |
+
+ 3rem x 3rem
+ |
+
+ ion-ionic
+ |
+
+ 1em
+ |
+ + + + + | +
Because images can take a few seconds to load (or not at all), use the .image
container to specify a precisely sized container so that your layout isn't broken because of image loading or image errors.
Because images can take a few seconds to load (or not at all), use the .image
container to specify a precisely sized container so that your layout isn't broken because of image loading or image errors.
There are 7 dimensions to choose from, useful for avatars:
+image is-{{ dimension }}x{{ dimension }} |
+ + | {{ dimension }}x{{ dimension }}px | +
There are 7 dimensions to choose from, useful for avatars:
-Because the image is fixed in size, you can use an image that is twice as big. So for example, in a 128x128
container, you can use a 256x256
image, but resized to 128x128 pixels.
image is-{{ dimension }}x{{ dimension }} |
- - | {{ dimension }}x{{ dimension }}px | -
Because the image is fixed in size, you can use an image that is twice as big. So for example, in a 128x128
container, you can use a 256x256
image, but resized to 128x128 pixels.
If you don't know the exact dimensions but know the ratio instead, you can use one of the 16 ratio modifiers, which include [common aspect ratios in still photography](https://en.wikipedia.org/wiki/Aspect_ratio_(image)#Still_photography):
+image is-square |
+ + | Square (or 1 by 1) | +
image is-1by1 |
+ + | 1 by 1 | +
image is-5by4 |
+ + | 5 by 4 | +
image is-4by3 |
+ + | 4 by 3 | +
image is-3by2 |
+ + | 3 by 2 | +
image is-5by3 |
+ + | 5 by 3 | +
image is-16by9 |
+ + | 16 by 9 | +
image is-2by1 |
+ + | 2 by 1 | +
image is-3by1 |
+ + | 3 by 1 | +
image is-4by5 |
+ + | 4 by 5 | +
image is-3by4 |
+ + | 3 by 4 | +
image is-2by3 |
+ + | 2 by 3 | +
image is-3by5 |
+ + | 3 by 5 | +
image is-9by16 |
+ + | 9 by 16 | +
image is-1by2 |
+ + | 1 by 2 | +
image is-1by3 |
+ + | 1 by 3 | +
The .image
container will take up the whole width while maintaining the perfect ratio.
If you don't know the exact dimensions but know the ratio instead, you can use one of the 16 ratio modifiers, which include [common aspect ratios in still photography](https://en.wikipedia.org/wiki/Aspect_ratio_(image)#Still_photography):
-image is-square |
- - | Square (or 1 by 1) | -
image is-1by1 |
- - | 1 by 1 | -
image is-5by4 |
- - | 5 by 4 | -
image is-4by3 |
- - | 4 by 3 | -
image is-3by2 |
- - | 3 by 2 | -
image is-5by3 |
- - | 5 by 3 | -
image is-16by9 |
- - | 16 by 9 | -
image is-2by1 |
- - | 2 by 1 | -
image is-3by1 |
- - | 3 by 1 | -
image is-4by5 |
- - | 4 by 5 | -
image is-3by4 |
- - | 3 by 4 | -
image is-2by3 |
- - | 2 by 3 | -
image is-3by5 |
- - | 3 by 5 | -
image is-9by16 |
- - | 9 by 16 | -
image is-1by2 |
- - | 1 by 2 | -
image is-1by3 |
- - | 1 by 3 | -
The .image
container will take up the whole width while maintaining the perfect ratio.
You simply need to attach a single .table
CSS class on a <table>
with the following structure:
You simply need to attach a single .table
CSS class on a <table>
with the following structure:
table
the main container
table
the main container
+ thead
the optional top part of the table
+ tfoot
the optional bottom part of the table
+ tbody
the main content of the table
thead
the optional top part of the table
- tfoot
the optional bottom part of the table
- tbody
the main content of the table
+ tr
each table row
tr
each table row
- th
a table cell heading
- td
a table cell
- th
a table cell heading
+ td
a table cell
- You can set a table row as selected by appending the is-selected
modifier on a <tr>
-
+ You can set a table row as selected by appending the is-selected
modifier on a <tr>
+
Add borders to all the cells.
-table is-bordered
- One | -Two | -
---|---|
Three | -Four | -
Add stripes to the table.
-table is-striped
- One | -Two | -
---|---|
Three | -Four | -
Five | -Six | -
Seven | -Eight | -
Nine | -Ten | -
Eleven | -Twelve | -
Make the cells narrower.
-table is-narrow
- One | -Two | -
---|---|
Three | -Four | -
Five | -Six | -
Seven | -Eight | -
Nine | -Ten | -
Eleven | -Twelve | -
You can add a hover effect on each row
-table is-hoverable
- One | -Two | -
---|---|
Three | -Four | -
Five | -Six | -
Seven | -Eight | -
Nine | -Ten | -
Eleven | -Twelve | -
You can have a fullwidth table.
-table is-fullwidth
- One | -Two | -
---|---|
Three | -Four | -
Five | -Six | -
Seven | -Eight | -
Nine | -Ten | -
Eleven | -Twelve | -
You can combine all five modifiers.
-table is-bordered is-striped is-narrow is-hoverable is-fullwidth
- One | -Two | -
---|---|
Three | -Four | -
Five | -Six | -
Seven | -Eight | -
Nine | -Ten | -
Eleven | -Twelve | -
Add borders to all the cells.
table is-bordered
+ One | +Two | +
---|---|
Three | +Four | +
Add stripes to the table.
+table is-striped
+ One | +Two | +
---|---|
Three | +Four | +
Five | +Six | +
Seven | +Eight | +
Nine | +Ten | +
Eleven | +Twelve | +
Make the cells narrower.
+table is-narrow
+ One | +Two | +
---|---|
Three | +Four | +
Five | +Six | +
Seven | +Eight | +
Nine | +Ten | +
Eleven | +Twelve | +
You can add a hover effect on each row
+table is-hoverable
+ One | +Two | +
---|---|
Three | +Four | +
Five | +Six | +
Seven | +Eight | +
Nine | +Ten | +
Eleven | +Twelve | +
You can have a fullwidth table.
+table is-fullwidth
+ One | +Two | +
---|---|
Three | +Four | +
Five | +Six | +
Seven | +Eight | +
Nine | +Ten | +
Eleven | +Twelve | +
You can combine all five modifiers.
+table is-bordered is-striped is-narrow is-hoverable is-fullwidth
+ One | +Two | +
---|---|
Three | +Four | +
Five | +Six | +
Seven | +Eight | +
Nine | +Ten | +
Eleven | +Twelve | +
- - Black - -
-- - Dark - -
-- - Light - -
-- - White - -
-- - Primary - -
-- - Link - -
-- - Info - -
-- - Success - -
-- - Warning - -
- - Danger - -- - Medium - -
-- - Large - -
-is-rounded
modifier to make a rounded tag.
- is-delete
modifier to turn the tag into a delete button.
- - - Bar - - -
-- - Hello - - -
-- - World - - -
-
- You can now create a list of tags with the .tags
container.
-
- If the list is very long, it will automatically wrap on multiple lines, while keeping all tags evenly spaced. -
-
- You can attach tags together with the .has-addons
modifier.
-
- You can attach a text tag with a delete tag together. -
-
- If you want to attach .tags
containers together, simply use the .field
element with the .is-grouped
and .is-grouped-multiline
modifiers.
-
- This can be useful for a long list of blog tags. -
-+ + Black + +
++ + Dark + +
++ + Light + +
++ + White + +
++ + Primary + +
++ + Link + +
++ + Info + +
++ + Success + +
++ + Warning + +
+ + Danger + ++ + Medium + +
++ + Large + +
+is-rounded
modifier to make a rounded tag.
+ is-delete
modifier to turn the tag into a delete button.
+ + + Bar + + +
++ + Hello + + +
++ + World + + +
+
+ You can now create a list of tags with the .tags
container.
+
+ If the list is very long, it will automatically wrap on multiple lines, while keeping all tags evenly spaced. +
+
+ You can attach tags together with the .has-addons
modifier.
+
+ You can attach a text tag with a delete tag together. +
+
+ If you want to attach .tags
containers together, simply use the .field
element with the .is-grouped
and .is-grouped-multiline
modifiers.
+
+ This can be useful for a long list of blog tags. +
+Subtitle 5
{% endcapture %} -{% include subnav/subnav-elements.html %} - -There are 2 types of heading:
-.title
- .subtitle
- Title
-Subtitle
-There are 2 types of heading:
+.title
+ .subtitle
+ There are 6 sizes available:
-Title 1
-Title 2
-Title 3 (default size)
-Title 4
-Title 5
-Title 6
-Subtitle 1
-Subtitle 2
-Subtitle 3
-Subtitle 4
-Subtitle 5 (default size)
-Subtitle 6
-When you combine a title and a subtitle, they move closer together.
-As a rule of thumb, it is recommended to use a size difference of two. So if you use a title is-1
, combine it with a subtitle is-3
.
Title 1
-Subtitle 3
-Title 2
-Subtitle 4
-Title 3
-Subtitle 5
-- New! -
-You can maintain the normal spacing between titles and subtitles if you use the is-spaced
modifier on the first element.
Title 1
-Subtitle 3
-Title 2
-Subtitle 4
-Title 3
-Subtitle 5
-Title
+Subtitle
+There are 6 sizes available:
+Title 1
+Title 2
+Title 3 (default size)
+Title 4
+Title 5
+Title 6
+Subtitle 1
+Subtitle 2
+Subtitle 3
+Subtitle 4
+Subtitle 5 (default size)
+Subtitle 6
+When you combine a title and a subtitle, they move closer together.
+As a rule of thumb, it is recommended to use a size difference of two. So if you use a title is-1
, combine it with a subtitle is-3
.
Title 1
+Subtitle 3
+Title 2
+Subtitle 4
+Title 3
+Subtitle 5
++ New! +
+You can maintain the normal spacing between titles and subtitles if you use the is-spaced
modifier on the first element.
Title 1
+Subtitle 3
+Title 2
+Subtitle 4
+Title 3
+Subtitle 5
+