Skip to content

Commit 1a6b00e

Browse files
committed
Improve layout docs
1 parent 48515c4 commit 1a6b00e

File tree

3 files changed

+75
-9
lines changed

3 files changed

+75
-9
lines changed

docs/documentation/elements/tag.html

Lines changed: 59 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@
3333
<span class="tag is-danger">Danger</span>
3434
{% endcapture %}
3535

36+
{% capture tags_light_colors %}
37+
<span class="tag is-primary is-light">Primary</span>
38+
<span class="tag is-link is-light">Link</span>
39+
<span class="tag is-info is-light">Info</span>
40+
<span class="tag is-success is-light">Success</span>
41+
<span class="tag is-warning is-light">Warning</span>
42+
<span class="tag is-danger is-light">Danger</span>
43+
{% endcapture %}
44+
3645
{% capture sizes %}
3746
<span class="tag is-link is-normal">Normal</span>
3847
<span class="tag is-primary is-medium">Medium</span>
@@ -133,7 +142,7 @@
133142
<div class="control">
134143
<div class="tags has-addons">
135144
<span class="tag is-dark">npm</span>
136-
<span class="tag is-info">0.5.0</span>
145+
<span class="tag is-info">{{ site.version }}</span>
137146
</div>
138147
</div>
139148

@@ -213,6 +222,12 @@
213222
</div>
214223
{% endcapture %}
215224

225+
<div class="content">
226+
<p>
227+
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.
228+
</p>
229+
</div>
230+
216231
<div class="columns">
217232
<div class="column is-4">
218233
By default, a <strong>tag</strong> is a 1.5rem high label.
@@ -288,6 +303,49 @@
288303
</div>
289304
</div>
290305

306+
{% include elements/new-tag.html version="0.8.0" %}
307+
308+
<div class="columns">
309+
<div class="column is-4">
310+
<p>
311+
You can now choose the <strong>light version</strong> of a color.
312+
</p>
313+
</div>
314+
<div class="column is-2">
315+
<p class="field">
316+
<span class="tag is-primary is-light">
317+
Primary
318+
</span>
319+
</p>
320+
<p class="field">
321+
<span class="tag is-link is-light">
322+
Link
323+
</span>
324+
</p>
325+
<p class="field">
326+
<span class="tag is-info is-light">
327+
Info
328+
</span>
329+
</p>
330+
<p class="field">
331+
<span class="tag is-success is-light">
332+
Success
333+
</span>
334+
</p>
335+
<p class="field">
336+
<span class="tag is-warning is-light">
337+
Warning
338+
</span>
339+
</p>
340+
<span class="tag is-danger is-light">
341+
Danger
342+
</span>
343+
</div>
344+
<div class="column is-6">
345+
{% highlight html %}{{ tags_light_colors }}{% endhighlight %}
346+
</div>
347+
</div>
348+
291349
{% include elements/anchor.html name="Sizes" %}
292350

293351
<div class="columns">

docs/documentation/layout/container.html

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,12 @@
4545
{% endcapture %}
4646

4747
<div class="content">
48-
<p>The <code>.container</code> class can be used in any context, but mostly as a <strong>direct child</strong> of either:</p>
48+
<p>The <code>container</code> class can be used in any context, but mostly as a <strong>direct child</strong> of either:</p>
4949
<ul>
50-
<li><code>.navbar</code></li>
51-
<li><code>.hero</code></li>
52-
<li><code>.section</code></li>
53-
<li><code>.footer</code></li>
50+
<li><code>navbar</code></li>
51+
<li><code>hero</code></li>
52+
<li><code>section</code></li>
53+
<li><code>footer</code></li>
5454
</ul>
5555
<p>
5656
The containers <strong>width</strong> for each <strong>breakpoint</strong> is the result
@@ -76,7 +76,8 @@
7676

7777
{% highlight html %}{{ container_example }}{% endhighlight %}
7878

79-
<h3 class="title is-4">Fluid container</h3>
79+
{% include elements/anchor.html name="Fluid container" %}
80+
8081
<div class="content">
8182
<p>If you don't want to have a maximum width but want to keep the 32px margin on the left and
8283
right sides, add the <code>is-fluid</code> modifier:</p>
@@ -92,10 +93,11 @@ <h3 class="title is-4">Fluid container</h3>
9293

9394
{% highlight html %}{{ container_fluid_example }}{% endhighlight %}
9495

95-
<h3 class="title is-4">Breakpoint containers</h3>
96+
{% include elements/anchor.html name="Breakpoint containers" %}
97+
9698
<div class="content">
9799
<p>
98-
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.
100+
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.
99101
</p>
100102
</div>
101103

docs/documentation/layout/footer.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@
2222
</footer>
2323
{% endcapture %}
2424

25+
<div class="content">
26+
<p>
27+
The Bulma <strong>footer</strong> is a simple container, with lots of bottom padding, making it great as the last element of any webpage.
28+
</p>
29+
</div>
30+
2531
{% include elements/snippet.html content=footer_example horizontal=true more=true %}
2632

2733
{% include elements/variables.html %}

0 commit comments

Comments
 (0)