mirror of
https://github.com/jgthms/bulma.git
synced 2024-11-28 12:24:23 +00:00
* Add .has-navbar-fixed-somewhere support to body tag (#1485) * update docs
This commit is contained in:
parent
687572b975
commit
0c4482b46d
@ -819,7 +819,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
{% highlight html %}<nav class="navbar is-fixed-top">{% endhighlight %}
|
{% highlight html %}<nav class="navbar is-fixed-top">{% endhighlight %}
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
Add the corresponding <code>has-navbar-fixed-top</code> or <code>has-navbar-fixed-bottom</code> modifier to the <code><html></code> element to provide the appropriate padding to the page
|
Add the corresponding <code>has-navbar-fixed-top</code> or <code>has-navbar-fixed-bottom</code> modifier to either <code><html></code> or <code><body></code> element to provide the appropriate padding to the page
|
||||||
{% highlight html %}<html class="has-navbar-fixed-top">{% endhighlight %}
|
{% highlight html %}<html class="has-navbar-fixed-top">{% endhighlight %}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -109,10 +109,12 @@ $navbar-divider-background-color: $border !default
|
|||||||
&.is-fixed-top
|
&.is-fixed-top
|
||||||
top: 0
|
top: 0
|
||||||
|
|
||||||
html.has-navbar-fixed-top
|
html.has-navbar-fixed-top,
|
||||||
|
body.has-navbar-fixed-top
|
||||||
padding-top: $navbar-height
|
padding-top: $navbar-height
|
||||||
|
|
||||||
html.has-navbar-fixed-bottom
|
html.has-navbar-fixed-bottom,
|
||||||
|
body.has-navbar-fixed-bottom
|
||||||
padding-bottom: $navbar-height
|
padding-bottom: $navbar-height
|
||||||
|
|
||||||
.navbar-brand,
|
.navbar-brand,
|
||||||
|
Loading…
Reference in New Issue
Block a user