responsiveness.html 5.4 KB

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