Skip to content

Commit

Permalink
Spacing on cookies page, avoid same referrer link
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Jun 12, 2024
1 parent 8de9312 commit f06092a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/templates/legal/cookies.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ <h1 class="tna-hgroup__title">Cookies</h1>
</div>
</div>
</div>
<div class="tna-container tna-section tna-!--no-margin-top">
<div class="tna-container tna-section tna-!--no-padding-top">
<section class="tna-column tna-column--width-2-3 tna-column--full-small tna-column--full-tiny tna-!--margin-top-l">
<form method="post" action="{{ url_for('legal.cookies') }}" id="cookie-settings">
<div class="tna-aside tna-accent-green tna-background-accent" role="alert" id="cookie-settings-success"{% if request.args.saved == 'true' %} tabindex="-1" autofocus{% else %} hidden{% endif %}>
<h2 class="tna-heading-l">Success</h2>
<p>Your cookie settings were saved.</p>
{% if request.args.referrer %}
{% if request.args.referrer and request.args.referrer != request.base_url %}
<p>
<a href="{{ request.args.referrer }}">Go back to the page you were looking at</a>
</p>
Expand Down
14 changes: 14 additions & 0 deletions src/styles/modules/_generics.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,17 @@ p.etna-small-paragraph {
}
}
}

:first-child[hidden] {
+ .tna-hgroup-xl,
+ .tna-hgroup-l,
+ .tna-hgroup-m,
+ .tna-hgroup-s,
+ .tna-heading-s,
+ .tna-heading-m,
+ .tna-heading-l,
+ .tna-heading-xl {
margin-top: 0;
padding-top: 0;
}
}

0 comments on commit f06092a

Please sign in to comment.