Skip to content

Commit

Permalink
feat: enforce light primary color on footer links (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
kieranroneill authored Nov 28, 2023
1 parent d183a46 commit 5fea996
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
7 changes: 1 addition & 6 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,7 @@ const config = {
footer: {
copyright: `
<div class="footer-container">
<p class="footer-text">
Licensed under <a href="${GITHUB_LINK}/blob/main/LICENSE" target="_blank">GPL-2.0</a>.
</p>
<p class="footer-text">
Icons provided by <a href="https://www.flaticon.com/" target="_blank">flaticon</a>.
</p>
<p class="footer-text">Licensed under <a class="footer-text--link" href="${GITHUB_LINK}/blob/main/LICENSE" target="_blank">GPL-2.0</a>. Icons provided by <a class="footer-text--link" href="https://www.flaticon.com/" target="_blank">flaticon</a>.</p>
</div>
`,
logo: {
Expand Down
4 changes: 4 additions & 0 deletions src/components/Header/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@
line-height: 1rem;
padding: 0.25rem;
margin: 0;

a {
color: primary-color("light");
}
}

&--subtitle {
Expand Down
2 changes: 1 addition & 1 deletion src/styles/footer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
color: text-color("dark");
margin: 0;

a {
&--link {
color: primary-color("light");
}
}
11 changes: 11 additions & 0 deletions src/styles/global.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import "./functions";

@font-face {
font-family: 'AnonymousPro';
font-style: normal;
Expand Down Expand Up @@ -62,3 +64,12 @@
--kb-sub-text-color: #718096;
--kb-text-color: rgba(255, 255, 255, 0.92);
}

/* overrides */
.footer {
&__link-item {
&:hover {
color: primary-color("light");
}
}
}

0 comments on commit 5fea996

Please sign in to comment.