I have 2 blocks in a region (headline). Drupal 8 seems to add these 2 blocks into an unnamed div and thus their display:flex
CSS layout is cancelled. (You can't scatter 2 container items if these are wrapped into one <div>
.)
I might need to note that the template markup also doesn't contain such HTML element.
The markup for the region is the following one.
<div id="headline">
<div class="container">
{% if page.headline %}
{{ page.headline }}
{% endif %}
</div>
</div>
The CSS code I used is the following.
#headline . container {
display: flex; flex-direction: column; align-items: center
}
@media screen and (min-width: 1080px) {
#headline .container {
display: flex; flex-direction: row; justify-content: space-between; align-content: flex-start; flex: 1; margin: 0 auto
}
}