Merge pull request #11479 from KanchanChauhan/padding-in-about-page

fix(About Us): Padding in About Us page sections
This commit is contained in:
mergify[bot] 2020-09-23 08:15:10 +00:00 committed by GitHub
commit fb5e2fd33f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 0 deletions

View file

@ -244,3 +244,9 @@ h5.modal-title {
white-space: nowrap;
text-overflow: ellipsis;
}
.about-section {
padding-top: 1rem;
}
.about-footer {
padding-top: 1rem;
}

View file

@ -17,6 +17,7 @@
list of key team members in Website > About Us Settings</p>""" }}
{% if doc.get({"doctype":"Company History"}) %}
<div class="about-section">
<h3>{{ doc.company_history_heading or "Company History" }}</h3>
{% for d in doc.get({"doctype":"Company History"}) %}
<div class="row">
@ -24,9 +25,11 @@
<span class="col-md-10"><p>{{ d.highlight }}</p></span>
</div>
{% endfor %}
</div>
{% endif %}
{% if doc.get({"doctype":"About Us Team Member"}) %}
<div class="about-section">
<h3>{{ doc.team_members_heading or "Team Members" }}</h3>
{% for d in doc.get({"doctype":"About Us Team Member"}) %}
<div class="row" itemscope itemtype="http://schema.org/Person">
@ -40,7 +43,10 @@
</span>
</div>
{% endfor %}
</div>
{% endif %}
<div class="about-footer">
{{ doc.footer or "" }}
</div>
</article>
{% endblock %}