Skip to content

Commit

Permalink
fix(page-header): fix padding and optional item - FRONT-2964 (#2185)
Browse files Browse the repository at this point in the history
  • Loading branch information
emeryro authored Aug 23, 2021
1 parent e47d980 commit ff8110e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

<h1 class="ecl-page-header-core__title">{{ _title }}</h1>

{% if _description is not empty %}
{% if _description is not empty or _thumbnail is not empty %}
<div class="ecl-page-header-core__description-container">
{% if _thumbnail is not empty %}
<img
Expand All @@ -90,8 +90,10 @@
alt="{{ _thumbnail.alt|default('') }}"
/>
{% endif %}
{% if _description is not empty %}
<p class="ecl-page-header-core__description">{{ _description }}</p>
</div>
{% endif %}
{% endif %}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

<h1 class="ecl-page-header-standardised__title">{{ _title }}</h1>

{% if _description is not empty %}
{% if _description is not empty or _thumbnail is not empty %}
<div class="ecl-page-header-standardised__description-container">
{% if _thumbnail is not empty %}
<img
Expand All @@ -90,8 +90,10 @@
alt="{{ _thumbnail.alt|default('') }}"
/>
{% endif %}
{% if _description is not empty %}
<p class="ecl-page-header-standardised__description">{{ _description }}</p>
</div>
{% endif %}
{% endif %}
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
.ecl-page-header-core {
background-color: map.get(theme.$color, 'white-100');
margin: 0;
padding-bottom: map.get(theme.$spacing, '3xl');
padding-bottom: map.get(theme.$spacing, 'xl');

.ecl-container > :first-child:not(.ecl-page-header-core__breadcrumb) {
margin-top: 0;
Expand Down Expand Up @@ -78,10 +78,6 @@

/* stylelint-disable-next-line order/order */
@include breakpoints.up('l') {
.ecl-page-header-core {
padding-bottom: map.get(theme.$spacing, '4xl');
}

.ecl-page-header-core__breadcrumb {
margin-bottom: map.get(theme.$spacing, 'l');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
.ecl-page-header-standardised {
background-color: map.get(theme.$color, 'white-100');
margin: 0;
padding-bottom: map.get(theme.$spacing, '3xl');
padding-bottom: map.get(theme.$spacing, 'xl');

.ecl-container > :first-child:not(.ecl-page-header-standardised__breadcrumb) {
margin-top: 0;
Expand Down Expand Up @@ -78,10 +78,6 @@

/* stylelint-disable-next-line order/order */
@include breakpoints.up('l') {
.ecl-page-header-standardised {
padding-bottom: map.get(theme.$spacing, '4xl');
}

.ecl-page-header-standardised__breadcrumb {
margin-bottom: map.get(theme.$spacing, 'l');
}
Expand Down

1 comment on commit ff8110e

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.