Skip to content

Commit

Permalink
correct padding and margins around entity profiles
Browse files Browse the repository at this point in the history
breadcrumbs must have padding at the top, and  margin below (which can
collapse into margins of the h1 on the page, if necessary)
  • Loading branch information
longhotsummer committed Sep 5, 2024
1 parent 0b1c8d3 commit 787ae48
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion africanlii/templates/africanlii/au_institution_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{% block entity-profile %}
{% with entity_profile=author.au_institution.entity_profile.first entity_profile_title=author.name %}
{% if entity_profile %}
<div class="mt-3">{% include 'peachjam/_entity_profile.html' %}</div>
{% include 'peachjam/_entity_profile.html' %}
{% endif %}
{% endwith %}
{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion africanlii/templates/africanlii/au_organ_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
{% block entity-profile %}
{% with entity_profile=author.au_organ.entity_profile.first entity_profile_title=author.name %}
{% if entity_profile %}
<div class="mt-3">{% include 'peachjam/_entity_profile.html' %}</div>
{% include 'peachjam/_entity_profile.html' %}
{% endif %}
{% endwith %}
{% endblock %}
2 changes: 1 addition & 1 deletion africanlii/templates/africanlii/member_state_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{% block entity-profile %}
{% with entity_profile=member_state.entity_profile.first entity_profile_title=member_state.name %}
{% if entity_profile %}
<div class="mt-3">{% include 'peachjam/_entity_profile.html' %}</div>
{% include 'peachjam/_entity_profile.html' %}
{% endif %}
{% endwith %}
{% endblock %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
{% block entity-profile %}
{% with entity_profile=rec.entity_profile.first entity_profile_title=rec.name %}
{% if entity_profile %}
<div class="mt-3">{% include 'peachjam/_entity_profile.html' %}</div>
{% include 'peachjam/_entity_profile.html' %}
{% endif %}
{% endwith %}
{% endblock %}
Expand Down
9 changes: 4 additions & 5 deletions peachjam/static/stylesheets/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,6 @@ footer {
}
}

.breadcrumb {
padding-top: 1rem;
margin-bottom: 0;
}

// xs btn
.btn.btn-xs {
@include button-size(0.125rem, 0.25rem, $btn-font-size-sm, $btn-border-radius-sm);
Expand Down Expand Up @@ -194,3 +189,7 @@ a:visited {
#skip-links a:focus {
top: -1px;
}

.breadcrumb {
padding-top: 1rem;
}
2 changes: 2 additions & 0 deletions peachjam/static/stylesheets/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ $visited-link: #1A77F2 !default;
--diff-green-color: #{$diff-green-color};
--diff-red-color: #{$diff-red-color};
}

$breadcrumb-margin-bottom: 1rem !default;
3 changes: 1 addition & 2 deletions peachjam/static/stylesheets/components/_entity-profile.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.entity-profile {
@extend .bg-light;

margin-top: -1rem;
margin-bottom: 1rem;

&.has-background-photo {
background-color: transparent !important;
Expand Down
2 changes: 1 addition & 1 deletion peachjam/templates/peachjam/court_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{% block entity-profile %}
{% with entity_profile=court.entity_profile.first entity_profile_title=court.name %}
{% if entity_profile %}
<div class="mt-3">{% include 'peachjam/_entity_profile.html' %}</div>
{% include 'peachjam/_entity_profile.html' %}
{% endif %}
{% endwith %}
{% endblock %}
Expand Down
2 changes: 1 addition & 1 deletion peachjam/templates/peachjam/layouts/document_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{% block breadcrumbs %}{% endblock %}
{% block entity-profile %}
{% if entity_profile %}
<div class="mt-3">{% include 'peachjam/_entity_profile.html' %}</div>
{% include 'peachjam/_entity_profile.html' %}
{% endif %}
{% endblock %}
<div class="container pb-5" data-component="DocumentList">
Expand Down
2 changes: 1 addition & 1 deletion peachjam/templates/peachjam/taxonomy_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
{% block entity-profile %}
{% if entity_profile %}
{% with entity_profile_title=taxonomy.name %}
<div class="mt-3">{% include 'peachjam/_entity_profile.html' %}</div>
{% include 'peachjam/_entity_profile.html' %}
{% endwith %}
{% endif %}
{% endblock %}
Expand Down

0 comments on commit 787ae48

Please sign in to comment.