Skip to content

Commit

Permalink
fix footer on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Feb 3, 2024
1 parent e4ea405 commit a9500f8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/footer/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import NfCoreLogo from '/images/logo/nf-core-logo.svg?raw';
import IconSocial from '@components/IconSocial.astro';
---

<footer class="footer bg-body-secondary text-body-secondary">
<footer class="footer bg-body-secondary text-body-secondary py-4 py-lg-5">
<div class="container">
<div class="row align-items-center">
<div class="text-center text-lg-start col-12 col-lg d-flex flex-column justify-content-between">
<div class="">
<a href="/" class="text-decoration-none">
<a href="/" class="text-decoration-none d-inline-block">
<div class="hide-dark align-middle">
<Fragment set:html={NfCoreLogo} />
</div>
Expand Down Expand Up @@ -75,7 +75,6 @@ import IconSocial from '@components/IconSocial.astro';
}

footer {
padding: 3rem 0 3rem;
& a {
color: $gray-600;
&:hover,
Expand Down
4 changes: 4 additions & 0 deletions src/layouts/PageLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ if (frontmatter) {
</BaseLayout>

<style lang="scss">
@import '@styles/_variables.scss';
.mainpage {
min-height: calc(100vh - 14.5rem); // offset for header and footer
@include media-breakpoint-down(lg) {
min-height: calc(100vh - 16rem); // offset for header and footer
}
}
</style>

0 comments on commit a9500f8

Please sign in to comment.