responsiveness.html 5.4 KB

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