Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add back-to-top link #381

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
💄 Add back-to-top link
  • Loading branch information
Ainali committed May 14, 2024
commit 311fb94705916832dc4b402c07155c8db7f0cc2f
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