Commit 233700f6 authored by Sascha Eggenberger's avatar Sascha Eggenberger Committed by Sascha Eggenberger
Browse files

Refactor empty region check

parent 69f41d2c
Loading
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -325,14 +325,6 @@ button.link:active,
  overflow: initial;
}

.content-header:has(.layout-container:empty) {
  display: none;
}

.content-header:not(.content-header:has(.region)) {
  display: none;
}

@media (min-width: 64em) {
  .sticky-shadow {
    z-index: 98;
+0 −10
Original line number Diff line number Diff line
@@ -117,16 +117,6 @@
  margin-bottom: 0;
  background-color: transparent;
  overflow: initial;

  // Hide if empty.
  &:has(.layout-container:empty) {
    display: none;
  }

  // Hide if region is missing.
  &:not(.content-header:has(.region)) {
    display: none;
  }
}

.sticky-shadow {
+2 −0
Original line number Diff line number Diff line
@@ -79,11 +79,13 @@

<div class="sticky-shadow"></div>

{% if page.header|without(page_title_block)|render|striptags|trim is not empty %}
<div class="content-header clearfix">
  <div class="layout-container">
    {{ page.header|without(page_title_block) }}
  </div>
</div>
{% endif %}

<div class="layout-container">
  {{ page.pre_content }}