From e00e54a693ca9545a2ec612b0bb91ca9ea5e038c Mon Sep 17 00:00:00 2001 From: Bartosz Kaszubowski Date: Mon, 7 Dec 2020 16:35:00 +0100 Subject: [PATCH] fix(v2): improve Footer structure, add class names, use Infima transition (#3882) --- .../src/theme/Footer/index.tsx | 20 ++++++++++--------- .../src/theme/Footer/styles.module.css | 2 +- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/packages/docusaurus-theme-classic/src/theme/Footer/index.tsx b/packages/docusaurus-theme-classic/src/theme/Footer/index.tsx index e0059bfcc9..2d2fef0e47 100644 --- a/packages/docusaurus-theme-classic/src/theme/Footer/index.tsx +++ b/packages/docusaurus-theme-classic/src/theme/Footer/index.tsx @@ -90,7 +90,7 @@ function Footer(): JSX.Element | null { )} {(logo || copyright) && ( -
+
{logo && logo.src && (
{logo.href ? ( @@ -106,14 +106,16 @@ function Footer(): JSX.Element | null { )}
)} - -
+ {copyright ? ( +
+ ) : null}
)}
diff --git a/packages/docusaurus-theme-classic/src/theme/Footer/styles.module.css b/packages/docusaurus-theme-classic/src/theme/Footer/styles.module.css index 58c5842c88..f68a4f9f7a 100644 --- a/packages/docusaurus-theme-classic/src/theme/Footer/styles.module.css +++ b/packages/docusaurus-theme-classic/src/theme/Footer/styles.module.css @@ -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 {