Skip to content

Commit

Permalink
💄 Add back-to-top link
Browse files Browse the repository at this point in the history
  • Loading branch information
Ainali committed May 14, 2024
1 parent e87e655 commit 311fb94
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions static/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,18 @@ input {
object-fit: contain;
}

.to-top-link {
margin-block-start: calc(100vh + 200px);
position: sticky;
bottom: 1rem;
left: 1rem;

background: #00264d;
color: #FFF;
padding: 7px 21px;
border-radius: 3px;
text-decoration: none;
}

/* SECTIONS FOR CONTENT */

Expand Down
1 change: 1 addition & 0 deletions templates/country-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ <h2 class="m0 expand-mobile">Agencies</h2>

{{- $country_orgs := query (join "" "generators/" .safeName.String ".rq") -}}
{{- include "org-table.html" $country_orgs -}}
<a href="#top" class="to-top-link">Back to top</a>
</main>
{{ end }}

Expand Down

0 comments on commit 311fb94

Please sign in to comment.