]> git.ipfire.org Git - thirdparty/bulma.git/commitdiff
Improve layout docs
authorJeremy Thomas <bbxdesign@gmail.com>
Sun, 13 Oct 2019 21:58:12 +0000 (22:58 +0100)
committerJeremy Thomas <bbxdesign@gmail.com>
Fri, 18 Oct 2019 00:51:42 +0000 (20:51 -0400)
docs/documentation/elements/tag.html
docs/documentation/layout/container.html
docs/documentation/layout/footer.html

index 592142aa72ef2ca3368dedf697409d0b153a06cf..378533f44480f8cbd067f2f9f1d20cd680094a40 100644 (file)
@@ -33,6 +33,15 @@ meta:
 <span class="tag is-danger">Danger</span>
 {% endcapture %}
 
+{% capture tags_light_colors %}
+<span class="tag is-primary is-light">Primary</span>
+<span class="tag is-link is-light">Link</span>
+<span class="tag is-info is-light">Info</span>
+<span class="tag is-success is-light">Success</span>
+<span class="tag is-warning is-light">Warning</span>
+<span class="tag is-danger is-light">Danger</span>
+{% endcapture %}
+
 {% capture sizes %}
 <span class="tag is-link is-normal">Normal</span>
 <span class="tag is-primary is-medium">Medium</span>
@@ -133,7 +142,7 @@ meta:
   <div class="control">
     <div class="tags has-addons">
       <span class="tag is-dark">npm</span>
-      <span class="tag is-info">0.5.0</span>
+      <span class="tag is-info">{{ site.version }}</span>
     </div>
   </div>
 
@@ -213,6 +222,12 @@ meta:
 </div>
 {% endcapture %}
 
+<div class="content">
+  <p>
+    The Bulma <strong>tag</strong> 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.
+  </p>
+</div>
+
 <div class="columns">
   <div class="column is-4">
     By default, a <strong>tag</strong> is a 1.5rem high label.
@@ -288,6 +303,49 @@ meta:
   </div>
 </div>
 
+{% include elements/new-tag.html version="0.8.0" %}
+
+<div class="columns">
+  <div class="column is-4">
+    <p>
+      You can now choose the <strong>light version</strong> of a color.
+    </p>
+  </div>
+  <div class="column is-2">
+    <p class="field">
+      <span class="tag is-primary is-light">
+        Primary
+      </span>
+    </p>
+    <p class="field">
+      <span class="tag is-link is-light">
+        Link
+      </span>
+    </p>
+    <p class="field">
+      <span class="tag is-info is-light">
+        Info
+      </span>
+    </p>
+    <p class="field">
+      <span class="tag is-success is-light">
+        Success
+      </span>
+    </p>
+    <p class="field">
+      <span class="tag is-warning is-light">
+        Warning
+      </span>
+    </p>
+    <span class="tag is-danger is-light">
+      Danger
+    </span>
+  </div>
+  <div class="column is-6">
+    {% highlight html %}{{ tags_light_colors }}{% endhighlight %}
+  </div>
+</div>
+
 {% include elements/anchor.html name="Sizes" %}
 
 <div class="columns">
index 8fd56411425d8f8324121a23d8ad1da35ec30172..7df0594af72c5eaad0ada9468a27cdf073354a43 100644 (file)
@@ -45,12 +45,12 @@ breadcrumb:
 {% endcapture %}
 
 <div class="content">
-  <p>The <code>.container</code> class can be used in any context, but mostly as a <strong>direct child</strong> of either:</p>
+  <p>The <code>container</code> class can be used in any context, but mostly as a <strong>direct child</strong> of either:</p>
   <ul>
-    <li><code>.navbar</code></li>
-    <li><code>.hero</code></li>
-    <li><code>.section</code></li>
-    <li><code>.footer</code></li>
+    <li><code>navbar</code></li>
+    <li><code>hero</code></li>
+    <li><code>section</code></li>
+    <li><code>footer</code></li>
   </ul>
   <p>
     The containers <strong>width</strong> for each <strong>breakpoint</strong> is the result
@@ -76,7 +76,8 @@ breadcrumb:
 
 {% highlight html %}{{ container_example }}{% endhighlight %}
 
-<h3 class="title is-4">Fluid container</h3>
+{% include elements/anchor.html name="Fluid container" %}
+
 <div class="content">
   <p>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 <code>is-fluid</code> modifier:</p>
@@ -92,10 +93,11 @@ breadcrumb:
 
 {% highlight html %}{{ container_fluid_example }}{% endhighlight %}
 
-<h3 class="title is-4">Breakpoint containers</h3>
+{% include elements/anchor.html name="Breakpoint containers" %}
+
 <div class="content">
   <p>
-    With the two modifiers <code>.is-widescreen</code> and <code>.is-fullhd</code>, you can have a <em>fullwidth</em> container <strong>until</strong> those specific breakpoints.
+    With the two modifiers <code>is-widescreen</code> and <code>is-fullhd</code>, you can have a <em>fullwidth</em> container <strong>until</strong> those specific breakpoints.
   </p>
 </div>
 
index 627ea7fb727ce0dd2dae5527966a54e104cd19bb..e6941f749d045d11ee2d385aacd15c52b0da809f 100644 (file)
@@ -22,6 +22,12 @@ breadcrumb:
 </footer>
 {% endcapture %}
 
+<div class="content">
+  <p>
+    The Bulma <strong>footer</strong> is a simple container, with lots of bottom padding, making it great as the last element of any webpage.
+  </p>
+</div>
+
 {% include elements/snippet.html content=footer_example horizontal=true more=true %}
 
 {% include elements/variables.html %}