bulma/docs/documentation/overview/responsiveness.html

193 lines
5.4 KiB
HTML
Raw Normal View History

---
2017-07-29 12:02:00 +00:00
title: Responsiveness
layout: documentation
doc-tab: overview
doc-subtab: responsiveness
---
{% include subnav-overview.html %}
<section class="section">
<div class="container">
<h1 class="title">Responsiveness</h1>
<h2 class="subtitle">Bulma is a <strong>mobile-first</strong> framework</h2>
2017-08-30 19:44:39 +00:00
{% include anchor.html name="Vertical by default" %}
2017-03-14 21:19:06 +00:00
<div class="content">
<p>
2017-05-01 09:48:52 +00:00
Every element in Bulma is <strong>mobile-first</strong> and optimizes for <strong>vertical reading</strong>, so by default on mobile:
2017-03-14 21:19:06 +00:00
</p>
<ul>
<li><code>columns</code> are stacked vertically</li>
<li>the <code>level</code> component will show its children stacked vertically</li>
<li>the <code>nav</code> menu will be hidden</li>
</ul>
<p>For example, you can enforce the <strong>horizontal</strong> layout for both <code>columns</code> or <code>nav</code> by appending the <code>is-mobile</code> modifer.</p>
</div>
2017-08-30 19:44:39 +00:00
{% include anchor.html name="Breakpoints" %}
2017-03-14 21:19:06 +00:00
<div class="content">
2017-03-14 21:19:06 +00:00
<p>Bulma has 5 breakpoints:</p>
<ul>
<li><code>mobile</code>: up to <code>768px</code></li>
<li><code>tablet</code>: from <code>769px</code></li>
2017-07-29 16:58:13 +00:00
<li><code>desktop</code>: from <code>1008px</code></li>
<li><code>widescreen</code>: from <code>1200px</code></li>
<li><span class="tag is-success">New!</span> <code>fullhd</code>: from <code>1392px</code></li>
</ul>
2017-03-14 21:19:06 +00:00
<p>Bulma uses 9 responsive mixins:</p>
<ul>
<li>
<code>=mobile</code><br>
until <code>768px</code>
</li>
<li>
<code>=tablet</code><br>
from <code>769px</code>
</li>
<li>
<code>=tablet-only</code><br>
2017-07-29 16:58:13 +00:00
from <code>769px</code> and until <code>1007px</code>
</li>
<li>
<code>=touch</code><br>
2017-07-29 16:58:13 +00:00
until <code>1007px</code>
</li>
<li>
<code>=desktop</code><br>
2017-07-29 16:58:13 +00:00
from <code>1008px</code>
</li>
<li>
<code>=desktop-only</code><br>
2017-07-29 16:58:13 +00:00
from <code>1008px</code> and until <code>1199px</code>
</li>
<li>
<code>=widescreen</code><br>
2017-07-29 16:58:13 +00:00
from <code>1200px</code>
</li>
2017-03-14 21:19:06 +00:00
<li>
<code>=widescreen-only</code><br>
2017-07-29 16:58:13 +00:00
from <code>1200px</code> and until <code>1391px</code>
2017-03-14 21:19:06 +00:00
</li>
<li>
2017-03-14 22:38:45 +00:00
<span class="tag is-success">New!</span>
2017-03-14 21:19:06 +00:00
<code>=fullhd</code><br>
2017-07-29 16:58:13 +00:00
from <code>1392px</code>
2017-03-14 21:19:06 +00:00
</li>
</ul>
</div>
2017-03-14 21:19:06 +00:00
<table class="table is-bordered">
<thead>
<tr>
2017-03-14 21:19:06 +00:00
<th style="width: 20%;">
Mobile<br>
Up to <code>768px</code>
</th>
2017-03-14 21:19:06 +00:00
<th style="width: 20%;">
Tablet<br>
2017-07-29 16:58:13 +00:00
Between <code>769px</code> and <code>1007px</code>
</th>
2017-03-14 21:19:06 +00:00
<th style="width: 20%;">
Desktop<br>
2017-07-29 16:58:13 +00:00
Between <code>1008px</code> and <code>1199px</code>
</th>
2017-03-14 21:19:06 +00:00
<th style="width: 20%;">
Widescreen<br>
2017-07-29 16:58:13 +00:00
Between <code>1200px</code> and <code>1391px</code>
2017-03-14 21:19:06 +00:00
</th>
<th style="width: 20%;">
FullHD<br>
2017-07-29 16:58:13 +00:00
<code>1392px</code> and above
</th>
</tr>
</thead>
<tbody>
<tr>
2017-03-14 21:19:06 +00:00
<td>
<p class="notification is-success">mobile</p>
</td>
2017-03-14 21:19:06 +00:00
<td colspan="4">
<p class="notification">-</p>
</td>
</tr>
<tr>
2017-03-14 21:19:06 +00:00
<td>
<p class="notification">-</p>
</td>
2017-03-14 21:19:06 +00:00
<td colspan="4">
<p class="notification is-success">tablet</p>
</td>
</tr>
<tr>
2017-03-14 21:19:06 +00:00
<td colspan="2">
<p class="notification">-</p>
</td>
2017-03-14 21:19:06 +00:00
<td colspan="3">
<p class="notification is-success">desktop</p>
</td>
</tr>
<tr>
2017-03-14 21:19:06 +00:00
<td colspan="3">
<p class="notification">-</p>
</td>
2017-03-14 21:19:06 +00:00
<td colspan="2">
<p class="notification is-success">widescreen</p>
</td>
</tr>
<tr>
2017-03-14 21:19:06 +00:00
<td colspan="4">
<p class="notification">-</p>
</td>
<td>
<p class="notification is-success">fullhd</p>
</td>
</tr>
<tr>
<td>
<p class="notification">-</p>
</td>
2017-03-14 21:19:06 +00:00
<td>
<p class="notification is-success">tablet-only</p>
</td>
2017-03-14 21:19:06 +00:00
<td colspan="3">
<p class="notification">-</p>
</td>
</tr>
<tr>
2017-03-14 21:19:06 +00:00
<td colspan="2">
<p class="notification">-</p>
</td>
2017-03-14 21:19:06 +00:00
<td>
<p class="notification is-success">desktop-only</p>
</td>
2017-03-14 21:19:06 +00:00
<td colspan="2">
<p class="notification">-</p>
</td>
</tr>
<tr>
<td colspan="3">
<p class="notification">-</p>
</td>
<td>
<p class="notification is-success">widescreen-only</p>
</td>
<td>
<p class="notification">-</p>
</td>
</tr>
<tr>
2017-03-14 21:19:06 +00:00
<td colspan="2">
<p class="notification is-success">touch</p>
</td>
2017-03-14 21:19:06 +00:00
<td colspan="3">
<p class="notification">-</p>
</td>
</tr>
</tbody>
</table>
</div>
</section>