Skip to content

Commit

Permalink
fix(v2): improve Footer structure, add class names, use Infima transi…
Browse files Browse the repository at this point in the history
…tion (#3882)
  • Loading branch information
Simek authored Dec 7, 2020
1 parent 9fd8a3c commit e00e54a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions packages/docusaurus-theme-classic/src/theme/Footer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function Footer(): JSX.Element | null {
</div>
)}
{(logo || copyright) && (
<div className="text--center">
<div className="footer__bottom text--center">
{logo && logo.src && (
<div className="margin-bottom--sm">
{logo.href ? (
Expand All @@ -106,14 +106,16 @@ function Footer(): JSX.Element | null {
)}
</div>
)}

<div
// Developer provided the HTML, so assume it's safe.
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{
__html: copyright ?? '',
}}
/>
{copyright ? (
<div
className="footer__copyright"
// Developer provided the HTML, so assume it's safe.
// eslint-disable-next-line react/no-danger
dangerouslySetInnerHTML={{
__html: copyright,
}}
/>
) : null}
</div>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

.footerLogoLink {
opacity: 0.5;
transition: opacity 0.15s ease-in-out;
transition: opacity var(--ifm-transition-fast) var(--ifm-transition-timing-default);
}

.footerLogoLink:hover {
Expand Down

0 comments on commit e00e54a

Please sign in to comment.