responsiveness.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  1. ---
  2. layout: documentation
  3. doc-tab: overview
  4. doc-subtab: responsiveness
  5. ---
  6. {% include subnav-overview.html %}
  7. <section class="section">
  8. <div class="container">
  9. <h1 class="title">Responsiveness</h1>
  10. <h2 class="subtitle">Bulma is a <strong>mobile-first</strong> framework</h2>
  11. <hr>
  12. <h3 class="title">Vertical by default</h3>
  13. <div class="content">
  14. <p>
  15. Every element in Bulma is <strong>mobile-first</strong> and optimizes for <strong>vertical reading</strong>, so by default on mobile:
  16. </p>
  17. <ul>
  18. <li><code>columns</code> are stacked vertically</li>
  19. <li>the <code>level</code> component will show its children stacked vertically</li>
  20. <li>the <code>nav</code> menu will be hidden</li>
  21. </ul>
  22. <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>
  23. </div>
  24. <hr>
  25. <h3 class="title">Breakpoints</h3>
  26. <div class="content">
  27. <p>Bulma has 5 breakpoints:</p>
  28. <ul>
  29. <li><code>mobile</code>: up to <code>768px</code></li>
  30. <li><code>tablet</code>: from <code>769px</code></li>
  31. <li><code>desktop</code>: from <code>1000px</code></li>
  32. <li><code>widescreen</code>: from <code>1192px</code></li>
  33. <li><span class="tag is-success">New!</span> <code>fullhd</code>: from <code>1384px</code></li>
  34. </ul>
  35. <p>Bulma uses 9 responsive mixins:</p>
  36. <ul>
  37. <li>
  38. <code>=mobile</code><br>
  39. until <code>768px</code>
  40. </li>
  41. <li>
  42. <code>=tablet</code><br>
  43. from <code>769px</code>
  44. </li>
  45. <li>
  46. <code>=tablet-only</code><br>
  47. from <code>769px</code> and until <code>999px</code>
  48. </li>
  49. <li>
  50. <code>=touch</code><br>
  51. until <code>999px</code>
  52. </li>
  53. <li>
  54. <code>=desktop</code><br>
  55. from <code>1000px</code>
  56. </li>
  57. <li>
  58. <code>=desktop-only</code><br>
  59. from <code>1000px</code> and until <code>1191px</code>
  60. </li>
  61. <li>
  62. <code>=widescreen</code><br>
  63. from <code>1192px</code>
  64. </li>
  65. <li>
  66. <code>=widescreen-only</code><br>
  67. from <code>1192px</code> and until <code>1383px</code>
  68. </li>
  69. <li>
  70. <span class="tag is-success">New!</span>
  71. <code>=fullhd</code><br>
  72. from <code>1384px</code>
  73. </li>
  74. </ul>
  75. </div>
  76. <table class="table is-bordered">
  77. <thead>
  78. <tr>
  79. <th style="width: 20%;">
  80. Mobile<br>
  81. Up to <code>768px</code>
  82. </th>
  83. <th style="width: 20%;">
  84. Tablet<br>
  85. Between <code>769px</code> and <code>999px</code>
  86. </th>
  87. <th style="width: 20%;">
  88. Desktop<br>
  89. Between <code>1000px</code> and <code>1191px</code>
  90. </th>
  91. <th style="width: 20%;">
  92. Widescreen<br>
  93. Between <code>1192px</code> and <code>1383px</code>
  94. </th>
  95. <th style="width: 20%;">
  96. FullHD<br>
  97. <code>1384px</code> and above
  98. </th>
  99. </tr>
  100. </thead>
  101. <tbody>
  102. <tr>
  103. <td>
  104. <p class="notification is-success">mobile</p>
  105. </td>
  106. <td colspan="4">
  107. <p class="notification">-</p>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td>
  112. <p class="notification">-</p>
  113. </td>
  114. <td colspan="4">
  115. <p class="notification is-success">tablet</p>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td colspan="2">
  120. <p class="notification">-</p>
  121. </td>
  122. <td colspan="3">
  123. <p class="notification is-success">desktop</p>
  124. </td>
  125. </tr>
  126. <tr>
  127. <td colspan="3">
  128. <p class="notification">-</p>
  129. </td>
  130. <td colspan="2">
  131. <p class="notification is-success">widescreen</p>
  132. </td>
  133. </tr>
  134. <tr>
  135. <td colspan="4">
  136. <p class="notification">-</p>
  137. </td>
  138. <td>
  139. <p class="notification is-success">fullhd</p>
  140. </td>
  141. </tr>
  142. <tr>
  143. <td>
  144. <p class="notification">-</p>
  145. </td>
  146. <td>
  147. <p class="notification is-success">tablet-only</p>
  148. </td>
  149. <td colspan="3">
  150. <p class="notification">-</p>
  151. </td>
  152. </tr>
  153. <tr>
  154. <td colspan="2">
  155. <p class="notification">-</p>
  156. </td>
  157. <td>
  158. <p class="notification is-success">desktop-only</p>
  159. </td>
  160. <td colspan="2">
  161. <p class="notification">-</p>
  162. </td>
  163. </tr>
  164. <tr>
  165. <td colspan="3">
  166. <p class="notification">-</p>
  167. </td>
  168. <td>
  169. <p class="notification is-success">widescreen-only</p>
  170. </td>
  171. <td>
  172. <p class="notification">-</p>
  173. </td>
  174. </tr>
  175. <tr>
  176. <td colspan="2">
  177. <p class="notification is-success">touch</p>
  178. </td>
  179. <td colspan="3">
  180. <p class="notification">-</p>
  181. </td>
  182. </tr>
  183. </tbody>
  184. </table>
  185. </div>
  186. </section>