bulma/docs/cyp/grid/columns.html

180 lines
3.2 KiB
HTML
Raw Permalink Normal View History

2022-05-07 18:37:41 +00:00
---
layout: cypress
title: Grid/Columns
2022-05-07 21:16:09 +00:00
screens:
- mobile
- tablet
- desktop
- widescreen
- fullhd
2022-05-07 18:37:41 +00:00
widths:
- three-quarters
- two-thirds
- half
- one-third
- one-quarter
- one-fifth
- two-fifths
- three-fifths
- four-fifths
---
{% capture columns %}
<div class="column">
First column
</div>
<div class="column">
Second column
</div>
<div class="column">
Third column
</div>
<div class="column">
Fourth column
</div>
{% endcapture %}
{% capture twelve_columns %}
{% for i in (1..12) %}
<div class="column">
Column {{ i }}
</div>
{% endfor %}
{% endcapture %}
{% capture special_columns %}
<div class="column is-narrow">
Column narrow
</div>
<div class="column is-full">
Column full
</div>
{% for width in page.widths %}
<div class="column is-{{ width }}">
Column {{ width }}
</div>
<div class="column is-offset-{{ width }}">
Column {{ width }}
</div>
{% endfor %}
2022-05-07 21:16:09 +00:00
{% for i in (1..12) %}
<div class="column is-{{ i }}">
Column {{ i }}
</div>
{% endfor %}
2022-05-07 18:37:41 +00:00
{% endcapture %}
<div id="columns" class="columns">
{{ columns }}
</div>
<div>
<div id="columns-last" class="columns">
{{ columns }}
</div>
</div>
<!-- Styles -->
<div id="columns-centered" class="columns is-centered">
{{ columns }}
</div>
<div id="columns-gapless" class="columns is-gapless">
{{ columns }}
</div>
<div>
<div id="columns-gapless-last" class="columns is-gapless">
{{ columns }}
</div>
</div>
<div id="columns-multiline" class="columns is-multiline">
{{ columns }}
</div>
<div id="columns-vcentered" class="columns is-vcentered">
{{ columns }}
</div>
<!-- Responsiveness -->
<div id="columns-mobile" class="columns is-mobile">
{{ twelve_columns }}
</div>
<div id="columns-tablet" class="columns is-tablet">
{{ twelve_columns }}
</div>
<div id="columns-desktop" class="columns is-desktop">
{{ twelve_columns }}
</div>
<div id="columns-special" class="columns is-multiline">
2022-05-07 21:16:09 +00:00
<div class="column is-narrow">
Column narrow
</div>
<div class="column is-full">
Column full
</div>
{% for width in page.widths %}
<div class="column is-{{ width }}">
Column {{ width }}
</div>
<div class="column is-offset-{{ width }}">
Column {{ width }}
</div>
{% endfor %}
{% for i in (1..12) %}
<div class="column is-{{ i }}">
Column {{ i }}
</div>
<div class="column is-offset-{{ i }}">
Column {{ i }}
</div>
{% endfor %}
2022-05-07 18:37:41 +00:00
</div>
2022-05-07 21:16:09 +00:00
{% for screen in page.screens %}
<div id="columns-special-{{ screen }}" class="columns is-multiline is-{{ screen }}">
<div class="column is-narrow-{{ screen }}">
Column narrow
</div>
<div class="column is-full-{{ screen }}">
Column full
</div>
{% for width in page.widths %}
<div class="column is-{{ width }}-{{ screen }}">
Column {{ width }}
</div>
<div class="column is-offset-{{ width }}-{{ screen }}">
Column {{ width }}
</div>
{% endfor %}
{% for i in (1..12) %}
<div class="column is-{{ i }}-{{ screen }}">
Column {{ i }}
</div>
<div class="column is-offset-{{ i }}-{{ screen }}">
Column {{ i }}
</div>
{% endfor %}
</div>
{% endfor %}