Make the whole top header fixed
This commit is contained in:
parent
3e5e30c6a9
commit
e6c16af9cc
2 changed files with 2 additions and 21 deletions
|
@ -3,6 +3,7 @@
|
||||||
{% block navbar %}
|
{% block navbar %}
|
||||||
{% if page.navbar_branding or page.navbar_social or page.primary_menu %}
|
{% if page.navbar_branding or page.navbar_social or page.primary_menu %}
|
||||||
{# Top navbar #}
|
{# Top navbar #}
|
||||||
|
<div class="is-fixed">
|
||||||
<nav class="navbar" id="navbar">
|
<nav class="navbar" id="navbar">
|
||||||
<div class="navbar-brand">
|
<div class="navbar-brand">
|
||||||
{% if page.navbar_branding %}
|
{% if page.navbar_branding %}
|
||||||
|
@ -30,5 +31,6 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock navbar %}
|
{% endblock navbar %}
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
{#
|
|
||||||
/**
|
|
||||||
* @file
|
|
||||||
* Default theme implementation to display a region.
|
|
||||||
*
|
|
||||||
* Available variables:
|
|
||||||
* - content: The content for this region, typically blocks.
|
|
||||||
* - attributes: HTML attributes for the region <div>.
|
|
||||||
* - region: The name of the region variable as defined in the theme's
|
|
||||||
* .info.yml file.
|
|
||||||
*
|
|
||||||
* @see template_preprocess_region()
|
|
||||||
*
|
|
||||||
* @ingroup themeable
|
|
||||||
*/
|
|
||||||
#}
|
|
||||||
{% if content %}
|
|
||||||
<div class="is-fixed">
|
|
||||||
{{ content }}
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
Loading…
Reference in a new issue