Skip to content
Closed
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
34 changes: 33 additions & 1 deletion src/scss/components/footer/_footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
}
}

.iati-footer__section--first .iati-footer__container {
.iati-footer__section--first .iati-footer__container,
.iati-footer__section--mid .iati-footer__container {
display: flex;
gap: 2rem;
flex-direction: column;
Expand All @@ -41,6 +42,25 @@
}
}

.iati-footer__section--mid .iati-footer-block:first-child {
@media (min-width: $screen-md) {
flex: 3;
}
}

.iati-footer__section--mid .iati-footer-block:last-child {
@media (min-width: $screen-md) {
flex: 2;
}
}

.iati-footer-block--bordered {
@media (min-width: $screen-md) {
border-inline-start: 1px solid $color-blue-30;
padding-inline-start: 2rem;
}
}

.iati-footer__section--last .iati-footer__container {
display: flex;
flex-wrap: wrap;
Expand Down Expand Up @@ -68,6 +88,13 @@
}
}

.iati-footer-block__subtitle {
margin: 0 0 0.75rem;
font-family: $font-stack-heading;
font-size: 1rem;
font-weight: 700;
}

.iati-footer-block__content {
:where(p, li) {
margin: 0;
Expand All @@ -85,6 +112,11 @@
}
}

.iati-footer-block__content--divided > *:not(:first-child) {
border-inline-start: 1px solid $color-blue-30;
padding-inline-start: 2rem;
}

.iati-footer__legal-nav {
font-size: 1.0625rem;
a {
Expand Down
47 changes: 22 additions & 25 deletions src/scss/components/footer/footer.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,34 +76,31 @@ export const UsefulLinksSection: Story = {
};

const additionalInformationHtml = html`
<div class="iati-footer__section">
<div class="iati-footer__section iati-footer__section--mid">
<div class="iati-footer__container">
<div class="iati-footer-block">
<h2 class="iati-footer-block__title">Additional Information</h2>
<div
class="iati-footer-block__content iati-footer-block__content--columns"
>
<div>
<p>Part of the IATI Unified Platform.</p>
<p>
Code licensed under
<a href="https://www.gnu.org/licenses/agpl-3.0.en.html"
>GNU AGPL</a
>.
</p>
<p>
Documentation licensed under
<a href="https://creativecommons.org/licenses/by/4.0/"
>CC BY 3.0</a
>.
</p>
</div>
<div>
<ul>
<li><a href="#">Web vX.Y.Z</a></li>
<li><a href="#">API vX.Y.Z</a></li>
</ul>
</div>
<div class="iati-footer-block__content">
<p>Part of the IATI Unified Platform.</p>
<p>
Code licensed under
<a href="https://www.gnu.org/licenses/agpl-3.0.en.html">GNU AGPL</a
>.
</p>
<p>
Documentation licensed under
<a href="https://creativecommons.org/licenses/by/4.0/">CC BY 3.0</a
>.
</p>
</div>
</div>
<div class="iati-footer-block iati-footer-block--bordered">
<h2 class="iati-footer-block__title">Your Feedback</h2>
<div class="iati-footer-block__content">
<ul>
<li><a href="#">Feedback &amp; Suggestions</a></li>
<li><a href="#">Translation Issues &amp; Feedback</a></li>
</ul>
</div>
</div>
</div>
Expand Down