}
}
-@media screen and (min-width: 769px) and (max-width: 999px) {
+@media screen and (min-width: 769px) and (max-width: 1007px) {
.is-block-tablet-only {
display: block !important;
}
}
-@media screen and (max-width: 999px) {
+@media screen and (max-width: 1007px) {
.is-block-touch {
display: block !important;
}
}
-@media screen and (min-width: 1000px) {
+@media screen and (min-width: 1008px) {
.is-block-desktop {
display: block !important;
}
}
-@media screen and (min-width: 1000px) and (max-width: 1191px) {
+@media screen and (min-width: 1008px) and (max-width: 1199px) {
.is-block-desktop-only {
display: block !important;
}
}
-@media screen and (min-width: 1192px) {
+@media screen and (min-width: 1200px) {
.is-block-widescreen {
display: block !important;
}
}
}
-@media screen and (min-width: 769px) and (max-width: 999px) {
+@media screen and (min-width: 769px) and (max-width: 1007px) {
.is-flex-tablet-only {
display: flex !important;
}
}
-@media screen and (max-width: 999px) {
+@media screen and (max-width: 1007px) {
.is-flex-touch {
display: flex !important;
}
}
-@media screen and (min-width: 1000px) {
+@media screen and (min-width: 1008px) {
.is-flex-desktop {
display: flex !important;
}
}
-@media screen and (min-width: 1000px) and (max-width: 1191px) {
+@media screen and (min-width: 1008px) and (max-width: 1199px) {
.is-flex-desktop-only {
display: flex !important;
}
}
-@media screen and (min-width: 1192px) {
+@media screen and (min-width: 1200px) {
.is-flex-widescreen {
display: flex !important;
}
}
}
-@media screen and (min-width: 769px) and (max-width: 999px) {
+@media screen and (min-width: 769px) and (max-width: 1007px) {
.is-inline-tablet-only {
display: inline !important;
}
}
-@media screen and (max-width: 999px) {
+@media screen and (max-width: 1007px) {
.is-inline-touch {
display: inline !important;
}
}
-@media screen and (min-width: 1000px) {
+@media screen and (min-width: 1008px) {
.is-inline-desktop {
display: inline !important;
}
}
-@media screen and (min-width: 1000px) and (max-width: 1191px) {
+@media screen and (min-width: 1008px) and (max-width: 1199px) {
.is-inline-desktop-only {
display: inline !important;
}
}
-@media screen and (min-width: 1192px) {
+@media screen and (min-width: 1200px) {
.is-inline-widescreen {
display: inline !important;
}
}
}
-@media screen and (min-width: 769px) and (max-width: 999px) {
+@media screen and (min-width: 769px) and (max-width: 1007px) {
.is-inline-block-tablet-only {
display: inline-block !important;
}
}
-@media screen and (max-width: 999px) {
+@media screen and (max-width: 1007px) {
.is-inline-block-touch {
display: inline-block !important;
}
}
-@media screen and (min-width: 1000px) {
+@media screen and (min-width: 1008px) {
.is-inline-block-desktop {
display: inline-block !important;
}
}
-@media screen and (min-width: 1000px) and (max-width: 1191px) {
+@media screen and (min-width: 1008px) and (max-width: 1199px) {
.is-inline-block-desktop-only {
display: inline-block !important;
}
}
-@media screen and (min-width: 1192px) {
+@media screen and (min-width: 1200px) {
.is-inline-block-widescreen {
display: inline-block !important;
}
}
}
-@media screen and (min-width: 769px) and (max-width: 999px) {
+@media screen and (min-width: 769px) and (max-width: 1007px) {
.is-inline-flex-tablet-only {
display: inline-flex !important;
}
}
-@media screen and (max-width: 999px) {
+@media screen and (max-width: 1007px) {
.is-inline-flex-touch {
display: inline-flex !important;
}
}
-@media screen and (min-width: 1000px) {
+@media screen and (min-width: 1008px) {
.is-inline-flex-desktop {
display: inline-flex !important;
}
}
-@media screen and (min-width: 1000px) and (max-width: 1191px) {
+@media screen and (min-width: 1008px) and (max-width: 1199px) {
.is-inline-flex-desktop-only {
display: inline-flex !important;
}
}
-@media screen and (min-width: 1192px) {
+@media screen and (min-width: 1200px) {
.is-inline-flex-widescreen {
display: inline-flex !important;
}
}
}
-@media screen and (max-width: 999px) {
+@media screen and (max-width: 1007px) {
.is-size-1-touch {
font-size: 3rem;
}
}
-@media screen and (min-width: 1000px) {
+@media screen and (min-width: 1008px) {
.is-size-1-desktop {
font-size: 3rem;
}
}
-@media screen and (min-width: 1192px) {
+@media screen and (min-width: 1200px) {
.is-size-1-widescreen {
font-size: 3rem;
}
}
-@media screen and (min-width: 1384px) {
+@media screen and (min-width: 1392px) {
.is-size-1-fullhd {
font-size: 3rem;
}
}
}
-@media screen and (max-width: 999px) {
+@media screen and (max-width: 1007px) {
.is-size-2-touch {
font-size: 2.5rem;
}
}
-@media screen and (min-width: 1000px) {
+@media screen and (min-width: 1008px) {
.is-size-2-desktop {
font-size: 2.5rem;
}
}
-@media screen and (min-width: 1192px) {
+@media screen and (min-width: 1200px) {
.is-size-2-widescreen {
font-size: 2.5rem;
}
}
-@media screen and (min-width: 1384px) {
+@media screen and (min-width: 1392px) {
.is-size-2-fullhd {
font-size: 2.5rem;
}
}
}
-@media screen and (max-width: 999px) {
+@media screen and (max-width: 1007px) {
.is-size-3-touch {
font-size: 2rem;
}
}
-@media screen and (min-width: 1000px) {
+@media screen and (min-width: 1008px) {
.is-size-3-desktop {
font-size: 2rem;
}
}
-@media screen and (min-width: 1192px) {
+@media screen and (min-width: 1200px) {
.is-size-3-widescreen {
font-size: 2rem;
}
}
-@media screen and (min-width: 1384px) {
+@media screen and (min-width: 1392px) {
.is-size-3-fullhd {
font-size: 2rem;
}
}
}
-@media screen and (max-width: 999px) {
+@media screen and (max-width: 1007px) {
.is-size-4-touch {
font-size: 1.5rem;
}
}
-@media screen and (min-width: 1000px) {
+@media screen and (min-width: 1008px) {
.is-size-4-desktop {
font-size: 1.5rem;
}
}
-@media screen and (min-width: 1192px) {
+@media screen and (min-width: 1200px) {
.is-size-4-widescreen {
font-size: 1.5rem;
}
}
-@media screen and (min-width: 1384px) {
+@media screen and (min-width: 1392px) {
.is-size-4-fullhd {
font-size: 1.5rem;
}
}
}
-@media screen and (max-width: 999px) {
+@media screen and (max-width: 1007px) {
.is-size-5-touch {
font-size: 1.25rem;
}
}
-@media screen and (min-width: 1000px) {
+@media screen and (min-width: 1008px) {
.is-size-5-desktop {
font-size: 1.25rem;
}
}
-@media screen and (min-width: 1192px) {
+@media screen and (min-width: 1200px) {
.is-size-5-widescreen {
font-size: 1.25rem;
}
}
-@media screen and (min-width: 1384px) {
+@media screen and (min-width: 1392px) {
.is-size-5-fullhd {
font-size: 1.25rem;
}
}
}
-@media screen and (max-width: 999px) {
+@media screen and (max-width: 1007px) {
.is-size-6-touch {
font-size: 1rem;
}
}
-@media screen and (min-width: 1000px) {
+@media screen and (min-width: 1008px) {
.is-size-6-desktop {
font-size: 1rem;
}
}
-@media screen and (min-width: 1192px) {
+@media screen and (min-width: 1200px) {
.is-size-6-widescreen {
font-size: 1rem;
}
}
-@media screen and (min-width: 1384px) {
+@media screen and (min-width: 1392px) {
.is-size-6-fullhd {
font-size: 1rem;
}
}
}
-@media screen and (min-width: 769px) and (max-width: 999px) {
+@media screen and (min-width: 769px) and (max-width: 1007px) {
.is-hidden-tablet-only {
display: none !important;
}
}
-@media screen and (max-width: 999px) {
+@media screen and (max-width: 1007px) {
.is-hidden-touch {
display: none !important;
}
}
-@media screen and (min-width: 1000px) {
+@media screen and (min-width: 1008px) {
.is-hidden-desktop {
display: none !important;
}
}
-@media screen and (min-width: 1000px) and (max-width: 1191px) {
+@media screen and (min-width: 1008px) and (max-width: 1199px) {
.is-hidden-desktop-only {
display: none !important;
}
}
-@media screen and (min-width: 1192px) {
+@media screen and (min-width: 1200px) {
.is-hidden-widescreen {
display: none !important;
}
}
.container {
+ margin: 0 auto;
+ max-width: 960px;
position: relative;
+ width: 960px;
}
-@media screen and (min-width: 1000px) {
- .container {
- margin: 0 auto;
- max-width: 960px;
- width: 960px;
+.container.is-fluid {
+ margin-left: 24px;
+ margin-right: 24px;
+ max-width: none;
+ width: auto;
+}
+
+@media screen and (max-width: 1199px) {
+ .container.is-widescreen {
+ max-width: 1152px;
+ width: auto;
}
- .container.is-fluid {
- margin: 0 20px;
- max-width: none;
+}
+
+@media screen and (max-width: 1391px) {
+ .container.is-fullhd {
+ max-width: 1344px;
width: auto;
}
}
-@media screen and (min-width: 1192px) {
+@media screen and (min-width: 1200px) {
.container {
max-width: 1152px;
width: 1152px;
}
}
-@media screen and (min-width: 1384px) {
+@media screen and (min-width: 1392px) {
.container {
max-width: 1344px;
width: 1344px;
padding-bottom: calc(0.75rem - 3px);
}
-@media screen and (min-width: 1000px) {
+@media screen and (min-width: 1008px) {
.nav-item a:not(.button).is-brand,
a.nav-item:not(.button).is-brand {
padding-left: 0;
overflow: auto;
}
-@media screen and (min-width: 1192px) {
+@media screen and (min-width: 1200px) {
.nav-left,
.nav-right {
flex-basis: 0;
margin: 0.5rem 0;
}
-@media screen and (max-width: 999px) {
+@media screen and (max-width: 1007px) {
.navbar-brand .navbar-item {
align-items: center;
display: flex;
}
}
-@media screen and (min-width: 1000px) {
+@media screen and (min-width: 1008px) {
.navbar,
.navbar-menu,
.navbar-start,
}
}
-@media screen and (max-width: 999px) {
+@media screen and (max-width: 1007px) {
.column.is-narrow-touch {
flex: none;
}
}
}
-@media screen and (min-width: 1000px) {
+@media screen and (min-width: 1008px) {
.column.is-narrow-desktop {
flex: none;
}
}
}
-@media screen and (min-width: 1192px) {
+@media screen and (min-width: 1200px) {
.column.is-narrow-widescreen {
flex: none;
}
}
}
-@media screen and (min-width: 1384px) {
+@media screen and (min-width: 1392px) {
.column.is-narrow-fullhd {
flex: none;
}
}
}
-@media screen and (min-width: 1000px) {
+@media screen and (min-width: 1008px) {
.columns.is-desktop {
display: flex;
}
.section {
background-color: white;
- min-height: 100vh;
padding: 3rem 1.5rem;
}
-@media screen and (min-width: 1000px) {
+@media screen and (min-width: 1008px) {
.section.is-medium {
padding: 9rem 1.5rem;
}
color: white;
}
-@media screen and (min-width: 1000px) {
+@media screen and (min-width: 1008px) {
#blogDropdown {
width: 16rem;
}
doc-subtab: container
---
+{% capture container_example %}
+<div class="container">
+ <div class="notification">
+ This container is <strong>centered</strong> on desktop.
+ </div>
+</div>
+{% endcapture %}
+
+{% capture container_fluid_example %}
+<div class="container is-fluid">
+ <div class="notification">
+ This container is <strong>fluid</strong>: it will have a 24px gap on either side, on any viewport size.
+ </div>
+</div>
+{% endcapture %}
+
+{% capture container_widescreen_example %}
+<div class="container is-widescreen">
+ <div class="notification">
+ This container is <strong>fullwidth</strong> <em>until</em> the <code>$widescreen</code> breakpoint.
+ </div>
+</div>
+{% endcapture %}
+
+{% capture container_fullhd_example %}
+<div class="container is-fullhd">
+ <div class="notification">
+ This container is <strong>fullwidth</strong> <em>until</em> the <code>$fullhd</code> breakpoint.
+ </div>
+</div>
+{% endcapture %}
+
{% include subnav-layout.html %}
<section class="section">
</ul>
<p>This is how the container will behave:</p>
<ul>
- <li>on <strong>mobile</strong> and <strong>tablet</strong>, it will have a margin of <strong>20px</strong> on both the left and right sides.</li>
- <li>on <strong>desktop</strong> (>= 1000px), it will have a maximum width of <strong>960px</strong> and will be <strong>horizontally centered</strong>.</li>
- <li>on <strong>widescreen</strong> (>= 1192px), it will have a maximum width of <strong>1152px</strong>.</li>
- <li>on <strong>fullhd</strong> (>= 1384px), it will have a maximum width of <strong>1344px</strong>.</li>
+ <li>on <strong>mobile</strong> and <strong>tablet</strong> {% include bp/touch.html %}, it will have a margin of <strong>24px</strong> on each side.</li>
+ <li>on <strong>desktop</strong> {% include bp/desktop.html %}, it will have a maximum width of <strong>960px</strong> and will be <strong>horizontally centered</strong>.</li>
+ <li>on <strong>widescreen</strong> {% include bp/widescreen.html %}, it will have a maximum width of <strong>1152px</strong>.</li>
+ <li>on <strong>fullhd</strong> {% include bp/fullhd.html %}, it will have a maximum width of <strong>1344px</strong>.</li>
</ul>
+ <p>
+ The <code>$gap</code> variable has a default value of <code>24px</code> but can be modified.
+ </p>
<p>The values <strong>960</strong>, <strong>1152</strong> and <strong>1344</strong> have been chosen because they are divisible by both <strong>12</strong> and <strong>16</strong>.</p>
</div>
</div>
</section>
- <div class="example is-fullwidth">
- <div class="container">
- <div class="notification">
- This container is <strong>centered</strong> on desktop.
- </div>
- </div>
- </div>
+<div class="example is-fullwidth">
+ {{container_example}}
+</div>
+
+{% highlight html %}{{container_example}}{% endhighlight %}
-{% highlight html %}
<div class="container">
- <div class="notification">
- This container is <strong>centered</strong> on desktop.
+ <hr>
+ <h3 class="title">Fluid container</h3>
+ <div class="content">
+ <p>If you don't want to have a maximum width but want to keep the 24px margin on the left and right sides, add the <code>is-fluid</code> modifier:</p>
</div>
</div>
-{% endhighlight %}
- <div class="container">
- <hr>
- <h3 class="title">Fluid container</h3>
- <div class="content">
- <p>If you don't want to have a maximum width but want to keep the 20px margin on the left and right sides, add the <code>is-fluid</code> modifier:</p>
- </div>
- </div>
+<div class="example is-fullwidth">
+ {{container_fluid_example}}
+</div>
- <div class="example is-fullwidth">
- <div class="container is-fluid">
- <div class="notification">
- This container is <strong>fluid</strong>: it will have a 20px gap on either side.
- </div>
- </div>
- </div>
+{% highlight html %}{{container_fluid_example}}{% endhighlight %}
-{% highlight html %}
-<div class="container is-fluid">
- <div class="notification">
- This container is <strong>fluid</strong>: it will have a 20px gap on either side, on any viewport size.
+<div class="container">
+ <hr>
+ <h3 class="title">Breakpoint containers</h3>
+ <div class="content">
+ <p>
+ <span class="tag is-success">New!</span>
+ <span class="tag is-info">0.4.4</span>
+ </p>
+ <p>
+ With the two modifiers <code>.is-widescreen</code> and <code>.is-fullhd</code>, you can have a <em>fullwidth</em> container <strong>until</strong> those specific breakpoints.
+ </p>
</div>
</div>
-{% endhighlight %}
+
+<div class="example is-fullwidth">
+ {{container_widescreen_example}}
+</div>
+
+{% highlight html %}{{container_widescreen_example}}{% endhighlight %}
+
+<div class="example is-fullwidth">
+ {{container_fullhd_example}}
+</div>
+
+{% highlight html %}{{container_fullhd_example}}{% endhighlight %}