{#
Base template for UnLondon blocks.

coloured_bg: whether the block has a coloured background, boolean.
flush: whether this block should be flush to the one below it, boolean.
base_class: Class(es) to add to the base div.
#}

{{ attach_library('ui_patterns/ul_base.ul_base_lib') }}

{% set coloured_bg = coloured_bg|default(false) %}
{% set flush = flush|default(false) %}
{% set base_class = base_class|default('') %}

{% set title_heading_tag = block_title == '' ? 'h2' : 'h3' %}

<div class="ul-base {{ base_class }}{% if flush %} flush{% endif %}">
  {% if coloured_bg %}
  <div class="coloured-bg">
    {% endif %}
    <div class="container ul-container">
      <div class="row">
        {% block content_block %}
          {{ content }}
        {% endblock %}
      </div>
    </div>
    {% if coloured_bg %}
  </div>
  {% endif %}
</div>
