{#
/**
 * @file
 * Default theme implementation to display a one-column layout.
 *
 * Available variables:
 * - content: The content for this layout.
 * - attributes: HTML attributes for the layout <div>.
 *
 * @ingroup themeable
 */
#}

{% set classes = [
  'layout',
  'onecol-layout',
  'section-padding--' ~ settings.padding,
] %}

{{ attach_library('themekit/layout') }}
{{ attach_library('themekit/layout--onecol') }}

{% if content %}
  <div{{ attributes.addClass(classes) }}>
    <div class="layout-content">
      {% if content.first %}
        <div {{ region_attributes.first.addClass('layout__region') }}>
          {{ content.first }}
        </div>
      {% endif %}
    </div>
  </div>
{% endif %}
