Skip to content

Commit

Permalink
css, twig: update conditional code in lead.twig, update variable name…
Browse files Browse the repository at this point in the history
…s for lead component to not be davis site specific, update classname for pulled up lead component
  • Loading branch information
poojagunturu96 committed Nov 16, 2023
1 parent 0c80cb4 commit 9c695be
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/scss/_paragraphs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
}
}

.paragraph--davis-lead {
.paragraph--lead-pulled-up {
margin-top: -8rem !important;
margin-bottom: $spacing-7;
position: relative;
Expand Down
6 changes: 3 additions & 3 deletions src/templates/davis-home.twig
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
<div class="container">
<div class="row">
<div class="paragraphs paragraphs--wide">
{% include 'partials/lead.twig' %}
{% include 'partials/lead.twig' with {
theme: ''
} %}
pulled_up: true
}%}
{% include 'partials/lead.twig' %}
{% include 'paragraphs/chart-group.twig' with {
items: [
{ type: 'stats', number: 160, label: 'countries represented', },
Expand Down
8 changes: 4 additions & 4 deletions src/templates/partials/lead.twig
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{% if theme == 'davis' %}
<div class="paragraph--full paragraph--davis-lead">
{% if pulled_up %}
<div class="paragraph--full paragraph--lead-pulled-up">
<div class="container px-0">
{% endif %}
<p class="{{theme == 'davis' ? "davis-lead" : "lead paragraph--lead"}}">Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste iusto blanditiis dolorem illum accusantium, praesentium labore cumque fugit eos, quasi corporis voluptas aut! Doloremque similique dolorem enim, quos ipsam soluta!</p>
{% if theme == 'davis' %}
<p class="{{pulled_up and theme == "uwc" ? "davis-lead" : "lead paragraph--lead"}}">Lorem ipsum dolor sit amet consectetur adipisicing elit. Iste iusto blanditiis dolorem illum accusantium, praesentium labore cumque fugit eos, quasi corporis voluptas aut! Doloremque similique dolorem enim, quos ipsam soluta!</p>
{% if pulled_up %}
</div>
</div>
{% endif %}

0 comments on commit 9c695be

Please sign in to comment.