mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-23 22:17:00 +02:00
fix(v2): improve Footer structure, add class names, use Infima transition (#3882)
This commit is contained in:
parent
9fd8a3c693
commit
e00e54a693
2 changed files with 12 additions and 10 deletions
|
@ -90,7 +90,7 @@ function Footer(): JSX.Element | null {
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{(logo || copyright) && (
|
{(logo || copyright) && (
|
||||||
<div className="text--center">
|
<div className="footer__bottom text--center">
|
||||||
{logo && logo.src && (
|
{logo && logo.src && (
|
||||||
<div className="margin-bottom--sm">
|
<div className="margin-bottom--sm">
|
||||||
{logo.href ? (
|
{logo.href ? (
|
||||||
|
@ -106,14 +106,16 @@ function Footer(): JSX.Element | null {
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
{copyright ? (
|
||||||
<div
|
<div
|
||||||
// Developer provided the HTML, so assume it's safe.
|
className="footer__copyright"
|
||||||
// eslint-disable-next-line react/no-danger
|
// Developer provided the HTML, so assume it's safe.
|
||||||
dangerouslySetInnerHTML={{
|
// eslint-disable-next-line react/no-danger
|
||||||
__html: copyright ?? '',
|
dangerouslySetInnerHTML={{
|
||||||
}}
|
__html: copyright,
|
||||||
/>
|
}}
|
||||||
|
/>
|
||||||
|
) : null}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
.footerLogoLink {
|
.footerLogoLink {
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
transition: opacity 0.15s ease-in-out;
|
transition: opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default);
|
||||||
}
|
}
|
||||||
|
|
||||||
.footerLogoLink:hover {
|
.footerLogoLink:hover {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue