Skip to content

Commit

Permalink
refactor(css): use a footer style rather than negative margin hack
Browse files Browse the repository at this point in the history
  • Loading branch information
machikoyasuda committed Dec 11, 2024
1 parent d8554b0 commit 36b9a3b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 0 additions & 1 deletion benefits/eligibility/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ def __init__(
self.headline = headline
self.blurb = blurb

self.classes = "mb-fix"
sub_widget = widgets.FormControlTextInput(placeholder=sub_placeholder)
if sub_pattern:
sub_widget.attrs.update({"pattern": sub_pattern})
Expand Down
4 changes: 4 additions & 0 deletions benefits/eligibility/templates/eligibility/confirm.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{% extends "core/base.html" %}

{% block classes %}
{{ block.super | add:" eligibility-confirm" }}
{% endblock classes %}

{% block page-title %}
{{ form.title }}
{% endblock page-title %}
Expand Down
8 changes: 4 additions & 4 deletions benefits/static/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ li {
list-style-type: disc;
}

.mb-fix {
margin-bottom: -40px;
}

/* Links */
/* Same sizes for all screen widths: 18px */
a:not(.btn):not(.card) {
Expand Down Expand Up @@ -301,6 +297,10 @@ footer {
margin-top: 64px;
}

.eligibility-confirm footer {
margin-top: 24px;
}

footer .footer-links li a.footer-link {
color: var(--footer-link-color);
font-weight: var(--footer-link-font-weight);
Expand Down

0 comments on commit 36b9a3b

Please sign in to comment.