Skip to content

Commit

Permalink
Merge pull request #33440 from dimagi/bmb/b5-page-header
Browse files Browse the repository at this point in the history
[B5] Replace page-header with bootstrap 5's styling
  • Loading branch information
biyeun authored Sep 7, 2023
2 parents 1097061 + b910195 commit 40dae32
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,4 @@ code {

a {
cursor: pointer;
}

// we should eventually get rid of this as bootstrap5+ doesn't natively support
.page-header {
padding-bottom: 7.5px;
margin: 34px 0 17px;
border-bottom: 1px solid #eeeeee;
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{% endif %}
{% endblock page_breadcrumbs %}
<div class="container">
<div class="page-header">
<div class="border-bottom pb-1 my-4">
<h1>{% block page_name %}{{ current_page.page_name }}{% endblock %}</h1>
</div>
{% block page_content %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,12 @@
{% load hq_shared_tags %}

{% block title %}{{ section.page_name }}{% if current_page.title %}: {{ current_page.title }}{% endif %}{% endblock %}
@@ -21,7 +21,7 @@
{% endif %}
{% endblock page_breadcrumbs %}
<div class="container">
- <div class="page-header">
+ <div class="border-bottom pb-1 my-4">
<h1>{% block page_name %}{{ current_page.page_name }}{% endblock %}</h1>
</div>
{% block page_content %}
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,9 @@
}

.no-border {
@@ -89,3 +90,10 @@
@@ -88,4 +89,4 @@

a {
cursor: pointer;
}
+
+// we should eventually get rid of this as bootstrap5+ doesn't natively support
+.page-header {
+ padding-bottom: 7.5px;
+ margin: 34px 0 17px;
+ border-bottom: 1px solid #eeeeee;
-}
+}

0 comments on commit 40dae32

Please sign in to comment.