material_base-8.x-2.x-dev/templates/layout/region--drawer.html.twig
templates/layout/region--drawer.html.twig
{#
/**
* @file
* Theme override 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()
*/
#}
{% set classes = [
'region',
'region-' ~ region|clean_class,
'page-drawer',
'drawer',
drawer_style ? 'drawer--' ~ drawer_style,
drawer_height == 'below_navbar' and navbar_style ? 'page-navbar-adjust--' ~ navbar_style,
drawer_height == 'below_navbar' and navbar_fixed ? 'page-navbar-adjust--fixed',
] %}
{% if content %}
<div{{ attributes.addClass(classes) }}>
{#
<div class="drawer__header">
<!-- Logo or title -->
</div>
#}
<div class="drawer__content">
{{ content }}
{# Bottom action #}
</div>
</div>
{% if drawer_style == 'modal' %}
<div class="drawer__overlay"></div>
{% endif %}
{% endif %}
