From: Jeremy Thomas Date: Sun, 13 Oct 2019 21:58:12 +0000 (+0100) Subject: Improve layout docs X-Git-Tag: 0.8.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a6b00ecd522cccd15bd30bd9079e4f88dfc202a;p=thirdparty%2Fbulma.git Improve layout docs --- diff --git a/docs/documentation/elements/tag.html b/docs/documentation/elements/tag.html index 592142aa7..378533f44 100644 --- a/docs/documentation/elements/tag.html +++ b/docs/documentation/elements/tag.html @@ -33,6 +33,15 @@ meta: Danger {% endcapture %} +{% capture tags_light_colors %} +Primary +Link +Info +Success +Warning +Danger +{% endcapture %} + {% capture sizes %} Normal Medium @@ -133,7 +142,7 @@ meta:
npm - 0.5.0 + {{ site.version }}
@@ -213,6 +222,12 @@ meta: {% endcapture %} +
+

+ The Bulma tag is a small but versatile element. It's very useful as a way to attach information to a block or other component. Its size makes it also easy to display in numbers, making it appropriate for long lists of items. +

+
+
By default, a tag is a 1.5rem high label. @@ -288,6 +303,49 @@ meta:
+{% include elements/new-tag.html version="0.8.0" %} + +
+
+

+ You can now choose the light version of a color. +

+
+
+

+ + Primary + +

+

+ + Link + +

+

+ + Info + +

+

+ + Success + +

+

+ + Warning + +

+ + Danger + +
+
+ {% highlight html %}{{ tags_light_colors }}{% endhighlight %} +
+
+ {% include elements/anchor.html name="Sizes" %}
diff --git a/docs/documentation/layout/container.html b/docs/documentation/layout/container.html index 8fd564114..7df0594af 100644 --- a/docs/documentation/layout/container.html +++ b/docs/documentation/layout/container.html @@ -45,12 +45,12 @@ breadcrumb: {% endcapture %}
-

The .container class can be used in any context, but mostly as a direct child of either:

+

The container class can be used in any context, but mostly as a direct child of either:

    -
  • .navbar
  • -
  • .hero
  • -
  • .section
  • -
  • .footer
  • +
  • navbar
  • +
  • hero
  • +
  • section
  • +
  • footer

The containers width for each breakpoint is the result @@ -76,7 +76,8 @@ breadcrumb: {% highlight html %}{{ container_example }}{% endhighlight %} -

Fluid container

+{% include elements/anchor.html name="Fluid container" %} +

If you don't want to have a maximum width but want to keep the 32px margin on the left and right sides, add the is-fluid modifier:

@@ -92,10 +93,11 @@ breadcrumb: {% highlight html %}{{ container_fluid_example }}{% endhighlight %} -

Breakpoint containers

+{% include elements/anchor.html name="Breakpoint containers" %} +

- With the two modifiers .is-widescreen and .is-fullhd, you can have a fullwidth container until those specific breakpoints. + With the two modifiers is-widescreen and is-fullhd, you can have a fullwidth container until those specific breakpoints.

diff --git a/docs/documentation/layout/footer.html b/docs/documentation/layout/footer.html index 627ea7fb7..e6941f749 100644 --- a/docs/documentation/layout/footer.html +++ b/docs/documentation/layout/footer.html @@ -22,6 +22,12 @@ breadcrumb: {% endcapture %} +
+

+ The Bulma footer is a simple container, with lots of bottom padding, making it great as the last element of any webpage. +

+
+ {% include elements/snippet.html content=footer_example horizontal=true more=true %} {% include elements/variables.html %}