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 3, 2024
1 parent 28225a4 commit f7fb83f
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
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
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 f7fb83f

Please sign in to comment.